shineout 3.3.6-beta.3 → 3.3.6-beta.4
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 +1 -1
- package/dist/shineout.js +11 -5
- package/dist/shineout.js.map +1 -1
- package/dist/shineout.min.js +1 -1
- package/dist/shineout.min.js.map +1 -1
- package/esm/index.js +1 -1
- package/package.json +5 -5
package/cjs/index.js
CHANGED
|
@@ -476,5 +476,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
476
476
|
// 此文件由脚本自动生成,请勿直接修改。
|
|
477
477
|
// This file was generated automatically by a script. Please do not modify it directly.
|
|
478
478
|
var _default = exports.default = {
|
|
479
|
-
version: '3.3.6-beta.
|
|
479
|
+
version: '3.3.6-beta.4'
|
|
480
480
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -11968,7 +11968,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
11968
11968
|
};
|
|
11969
11969
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
11970
11970
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
11971
|
-
/* harmony default export */ var version = ('3.3.6-beta.
|
|
11971
|
+
/* harmony default export */ var version = ('3.3.6-beta.4');
|
|
11972
11972
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
11973
11973
|
|
|
11974
11974
|
|
|
@@ -31064,11 +31064,15 @@ var FormFooterProvider = function FormFooterProvider(props) {
|
|
|
31064
31064
|
formStats = _useState2[0],
|
|
31065
31065
|
setFormS = _useState2[1];
|
|
31066
31066
|
var _useRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)({
|
|
31067
|
-
submit: function submit() {}
|
|
31067
|
+
submit: function submit() {},
|
|
31068
|
+
hasSubmit: false
|
|
31068
31069
|
}),
|
|
31069
31070
|
context = _useRef.current;
|
|
31070
31071
|
var setFormInfo = usePersistFn(function (info) {
|
|
31071
|
-
context.
|
|
31072
|
+
if (!context.hasSubmit) {
|
|
31073
|
+
context.submit = info.submit;
|
|
31074
|
+
context.hasSubmit = true;
|
|
31075
|
+
}
|
|
31072
31076
|
});
|
|
31073
31077
|
var setFormStats = usePersistFn(function (disabled) {
|
|
31074
31078
|
if (disabled !== formStats) {
|
|
@@ -45678,7 +45682,9 @@ var Form = function Form(props) {
|
|
|
45678
45682
|
if (status !== (modalFormContext === null || modalFormContext === void 0 ? void 0 : modalFormContext.formStats)) {
|
|
45679
45683
|
modalFormContext === null || modalFormContext === void 0 || modalFormContext.setFormStats(status);
|
|
45680
45684
|
}
|
|
45681
|
-
|
|
45685
|
+
if (props.onSubmit) {
|
|
45686
|
+
modalFormContext === null || modalFormContext === void 0 || modalFormContext.setFormInfo(formRefObj);
|
|
45687
|
+
}
|
|
45682
45688
|
};
|
|
45683
45689
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
45684
45690
|
handleFormModalInfo();
|
|
@@ -63880,7 +63886,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
63880
63886
|
|
|
63881
63887
|
|
|
63882
63888
|
/* harmony default export */ var src_0 = ({
|
|
63883
|
-
version: '3.3.6-beta.
|
|
63889
|
+
version: '3.3.6-beta.4'
|
|
63884
63890
|
});
|
|
63885
63891
|
}();
|
|
63886
63892
|
/******/ return __webpack_exports__;
|