From 43e8b9939b11802384078abee0c5a5862685e279 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BF=97=E5=BC=BA?= <184177677@qq.com> Date: Mon, 13 Jun 2022 05:12:24 +0000 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E5=B0=8F=E7=BB=84=E4=BB=B6-?= =?UTF-8?q?=E6=95=B0=E5=AD=97=E7=BF=BB=E7=89=8C-=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E7=B2=BE=E5=BA=A6=E5=8F=82=E6=95=B0=20=E5=B0=8F=E7=BB=84?= =?UTF-8?q?=E4=BB=B6-=E6=95=B0=E5=AD=97=E7=BF=BB=E7=89=8C-=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E7=B2=BE=E5=BA=A6=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + src/packages/components/Decorates/Mores/Number/config.ts | 1 + src/packages/components/Decorates/Mores/Number/config.vue | 7 +++++++ src/packages/components/Decorates/Mores/Number/index.vue | 2 ++ 4 files changed, 11 insertions(+) diff --git a/.gitignore b/.gitignore index d451ff16..60a4aff1 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ node_modules dist dist-ssr *.local +.vscode diff --git a/src/packages/components/Decorates/Mores/Number/config.ts b/src/packages/components/Decorates/Mores/Number/config.ts index b9fd8920..c3a8b940 100644 --- a/src/packages/components/Decorates/Mores/Number/config.ts +++ b/src/packages/components/Decorates/Mores/Number/config.ts @@ -7,6 +7,7 @@ export const option = { from: 50000, to: 100000, dur: 3, + precision: 0, showSeparator: true, numberSize: 24, numberColor: '#4a9ef8', diff --git a/src/packages/components/Decorates/Mores/Number/config.vue b/src/packages/components/Decorates/Mores/Number/config.vue index f7114a30..c951ed5e 100644 --- a/src/packages/components/Decorates/Mores/Number/config.vue +++ b/src/packages/components/Decorates/Mores/Number/config.vue @@ -28,6 +28,13 @@ 展示分割符 + + + diff --git a/src/packages/components/Decorates/Mores/Number/index.vue b/src/packages/components/Decorates/Mores/Number/index.vue index b4ddfb13..ccf30bd3 100644 --- a/src/packages/components/Decorates/Mores/Number/index.vue +++ b/src/packages/components/Decorates/Mores/Number/index.vue @@ -11,6 +11,7 @@ :to="to" :duration="dur * 1000" :show-separator="showSeparator" + :precision="precision" >