Skip to content

Commit 27d8169

Browse files
kagolgitee-org
authored andcommitted
!435 feat(statistic): 优化 css 配置函数参数冗余问题
Merge pull request !435 from ErKeLost/dev
2 parents 7a3a6bd + fc183f7 commit 27d8169

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

packages/devui-vue/devui/statistic/src/statistic.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
margin: 0;
44
padding: 0;
55
font-size: 14px;
6-
font-variant: tabular-nums;
76
line-height: 1.5715;
87
list-style: none;
98

@@ -17,15 +16,16 @@
1716
font-size: 24px;
1817
display: flex;
1918
align-items: center;
20-
vertical-align: center;
2119
}
2220

2321
&-prefix {
2422
margin-right: 6px;
23+
display: flex;
2524
}
2625

2726
&-suffix {
2827
margin-left: 6px;
28+
display: flex;
2929
}
3030

3131
&--value {

packages/devui-vue/devui/statistic/src/statistic.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import './statistic.scss'
66

77
export default defineComponent({
88
name: 'DStatistic',
9-
props: statisticProps,
109
inheritAttrs: false,
10+
props: statisticProps,
1111
setup(props: StatisticProps, ctx) {
1212
const innerValue = ref(props.valueFrom ?? props.value)
1313
const tween = ref(null)
@@ -44,8 +44,7 @@ export default defineComponent({
4444
props.value,
4545
props.groupSeparator,
4646
props.precision,
47-
props.showGroupSeparator,
48-
props.animation
47+
props.showGroupSeparator
4948
)
5049
})
5150
onMounted(() => {

0 commit comments

Comments
 (0)