import{_ as C}from"./index.vue_vue_type_script_setup_true_name_svgIcon_lang.bacf465d.js";import{d as L,k as b,a9 as i,o as t,c as o,a0 as x,F as m,E as l,G as c,M as s,a as u,L as r,W as $,K as g}from"./vue.3f733908.js";import{E as B}from"./index.0d411246.js";import"./elementPlus.0e5067e4.js";import"./echarts.72dc8373.js";const w=["onClick"],S=L({__name:"subItem",props:{chil:{type:Array,default:()=>[]}},setup(p){const _=p,d=b(()=>_.chil),h=n=>{B.handleOpenLink(n)};return(n,E)=>{const a=C,k=i("sub-item",!0),f=i("el-sub-menu"),y=i("el-menu-item");return t(!0),o(m,null,x(d.value,e=>(t(),o(m,null,[e.children&&e.children.length>0?(t(),l(f,{index:e.path,key:e.path},{title:c(()=>[s(a,{name:e.meta.icon},null,8,["name"]),u("span",null,r(n.$t(e.meta.title)),1)]),default:c(()=>[s(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},[s(a,{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:$(I=>h(e),["prevent"])},[s(a,{name:e.meta.icon},null,8,["name"]),g(" "+r(n.$t(e.meta.title)),1)],8,w))]),_:2},1032,["index"]))],64))),256)}}});export{S as default};
