From 7a07271e0fb55394767250b14192571ee926fb56 Mon Sep 17 00:00:00 2001 From: erkelost <1256029807@qq.com> Date: Mon, 6 Dec 2021 20:55:36 +0800 Subject: [PATCH 1/3] =?UTF-8?q?feat(statistic):=20'=E4=BC=98=E5=8C=96css?= =?UTF-8?q?=20=E9=85=8D=E7=BD=AE=E5=8F=82=E6=95=B0=E5=86=97=E4=BD=99?= =?UTF-8?q?=E9=97=AE=E9=A2=98'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/devui-vue/devui/statistic/src/statistic.scss | 1 - packages/devui-vue/devui/statistic/src/statistic.tsx | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/devui-vue/devui/statistic/src/statistic.scss b/packages/devui-vue/devui/statistic/src/statistic.scss index a619e6ce..ad3c0181 100644 --- a/packages/devui-vue/devui/statistic/src/statistic.scss +++ b/packages/devui-vue/devui/statistic/src/statistic.scss @@ -3,7 +3,6 @@ margin: 0; padding: 0; font-size: 14px; - font-variant: tabular-nums; line-height: 1.5715; list-style: none; diff --git a/packages/devui-vue/devui/statistic/src/statistic.tsx b/packages/devui-vue/devui/statistic/src/statistic.tsx index e57ebf11..9184e228 100644 --- a/packages/devui-vue/devui/statistic/src/statistic.tsx +++ b/packages/devui-vue/devui/statistic/src/statistic.tsx @@ -44,8 +44,7 @@ export default defineComponent({ props.value, props.groupSeparator, props.precision, - props.showGroupSeparator, - props.animation + props.showGroupSeparator ) }) onMounted(() => { -- Gitee From 4e5441e2f731ea7596c04eec053c950ca2c74f2c Mon Sep 17 00:00:00 2001 From: erkelost <1256029807@qq.com> Date: Sat, 11 Dec 2021 12:12:57 +0800 Subject: [PATCH 2/3] =?UTF-8?q?feat(statistic):=20'=E7=94=9F=E4=BA=A7?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=20icon=E5=AF=BC=E8=87=B4=E4=B8=8D=E5=AF=B9?= =?UTF-8?q?=E9=BD=90=E9=97=AE=E9=A2=98'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/devui-vue/devui/statistic/src/statistic.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/devui-vue/devui/statistic/src/statistic.scss b/packages/devui-vue/devui/statistic/src/statistic.scss index ad3c0181..c2805c5e 100644 --- a/packages/devui-vue/devui/statistic/src/statistic.scss +++ b/packages/devui-vue/devui/statistic/src/statistic.scss @@ -16,15 +16,16 @@ font-size: 24px; display: flex; align-items: center; - vertical-align: center; } &-prefix { margin-right: 6px; + display: flex; } &-suffix { margin-left: 6px; + display: flex; } &--value { -- Gitee From fc183f7a02b58a276d9ed9f70c523f262add2954 Mon Sep 17 00:00:00 2001 From: erkelost <1256029807@qq.com> Date: Sat, 11 Dec 2021 12:18:51 +0800 Subject: [PATCH 3/3] =?UTF-8?q?feat(statistic):=20'inheritAttrs=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E9=97=AE=E9=A2=98'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/devui-vue/devui/statistic/src/statistic.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/devui-vue/devui/statistic/src/statistic.tsx b/packages/devui-vue/devui/statistic/src/statistic.tsx index 9184e228..4de3a798 100644 --- a/packages/devui-vue/devui/statistic/src/statistic.tsx +++ b/packages/devui-vue/devui/statistic/src/statistic.tsx @@ -6,8 +6,8 @@ import './statistic.scss' export default defineComponent({ name: 'DStatistic', - props: statisticProps, inheritAttrs: false, + props: statisticProps, setup(props: StatisticProps, ctx) { const innerValue = ref(props.valueFrom ?? props.value) const tween = ref(null) -- Gitee