shineout 3.4.3 → 3.4.4-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
@@ -492,5 +492,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
492
492
  // 此文件由脚本自动生成,请勿直接修改。
493
493
  // This file was generated automatically by a script. Please do not modify it directly.
494
494
  var _default = exports.default = {
495
- version: '3.4.3'
495
+ version: '3.4.4-beta.1'
496
496
  };
package/dist/shineout.js CHANGED
@@ -11984,7 +11984,7 @@ var handleStyle = function handleStyle(style) {
11984
11984
  };
11985
11985
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
11986
11986
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
11987
- /* harmony default export */ var version = ('3.4.3');
11987
+ /* harmony default export */ var version = ('3.4.4-beta.1');
11988
11988
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
11989
11989
 
11990
11990
 
@@ -12460,10 +12460,7 @@ var Token = {
12460
12460
  'Size-25': '50px',
12461
12461
  'Size-26': '52px',
12462
12462
  'Size-27': '54px',
12463
- 'Size-28': '56px',
12464
- 'Animation-duration-1': '0.1s',
12465
- 'Animation-duration-2': '0.2s',
12466
- 'Animation-duration-3': '0.3s'
12463
+ 'Size-28': '56px'
12467
12464
  };
12468
12465
 
12469
12466
  // @ts-ignore
@@ -25669,7 +25666,7 @@ var tabsStyle = {
25669
25666
  headerScrollBar: {
25670
25667
  position: 'absolute',
25671
25668
  background: src.tabsActiveFontColor,
25672
- transition: "left ".concat(CommonToken['Animation-duration-2'], " ease-in-out, top ").concat(CommonToken['Animation-duration-2'], " ease-in-out, width ").concat(CommonToken['Animation-duration-2'], " ease-in-out, height ").concat(CommonToken['Animation-duration-2'], " ease-in-out")
25669
+ transition: "left .2s ease-in-out, top .2s ease-in-out, width .2s ease-in-out, height .2s ease-in-out"
25673
25670
  },
25674
25671
  header: {
25675
25672
  flex: 1,
@@ -33017,6 +33014,7 @@ var useInputFormat = function useInputFormat(props) {
33017
33014
 
33018
33015
 
33019
33016
 
33017
+
33020
33018
  function insertPoint(name) {
33021
33019
  var reg = /(\[\d+\])/gi;
33022
33020
  return name.replace(reg, function (s, m, i) {
@@ -33270,6 +33268,16 @@ var removeProps = function removeProps(target, remove) {
33270
33268
  }
33271
33269
  return a;
33272
33270
  };
33271
+ var getAllKeyPaths = function getAllKeyPaths(obj) {
33272
+ var parentKey = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
33273
+ return Object.keys(obj).reduce(function (keys, key) {
33274
+ var newKey = parentKey ? "".concat(parentKey, ".").concat(key) : key;
33275
+ if (Array.isArray(obj[key])) {
33276
+ return keys.concat(newKey);
33277
+ }
33278
+ return keys.concat(obj[key] !== null && typeof_default()(obj[key]) === 'object' ? getAllKeyPaths(obj[key], newKey) : newKey);
33279
+ }, []);
33280
+ };
33273
33281
  ;// CONCATENATED MODULE: ../base/src/common/use-clear.ts
33274
33282
 
33275
33283
  var useClear = function useClear(props) {
@@ -46175,11 +46183,13 @@ var useForm = function useForm(props) {
46175
46183
  }
46176
46184
  });
46177
46185
  });
46178
- var keys = Object.keys(vals);
46179
- keys.forEach(function (key) {
46186
+
46187
+ // 获取vals的所有key,包括嵌套对象的key
46188
+ var fullKeyPaths = getAllKeyPaths(vals);
46189
+ fullKeyPaths.forEach(function (key) {
46180
46190
  delete context.serverErrors[key];
46181
46191
  });
46182
- update(keys);
46192
+ update(fullKeyPaths);
46183
46193
  });
46184
46194
  var getErrors = use_persist_fn(function () {
46185
46195
  return context.errors;
@@ -65268,7 +65278,7 @@ var upload_interface = __webpack_require__(8821);
65268
65278
 
65269
65279
 
65270
65280
  /* harmony default export */ var src_0 = ({
65271
- version: '3.4.3'
65281
+ version: '3.4.4-beta.1'
65272
65282
  });
65273
65283
  }();
65274
65284
  /******/ return __webpack_exports__;