var A=Object.defineProperty;var f=Object.getOwnPropertySymbols;var k=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable;var S=(t,e,o)=>e in t?A(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,_=(t,e)=>{for(var o in e||(e={}))k.call(e,o)&&S(t,o,e[o]);if(f)for(var o of f(e))V.call(e,o)&&S(t,o,e[o]);return t};import{d as g,f as R,r as D,I as $,U as p,a2 as m,ad as u,af as v,a4 as h,k as i,q as a,B as s,V as B}from"./vue-vendor-CxLCUzY4.js";import w from"./Step1-CaoMz9GT.js";import x from"./Step2-B9lSf-C0.js";import W from"./Step3-UdcTpNuW.js";import{P as y}from"./index-DaObvZxT.js";import{a0 as n}from"./antd-vue-vendor-CDWW6V_M.js";import{_ as I}from"./index-B_2CoVdl.js";import"./index-ARbUvvsq.js";import"./useForm-CcjrODHR.js";import"./componentMap-CzCGDP7x.js";import"./useFormItem-CWa0w7fA.js";import"./index-D2AmS0aU.js";import"./BasicModal-D3g2CFhF.js";import"./ModalHeader-C-C0dUi_.js";import"./useTimeout-CB9F1PLu.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./index-DAURrYyA.js";import"./useWindowSizeFn-C3WExEpc.js";import"./index-Dz2zbQB_.js";import"./index-exs4VcBw.js";import"./index-ByLO0zSl.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./download-2tYEzlDW.js";import"./base64Conver-24EVOS6V.js";import"./index-Cgt544dC.js";import"./index-BZ9ST2iq.js";import"./useCountdown-ImUE7YaG.js";import"./useFormItemSingle-DM34aWgK.js";import"./JSelectUser-BQIJUcBR.js";import"./props-BCVPj-bG.js";import"./JSelectBiz-CJyWq5s2.js";import"./JAddInput-YFlAniYT.js";import"./areaDataUtil-DFHnz1wu.js";import"./china-area-data-vendor-D0sJ9kfX.js";import"./index-CkL00Q0a.js";import"./index-BKs2x_To.js";import"./bem-C6eT35UB.js";import"./props-BLY2qIO5.js";import"./useContextMenu-CSt5a1-F.js";import"./depart.api-0qTriT9h.js";import"./JDictSelectTag-CxpDdimB.js";import"./JSelectDept-wKz_Qtmc.js";import"./JPopup-BJBYqoWe.js";import"./JEllipsis-Cn7GCKHR.js";import"./JUpload-DzM-D4DX.js";import"./index-khU3p_On.js";import"./index-DPEnuI0R.js";import"./index-Cnb8BkwG.js";import"./JAreaLinkage-CSgDAlrn.js";import"./JCodeEditor-esTLnfS3.js";import"./htmlmixed-DRe7JlAp.js";import"./vue-B0b3nX1K.js";/* empty css             */import"./EasyCronInput-DclSHT47.js";import"./data-tH9hseJm.js";import"./useContentHeight-BWLGvKEC.js";import"./useContentViewHeight-DlpfApuB.js";import"./usePageContext-HMYqek-Q.js";import"./injectionKey-DPVn4AgL.js";const b=g({name:"FormStepPage",components:{Step1:w,Step2:x,Step3:W,PageWrapper:y,[n.name]:n,[n.Step.name]:n.Step},setup(){const t=R(0),e=D({initSetp2:!1,initSetp3:!1});function o(r){t.value++,e.initSetp2=!0}function c(){t.value--}function l(r){t.value++,e.initSetp3=!0}function d(){t.value=0,e.initSetp2=!1,e.initSetp3=!1}return _({current:t,handleStep1Next:o,handleStep2Next:l,handleRedo:d,handleStepPrev:c},$(e))}}),q={class:"step-form-form"},U={class:"mt-5"};function j(t,e,o,c,l,d){const r=p("a-step"),F=p("a-steps"),C=p("Step1"),N=p("Step2"),P=p("Step3"),E=p("PageWrapper");return m(),u(E,{title:"分步表单",contentBackground:"",content:" 将一个冗长或用户不熟悉的表单任务分成多个步骤，指导用户完成。",contentClass:"p-4"},{default:v(()=>[h("div",q,[i(F,{current:t.current},{default:v(()=>[i(r,{title:"填写转账信息"}),i(r,{title:"确认转账信息"}),i(r,{title:"完成"})]),_:1},8,["current"])]),h("div",U,[a(i(C,{onNext:t.handleStep1Next},null,8,["onNext"]),[[s,t.current===0]]),t.initSetp2?a((m(),u(N,{key:0,onPrev:t.handleStepPrev,onNext:t.handleStep2Next},null,8,["onPrev","onNext"])),[[s,t.current===1]]):B("",!0),t.initSetp3?a((m(),u(P,{key:1,onRedo:t.handleRedo},null,8,["onRedo"])),[[s,t.current===2]]):B("",!0)])]),_:1})}const Mt=I(b,[["render",j],["__scopeId","data-v-540fbe55"]]);export{Mt as default};
