shineout 3.6.7-beta.4 → 3.6.7-beta.5

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.7-beta.4'
517
+ version: '3.6.7-beta.5'
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.7-beta.4');
12220
+ /* harmony default export */ var version = ('3.6.7-beta.5');
12221
12221
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12222
12222
 
12223
12223
 
@@ -42233,10 +42233,14 @@ function useFormControl(props) {
42233
42233
  if (isArray(name)) {
42234
42234
  var dv = isArray(defaultValue) ? defaultValue : [];
42235
42235
  name.forEach(function (n, index) {
42236
- controlFunc.bind(n, dv[index], validateField, update);
42236
+ var v = formFunc === null || formFunc === void 0 ? void 0 : formFunc.getValue(n);
42237
+ var bindedValue = v === undefined ? dv[index] : v;
42238
+ controlFunc.bind(n, context.mounted ? bindedValue : dv[index], validateField, update);
42237
42239
  });
42238
42240
  } else {
42239
- controlFunc.bind(name, defaultValue, validateField, update);
42241
+ var v = formFunc === null || formFunc === void 0 ? void 0 : formFunc.getValue(name);
42242
+ var bindedValue = v === undefined ? defaultValue : v;
42243
+ controlFunc.bind(name, context.mounted ? bindedValue : defaultValue, validateField, update);
42240
42244
  }
42241
42245
  if (context.mounted) {
42242
42246
  devUseWarning.warn('Please avoid modifying the name property after the component has mounted, as this may result in unintended behavior or errors.');
@@ -70117,7 +70121,7 @@ var upload_interface = __webpack_require__(8821);
70117
70121
 
70118
70122
 
70119
70123
  /* harmony default export */ var src_0 = ({
70120
- version: '3.6.7-beta.4'
70124
+ version: '3.6.7-beta.5'
70121
70125
  });
70122
70126
  }();
70123
70127
  /******/ return __webpack_exports__;