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.ef18fbfd.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 f=a("van-icon"),p=a("van-tabbar-item"),g=a("van-tabbar");return t(),n(g,{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(p,{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(f,{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 _};
