瀏覽代碼

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

handsomeFu 7 月之前
父節點
當前提交
5aff8bac10
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/effects/common-ui/src/components/count-to/count-to.vue

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

@@ -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;
 });
 });