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-44tRnyoF.js";import{t as D}from"./data-B6s_JPbS.js";import{aM as g,bi as C}from"./antd-vue-vendor-CahNzUUa.js";import{P as F}from"./index-D55rh6hR.js";import{_ as b}from"./index-CLZzJyTP.js";import"./index-DvqyyN77.js";import"./bem-DT3DdmOs.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./props-CG-jAkbI.js";import"./index-DS3utcig.js";import"./index-BZbg0EjM.js";import"./index-CrdW4fN1.js";import"./useTimeout-KpZCXEcl.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./useContextMenu-BGU2vdqV.js";import"./useContentHeight-DLfJuPsF.js";import"./useWindowSizeFn-D9PllI8g.js";import"./useContentViewHeight-BIb_dTbE.js";import"./usePageContext-FyDvfV_K.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};
