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.1417328f.js";import{b}from"./index.8c82491f.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([]),o=a(null),c=a([]);async function i(){const{data:e}=await b({});s.value=e;const t=e[0],r=t.child[0];c.value=[t.id],y(()=>o.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:o,accordion:"","node-key":"id","highlight-current":"",props:u,data:s.value,"default-expanded-keys":c.value,onCurrentChange:d},null,8,["data","default-expanded-keys"])]))}});var B=p(g,[["__file","/Users/apple/Desktop/Company Projects/accout-vue3-ui/src/views/system/setBtn/components/menu-tree.vue"]]);export{B as default};
|