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-BTAl55Kt.js";import{a as k}from"./system-CSPmx4m6.js";import{_ as B}from"./index-CYriLmQo.js";import"./antd-vue-vendor-CDWW6V_M.js";import"./index-CxQILSKV.js";import"./bem-2ra1afoV.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./props-BLY2qIO5.js";import"./index-BRTtls-l.js";import"./index-DOuVMe-q.js";import"./index-ByLO0zSl.js";import"./useTimeout-DC8132dd.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./useContextMenu-DYyhcDf7.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};
