import{i as E,n as P,E as S}from"./index.373e4c1e.js";import{_ as T}from"./index.vue_vue_type_script_setup_true_name_svgIcon_lang.278ff746.js";import{d as W,al as $,ao as x,Q as I,k as _,j as R,at as q,w as M,a9 as r,o as i,E as m,G as s,c as C,F as k,a0 as O,M as p,a as d,L as f,u as V,a2 as j,W as F,an as H}from"./vue.65d9dadc.js";import"./elementPlus.c5b0e04f.js";import"./echarts.72dc8373.js";const K=W({__name:"vertical",props:{menuList:{type:Array,default:()=>[]}},setup(y){const g=H(()=>P(()=>import("./subItem.133a2865.js"),["assets/subItem.133a2865.js","assets/index.vue_vue_type_script_setup_true_name_svgIcon_lang.278ff746.js","assets/vue.65d9dadc.js","assets/index.373e4c1e.js","assets/elementPlus.c5b0e04f.js","assets/echarts.72dc8373.js","assets/index.1be93128.css"])),L=y,A=E(),{themeConfig:o}=$(A),l=x(),a=I({defaultActive:l.meta.isDynamic?l.meta.isDynamicPath:l.path,isCollapse:!1}),b=_(()=>L.menuList),D=_(()=>o.value),h=n=>{const{path:c,meta:t}=n,u=t!=null&&t.isDynamic?t.isDynamicPath.split("/"):c.split("/");return u.length>=4&&(t!=null&&t.isHide)?u.splice(0,3).join("/"):c},v=n=>{S.handleOpenLink(n)};return R(()=>{a.defaultActive=h(l)}),q(n=>{a.defaultActive=h(n),document.body.clientWidth<1e3&&(o.value.isCollapse=!1)}),M(o.value,()=>{document.body.clientWidth<=1e3?a.isCollapse=!1:a.isCollapse=o.value.isCollapse},{immediate:!0}),(n,c)=>{const t=T,u=r("el-sub-menu"),w=r("el-menu-item"),B=r("el-menu");return i(),m(B,{router:"","default-active":a.defaultActive,"background-color":"transparent",collapse:a.isCollapse,"unique-opened":D.value.isUniqueOpened,"collapse-transition":!1,class:"font-medium"},{default:s(()=>[(i(!0),C(k,null,O(b.value,e=>(i(),C(k,null,[e.children&&e.children.length>0?(i(),m(u,{index:e.path,key:e.path},{title:s(()=>[p(t,{name:e.meta.icon},null,8,["name"]),d("span",null,f(n.$t(e.meta.title)),1)]),default:s(()=>[p(V(g),{chil:e.children},null,8,["chil"])]),_:2},1032,["index"])):(i(),m(w,{style:{color:"#eaeaea"},index:e.path,key:e.path},j({default:s(()=>[p(t,{name:e.meta.icon},null,8,["name"])]),_:2},[!e.meta.isLink||e.meta.isLink&&e.meta.isIframe?{name:"title",fn:s(()=>[d("span",null,f(n.$t(e.meta.title)),1)]),key:"0"}:{name:"title",fn:s(()=>[d("a",{class:"w100",onClick:F(N=>v(e),["prevent"])},f(n.$t(e.meta.title)),9,["onClick"])]),key:"1"}]),1032,["index"]))],64))),256))]),_:1},8,["default-active","collapse","unique-opened"])}}});export{K as default};
