DeptTree-c3b6db5a.js 1.3 KB

1
  1. import{d as k,r,aP as w,B as x,o as g,c as D,g as d,i as n,w as T,a as l,y as U,dW as P,F as V,v as b,U as j,_ as A,__tla as B}from"./index-390579cd.js";import{g as C,__tla as E}from"./index-6ef5e43a.js";import{d as F,h as G}from"./tree-0af4953a.js";let u,H=Promise.all([(()=>{try{return B}catch{}})(),(()=>{try{return E}catch{}})()]).then(async()=>{let o,c;o={class:"head-container"},c={class:"head-container"},u=A(k({name:"SystemUserDeptTree",__name:"DeptTree",emits:["node-click"],setup(N,{emit:m}){const a=r(""),t=r([]),i=r(),p=(e,s)=>!e||s.name.includes(e),_=async e=>{f("node-click",e)},f=m;return w(a,e=>{i.value.filter(e)}),x(async()=>{await(async()=>{const e=await C();t.value=[],t.value.push(...G(e))})()}),(e,s)=>{const h=b,y=j;return g(),D(V,null,[d("div",o,[n(y,{modelValue:l(a),"onUpdate:modelValue":s[0]||(s[0]=v=>U(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"])]),d("div",c,[n(l(P),{ref_key:"treeRef",ref:i,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","E:/GAOHP_2023/mall/newfeifan-front/yudao-ui-admin-vue3/src/views/system/user/DeptTree.vue"]])});export{H as __tla,u as default};