Skip to content

Commit 5aff8ba

Browse files
authored
fix: CountTo component resolve separator prop not taking effect (#5578)
1 parent 1a12687 commit 5aff8ba

File tree

1 file changed

+1
-1
lines changed
  • packages/effects/common-ui/src/components/count-to

1 file changed

+1
-1
lines changed

packages/effects/common-ui/src/components/count-to/count-to.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const numMain = computed(() => {
5353
const result = currentValue.value
5454
.toFixed(props.decimals)
5555
.split('.')[0]
56-
?.replaceAll(/\B(?=(\d{3})+(?!\d))/g, ',');
56+
?.replaceAll(/\B(?=(\d{3})+(?!\d))/g, props.separator);
5757
return result;
5858
});
5959

0 commit comments

Comments
 (0)