var p=(o,r,e)=>new Promise((n,a)=>{var s=t=>{try{c(e.next(t))}catch(m){a(m)}},i=t=>{try{c(e.throw(t))}catch(m){a(m)}},c=t=>t.done?n(t.value):Promise.resolve(t.value).then(s,i);c((e=e.apply(o,r)).next())});import{d as l,f,o as d,U as u,a2 as _,a3 as h,k as D}from"./vue-vendor-CxLCUzY4.js";import{_ as T}from"./index-BKs2x_To.js";import{a as k}from"./system-CPwSAvs9.js";import{_ as B}from"./index-B_2CoVdl.js";import"./antd-vue-vendor-CDWW6V_M.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";const $=l({name:"DeptTree",components:{BasicTree:T},emits:["select"],setup(o,{emit:r}){const e=f([]);function n(){return p(this,null,function*(){e.value=yield k()})}function a(s){r("select",s[0])}return d(()=>{n()}),{treeData:e,handleSelect:a}}}),v={class:"m-4 mr-0 overflow-hidden bg-white"};function w(o,r,e,n,a,s){const i=u("BasicTree");return _(),h("div",v,[D(i,{title:"部门列表",toolbar:"",search:"",clickRowToExpand:!1,treeData:o.treeData,fieldNames:{key:"id",title:"deptName"},onSelect:o.handleSelect},null,8,["treeData","onSelect"])])}const A=B($,[["render",w]]);export{A as default};
