StepsForm manages the data of sub forms through a Provider, each word form is a complete set of data that is combined in StepsForm to form the final data. It also comes with a progress bar and a related API to manage the progress bar.
StepsForm inherits from Form.Provider, see the documentation here, the value of the transformed moment is a function provided by ProForm, so
onFormChangewhere the values are untransformed.
|current||The number of steps in the current form, starting from ||0|
|onCurrentChange||current The event that changed||-|
|onFinish||Triggered when the last step of the form was submitted successfully||-|
|stepsProps||StepsForm's own props for Steps, used in the same way as antd, but without the current and onChange||props||-|
|stepFormRender||Customize the currently displayed form, return dom inside the form||-|
|stepsFormRender||Customize the entire form area, returning the dom on the outside of the form||-|
|stepsRender||Customize the stepsizer||-|
|formRef||A reference to the StepForm action for custom triggering||-|
Exactly the same as ProForm, except that onFinish supports Promise, so if it returns
false, it won't jump to the next step.
| onFinish | form submit success trigger |
(values:T)=>Promise<false> | - |