ztxkui 4.2.23-603 → 4.2.23-604

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.
@@ -93,7 +93,10 @@ function formatCurrency(n) {
93
93
  }
94
94
  }
95
95
  function getValue(value, isFocusRef, precision) {
96
- if (value && !isNaN(Number(value)) && !isFocusRef.current && precision) {
96
+ if (value &&
97
+ !isNaN(Number(value)) &&
98
+ !isFocusRef.current &&
99
+ precision != null) {
97
100
  return exactRound(value, precision);
98
101
  }
99
102
  return value;
@@ -113,7 +116,7 @@ function saveSafeInteger(value, precision) {
113
116
  // if (Number(integerVal) > Number.MAX_SAFE_INTEGER) {
114
117
  // integerVal = integerVal.substring(0, integerVal.length - 1);
115
118
  // }
116
- if (precision) {
119
+ if (precision != null) {
117
120
  pointVal =
118
121
  pointVal.length < precision ? pointVal : pointVal.substring(0, precision);
119
122
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztxkui",
3
- "version": "4.2.23-603",
3
+ "version": "4.2.23-604",
4
4
  "private": false,
5
5
  "description": "React components library",
6
6
  "author": "zt-front-end",