import{aP as d,a as B,aQ as i,o as E,aR as C,p as a,j as t,q as m,t as c,bM as F}from"./index.0d073eaa.js";/* empty css              */import{_ as g}from"./index.9d5559d9.js";import{t as h,a as _,b as A}from"./data.ec134722.js";import{P as b}from"./index.566277e5.js";import{D as R}from"./DeleteOutlined.247d1f35.js";import{R as k,C as L}from"./index.1d29734e.js";import{P as M}from"./PlusOutlined.64d8e001.js";import"./fromPairs.84aabb58.js";import"./index.e8b360cf.js";import"./eagerComputed.156e81ff.js";import"./useContextMenu.cd4142a5.js";import"./index.0fb15725.js";import"./get.49a42f2e.js";import"./index.e9a84cba.js";import"./index.0972fd96.js";import"./useSize.bb4e5ce5.js";import"./useWindowSizeFn.ef20ece8.js";import"./useContentViewHeight.01b9d1c6.js";import"./ArrowLeftOutlined.90d2e05e.js";import"./index.8680e4c4.js";import"./transButton.8c1b1a4f.js";import"./Col.a2eadc78.js";import"./useFlexGapSupport.474c31b7.js";const P=B({components:{BasicTree:g,PageWrapper:b,Row:k,Col:L},setup(){function e(u){console.log(u)}function s(u){return[{label:"\u65B0\u589E",handler:()=>{console.log("\u70B9\u51FB\u4E86\u65B0\u589E",u)},icon:"bi:plus"},{label:"\u5220\u9664",handler:()=>{console.log("\u70B9\u51FB\u4E86\u5220\u9664",u)},icon:"bx:bxs-folder-open"}]}const l=[{render:u=>F(M,{class:"ml-2",onClick:()=>{e(u)}})},{render:()=>F(R)}];function p({level:u}){return u===1?"ion:git-compare-outline":u===2?"ion:home":u===3?"ion:airplane":""}return{treeData:h,treeData2:_,treeData3:A,actionList:l,getRightMenuList:s,createIcon:p}}});function N(e,s,l,p,u,T){const r=i("BasicTree"),o=i("Col"),D=i("Row"),f=i("PageWrapper");return E(),C(f,{title:"Tree\u51FD\u6570\u64CD\u4F5C\u793A\u4F8B"},{default:a(()=>[t(D,{gutter:[16,16]},{default:a(()=>[t(o,{span:8},{default:a(()=>[t(r,{title:"\u53F3\u4FA7\u64CD\u4F5C\u6309\u94AE/\u81EA\u5B9A\u4E49\u56FE\u6807",helpMessage:"\u5E2E\u52A9\u4FE1\u606F",treeData:e.treeData,actionList:e.actionList,renderIcon:e.createIcon},null,8,["treeData","actionList","renderIcon"])]),_:1}),t(o,{span:8},{default:a(()=>[t(r,{title:"\u53F3\u952E\u83DC\u5355",treeData:e.treeData,beforeRightClick:e.getRightMenuList},null,8,["treeData","beforeRightClick"])]),_:1}),t(o,{span:8},{default:a(()=>[t(r,{title:"\u5DE5\u5177\u680F\u4F7F\u7528",toolbar:"",checkable:"",search:"",treeData:e.treeData,beforeRightClick:e.getRightMenuList},null,8,["treeData","beforeRightClick"])]),_:1}),t(o,{span:8},{default:a(()=>[t(r,{title:"\u6CA1\u6709fieldNames\uFF0C\u63D2\u69FD\u6709\u6548",helpMessage:"\u6B63\u786E\u7684\u793A\u4F8B",treeData:e.treeData3},{title:a(n=>[m(" \u63D2\u69FD\uFF1A"+c(n.name),1)]),_:1},8,["treeData"])]),_:1}),t(o,{span:8},{default:a(()=>[t(r,{title:"\u6709fieldNames\u540E\uFF0C\u63D2\u69FD\u5931\u6548",helpMessage:"\u9519\u8BEF\u7684\u793A\u4F8B, \u5E94\u8BE5\u663E\u793A\u63D2\u69FD\u7684\u5185\u5BB9\u624D\u5BF9",fieldNames:{key:"id",title:"name"},treeData:e.treeData2},{title:a(n=>[m(" \u63D2\u69FD\uFF1A"+c(n.title),1)]),_:1},8,["treeData"])]),_:1}),t(o,{span:8},{default:a(()=>[t(r,{title:"\u6709fieldNames\u540E\uFF0CactionList\u5931\u6548",helpMessage:"\u9519\u8BEF\u7684\u793A\u4F8B\uFF0C\u5E94\u8BE5\u5728\u9F20\u6807\u79FB\u4E0A\u53BB\u65F6\uFF0C\u663E\u793A\u65B0\u589E\u548C\u5220\u9664\u6309\u94AE\u624D\u5BF9",treeData:e.treeData3,actionList:e.actionList,fieldNames:{key:"key",title:"name"}},null,8,["treeData","actionList"])]),_:1})]),_:1})]),_:1})}var ue=d(P,[["render",N]]);export{ue as default};
