@douyinfe/semi-ui 2.45.0 → 2.45.2

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.
@@ -304,7 +304,7 @@ class InputNumber extends _baseComponent.default {
304
304
  * We need to set the status to false after trigger focus event
305
305
  */
306
306
  if (this.clickUpOrDown) {
307
- obj.value = this.foundation.doFormat(valueStr, true);
307
+ obj.value = this.foundation.doFormat(obj.number, true);
308
308
  newValue = obj.value;
309
309
  }
310
310
  this.foundation.updateStates(obj, () => this.adapter.restoreCursor());
@@ -316,9 +316,8 @@ class InputNumber extends _baseComponent.default {
316
316
  });
317
317
  } else {
318
318
  // Update input content when controlled input NaN
319
- newValue = this.foundation.doFormat(valueStr, false);
320
319
  this.foundation.updateStates({
321
- value: newValue
320
+ value: valueStr
322
321
  });
323
322
  }
324
323
  } else if (this.foundation.isValidNumber(parsedNum)) {
@@ -296,7 +296,7 @@ class InputNumber extends BaseComponent {
296
296
  * We need to set the status to false after trigger focus event
297
297
  */
298
298
  if (this.clickUpOrDown) {
299
- obj.value = this.foundation.doFormat(valueStr, true);
299
+ obj.value = this.foundation.doFormat(obj.number, true);
300
300
  newValue = obj.value;
301
301
  }
302
302
  this.foundation.updateStates(obj, () => this.adapter.restoreCursor());
@@ -308,9 +308,8 @@ class InputNumber extends BaseComponent {
308
308
  });
309
309
  } else {
310
310
  // Update input content when controlled input NaN
311
- newValue = this.foundation.doFormat(valueStr, false);
312
311
  this.foundation.updateStates({
313
- value: newValue
312
+ value: valueStr
314
313
  });
315
314
  }
316
315
  } else if (this.foundation.isValidNumber(parsedNum)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@douyinfe/semi-ui",
3
- "version": "2.45.0",
3
+ "version": "2.45.2",
4
4
  "description": "A modern, comprehensive, flexible design system and UI library. Connect DesignOps & DevOps. Quickly build beautiful React apps. Maintained by Douyin-fe team.",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es/index.js",
@@ -20,12 +20,12 @@
20
20
  "@dnd-kit/core": "^6.0.8",
21
21
  "@dnd-kit/sortable": "^7.0.2",
22
22
  "@dnd-kit/utilities": "^3.2.1",
23
- "@douyinfe/semi-animation": "2.45.0",
24
- "@douyinfe/semi-animation-react": "2.45.0",
25
- "@douyinfe/semi-foundation": "2.45.0",
26
- "@douyinfe/semi-icons": "2.45.0",
27
- "@douyinfe/semi-illustrations": "2.45.0",
28
- "@douyinfe/semi-theme-default": "2.45.0",
23
+ "@douyinfe/semi-animation": "2.45.2",
24
+ "@douyinfe/semi-animation-react": "2.45.2",
25
+ "@douyinfe/semi-foundation": "2.45.2",
26
+ "@douyinfe/semi-icons": "2.45.2",
27
+ "@douyinfe/semi-illustrations": "2.45.2",
28
+ "@douyinfe/semi-theme-default": "2.45.2",
29
29
  "async-validator": "^3.5.0",
30
30
  "classnames": "^2.2.6",
31
31
  "copy-text-to-clipboard": "^2.1.1",
@@ -75,7 +75,7 @@
75
75
  ],
76
76
  "author": "",
77
77
  "license": "MIT",
78
- "gitHead": "9650e522f489de9e6d25e67cfc0fdb2dc6c4663e",
78
+ "gitHead": "0ee1eb3aa058462c8fa23973c994c454ce9511d2",
79
79
  "devDependencies": {
80
80
  "@babel/plugin-proposal-decorators": "^7.15.8",
81
81
  "@babel/plugin-transform-runtime": "^7.15.8",