import{b as f}from"./menuOperator.05657b96.js";import{a as p,r as a,c as h,e as m,f as _,u as x,bg as b,m as o,Y as g}from"./index.4d061c66.js";const y={class:"h-full min-h-780px bg-white p-2 mt-5px mr-10px"},k=o("div",{class:"flex justify-between mb-1 font-bold"},[o("h1",null,"\u83DC\u5355\u5217\u8868")],-1),T=p({__name:"menu-tree",emits:["treeSelectChange","initTableData"],setup(v,{emit:n}){const i={label:"menu_name",children:"child"},s=a([]),l=a(null),r=a([]);async function u(){const{data:e}=await f({});s.value=e;const t=e[0],c=t.child[0];r.value=[t.id],g(()=>l.value.setCurrentKey(c.id)),n("initTableData",c.id)}function d(e){n("treeSelectChange",e)}return u(),(e,t)=>(h(),m("div",y,[k,_(x(b),{ref_key:"treeRef",ref:l,accordion:"","node-key":"id","highlight-current":"",props:i,data:s.value,"default-expanded-keys":r.value,onCurrentChange:d},null,8,["data","default-expanded-keys"])]))}});export{T as _};
