datastake-daf 0.6.591 → 0.6.593
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/components/index.js
CHANGED
|
@@ -40520,7 +40520,7 @@ function AuthForm(_ref) {
|
|
|
40520
40520
|
const isMultiStep = !!steps;
|
|
40521
40521
|
const currentFields = isMultiStep ? steps === null || steps === void 0 || (_steps$currentStep = steps[currentStep]) === null || _steps$currentStep === void 0 ? void 0 : _steps$currentStep.fields : fields || [];
|
|
40522
40522
|
React.useEffect(() => {
|
|
40523
|
-
if (isMultiStep
|
|
40523
|
+
if (isMultiStep) {
|
|
40524
40524
|
formInstance.setFieldsValue(allFormValues);
|
|
40525
40525
|
}
|
|
40526
40526
|
}, [currentStep, allFormValues, formInstance, isMultiStep]);
|
|
@@ -40654,7 +40654,7 @@ function AuthForm(_ref) {
|
|
|
40654
40654
|
children: /*#__PURE__*/jsxRuntime.jsxs(antd.Form, {
|
|
40655
40655
|
form: formInstance,
|
|
40656
40656
|
layout: "vertical",
|
|
40657
|
-
initialValues: initialValues,
|
|
40657
|
+
initialValues: isMultiStep ? allFormValues : initialValues,
|
|
40658
40658
|
onFinish: handleSubmit,
|
|
40659
40659
|
onValuesChange: handleValuesChange,
|
|
40660
40660
|
children: [currentFields.map(renderField), formErrors ? renderErrors(formErrors, t) : null, isMultiStep && currentStep > 0 ? /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
@@ -40698,7 +40698,7 @@ function AuthForm(_ref) {
|
|
|
40698
40698
|
}) : /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
40699
40699
|
className: "buttons",
|
|
40700
40700
|
style: {
|
|
40701
|
-
marginTop:
|
|
40701
|
+
marginTop: 4
|
|
40702
40702
|
},
|
|
40703
40703
|
children: /*#__PURE__*/jsxRuntime.jsx(BorderedButton, {
|
|
40704
40704
|
type: "primary",
|
package/package.json
CHANGED
|
@@ -24,7 +24,7 @@ function AuthForm ({
|
|
|
24
24
|
const currentFields = isMultiStep ? steps?.[currentStep]?.fields : fields || [];
|
|
25
25
|
|
|
26
26
|
useEffect(() => {
|
|
27
|
-
if (isMultiStep
|
|
27
|
+
if (isMultiStep) {
|
|
28
28
|
formInstance.setFieldsValue(allFormValues);
|
|
29
29
|
}
|
|
30
30
|
}, [currentStep, allFormValues, formInstance, isMultiStep]);
|
|
@@ -172,7 +172,7 @@ function AuthForm ({
|
|
|
172
172
|
<Form
|
|
173
173
|
form={formInstance}
|
|
174
174
|
layout="vertical"
|
|
175
|
-
initialValues={initialValues}
|
|
175
|
+
initialValues={isMultiStep ? allFormValues : initialValues}
|
|
176
176
|
onFinish={handleSubmit}
|
|
177
177
|
onValuesChange={handleValuesChange}
|
|
178
178
|
>
|
|
@@ -211,7 +211,7 @@ function AuthForm ({
|
|
|
211
211
|
</div>
|
|
212
212
|
</div>
|
|
213
213
|
) : (
|
|
214
|
-
<div className="buttons" style={{ marginTop:
|
|
214
|
+
<div className="buttons" style={{ marginTop: 4}}>
|
|
215
215
|
<BorderedButton type="primary" htmlType="submit" block className="normal-br">
|
|
216
216
|
{isMultiStep ? t("Next") : submitText}
|
|
217
217
|
</BorderedButton>
|