1 |
- import{d as k,r,aM as w,q as x,o as g,c as D,g as i,f as n,w as R,a as l,l as T,dX as U,F as V,j as b,R as j,_ as X,__tla as q}from"./index-8dc1e40a.js";import{g as z,__tla as C}from"./index-a45cc9fa.js";import{d as F,h as H}from"./tree-0af4953a.js";let u,M=Promise.all([(()=>{try{return q}catch{}})(),(()=>{try{return C}catch{}})()]).then(async()=>{let o,c;o={class:"head-container"},c={class:"head-container"},u=X(k({name:"SystemUserDeptTree",__name:"DeptTree",emits:["node-click"],setup(N,{emit:m}){const a=r(""),t=r([]),d=r(),p=(e,s)=>!e||s.name.includes(e),_=async e=>{f("node-click",e)},f=m;return w(a,e=>{d.value.filter(e)}),x(async()=>{await(async()=>{const e=await z();t.value=[],t.value.push(...H(e))})()}),(e,s)=>{const h=b,y=j;return g(),D(V,null,[i("div",o,[n(y,{modelValue:l(a),"onUpdate:modelValue":s[0]||(s[0]=v=>T(a)?a.value=v:null),class:"mb-20px",clearable:"",placeholder:"\u8BF7\u8F93\u5165\u90E8\u95E8\u540D\u79F0"},{prefix:R(()=>[n(h,{icon:"ep:search"})]),_:1},8,["modelValue"])]),i("div",c,[n(l(U),{ref_key:"treeRef",ref:d,data:l(t),"expand-on-click-node":!1,"filter-node-method":p,props:l(F),"default-expand-all":"","highlight-current":"","node-key":"id",onNodeClick:_},null,8,["data","props"])])],64)}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/system/user/DeptTree.vue"]])});export{M as __tla,u as default};
|