@zat-design/sisyphus-react 3.11.14-beta.3 → 3.11.14-beta.4
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.
@@ -264,7 +264,7 @@ export var formatColumn = function formatColumn(_ref2) {
|
|
264
264
|
// 千分位, 千分位带CNY前缀
|
265
265
|
} else if (['thousandth', 'thousandthCNY'].includes(valueType)) {
|
266
266
|
column.render = function (value, record, index) {
|
267
|
-
var valueStr = valueTypePrecision ? "".concat(Number(value).toFixed(valueTypePrecision)) : "".concat(value);
|
267
|
+
var valueStr = valueTypePrecision || valueTypePrecision === 0 ? "".concat(Number(value).toFixed(valueTypePrecision)) : "".concat(value);
|
268
268
|
var renderValue = valueStr.replace(/\B(?=(\d{3})+(?!\d))/g, ',');
|
269
269
|
var originalResult = getOriginalValue(value, record, originalObj, rowKey, dataIndex);
|
270
270
|
var isChanged = originalResult.isChanged,
|
@@ -270,7 +270,7 @@ var formatColumn = exports.formatColumn = function formatColumn(_ref2) {
|
|
270
270
|
// 千分位, 千分位带CNY前缀
|
271
271
|
} else if (['thousandth', 'thousandthCNY'].includes(valueType)) {
|
272
272
|
column.render = function (value, record, index) {
|
273
|
-
var valueStr = valueTypePrecision ? "".concat(Number(value).toFixed(valueTypePrecision)) : "".concat(value);
|
273
|
+
var valueStr = valueTypePrecision || valueTypePrecision === 0 ? "".concat(Number(value).toFixed(valueTypePrecision)) : "".concat(value);
|
274
274
|
var renderValue = valueStr.replace(/\B(?=(\d{3})+(?!\d))/g, ',');
|
275
275
|
var originalResult = (0, _utils2.getOriginalValue)(value, record, originalObj, rowKey, dataIndex);
|
276
276
|
var isChanged = originalResult.isChanged,
|