shineout 3.6.5-beta.8 → 3.6.5-beta.9

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
@@ -514,5 +514,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
514
514
  // 此文件由脚本自动生成,请勿直接修改。
515
515
  // This file was generated automatically by a script. Please do not modify it directly.
516
516
  var _default = exports.default = {
517
- version: '3.6.5-beta.8'
517
+ version: '3.6.5-beta.9'
518
518
  };
package/dist/shineout.js CHANGED
@@ -12217,7 +12217,7 @@ var handleStyle = function handleStyle(style) {
12217
12217
  };
12218
12218
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12219
12219
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12220
- /* harmony default export */ var version = ('3.6.5-beta.8');
12220
+ /* harmony default export */ var version = ('3.6.5-beta.9');
12221
12221
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12222
12222
 
12223
12223
 
@@ -49447,8 +49447,7 @@ var useForm = function useForm(props) {
49447
49447
  size = props.size,
49448
49448
  colon = props.colon,
49449
49449
  formName = props.name,
49450
- scrollParent = props.scrollParent,
49451
- isControl = props.isControl;
49450
+ scrollParent = props.scrollParent;
49452
49451
  var deepSetOptions = {
49453
49452
  removeUndefined: removeUndefined,
49454
49453
  forceSet: true
@@ -49704,13 +49703,16 @@ var useForm = function useForm(props) {
49704
49703
  var values = Object.keys(vals);
49705
49704
  // 针对 name 为数组模式,如 datepicker 的 name={['startTime', 'endTime']} 时,前者校验可能需要依赖后者,因此需要提前将后者数据整合至 draft 用于多字段整合校验
49706
49705
  values.forEach(function (key) {
49707
- deepSet(draft, key, vals[key], deepSetOptions);
49706
+ // upload组件返回的可能是函数: (prev) => [...prev, file]
49707
+ var valueOfKey = typeof vals[key] === 'function' ? vals[key](getValue(key)) : vals[key];
49708
+ deepSet(draft, key, valueOfKey, deepSetOptions);
49708
49709
  });
49709
49710
  values.forEach(function (key) {
49710
49711
  if (option.validate) {
49711
49712
  var _context$validateMap$;
49712
49713
  (_context$validateMap$ = context.validateMap[key]) === null || _context$validateMap$ === void 0 || _context$validateMap$.forEach(function (validate) {
49713
- validate(key, vals[key], current(draft));
49714
+ var valueOfKey = typeof vals[key] === 'function' ? vals[key](getValue(key)) : vals[key];
49715
+ validate(key, valueOfKey, current(draft));
49714
49716
  });
49715
49717
  }
49716
49718
  });
@@ -70056,7 +70058,7 @@ var upload_interface = __webpack_require__(8821);
70056
70058
 
70057
70059
 
70058
70060
  /* harmony default export */ var src_0 = ({
70059
- version: '3.6.5-beta.8'
70061
+ version: '3.6.5-beta.9'
70060
70062
  });
70061
70063
  }();
70062
70064
  /******/ return __webpack_exports__;