import{_ as C}from"./index.vue_vue_type_script_setup_true_name_svgIcon_lang.e9645613.js";import{d as b,k as x,ai as i,o as t,c as o,a8 as L,F as m,M as l,O as c,U as a,a as u,T as r,a2 as $,S as g}from"./vue.adf17aba.js";import{E as B}from"./index.ad3efb29.js";import"./elementPlus.4833989a.js";import"./echarts.72dc8373.js";const w=["onClick"],M=b({__name:"subItem",props:{chil:{type:Array,default:()=>[]}},setup(p){const _=p,d=x(()=>_.chil),h=n=>{B.handleOpenLink(n)};return(n,I)=>{const s=C,k=i("sub-item",!0),f=i("el-sub-menu"),y=i("el-menu-item");return t(!0),o(m,null,L(d.value,e=>(t(),o(m,null,[e.children&&e.children.length>0?(t(),l(f,{index:e.path,key:e.path},{title:c(()=>[a(s,{name:e.meta.icon},null,8,["name"]),u("span",null,r(n.$t(e.meta.title)),1)]),default:c(()=>[a(k,{chil:e.children},null,8,["chil"])]),_:2},1032,["index"])):(t(),l(y,{style:{color:"#eaeaea"},index:e.path,key:e.path},{default:c(()=>[!e.meta.isLink||e.meta.isLink&&e.meta.isIframe?(t(),o(m,{key:0},[a(s,{name:e.meta.icon},null,8,["name"]),u("span",null,r(n.$t(e.meta.title)),1)],64)):(t(),o("a",{key:1,class:"w100",onClick:$(N=>h(e),["prevent"])},[a(s,{name:e.meta.icon},null,8,["name"]),g(" "+r(n.$t(e.meta.title)),1)],8,w))]),_:2},1032,["index"]))],64))),256)}}});export{M as default};
