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-DF_mZ0PM.js";import x from"./Step2-DAz153Vh.js";import W from"./Step3-CmhBxMqM.js";import{P as y}from"./index-D55rh6hR.js";import{a0 as n}from"./antd-vue-vendor-CahNzUUa.js";import{_ as I}from"./index-CLZzJyTP.js";import"./index-ByX9XNkE.js";import"./useForm-Dx3lJ3DG.js";import"./componentMap-DpsJvoqz.js";import"./useFormItem-IOFWTdED.js";import"./index-XZKTTfG1.js";import"./BasicModal-B8XmAOm7.js";import"./ModalHeader-DIFQSP_0.js";import"./useTimeout-KpZCXEcl.js";import"./vxe-table-vendor-Cdi8WfTx.js";import"./index-DvqyyN77.js";import"./useWindowSizeFn-D9PllI8g.js";import"./index-DS3utcig.js";import"./index-BZbg0EjM.js";import"./index-CrdW4fN1.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./download-DopMSmFN.js";import"./base64Conver-24EVOS6V.js";import"./index-CDa2_aYE.js";import"./index-D0jTtUNS.js";import"./useCountdown-BpP55PQ2.js";import"./useFormItemSingle-BEyrYQqf.js";import"./JSelectUser-CfAGgHjD.js";import"./props-BtZrRNiI.js";import"./JSelectBiz-CLnJTMe2.js";import"./JAddInput-B36c3B5x.js";import"./areaDataUtil-Dk3xkGfK.js";import"./china-area-data-vendor-ByvEpbzN.js";import"./index-C7yPiS0L.js";import"./index-44tRnyoF.js";import"./bem-DT3DdmOs.js";import"./props-CG-jAkbI.js";import"./useContextMenu-BGU2vdqV.js";import"./depart.api-DHG2p2Yd.js";import"./JImageUpload-BFwNYdm5.js";import"./JDictSelectTag-CfF54ALX.js";import"./JSelectDept-CaEHrQp6.js";import"./JPopup-BvqhHpPl.js";import"./JEllipsis-C_gT_vEQ.js";import"./JUpload-DgDEmizw.js";import"./index-Bn2zmO2L.js";import"./index-CEznvAVZ.js";import"./index-CfAukas3.js";import"./JAreaLinkage-M9TGy8nY.js";import"./JCodeEditor-CR57XeIe.js";import"./htmlmixed-DoVLO6sG.js";import"./vue-DY75b9GC.js";/* empty css             */import"./EasyCronInput-CWOTSpxK.js";import"./data-tH9hseJm.js";import"./useContentHeight-DLfJuPsF.js";import"./useContentViewHeight-BIb_dTbE.js";import"./usePageContext-FyDvfV_K.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 Ot=I(b,[["render",j],["__scopeId","data-v-540fbe55"]]);export{Ot as default};
