cloud-b2b 1.1.30 → 1.1.32
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.
|
@@ -66,6 +66,8 @@ var parseNumber = function parseNumber(value, _ref) {
|
|
|
66
66
|
precision = Number(precision);
|
|
67
67
|
if (precision) {
|
|
68
68
|
value = value.toFixed(precision);
|
|
69
|
+
value = value.toString(); // 将数值转换为字符串
|
|
70
|
+
value = value.replace(/(\.\d*?[1-9])0+$|\.0*$/, "$1"); // 去除小数点后无意义的零
|
|
69
71
|
if (!fixed) {
|
|
70
72
|
value = Number(value);
|
|
71
73
|
}
|
|
@@ -105,7 +105,7 @@ var getUploadProps = function getUploadProps(props, onPreview, fileList, setFile
|
|
|
105
105
|
return _regeneratorRuntime.wrap(function _callee$(_context2) {
|
|
106
106
|
while (1) switch (_context2.prev = _context2.next) {
|
|
107
107
|
case 0:
|
|
108
|
-
props.onRemove && props.onRemove(fileRemove, fileList, fileDeleteList
|
|
108
|
+
props.onRemove && props.onRemove(fileRemove, fileList, fileDeleteList);
|
|
109
109
|
case 1:
|
|
110
110
|
case "end":
|
|
111
111
|
return _context2.stop();
|
|
@@ -74,6 +74,8 @@ var parseNumber = function parseNumber(value, _ref) {
|
|
|
74
74
|
precision = Number(precision);
|
|
75
75
|
if (precision) {
|
|
76
76
|
value = value.toFixed(precision);
|
|
77
|
+
value = value.toString(); // 将数值转换为字符串
|
|
78
|
+
value = value.replace(/(\.\d*?[1-9])0+$|\.0*$/, "$1"); // 去除小数点后无意义的零
|
|
77
79
|
if (!fixed) {
|
|
78
80
|
value = Number(value);
|
|
79
81
|
}
|
|
@@ -117,7 +117,7 @@ var getUploadProps = function getUploadProps(props, onPreview, fileList, setFile
|
|
|
117
117
|
return _regenerator["default"].wrap(function _callee$(_context2) {
|
|
118
118
|
while (1) switch (_context2.prev = _context2.next) {
|
|
119
119
|
case 0:
|
|
120
|
-
props.onRemove && props.onRemove(fileRemove, fileList, fileDeleteList
|
|
120
|
+
props.onRemove && props.onRemove(fileRemove, fileList, fileDeleteList);
|
|
121
121
|
case 1:
|
|
122
122
|
case "end":
|
|
123
123
|
return _context2.stop();
|