import{a8 as u}from"./eleVendor-48a7d3b8-1782572373740v=1.0.0.js";import{y as f,i as d,c as v,al as h,z as o,A as l,B as i,u as s,I as k,J as y,R as B,Q as C,O as x,P as p,M as I,D as b}from"./vendor-866bb149-1782572373740v=1.0.0.js";import{_ as g}from"./index-f6f689f9-1782572373740v=1.0.0.js";const L={class:"left-container"},N={class:"step-item-icon"},S={class:"right-container"},V={class:"step-item-title"},z={key:0,class:"step-item-line"},D=f({__name:"stepItem",props:{title:{},isLast:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},index:{default:0}},setup(r){const n=r,a=d("active"),c=d("maxCompletedStep"),e=v(()=>(a==null?void 0:a.value)===n.index?"active":(c==null?void 0:c.value)>=n.index?"completed":"disabled"),m=()=>{(e.value==="completed"||e.value==="active")&&(a.value=n.index)};return(t,j)=>{const _=h("el-icon");return o(),l("div",{class:b(["step-item-container",{"is-last-item":t.isLast,"no-last-item":!t.isLast,active:s(e)==="active",completed:s(e)==="completed",disabled:s(e)==="disabled"}]),onClick:m},[i("div",L,[i("span",N,[s(e)==="completed"?(o(),k(_,{key:0},{default:y(()=>[B(s(u))]),_:1})):(o(),l(C,{key:1},[x(p(t.index),1)],64))])]),i("div",S,[i("div",V,p(t.title),1)]),t.isLast?I("v-if",!0):(o(),l("div",z))],2)}}});const F=g(D,[["__scopeId","data-v-02d27f12"]]);export{F as default};
