import{b as t,a2 as a,r as e,o as s,h as c,w as i,k as n,F as o,l as r,i as l,a as p,W as g,j as d,t as m,ab as u,O as h,z as x}from"./index-B3cqKsI_.js";import{_ as P}from"./_plugin-vue_export-helper.BCo6x5W8.js";const _=P({__name:"index",props:{currentIndex:{type:Number,default:0}},setup(P){const _=t(),I=P,{currentIndex:v}=a(I),b=e("#308BF8"),f=e("#687383"),k=e([{id:0,text:"客户",pagePath:"/pages/customer/list/index",iconPath:"/static/image/customer.png",selectedIconPath:"/static/image/customer-s.png"},{id:1,text:"合同",pagePath:"/pages/customer/contract/index",iconPath:"/static/image/contract.png",selectedIconPath:"/static/image/contract-s.png"},{id:2,text:"发票",pagePath:"/pages/customer/invoice/index",iconPath:"/static/image/invoice.png",selectedIconPath:"/static/image/invoice-s.png"},{id:3,text:"统计",pagePath:"/pages/customer/list/statistics",iconPath:"/static/image/statistics.png",selectedIconPath:"/static/image/statistics-s.png"}]);return(t,a)=>{const e=h,P=x;return s(),c(P,{class:"tab"},{default:i((()=>[(s(!0),n(o,null,r(k.value,((t,a)=>(s(),c(P,{key:a,class:"tab-item",onClick:e=>((t,a)=>{_.commit("currentIndexFn",a);let e=t.pagePath;u(e)})(t,a)},{default:i((()=>[l(e,{class:"tab_img",src:p(v)==a?t.selectedIconPath:t.iconPath},null,8,["src"]),l(P,{class:"tab_text",style:g({color:p(v)==a?b.value:f.value})},{default:i((()=>[d(m(t.text),1)])),_:2},1032,["style"])])),_:2},1032,["onClick"])))),128))])),_:1})}}},[["__scopeId","data-v-197dda2e"]]);export{_ as t};