Browse Source
fix: `CountTo` component resolve `separator` prop not taking effect (#5578)
pull/5580/head
handsomeFu
12 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
packages/effects/common-ui/src/components/count-to/count-to.vue
|
|
|
@ -53,7 +53,7 @@ const numMain = computed(() => { |
|
|
|
const result = currentValue.value |
|
|
|
.toFixed(props.decimals) |
|
|
|
.split('.')[0] |
|
|
|
?.replaceAll(/\B(?=(\d{3})+(?!\d))/g, ','); |
|
|
|
?.replaceAll(/\B(?=(\d{3})+(?!\d))/g, props.separator); |
|
|
|
return result; |
|
|
|
}); |
|
|
|
|
|
|
|
|