Merge pull request #147 from RockerHX/patch-2

fix(components): count can't display when endValue is 0.
This commit is contained in:
Soybean 2022-11-14 11:51:15 +08:00 committed by GitHub
commit 436b15f010
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,7 +77,7 @@ function start() {
}
function formatNumber(num: number | string) {
if (!num) {
if (num !== 0 && !num) {
return '';
}
const { decimals, decimal, separator, suffix, prefix } = props;