var m=(a,r,e)=>new Promise((n,o)=>{var s=t=>{try{i(e.next(t))}catch(p){o(p)}},c=t=>{try{i(e.throw(t))}catch(p){o(p)}},i=t=>t.done?n(t.value):Promise.resolve(t.value).then(s,c);i((e=e.apply(a,r)).next())});import{_ as l}from"./index.9d5559d9.js";import{a as d}from"./system.d37449cd.js";import{aP as f,a as u,r as _,H as h,aQ as D,o as T,h as v,j as B}from"./index.0d073eaa.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";const $=u({name:"DeptTree",components:{BasicTree:l},emits:["select"],setup(a,{emit:r}){const e=_([]);function n(){return m(this,null,function*(){e.value=yield d()})}function o(s){r("select",s[0])}return h(()=>{n()}),{treeData:e,handleSelect:o}}}),k={class:"m-4 mr-0 overflow-hidden bg-white"};function w(a,r,e,n,o,s){const c=D("BasicTree");return T(),v("div",k,[B(c,{title:"\u90E8\u95E8\u5217\u8868",toolbar:"",search:"",clickRowToExpand:!1,treeData:a.treeData,fieldNames:{key:"id",title:"deptName"},onSelect:a.handleSelect},null,8,["treeData","onSelect"])])}var L=f($,[["render",w]]);export{L as default};
