import{_ as d,d as p,w as n,o as f,c as m,j as h,l as _,ck as x,h as i,y as v}from"./index.js";import{b as y}from"./index.f6de32cf.js";const k={class:"max-w-280px w-[280px] h-full min-h-780px bg-white p-2 mt-5px mr-10px"},b=i("div",{class:"flex justify-between mb-1 font-bold"},[i("h1",null,"\u83DC\u5355\u5217\u8868")],-1),C=p({__name:"menu-tree",emits:["treeSelectChange","initTableData"],setup(g,{emit:s}){const u={label:"menu_name",children:"child"},r=n([]),o=n([]),l=n(null);async function c(){const{data:a}=await y({});r.value=a;const e=a[0],t=e.child[0];o.value=[e.id],v(()=>l.value.setCurrentKey(t.id)),s("initTableData",t.id)}return c(),(a,e)=>(f(),m("div",k,[b,h(_(x),{accordion:"",ref_key:"treeRef",ref:l,"node-key":"id",data:r.value,"highlight-current":"",props:u,"default-expanded-keys":o.value,onCurrentChange:e[0]||(e[0]=t=>s("treeSelectChange",t))},null,8,["data","default-expanded-keys"])]))}});var T=d(C,[["__file","C:/Users/Administrator/Desktop/projects/purchase-vue3/src/views/system/setBtn/components/menu-tree.vue"]]);export{T as default};
