DeptTree.303c9c29.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.b0bf5896.js";import{a as d}from"./system.ec8abbf5.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.acd8203b.js";import"./fromPairs.84aabb58.js";import"./index.095eb311.js";import"./eagerComputed.b06141fe.js";import"./FileOutlined.a9646636.js";import"./useContextMenu.2ae80dec.js";import"./index.bc0e1c60.js";import"./get.b9a33520.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};