Browse Source

fix(CountTo): Fix displaying empty string when the value is 0 (#864)

pull/868/head
MARVIN 5 years ago
committed by GitHub
parent
commit
82eb72bbce
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/components/CountTo/src/CountTo.vue

2
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;

Loading…
Cancel
Save