1 |
- import{_ as p,d as f,E as a,o as m,c as _,y as h,u as x,c7 as v,b as l,G as y}from"./index.743f0c80.js";import{b}from"./index.264c5d36.js";const k={class:"max-w-280px w-[280px] h-full min-h-780px bg-white p-2 mt-5px mr-10px"},g=l("div",{class:"flex justify-between mb-1 font-bold"},[l("h1",null,"\u83DC\u5355\u5217\u8868")],-1),w=f({__name:"menu-tree",emits:["treeSelectChange","initTableData"],setup(C,{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,[g,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(w,[["__file","D:/work/accout-vue3-ui/src/views/system/setBtn/components/menu-tree.vue"]]);export{B as default};
|