import{d as a,e,f as t,h as n,w as s,m as l,n as o,i as c,t as i,F as r,Q as d}from"./index.012ca997.js";const u=a({props:{list:{default:void 0},current:{default:0}},emits:["tabChange"],setup(a,{emit:u}){const m=a;function b(a){d({title:m.list[a].text||""}),u("tabChange",a)}return(d,u)=>{const p=e("van-icon"),g=e("van-tabbar-item"),h=e("van-tabbar");return t(),n(h,{modelValue:m.current,"onUpdate:modelValue":u[0]||(u[0]=a=>m.current=a),onChange:b,"z-index":"9999"},{default:s((()=>[(t(!0),l(r,null,o(a.list,(a=>(t(),n(g,{badge:a.badge||"","badge-props":{color:"#FE521F"}},{icon:s((e=>[a.selectedIconPath&&a.iconPath?(t(),l("img",{key:0,src:e.active?a.selectedIconPath:a.iconPath},null,8,["src"])):(t(),n(p,{key:1,name:a.icon},null,8,["name"]))])),default:s((()=>[c("span",null,i(a.text),1)])),_:2},1032,["badge"])))),256))])),_:1},8,["modelValue"])}}});export{u as _};
