mirror of
https://github.com/vbenjs/gf-vben-admin.git
synced 2025-01-24 04:10:20 +08:00
fix(CountTo): Fix displaying empty string when the value is 0 (#864)
This commit is contained in:
parent
5f1a6cdc59
commit
82eb72bbce
@ -84,7 +84,7 @@
|
||||
}
|
||||
|
||||
function formatNumber(num: number | string) {
|
||||
if (!num) {
|
||||
if (!num && num !== 0) {
|
||||
return '';
|
||||
}
|
||||
const { decimals, decimal, separator, suffix, prefix } = props;
|
||||
|
Loading…
Reference in New Issue
Block a user