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.9643ed91.js";import{a as d}from"./system.f56b3085.js";import{av as f,a as u,s as _,M as h,a_ as D,o as v,h as T,n as B}from"./index.90309406.js";import"./fromPairs.84aabb58.js";import"./index.6630520d.js";import"./eagerComputed.fbd124b7.js";import"./FileOutlined.151c3d24.js";import"./useContextMenu.397b0c74.js";import"./index.b6e4e2ea.js";import"./get.55c460af.js";const $=u({name:"DeptTree",components:{BasicTree:l},emits:["select"],setup(o,{emit:r}){const e=_([]);function n(){return m(this,null,function*(){e.value=yield d()})}function a(s){r("select",s[0])}return h(()=>{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=f($,[["render",w]]);export{V as default};
|