index.5e7d4fd8.js 2.8 KB

1
  1. import{G as D,v as V,y as d,z as r}from"./index.4e34480b.js";import{f as C,ak as p,an as A,Q as O,e as f,d as F,P as M,h as _,i as w,E as h,u as a,J as v,M as L,am as i}from"./vue.9083513e.js";import{_ as z}from"./_plugin-vue_export-helper.c27b6911.js";import"./elementPlus.5243d764.js";import"./echarts.594b4072.js";const H={class:"layout-navbars-breadcrumb-index"},N=C({name:"layoutBreadcrumbIndex"}),U=C({...N,setup(j){const y=i(()=>r(()=>import("./breadcrumb.2805ff6d.js"),["assets/breadcrumb.2805ff6d.js","assets/vue.9083513e.js","assets/index.4e34480b.js","assets/elementPlus.5243d764.js","assets/echarts.594b4072.js","assets/index.9ebc382e.css","assets/_plugin-vue_export-helper.c27b6911.js","assets/breadcrumb.5deafc24.css"])),R=i(()=>r(()=>import("./user.5e92ad93.js"),["assets/user.5e92ad93.js","assets/index.4e34480b.js","assets/vue.9083513e.js","assets/elementPlus.5243d764.js","assets/echarts.594b4072.js","assets/index.9ebc382e.css","assets/_plugin-vue_export-helper.c27b6911.js","assets/user.8c32f151.css"])),b=i(()=>r(()=>import("./index.0bec039c.js"),["assets/index.0bec039c.js","assets/vue.9083513e.js","assets/index.4e34480b.js","assets/elementPlus.5243d764.js","assets/echarts.594b4072.js","assets/index.9ebc382e.css","assets/ansjer_image.bff06960.js","assets/_plugin-vue_export-helper.c27b6911.js","assets/index.b1694280.css"])),g=i(()=>r(()=>import("./horizontal.a7ceb298.js"),["assets/horizontal.a7ceb298.js","assets/index.4e34480b.js","assets/vue.9083513e.js","assets/elementPlus.5243d764.js","assets/echarts.594b4072.js","assets/index.9ebc382e.css","assets/_plugin-vue_export-helper.c27b6911.js","assets/horizontal.f075ceb8.css"])),x=D(),E=V(),{themeConfig:c}=p(E),{routesList:u}=p(x),I=A(),l=O({menuList:[]}),S=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=k(o(u.value));const s=B(I.path);d.emit("setSendClassicChildren",s)}else l.menuList=o(u.value)},k=t=>(t.map(e=>{e.children&&delete e.children}),t),o=t=>t.filter(e=>{var s;return!((s=e.meta)!=null&&s.isHide)}).map(e=>(e=Object.assign({},e),e.children&&(e.children=o(e.children)),e)),B=t=>{const e=t.split("/");let s={children:[]};return o(u.value).map((n,P)=>{n.path===`/${e[1]}`&&(n.k=P,s.item={...n},s.children=[{...n}],n.children&&(s.children=n.children))}),s};return F(()=>{m(),d.on("getBreadcrumbIndexSetFilterRoutes",()=>{m()})}),M(()=>{d.off("getBreadcrumbIndexSetFilterRoutes",()=>{})}),(t,e)=>(_(),w("div",H,[S.value?(_(),h(a(b),{key:0})):v("",!0),L(a(y)),T.value?(_(),h(a(g),{key:1,menuList:l.menuList},null,8,["menuList"])):v("",!0),L(a(R))]))}});const K=z(U,[["__scopeId","data-v-3b707f43"]]);export{K as default};