1 |
- var m=(o,r,e)=>new Promise((n,a)=>{var s=t=>{try{i(e.next(t))}catch(p){a(p)}},c=t=>{try{i(e.throw(t))}catch(p){a(p)}},i=t=>t.done?n(t.value):Promise.resolve(t.value).then(s,c);i((e=e.apply(o,r)).next())});import{_ as l}from"./index.f67a92d5.js";import{a as d}from"./system.6ba011de.js";import{a as f,s as u,M as _,av as h,a_ as D,o as v,h as T,n as B}from"./index.cc9e1543.js";import"./fromPairs.84aabb58.js";import"./index.527e5d2b.js";import"./eagerComputed.49b9583e.js";import"./FileOutlined.b60a9c6b.js";import"./useContextMenu.a243fc1c.js";import"./index.527cbfb8.js";import"./get.3e44900b.js";const $=f({name:"DeptTree",components:{BasicTree:l},emits:["select"],setup(o,{emit:r}){const e=u([]);function n(){return m(this,null,function*(){e.value=yield d()})}function a(s){r("select",s[0])}return _(()=>{n()}),{treeData:e,handleSelect:a}}}),k={class:"m-4 mr-0 overflow-hidden bg-white"};function w(o,r,e,n,a,s){const c=D("BasicTree");return v(),T("div",k,[B(c,{title:"\u90E8\u95E8\u5217\u8868",toolbar:"",search:"",clickRowToExpand:!1,treeData:o.treeData,fieldNames:{key:"id",title:"deptName"},onSelect:o.handleSelect},null,8,["treeData","onSelect"])])}var V=h($,[["render",w]]);export{V as default};
|