ps-toolkit-ui 1.13.95 → 1.13.97

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.
@@ -2807,6 +2807,9 @@
2807
2807
  if (!activeStep.form.check()) {
2808
2808
  return;
2809
2809
  }
2810
+ activeStep.form.onFailed = function () {
2811
+ btn.loading = false;
2812
+ };
2810
2813
  activeStep.form.onSuccess = function () {
2811
2814
  if (done) {
2812
2815
  _this.steps.onDone();
@@ -2820,7 +2823,9 @@
2820
2823
  }
2821
2824
  _this.changeStep(next);
2822
2825
  }
2826
+ btn.loading = false;
2823
2827
  };
2828
+ btn.loading = true;
2824
2829
  activeStep.form.submit();
2825
2830
  };
2826
2831
  return StepsComponent;