2 lines
1.3 KiB
Java
2 lines
1.3 KiB
Java
var m=(o,a,e)=>new Promise((s,r)=>{var n=t=>{try{c(e.next(t))}catch(p){r(p)}},i=t=>{try{c(e.throw(t))}catch(p){r(p)}},c=t=>t.done?s(t.value):Promise.resolve(t.value).then(n,i);c((e=e.apply(o,a)).next())});import{d as l,o as d,f,ah as u,ar as _,as as h,k as D}from"./vue-vendor-C7Zq48Yl.js";import{B}from"./index-CUdllngZ.js";import{a as T}from"./system-CeA8A5vN.js";import{d as k}from"./index-BI6CMai0.js";import"./antd-vue-vendor-BPnV8VqP.js";import"./index-DeEq83Ov.js";import"./bem-EhXRi4nW.js";import"./vxe-table-vendor-B88kchpX.js";import"./props-D4vdsy3J.js";import"./index-pxs5MULf.js";import"./index-BgYCgfME.js";import"./index-f8O7TghW.js";import"./useTimeout-DDl4l82I.js";import"./useIntersectionObserver-BMxdTqP3.js";import"./useContextMenu-Cwx1lIOK.js";const v=l({name:"DeptTree",components:{BasicTree:B},emits:["select"],setup(o,{emit:a}){const e=f([]);function s(){return m(this,null,function*(){e.value=yield T()})}function r(n){a("select",n[0])}return d(()=>{s()}),{treeData:e,handleSelect:r}}}),w={class:"m-4 mr-0 overflow-hidden bg-white"};function S(o,a,e,s,r,n){const i=u("BasicTree");return h(),_("div",w,[D(i,{title:"部门列表",toolbar:"",search:"",clickRowToExpand:!1,treeData:o.treeData,fieldNames:{key:"id",title:"deptName"},onSelect:o.handleSelect},null,8,["treeData","onSelect"])])}const F=k(v,[["render",S]]);export{F as default};
|