@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.
- package/dist/css/semi.css +1 -0
- package/dist/css/semi.min.css +1 -1
- package/dist/umd/semi-ui.js +2 -3
- package/dist/umd/semi-ui.js.map +1 -1
- package/dist/umd/semi-ui.min.js +1 -1
- package/dist/umd/semi-ui.min.js.map +1 -1
- package/lib/cjs/inputNumber/index.js +2 -3
- package/lib/es/inputNumber/index.js +2 -3
- package/package.json +8 -8
package/dist/umd/semi-ui.js
CHANGED
|
@@ -65499,7 +65499,7 @@ class InputNumber extends BaseComponent {
|
|
|
65499
65499
|
* We need to set the status to false after trigger focus event
|
|
65500
65500
|
*/
|
|
65501
65501
|
if (this.clickUpOrDown) {
|
|
65502
|
-
obj.value = this.foundation.doFormat(
|
|
65502
|
+
obj.value = this.foundation.doFormat(obj.number, true);
|
|
65503
65503
|
newValue = obj.value;
|
|
65504
65504
|
}
|
|
65505
65505
|
this.foundation.updateStates(obj, () => this.adapter.restoreCursor());
|
|
@@ -65511,9 +65511,8 @@ class InputNumber extends BaseComponent {
|
|
|
65511
65511
|
});
|
|
65512
65512
|
} else {
|
|
65513
65513
|
// Update input content when controlled input NaN
|
|
65514
|
-
newValue = this.foundation.doFormat(valueStr, false);
|
|
65515
65514
|
this.foundation.updateStates({
|
|
65516
|
-
value:
|
|
65515
|
+
value: valueStr
|
|
65517
65516
|
});
|
|
65518
65517
|
}
|
|
65519
65518
|
} else if (this.foundation.isValidNumber(parsedNum)) {
|