12 |
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/breadcrumb.iM-kVsLx.js","assets/vue.Bi2Y_N79.js","assets/index.Dzkftxcu.js","assets/index.HyH5PDX0.css","assets/_plugin-vue_export-helper.DlAUqK2U.js","assets/breadcrumb.CgSM-oQ7.css","assets/user.snprllBz.js","assets/user.B_vQ9sL4.css","assets/index.DGQuILko.js","assets/LOGO1.CAkriOh-.js","assets/logo-mini.DjPeV5ul.js","assets/index.CTSvkg5k.css","assets/horizontal.DSWx0Cau.js","assets/horizontal.BqPRWqMs.css"])))=>i.map(i=>d[i]);
- import{ai as O,u as P,e as d,_ as a}from"./index.Dzkftxcu.js";import{w as C,aT as p,aS as V,af as A,F as f,O as F,ab as w,x as M,y as _,a0 as h,a3 as L,a8 as v,G as r,aQ as i}from"./vue.Bi2Y_N79.js";import{_ as H}from"./_plugin-vue_export-helper.DlAUqK2U.js";const N={class:"layout-navbars-breadcrumb-index"},U=C({name:"layoutBreadcrumbIndex"}),j=C({...U,setup(z){const R=i(()=>a(()=>import("./breadcrumb.iM-kVsLx.js"),__vite__mapDeps([0,1,2,3,4,5]))),y=i(()=>a(()=>import("./user.snprllBz.js"),__vite__mapDeps([6,2,1,3,4,7]))),S=i(()=>a(()=>import("./index.DGQuILko.js"),__vite__mapDeps([8,9,1,2,3,10,4,11]))),b=i(()=>a(()=>import("./horizontal.DSWx0Cau.js"),__vite__mapDeps([12,2,1,3,4,13]))),g=O(),x=P(),{themeConfig:c}=p(x),{routesList:u}=p(g),E=V(),l=A({menuList:[]}),I=f(()=>{let{isShowLogo:t,layout:e}=c.value;return t&&e==="classic"||t&&e==="transverse"}),T=f(()=>{let{layout:t,isClassicSplitMenu:e}=c.value;return t==="transverse"||e&&t==="classic"}),m=()=>{let{layout:t,isClassicSplitMenu:e}=c.value;if(t==="classic"&&e){l.menuList=B(n(u.value));const s=k(E.path);d.emit("setSendClassicChildren",s)}else l.menuList=n(u.value)},B=t=>(t.map(e=>{e.children&&delete e.children}),t),n=t=>t.filter(e=>!e.meta?.isHide).map(e=>(e=Object.assign({},e),e.children&&(e.children=n(e.children)),e)),k=t=>{const e=t.split("/");let s={children:[]};return n(u.value).map((o,D)=>{o.path===`/${e[1]}`&&(o.k=D,s.item={...o},s.children=[{...o}],o.children&&(s.children=o.children))}),s};return F(()=>{m(),d.on("getBreadcrumbIndexSetFilterRoutes",()=>{m()})}),w(()=>{d.off("getBreadcrumbIndexSetFilterRoutes",()=>{})}),(t,e)=>(_(),M("div",N,[I.value?(_(),h(r(S),{key:0})):L("",!0),v(r(R)),T.value?(_(),h(r(b),{key:1,menuList:l.menuList},null,8,["menuList"])):L("",!0),v(r(y))]))}}),q=H(j,[["__scopeId","data-v-c81df504"]]);export{q as default};
|