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