import{_ as o}from"./index.vue_vue_type_script_setup_true_name_svgIcon_lang.bc6c7912.js";import{d as _,D as b,c as m,f as t,g as n,Q as g,P as i,M as u,m as r,l as s,h as p,k as c,j as x,e as B}from"./index.2c7321ca.js";const I=["href"],L=_({name:"navMenuSubItem"}),V=_({...L,props:{chil:{type:Array,default:()=>[]}},setup(d){const l=d;console.log(l.chil);const h=b(()=>l.chil);return(a,$)=>{const f=m("sub-Item",!0),k=m("el-sub-menu"),y=m("el-menu-item");return t(!0),n(i,null,g(B(h),e=>(t(),n(i,null,[e.children&&e.children.length>0?(t(),u(k,{index:e.path,key:e.path},{title:r(()=>[s(o,{name:e.meta.icon},null,8,["name"]),p("span",null,c(a.$t(e.meta.title)),1)]),default:r(()=>[s(f,{chil:e.children},null,8,["chil"])]),_:2},1032,["index"])):(t(),u(y,{index:e.path,key:e.path},{default:r(()=>[!e.meta.isLink||e.meta.isLink&&e.meta.isIframe?(t(),n(i,{key:0},[s(o,{name:e.meta.icon},null,8,["name"]),p("span",null,c(a.$t(e.meta.title)),1)],64)):(t(),n("a",{key:1,href:e.meta.isLink,target:"_blank",rel:"opener",class:"w100"},[s(o,{name:e.meta.icon},null,8,["name"]),x(" "+c(a.$t(e.meta.title)),1)],8,I))]),_:2},1032,["index"]))],64))),256)}}});export{V as default};
