shineout 3.7.7-beta.9 → 3.7.8-beta.1

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
@@ -522,5 +522,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
522
522
  // 此文件由脚本自动生成,请勿直接修改。
523
523
  // This file was generated automatically by a script. Please do not modify it directly.
524
524
  var _default = exports.default = {
525
- version: '3.7.7-beta.9'
525
+ version: '3.7.8-beta.1'
526
526
  };
package/dist/shineout.js CHANGED
@@ -12234,7 +12234,7 @@ var handleStyle = function handleStyle(style) {
12234
12234
  };
12235
12235
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12236
12236
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12237
- /* harmony default export */ var version = ('3.7.7-beta.9');
12237
+ /* harmony default export */ var version = ('3.7.8-beta.1');
12238
12238
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12239
12239
 
12240
12240
 
@@ -50831,7 +50831,7 @@ var useForm = function useForm(props) {
50831
50831
  var _props$onChange;
50832
50832
  var newValue = typeof change === 'function' ? utils_immer_produce(context.value, change) : change;
50833
50833
  context.value = newValue;
50834
- (_props$onChange = props.onChange) === null || _props$onChange === void 0 || _props$onChange.call(props, context.value);
50834
+ (_props$onChange = props.onChange) === null || _props$onChange === void 0 || _props$onChange.call(props, deepClone(context.value));
50835
50835
  });
50836
50836
  var scrollToField = use_persist_fn(function (name) {
50837
50837
  var _document;
@@ -51211,11 +51211,6 @@ var useForm = function useForm(props) {
51211
51211
  // 默认值更新
51212
51212
  external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect(function () {
51213
51213
  context.removeLock = false;
51214
- // 内部 onChange 改的 value, 不需要更新
51215
- if (props.value === context.value) {
51216
- if (!isControl) update();
51217
- return;
51218
- }
51219
51214
  if (initValidate && !context.resetTime) {
51220
51215
  var keys = Object.keys(context.validateMap).filter(function (key) {
51221
51216
  var oldValue = deepGet(preValue || emptyObj, key);
@@ -51225,6 +51220,7 @@ var useForm = function useForm(props) {
51225
51220
  validateFields(keys).catch(function () {});
51226
51221
  }
51227
51222
  update();
51223
+ if (!isControl) return;
51228
51224
  // 默认值上位时会提前触发外部的onChange, 导致外部的多次setFormValue不能合并后生效的问题(ReactDOM.render方式渲染)
51229
51225
  setTimeout(updateDefaultValue);
51230
51226
  context.resetTime = 0;
@@ -71838,7 +71834,7 @@ var upload_interface = __webpack_require__(8821);
71838
71834
 
71839
71835
 
71840
71836
  /* harmony default export */ var src_0 = ({
71841
- version: '3.7.7-beta.9'
71837
+ version: '3.7.8-beta.1'
71842
71838
  });
71843
71839
  }();
71844
71840
  /******/ return __webpack_exports__;