import{a2 as h}from"./index.CL7yl-Wb.js";import{a as x,r as k,aj as n,c as b,o as C,b as e,S as t,K as l,u as v,Q as y}from"./vue.D1BjjNmv.js";import{_ as D}from"./_plugin-vue_export-helper.DlAUqK2U.js";const N={class:"document-tree-container"},g={class:"custom-tree-node"},B={class:"node-label"},I={class:"ml-2 text-ellipsis"},j=x({__name:"jobIndex",props:{treeData:{type:Array,default:()=>[]}},emits:["treeClick","updateDocument","deleteDocument"],setup(r,{expose:c,emit:d}){const i=d,o=k(null),_={children:"children",label:"name"},p=s=>{i("treeClick",s)};return c({treeRef:o}),(s,a)=>{const m=n("el-icon"),u=n("el-tree");return C(),b("div",N,[a[0]||(a[0]=e("div",{class:"document-tree-header"},[e("span",{class:"document-tree-title"},"职位")],-1)),t(u,{ref_key:"treeRef",ref:o,data:r.treeData,"node-key":"id",props:_,"default-expand-all":"","highlight-current":"",onNodeClick:p},{default:l(({node:R,data:f})=>[e("div",g,[e("div",B,[t(m,null,{default:l(()=>[t(v(h))]),_:1}),e("span",I,y(f.title),1)])])]),_:1},8,["data"])])}}}),A=D(j,[["__scopeId","data-v-7b895b64"]]);export{A as default};
