import{d as p,l as s,U as u,a2 as l,ad as m,af as f,a4 as d,k as o}from"./vue-vendor-CxLCUzY4.js";import{_ as h}from"./index-BKs2x_To.js";import{t as D}from"./data-B6s_JPbS.js";import{aN as g,bi as C}from"./antd-vue-vendor-CDWW6V_M.js";import{P as F}from"./index-DaObvZxT.js";import{_ as b}from"./index-B_2CoVdl.js";import"./index-DAURrYyA.js";import"./bem-C6eT35UB.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./props-BLY2qIO5.js";import"./index-Dz2zbQB_.js";import"./index-exs4VcBw.js";import"./index-ByLO0zSl.js";import"./useTimeout-CB9F1PLu.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./useContextMenu-CSt5a1-F.js";import"./useContentHeight-BWLGvKEC.js";import"./useWindowSizeFn-C3WExEpc.js";import"./useContentViewHeight-DlpfApuB.js";import"./usePageContext-HMYqek-Q.js";import"./injectionKey-DPVn4AgL.js";const _=p({components:{BasicTree:h,PageWrapper:F},setup(){function e(t){}function a(t){return[{label:"新增",handler:()=>{},icon:"bi:plus"},{label:"删除",handler:()=>{},icon:"bx:bxs-folder-open"}]}const i=[{render:t=>s(g,{class:"ml-2",onClick:()=>{}})},{render:()=>s(C)}];function n({level:t}){return t===1?"ion:git-compare-outline":t===2?"ion:home":t===3?"ion:airplane":""}return{treeData:D,actionList:i,getRightMenuList:a,createIcon:n}}}),E={class:"flex"};function k(e,a,i,n,t,B){const r=u("BasicTree"),c=u("PageWrapper");return l(),m(c,{title:"Tree函数操作示例"},{default:f(()=>[d("div",E,[o(r,{class:"w-1/3",title:"右侧操作按钮/自定义图标",helpMessage:"帮助信息",treeData:e.treeData,actionList:e.actionList,renderIcon:e.createIcon},null,8,["treeData","actionList","renderIcon"]),o(r,{class:"w-1/3 mx-4",title:"右键菜单",treeData:e.treeData,beforeRightClick:e.getRightMenuList},null,8,["treeData","beforeRightClick"]),o(r,{class:"w-1/3",title:"工具栏使用",toolbar:"",checkable:"",search:"",treeData:e.treeData,beforeRightClick:e.getRightMenuList},null,8,["treeData","beforeRightClick"])])]),_:1})}const H=b(_,[["render",k]]);export{H as default};
