shineout 3.5.7-beta.6 → 3.5.7

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
@@ -507,5 +507,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
507
507
  // 此文件由脚本自动生成,请勿直接修改。
508
508
  // This file was generated automatically by a script. Please do not modify it directly.
509
509
  var _default = exports.default = {
510
- version: '3.5.7-beta.6'
510
+ version: '3.5.7'
511
511
  };
package/dist/shineout.js CHANGED
@@ -12040,7 +12040,7 @@ var handleStyle = function handleStyle(style) {
12040
12040
  };
12041
12041
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12042
12042
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12043
- /* harmony default export */ var version = ('3.5.7-beta.6');
12043
+ /* harmony default export */ var version = ('3.5.7');
12044
12044
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12045
12045
 
12046
12046
 
@@ -33923,7 +33923,7 @@ var useInputFormat = function useInputFormat(props) {
33923
33923
  autoFix = props.autoFix,
33924
33924
  coin = props.coin,
33925
33925
  cancelBlurChange = props.cancelBlurChange;
33926
- var _React$useState = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useState(false),
33926
+ var _React$useState = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useState(coin),
33927
33927
  _React$useState2 = slicedToArray_default()(_React$useState, 2),
33928
33928
  showCoin = _React$useState2[0],
33929
33929
  setShowCoin = _React$useState2[1];
@@ -33950,6 +33950,13 @@ var useInputFormat = function useInputFormat(props) {
33950
33950
  var noNeg = numType === 'non-negative' || numType === 'positive';
33951
33951
  var regExp = new RegExp("^(".concat(noNeg ? '' : '-', ")?(\\d").concat(regLength(integerLimit), ")(").concat(digits !== 0 ? "\\.\\d".concat(regLength(digits)) : '', ")?.*$"), 'g');
33952
33952
  value = value.replace(regExp, '$1$2$3');
33953
+
33954
+ // 修正小数位数
33955
+ var _value = v.split('.');
33956
+ var __value = value.split('.');
33957
+ if (_value[1] !== undefined && __value[1] === undefined) {
33958
+ value = "".concat(value, ".").concat(_value[1]);
33959
+ }
33953
33960
  }
33954
33961
  onChange(value);
33955
33962
  });
@@ -34333,6 +34340,9 @@ var getCompleteFieldKeys = function getCompleteFieldKeys(fields, allFields) {
34333
34340
  var completeFields = [];
34334
34341
  fieldsArray.forEach(function (field) {
34335
34342
  var na = "".concat(field, "[");
34343
+ if (field.endsWith(']')) {
34344
+ na = field;
34345
+ }
34336
34346
  var no = "".concat(field, ".");
34337
34347
  completeFields.push(field);
34338
34348
  var childFields = allFields.filter(function (f) {
@@ -67403,7 +67413,7 @@ var upload_interface = __webpack_require__(8821);
67403
67413
 
67404
67414
 
67405
67415
  /* harmony default export */ var src_0 = ({
67406
- version: '3.5.7-beta.6'
67416
+ version: '3.5.7'
67407
67417
  });
67408
67418
  }();
67409
67419
  /******/ return __webpack_exports__;