Merge pull request #147 from RockerHX/patch-2
fix(components): count can't display when endValue is 0.
This commit is contained in:
commit
436b15f010
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user