import{_ as I}from"./DWkty3Z6.js";import{x as b,u as x,o as e,c as a,a as y,d as r,e as d,w as i,t as s,m,f as h,F as f,r as B,v as T,l as w}from"./CzPnhaXo.js";const v={class:"nmenus"},C={class:"box"},H={class:"ld"},N={key:1},V={key:0},F={key:0},S=b({__name:"Breadcrumb",props:{homeText:{default:"首页"},separator:{default:" > "},lastTitle:{},showHome:{type:Boolean,default:!0},customItems:{}},setup(t){const g=x(),u=w(()=>g.matched.filter(c=>c.meta?.title));return(c,k)=>{const l=I;return e(),a("div",v,[y("div",C,[y("div",H,[k[0]||(k[0]=r(" 当前位置：",-1)),t.showHome?(e(),d(l,{key:0,to:{path:"/"}},{default:i(()=>[r(s(t.homeText),1)]),_:1})):m("",!0),t.showHome&&(h(u).length>0||t.customItems&&t.customItems.length>0)?(e(),a("span",N,s(t.separator),1)):m("",!0),t.customItems&&t.customItems.length>0?(e(!0),a(f,{key:2},B(t.customItems,(o,n)=>(e(),d(l,{key:n,to:o.path},{default:i(()=>[r(s(o.title)+" ",1),n<t.customItems.length-1?(e(),a("span",V,s(t.separator),1)):m("",!0)]),_:2},1032,["to"]))),128)):(e(!0),a(f,{key:3},B(h(u),(o,n)=>(e(),d(l,{key:n,to:o.path+"/"},{default:i(()=>[r(s(o.meta?.title)+" ",1),n<h(u).length-1?(e(),a("span",F,s(t.separator),1)):m("",!0)]),_:2},1032,["to"]))),128)),t.lastTitle?(e(),a(f,{key:4},[r(s(t.separator)+" "+s(t.lastTitle),1)],64)):m("",!0)]),T(c.$slots,"default")])])}}}),E=Object.assign(S,{__name:"Breadcrumb"});export{E as B};
