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