diff --git a/build/TableCell.js b/build/TableCell.js index c9ae355..5a1164f 100644 --- a/build/TableCell.js +++ b/build/TableCell.js @@ -129,7 +129,7 @@ var TableCell = function (_Component) { nextSymbol = config.nextSymbol; var number = (0, _utils.formatMoney)(data, precision, thousand); - if (makeUp === false && number !== '0') { + if (makeUp === false && number !== '0' && number.indexOf('.') !== -1) { number = number.replace(/0*$/, '').replace(/\.$/, ''); } var numberWidth = parseInt(width) - 16; // 减去默认的左右padding共计16px diff --git a/package.json b/package.json index dc6725b..7fd5782 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bee-table", - "version": "2.2.2", + "version": "2.2.3", "description": "Table ui component for react", "keywords": [ "react",