shineout 3.5.7-beta.2 → 3.5.7-beta.3

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/cjs/index.js CHANGED
@@ -507,5 +507,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
507
507
  // 此文件由脚本自动生成,请勿直接修改。
508
508
  // This file was generated automatically by a script. Please do not modify it directly.
509
509
  var _default = exports.default = {
510
- version: '3.5.7-beta.2'
510
+ version: '3.5.7-beta.3'
511
511
  };
package/dist/shineout.js CHANGED
@@ -12040,7 +12040,7 @@ var handleStyle = function handleStyle(style) {
12040
12040
  };
12041
12041
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12042
12042
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12043
- /* harmony default export */ var version = ('3.5.7-beta.2');
12043
+ /* harmony default export */ var version = ('3.5.7-beta.3');
12044
12044
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12045
12045
 
12046
12046
 
@@ -32583,7 +32583,9 @@ var FormFooterProvider = function FormFooterProvider(props) {
32583
32583
  if (!context.hasSubmit) {
32584
32584
  context.submit = info.submit;
32585
32585
  context.hasSubmit = true;
32586
+ return true;
32586
32587
  }
32588
+ return false;
32587
32589
  });
32588
32590
  var deleteFormInfo = usePersistFn(function () {
32589
32591
  context.hasSubmit = false;
@@ -48479,6 +48481,10 @@ var Form = function Form(props) {
48479
48481
  props.setForm(formRefObj);
48480
48482
  }
48481
48483
  }, [formRefObj]);
48484
+ var _React$useRef = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useRef({
48485
+ bindindModalFormContextSuccess: false
48486
+ }),
48487
+ context = _React$useRef.current;
48482
48488
  var handleFormModalInfo = function handleFormModalInfo() {
48483
48489
  var status = undefined;
48484
48490
  if (props.disabled) {
@@ -48491,13 +48497,16 @@ var Form = function Form(props) {
48491
48497
  modalFormContext === null || modalFormContext === void 0 || modalFormContext.setFormStats(status);
48492
48498
  }
48493
48499
  if (props.onSubmit) {
48494
- modalFormContext === null || modalFormContext === void 0 || modalFormContext.setFormInfo(formRefObj);
48500
+ var ok = modalFormContext === null || modalFormContext === void 0 ? void 0 : modalFormContext.setFormInfo(formRefObj);
48501
+ context.bindindModalFormContextSuccess = !!ok;
48495
48502
  }
48496
48503
  };
48497
48504
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
48498
48505
  handleFormModalInfo();
48499
48506
  return function () {
48500
- modalFormContext === null || modalFormContext === void 0 || modalFormContext.deleteFormInfo();
48507
+ if (context.bindindModalFormContextSuccess) {
48508
+ modalFormContext === null || modalFormContext === void 0 || modalFormContext.deleteFormInfo();
48509
+ }
48501
48510
  };
48502
48511
  }, [props.disabled, props.pending]);
48503
48512
  var rootClass = classnames_default()([formClasses === null || formClasses === void 0 ? void 0 : formClasses.rootClass, formClasses === null || formClasses === void 0 ? void 0 : formClasses.wrapper, className, props.inline && (formClasses === null || formClasses === void 0 ? void 0 : formClasses.wrapperInline)]);
@@ -67390,7 +67399,7 @@ var upload_interface = __webpack_require__(8821);
67390
67399
 
67391
67400
 
67392
67401
  /* harmony default export */ var src_0 = ({
67393
- version: '3.5.7-beta.2'
67402
+ version: '3.5.7-beta.3'
67394
67403
  });
67395
67404
  }();
67396
67405
  /******/ return __webpack_exports__;