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-Q6J5bB_u.js";import{C as b}from"./index-CYoRlduV.js";import{u as x,_}from"./index-Cy4uayzW.js";import{P as h}from"./index-CRgSyMPH.js";import"./antd-vue-vendor-CahNzUUa.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./index-DYB8Ashr.js";import"./index-Bdn0r8CG.js";import"./index-CrdW4fN1.js";import"./useTimeout-gJpgadD6.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./useContentHeight-XU-h1taH.js";import"./useWindowSizeFn-DDyhhqyw.js";import"./useContentViewHeight-Qm4QNm5l.js";import"./usePageContext-CXQdt-5h.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};
