
/**
 * 由 Fantastic-admin 提供技术支持
 * Powered by Fantastic-admin
 * Gitee  https://gitee.com/hooray/fantastic-admin
 * Github https://github.com/hooray/fantastic-admin
 */
  
import{d as g,y as h,A as S,B as M,r as v,b as e,o as t,c as o,e as l,G as u,f as d,ac as C,R as p,S as y,J as m,h as k,I as q,n as w}from"./index-4eef28ae.js";import x from"./index-517f4c75.js";import B from"./index-89092077.js";const I=g({name:"SubSidebar"}),T=g({...I,setup(G){const s=h(),i=S();M(()=>s.settings.app.colorScheme==="dark"?"https://public-1300678944.cos.ap-shanghai.myqcloud.com/ai/f6d0d3596.png":"https://public-1300678944.cos.ap-shanghai.myqcloud.com/blog/1681895253740image.png");const c=v(0);function b(a){c.value=a.target.scrollTop}return(a,L)=>{const _=k("el-menu");return["side","head","single"].includes(e(s).settings.menu.menuMode)||e(s).mode==="mobile"?(t(),o("div",{key:0,class:u(["sub-sidebar-container",{"is-collapse":e(s).mode==="pc"&&e(s).settings.menu.subMenuCollapse}]),onScroll:b},[l(x,{"show-logo":e(s).settings.menu.menuMode==="single",class:u(["sidebar-logo",{"sidebar-logo-bg":e(s).settings.menu.menuMode==="single",shadow:e(c)}])},null,8,["show-logo","class"]),l(_,{"unique-opened":e(s).settings.menu.subMenuUniqueOpened,"default-openeds":e(i).defaultOpenedPaths,"default-active":a.$route.meta.activeMenu||a.$route.path,collapse:e(s).mode==="pc"&&e(s).settings.menu.subMenuCollapse,"collapse-transition":!1,class:u({"is-collapse-without-logo":e(s).settings.menu.menuMode!=="single"&&e(s).settings.menu.subMenuCollapse})},{default:d(()=>[l(C,{name:"sub-sidebar"},{default:d(()=>[(t(!0),o(p,null,y(e(i).sidebarMenus,(n,f)=>{var r;return t(),o(p,null,[((r=n.meta)==null?void 0:r.sidebar)!==!1?(t(),q(B,{key:n.path||f,item:n,"base-path":n.path},null,8,["item","base-path"])):m("",!0)],64)}),256))]),_:1})]),_:1},8,["unique-opened","default-openeds","default-active","collapse","class"])],34)):m("",!0)}}});const $=w(T,[["__scopeId","data-v-859c71ea"]]);export{$ as default};
