shineout 3.5.7-beta.6 → 3.5.7-beta.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-beta.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-beta.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
  });
@@ -67403,7 +67410,7 @@ var upload_interface = __webpack_require__(8821);
67403
67410
 
67404
67411
 
67405
67412
  /* harmony default export */ var src_0 = ({
67406
- version: '3.5.7-beta.6'
67413
+ version: '3.5.7-beta.7'
67407
67414
  });
67408
67415
  }();
67409
67416
  /******/ return __webpack_exports__;