1 |
- import{_ as p,d as f,x as a,o as m,c as h,l as _,m as x,e6 as v,h as c,z as y}from"./index.js";import{b}from"./index.f40ed27e.js";const k={class:"max-w-280px w-[280px] h-full min-h-780px bg-white p-2 mt-5px mr-10px"},C=c("div",{class:"flex justify-between mb-1 font-bold"},[c("h1",null,"\u83DC\u5355\u5217\u8868")],-1),g=f({__name:"menu-tree",emits:["treeSelectChange","initTableData"],setup(w,{emit:n}){const i={label:"menu_name",children:"child"},s=a([]),l=a(null),r=a([]);async function u(){const{data:e}=await b({});s.value=e;const t=e[0],o=t.child[0];r.value=[t.id],y(()=>l.value.setCurrentKey(o.id)),n("initTableData",o.id)}function d(e){n("treeSelectChange",e)}return u(),(e,t)=>(m(),h("div",k,[C,_(x(v),{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"])]))}});var B=p(g,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/system/setBtn/components/menu-tree.vue"]]);export{B as default};
|