@kne/form-info 0.1.5 → 0.1.7
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/README.md +690 -100
- package/dist/index.js +13 -6
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +2 -2
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -142,7 +142,7 @@ const FormInfo = props => {
|
|
|
142
142
|
list: list,
|
|
143
143
|
column: column,
|
|
144
144
|
className: classnames({
|
|
145
|
-
[style[
|
|
145
|
+
[style['column-not-layout']]: notLayout
|
|
146
146
|
}),
|
|
147
147
|
itemRender: (children, props) => {
|
|
148
148
|
if (props.hidden) {
|
|
@@ -3972,16 +3972,23 @@ const FormSteps = p => {
|
|
|
3972
3972
|
},
|
|
3973
3973
|
isLastStep
|
|
3974
3974
|
}, ...[].slice.call(_arguments, 1))).then(function (res) {
|
|
3975
|
+
let _exit;
|
|
3975
3976
|
stepCacheRef.current[currentStep].submitData = res;
|
|
3976
3977
|
if (autoStep && res !== false && !isLastStep) {
|
|
3977
3978
|
onStepChange(currentStep + 1);
|
|
3978
3979
|
return res;
|
|
3979
3980
|
}
|
|
3980
|
-
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
|
|
3981
|
+
const _temp = function () {
|
|
3982
|
+
if (autoStep && res !== false) {
|
|
3983
|
+
return Promise.resolve(onComplete(stepCacheRef.current)).then(function () {
|
|
3984
|
+
_exit = 1;
|
|
3985
|
+
return res;
|
|
3986
|
+
});
|
|
3987
|
+
}
|
|
3988
|
+
}();
|
|
3989
|
+
return _temp && _temp.then ? _temp.then(function (_result) {
|
|
3990
|
+
return _exit ? _result : res;
|
|
3991
|
+
}) : _exit ? _temp : res;
|
|
3985
3992
|
});
|
|
3986
3993
|
} catch (e) {
|
|
3987
3994
|
return Promise.reject(e);
|