DeptTree-c65ec6ed.js 1.3 KB

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