Browse Source
fix(CountTo): Fix displaying empty string when the value is 0 (#864)
pull/868/head
MARVIN
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/components/CountTo/src/CountTo.vue
|
|
|
@ -84,7 +84,7 @@ |
|
|
|
} |
|
|
|
|
|
|
|
function formatNumber(num: number | string) { |
|
|
|
if (!num) { |
|
|
|
if (!num && num !== 0) { |
|
|
|
return ''; |
|
|
|
} |
|
|
|
const { decimals, decimal, separator, suffix, prefix } = props; |
|
|
|
|