import{_ as g}from"./index.vue_vue_type_script_setup_true_name_svgIcon_lang.EO34UlUs.js";import{d as b,k as w,ai as o,o as t,c as i,a8 as C,F as m,M as p,O as r,U as s,a as c,T as l,J as d,a2 as I,S as L}from"./vue.1RczIYhx.js";import{o as $}from"./index.fM6cvGYs.js";import{_ as B}from"./_plugin-vue_export-helper.DlAUqK2U.js";import"./elementPlus.CXoFsoPv.js";const S={class:"menu-hover rounded-md absolute left-4 px-10",style:{width:"85%"}},N=["onClick"],V=b({__name:"subItem",props:{chil:{type:Array,default:()=>[]}},setup(u){const _=u,h=w(()=>_.chil),f=n=>{$.handleOpenLink(n)};return(n,A)=>{const a=g,k=o("sub-item",!0),x=o("el-sub-menu"),y=o("el-menu-item");return t(!0),i(m,null,C(h.value,e=>(t(),i(m,null,[e.children&&e.children.length>0?(t(),p(x,{key:e.path,index:e.path},{title:r(()=>[s(a,{name:e.meta.icon},null,8,["name"]),c("span",null,l(n.$t(e.meta.title)),1)]),default:r(()=>[s(k,{chil:e.children},null,8,["chil"])]),_:2},1032,["index"])):(t(),p(y,{key:e.path,index:e.path},{default:r(()=>[c("div",S,[!e.meta.isLink||e.meta.isLink&&e.meta.isIframe?(t(),i(m,{key:0},[s(a,{name:e.meta.icon,style:d([e.meta.icon.startsWith("bi")?{"vertical-align":"middle",margin:"0 10px 0 5px",width:"24px","text-align":"center"}:{}])},null,8,["name","style"]),c("span",null,l(n.$t(e.meta.title)),1)],64)):(t(),i("a",{key:1,class:"w100",onClick:I(F=>f(e),["prevent"])},[s(a,{name:e.meta.icon,style:d([e.meta.icon.startsWith("bi")?{"vertical-align":"middle","margin-right":"5px",width:"24px","text-align":"center"}:{}])},null,8,["name","style"]),L(" "+l(n.$t(e.meta.title)),1)],8,N))])]),_:2},1032,["index"]))],64))),256)}}}),D=B(V,[["__scopeId","data-v-eca29643"]]);export{D as default};
