import{d as A,V as D,s as v,eo as L,r as M,o as V,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.8a119a86.js";const j={id:"layout-aside"},I={class:"scrollbar-wrap"},P=A({emits:["onChangeCollapse"],setup(R,{emit:F}){const{route:f}=D(),a=v(()=>L.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=M(!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))};return V(()=>{console.log("\u52A0\u8F7D\u5B8C\u6BD5"),h(),window.addEventListener("resize",h)}),z(()=>{console.log("\u9500\u6BC1\u524D\u6267\u884C")}),(o,c)=>{const y=g("el-menu"),B=g("el-scrollbar");return e(),l("div",j,[E("div",I,[m(B,{style:{height:"100%"},class:"ls-scrollbar"},{default:n(()=>[m(y,{"background-color":"#FFFFFF","default-active":C(k),"text-color":"#080808",router:"",collapse:r.value,onSelect:o.handleMenuSelect},{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,x)=>(e(),i(p,{key:x,route:s},{default:n(()=>[(e(!0),l(d,null,_(s==null?void 0:s.children,(w,S)=>(e(),i(p,{key:S,route:w},null,8,["route"]))),128))]),_:2},1032,["route"]))),128))]),_:2},1032,["route"]))),128))]),_:1},8,["default-active","collapse","onSelect"])]),_:1})])])}}});const W=N(P,[["__scopeId","data-v-80f7d701"]]);export{W as default};
