@nutui/nutui-react-taro 3.0.19-cpp.22-1 → 3.0.19-cpp.22-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.
@@ -87,7 +87,7 @@ var Price = function Price(props) {
87
87
  return num;
88
88
  };
89
89
  var formatDecimal = function formatDecimal(decimalNum) {
90
- if (Number(decimalNum) === 0) {
90
+ if (Number(decimalNum) === 0 && !checkPoint(decimalNum)) {
91
91
  decimalNum = 0;
92
92
  }
93
93
  if (checkPoint(decimalNum)) {
@@ -75,7 +75,7 @@ export var Price = function(props) {
75
75
  return num;
76
76
  };
77
77
  var formatDecimal = function(decimalNum) {
78
- if (Number(decimalNum) === 0) {
78
+ if (Number(decimalNum) === 0 && !checkPoint(decimalNum)) {
79
79
  decimalNum = 0;
80
80
  }
81
81
  if (checkPoint(decimalNum)) {
@@ -39932,7 +39932,7 @@
39932
39932
  return num;
39933
39933
  };
39934
39934
  var formatDecimal = function(decimalNum) {
39935
- if (Number(decimalNum) === 0) {
39935
+ if (Number(decimalNum) === 0 && !checkPoint(decimalNum)) {
39936
39936
  decimalNum = 0;
39937
39937
  }
39938
39938
  if (checkPoint(decimalNum)) {