Commit 5aff8bac by handsomeFu Committed by GitHub

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

1 parent 1a126870
...@@ -53,7 +53,7 @@ const numMain = computed(() => { ...@@ -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;
}); });
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!