fix: CountTo component resolve separator prop not taking effect (#5578)

This commit is contained in:
handsomeFu 2025-02-21 11:06:18 +08:00 committed by GitHub
parent 1a12687027
commit 5aff8bac10
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -53,7 +53,7 @@ const numMain = computed(() => {
const result = currentValue.value const result = currentValue.value
.toFixed(props.decimals) .toFixed(props.decimals)
.split('.')[0] .split('.')[0]
?.replaceAll(/\B(?=(\d{3})+(?!\d))/g, ','); ?.replaceAll(/\B(?=(\d{3})+(?!\d))/g, props.separator);
return result; return result;
}); });