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