import f from"./stepItem-1190bf4f-1782729249161v=1.0.0.js";import{y as E,c,r as S,w as B,v as n,z as i,A as p,Q as x,a4 as g,I as C}from"./vendor-1e24e3ad-1782729249161v=1.0.0.js";import{_ as F}from"./index-b309bf9f-1782729249161v=1.0.0.js";import"./eleVendor-5008d1ec-1782729249161v=1.0.0.js";const b={class:"add-event-steps-container"},h=E({__name:"index",props:{activeStep:{default:1},max:{default:0},list:{default:()=>[{title:"\u57FA\u672C\u4FE1\u606F"},{title:"\u7EC4\u522B\u5C0F\u9879"},{title:"\u9879\u76EE\u8BBE\u7F6E"},{title:"\u62A5\u540D\u8BBE\u7F6E"},{title:"\u7ADE\u8D5B\u89C4\u7A0B"}]}},emits:["update:activeStep"],setup(r,{expose:d,emit:m}){const s=r,v=m,o=c(()=>s.list.map((e,u)=>({...e,index:u+1,isLast:u===s.list.length-1,disabled:u>t.value}))),a=c({get(){return s.activeStep},set(e){v("update:activeStep",e)}}),t=S(s.max);return B(()=>{t.value=s.max}),n("active",a),n("maxCompletedStep",t),d({completeStep:e=>{e<=t.value+1&&(t.value=Math.max(t.value,e),a.value===e&&e<o.value.length&&(a.value=e+1))},goToStep:e=>{(e<=t.value||e===a.value)&&(a.value=e)},active:a,maxCompletedStep:t}),(e,u)=>(i(),p("div",b,[(i(!0),p(x,null,g(o.value,(l,_)=>(i(),C(f,{key:_,title:l.title,index:l.index,isLast:l.isLast,disabled:l.disabled},null,8,["title","index","isLast","disabled"]))),128))]))}});const T=F(h,[["__scopeId","data-v-417be792"]]);export{T as default};
