2 lines
1.8 KiB
Java
2 lines
1.8 KiB
Java
var c=(o,i,e)=>new Promise((p,r)=>{var m=t=>{try{n(e.next(t))}catch(s){r(s)}},a=t=>{try{n(e.throw(t))}catch(s){r(s)}},n=t=>t.done?p(t.value):Promise.resolve(t.value).then(m,a);n((e=e.apply(o,i)).next())});import{B as l}from"./index-Bzmv9Ie7.js";import{g as f}from"./system-nmurLO6d.js";import{e as d,o as u,r as _,C as h,z as D,f as B,K as T}from"./vue-vendor-DNhG1Cve.js";import{au as k}from"./index-X7Y8jykP.js";import"./index-BzChaRPg.js";import"./bem-CTsBfXqP.js";import"./emoji-mart-vue-fast-R0uJEDq-.js";import"./props-Cc-8EPhZ.js";import"./fromPairs-Dx9PT-t0.js";import"./index-CfNJyBRj.js";import"./dropdown-jkliuVyN.js";import"./index-ByCwbQDV.js";import"./index-Upeu4GGa.js";import"./index-C4wWpZeQ.js";import"./useTimeout-D5AmIBZw.js";import"./index-M9QP6cvf.js";import"./Skeleton-CimgOdM7.js";import"./useScrollTo-0FPEw5-K.js";import"./useIntersectionObserver-BGOgyKyu.js";import"./useContextMenu-BncvQCmV.js";import"./index-saD4h7VJ.js";import"./difference-CGvbIcA7.js";import"./index-C7ckZv9Z.js";import"./DirectoryTree-nk_YTTIy.js";import"./FolderOpenOutlined-SzIPA7z0.js";import"./index-Cl-8Hzo4.js";import"./useMaxLevel-DE205ncc.js";import"./eagerComputed-BTlOruLW.js";import"./index-BuONesFs.js";const v=d({name:"DeptTree",components:{BasicTree:l},emits:["select"],setup(o,{emit:i}){const e=_([]);function p(){return c(this,null,function*(){e.value=yield f()})}function r(m){i("select",m[0])}return u(()=>{p()}),{treeData:e,handleSelect:r}}}),w={class:"m-4 mr-0 overflow-hidden bg-white"};function S(o,i,e,p,r,m){const a=T("BasicTree");return D(),h("div",w,[B(a,{title:"部门列表",toolbar:"",search:"",clickRowToExpand:!1,treeData:o.treeData,fieldNames:{key:"id",title:"deptName"},onSelect:o.handleSelect},null,8,["treeData","onSelect"])])}const ee=k(v,[["render",S]]);export{ee as default};
|