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