shineout 3.4.6-beta.2 → 3.4.6

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.6-beta.2'
495
+ version: '3.4.6'
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.6-beta.2');
11987
+ /* harmony default export */ var version = ('3.4.6');
11988
11988
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
11989
11989
 
11990
11990
 
@@ -48805,6 +48805,11 @@ var useNumberFormat = function useNumberFormat(props) {
48805
48805
  setInternalInputValue(getStringValue(val));
48806
48806
  if (typeof val === 'string') {
48807
48807
  var num = parseFloat(val);
48808
+ if (val === '') {
48809
+ // 如果允许空值,则返回 null,否则返回 undefined
48810
+ onChange === null || onChange === void 0 || onChange(allowNull ? null : undefined);
48811
+ return;
48812
+ }
48808
48813
  if (isNaN(num)) return;
48809
48814
  onChange === null || onChange === void 0 || onChange(num);
48810
48815
  } else {
@@ -65417,7 +65422,7 @@ var upload_interface = __webpack_require__(8821);
65417
65422
 
65418
65423
 
65419
65424
  /* harmony default export */ var src_0 = ({
65420
- version: '3.4.6-beta.2'
65425
+ version: '3.4.6'
65421
65426
  });
65422
65427
  }();
65423
65428
  /******/ return __webpack_exports__;