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-DYyhcDf7.js";import{C as b}from"./index-BRTtls-l.js";import{u as x,_}from"./index-CYriLmQo.js";import{P as h}from"./index-BxgvQLkr.js";import"./antd-vue-vendor-CDWW6V_M.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./index-DOuVMe-q.js";import"./index-CxQILSKV.js";import"./index-ByLO0zSl.js";import"./useTimeout-DC8132dd.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./useContentHeight-DtBiGC0g.js";import"./useWindowSizeFn-BxrEMPtP.js";import"./useContentViewHeight-D71xl1HH.js";import"./usePageContext-CCgh0KDo.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};
