diff --git a/packages/devui-vue/devui/statistic/src/statistic.scss b/packages/devui-vue/devui/statistic/src/statistic.scss index 76632b430bbbdda827641db861a06737f5afff9f..229050af103c628a69b6c20259f73fc2037a1248 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; @@ -17,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 { diff --git a/packages/devui-vue/devui/statistic/src/statistic.tsx b/packages/devui-vue/devui/statistic/src/statistic.tsx index e57ebf1127858cfabba21b0e4b83618caba7cdbd..4de3a798faad2184de938c3c7ca8e7e03bfc021c 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) @@ -44,8 +44,7 @@ export default defineComponent({ props.value, props.groupSeparator, props.precision, - props.showGroupSeparator, - props.animation + props.showGroupSeparator ) }) onMounted(() => {