shineout 3.9.14-beta.8 → 3.9.14-beta.9

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
@@ -522,5 +522,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
522
522
  // 此文件由脚本自动生成,请勿直接修改。
523
523
  // This file was generated automatically by a script. Please do not modify it directly.
524
524
  var _default = exports.default = {
525
- version: '3.9.14-beta.8'
525
+ version: '3.9.14-beta.9'
526
526
  };
package/dist/shineout.js CHANGED
@@ -12326,7 +12326,7 @@ var handleStyle = function handleStyle(style) {
12326
12326
  };
12327
12327
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12328
12328
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12329
- /* harmony default export */ var version = ('3.9.14-beta.8');
12329
+ /* harmony default export */ var version = ('3.9.14-beta.9');
12330
12330
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12331
12331
 
12332
12332
 
@@ -20767,6 +20767,7 @@ var groupSpace = function groupSpace(gap) {
20767
20767
  padding: "0 ".concat(gap),
20768
20768
  display: 'flex',
20769
20769
  alignItems: 'center',
20770
+ flexShrink: 0,
20770
20771
  borderLeft: "1px solid ".concat(src.inputBorderColor),
20771
20772
  borderRight: "1px solid ".concat(src.inputBorderColor),
20772
20773
  background: src.inputGroupFontBackgroundColor,
@@ -56343,10 +56344,12 @@ var useNumberFormat = function useNumberFormat(props) {
56343
56344
  setInternalInputValue = _React$useState2[1];
56344
56345
  var focusedRef = external_root_React_commonjs2_react_commonjs_react_amd_react_default().useRef(false);
56345
56346
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
56347
+ // 将外部值转为字符串后再比较,避免 number 5 vs string "5" 的类型不匹配误判
56348
+ var stringValue = getStringValue(props.value);
56346
56349
  // 聚焦编辑期间不同步外部值,避免 form 回填 defaultValue 覆盖用户输入
56347
56350
  // 但当外部值被清空时(如 clearable 触发),即使聚焦也需要同步
56348
- if (props.value !== inernalInputValue && (!focusedRef.current || props.value == null || props.value === '')) {
56349
- setInternalInputValue(getStringValue(props.value));
56351
+ if (stringValue !== inernalInputValue && (!focusedRef.current || props.value == null || props.value === '')) {
56352
+ setInternalInputValue(stringValue);
56350
56353
  }
56351
56354
  }, [props.value]);
56352
56355
  var getNumberValue = function getNumberValue(value) {
@@ -75757,7 +75760,7 @@ var upload_interface = __webpack_require__(8821);
75757
75760
 
75758
75761
 
75759
75762
  /* harmony default export */ var src_0 = ({
75760
- version: '3.9.14-beta.8'
75763
+ version: '3.9.14-beta.9'
75761
75764
  });
75762
75765
  }();
75763
75766
  /******/ return __webpack_exports__;