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