import{d as L,V as M,s as v,j1 as S,r as V,o as j,a_ as z,c as g,e,f as l,g as E,h as m,i as n,u as C,F as d,j as _,k as i,_ as N}from"./index.0308b213.js";import p from"./sub-menu.9e103443.js";const I={id:"layout-aside"},P={class:"scrollbar-wrap"},R=L({emits:["onChangeCollapse"],setup(T,{emit:F}){const{route:f}=M(),a=v(()=>S.children);console.log(a,"routes");const k=v(()=>{var o,c;return(c=(o=f.meta)==null?void 0:o.parent)!=null?c:f.path}),r=V(!1);let u=null;console.log(a,"routes");const h=()=>{u||(u=setTimeout(()=>{r.value===!0&&F("onChangeCollapse",!1),r.value=!1,u=null},500))};j(()=>{console.log("\u52A0\u8F7D\u5B8C\u6BD5"),h(),window.addEventListener("resize",h)}),z(()=>{console.log("\u9500\u6BC1\u524D\u6267\u884C")});const y=o=>{router.push(o)};return(o,c)=>{const B=g("el-menu"),x=g("el-scrollbar");return e(),l("div",I,[E("div",P,[m(x,{style:{height:"100%"},class:"ls-scrollbar"},{default:n(()=>[m(B,{"background-color":"#FFFFFF","default-active":C(k),"text-color":"#080808",router:"",collapse:r.value,onSelect:y},{default:n(()=>[(e(!0),l(d,null,_(C(a),(t,b)=>(e(),i(p,{key:b,route:t},{default:n(()=>[(e(!0),l(d,null,_(t==null?void 0:t.children,(s,w)=>(e(),i(p,{key:w,route:s},{default:n(()=>[(e(!0),l(d,null,_(s==null?void 0:s.children,(A,D)=>(e(),i(p,{key:D,route:A},null,8,["route"]))),128))]),_:2},1032,["route"]))),128))]),_:2},1032,["route"]))),128))]),_:1},8,["default-active","collapse"])]),_:1})])])}}});const $=N(R,[["__scopeId","data-v-af94751e"]]);export{$ as default};
