import{i as B,n as P,E as S}from"./index.ad3efb29.js";import{_ as $}from"./index.vue_vue_type_script_setup_true_name_svgIcon_lang.e9645613.js";import{d as x,ay as E,aD as I,Z as O,k as _,j as R,aH as W,w as q,ai as r,o as i,M as m,O as s,c as C,F as k,a8 as H,U as p,a as d,T as f,u as M,aa as U,a2 as V,aC as j}from"./vue.adf17aba.js";import"./elementPlus.4833989a.js";import"./echarts.72dc8373.js";const K=x({__name:"vertical",props:{menuList:{type:Array,default:()=>[]}},setup(y){const g=j(()=>P(()=>import("./subItem.703f83aa.js"),["assets/subItem.703f83aa.js","assets/index.vue_vue_type_script_setup_true_name_svgIcon_lang.e9645613.js","assets/vue.adf17aba.js","assets/index.ad3efb29.js","assets/elementPlus.4833989a.js","assets/echarts.72dc8373.js","assets/index.7d841112.css"])),L=y,A=B(),{themeConfig:o}=E(A),l=I(),a=O({defaultActive:l.meta.isDynamic?l.meta.isDynamicPath:l.path,isCollapse:!1}),D=_(()=>L.menuList),b=_(()=>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},T=n=>{S.handleOpenLink(n)};return R(()=>{a.defaultActive=h(l)}),W(n=>{a.defaultActive=h(n),document.body.clientWidth<1e3&&(o.value.isCollapse=!1)}),q(o.value,()=>{document.body.clientWidth<=1e3?a.isCollapse=!1:a.isCollapse=o.value.isCollapse},{immediate:!0}),(n,c)=>{const t=$,u=r("el-sub-menu"),v=r("el-menu-item"),w=r("el-menu");return i(),m(w,{router:"","default-active":a.defaultActive,"background-color":"transparent",collapse:a.isCollapse,"unique-opened":b.value.isUniqueOpened,"collapse-transition":!1,class:"font-medium"},{default:s(()=>[(i(!0),C(k,null,H(D.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(M(g),{chil:e.children},null,8,["chil"])]),_:2},1032,["index"])):(i(),m(v,{style:{color:"#eaeaea"},index:e.path,key:e.path},U({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:V(F=>T(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};
