| 1 |
- 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,ag as u,aq as _,ar as h,k as D}from"./vue-vendor-Be68asQ6.js";import{_ as T}from"./index-BNFwynfr.js";import{a as k}from"./system-CVkOpfKQ.js";import{a as B}from"./index-BFfnEkVs.js";import"./antd-vue-vendor-DcqS7Wvq.js";import"./index-BZ_MXCtW.js";import"./index-BIPzXG41.js";import"./index-CXEQnmRq.js";import"./useTimeout-Ca5eqGu-.js";import"./vxe-table-vendor-DHF2TRpV.js";import"./useIntersectionObserver-Bl62RIZ4.js";import"./bem-BvvqSl-N.js";import"./props-Cw7AfxGV.js";import"./useContextMenu-BDwmjIwb.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};
|