DeptTree-cfbf2a4e.js 1.3 KB

1
  1. import{d as k,r,L as w,l as x,o as g,c as D,g as d,f as n,w as V,a as l,O as T,e3 as U,F as b,j,V as R,_ as z,__tla as C}from"./index-2ed6e6bd.js";import{g as F,__tla as H}from"./index-905b7e68.js";import{d as L,h as N}from"./tree-0af4953a.js";let u,O=Promise.all([(()=>{try{return C}catch{}})(),(()=>{try{return H}catch{}})()]).then(async()=>{let o,c;o={class:"head-container"},c={class:"head-container"},u=z(k({name:"SystemUserDeptTree",__name:"DeptTree",emits:["node-click"],setup(P,{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 F();t.value=[],t.value.push(...N(e))})()}),(e,s)=>{const h=j,y=R;return g(),D(b,null,[d("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:V(()=>[n(h,{icon:"ep:search"})]),_:1},8,["modelValue"])]),d("div",c,[n(l(U),{ref_key:"treeRef",ref:i,data:l(t),"expand-on-click-node":!1,"filter-node-method":p,props:l(L),"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{O as __tla,u as default};