import{d as c,U as a,a2 as d,ad as C,af as o,k as r,G as u}from"./vue-vendor-CxLCUzY4.js";import{useContextMenu as f}from"./useContextMenu-CSt5a1-F.js";import{C as b}from"./index-Dz2zbQB_.js";import{u as x,_}from"./index-B_2CoVdl.js";import{P as h}from"./index-DaObvZxT.js";import"./antd-vue-vendor-CDWW6V_M.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./index-exs4VcBw.js";import"./index-DAURrYyA.js";import"./index-ByLO0zSl.js";import"./useTimeout-CB9F1PLu.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./useContentHeight-BWLGvKEC.js";import"./useWindowSizeFn-C3WExEpc.js";import"./useContentViewHeight-DlpfApuB.js";import"./usePageContext-HMYqek-Q.js";import"./injectionKey-DPVn4AgL.js";const w=c({components:{CollapseContainer:b,PageWrapper:h},setup(){const[t]=f(),{createMessage:e}=x();function i(n){t({event:n,items:[{label:"New",icon:"bi:plus",handler:()=>{e.success("click new")}},{label:"Open",icon:"bx:bxs-folder-open",handler:()=>{e.success("click open")}}]})}function l(n){t({event:n,items:[{label:"New",icon:"bi:plus",children:[{label:"New1-1",icon:"bi:plus",divider:!0,children:[{label:"New1-1-1",handler:()=>{e.success("click new")}},{label:"New1-2-1",disabled:!0}]},{label:"New1-2",icon:"bi:plus"}]}]})}return{handleContext:i,handleMultipleContext:l}}});function k(t,e,i,l,n,N){const s=a("a-button"),p=a("CollapseContainer"),m=a("PageWrapper");return d(),C(m,{title:"右键菜单示例"},{default:o(()=>[r(p,{title:"Simple"},{default:o(()=>[r(s,{type:"primary",onContextmenu:t.handleContext},{default:o(()=>e[0]||(e[0]=[u(" Right Click on me ")])),_:1},8,["onContextmenu"])]),_:1}),r(p,{title:"Multiple",class:"mt-4"},{default:o(()=>[r(s,{type:"primary",onContextmenu:t.handleMultipleContext},{default:o(()=>e[1]||(e[1]=[u(" Right Click on me ")])),_:1},8,["onContextmenu"])]),_:1})]),_:1})}const T=_(w,[["render",k]]);export{T as default};
