DeptTree.1744d100.js 1.2 KB

1
  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.fdc5c071.js";import{a as d}from"./system.4cc3261f.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.724c65cc.js";import"./fromPairs.84aabb58.js";import"./index.7afcd927.js";import"./eagerComputed.37d16852.js";import"./FileOutlined.94305124.js";import"./useContextMenu.de3cd93a.js";import"./index.63eb3d7f.js";import"./get.c5cd5cab.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};