File tree Expand file tree Collapse file tree 2 files changed +32
-32
lines changed Expand file tree Collapse file tree 2 files changed +32
-32
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ export default {
47
47
},
48
48
precision: {
49
49
type: Number ,
50
- default: 0
50
+ default: null
51
51
},
52
52
value: {
53
53
type: [String , Number ],
@@ -139,7 +139,6 @@ export default {
139
139
clearInterval (this .timeTask );
140
140
this .timeTask = null ;
141
141
}
142
-
143
142
} else {
144
143
this .branch ();
145
144
}
Original file line number Diff line number Diff line change 2
2
@import " common/var" ;
3
3
4
4
@include b (statistic) {
5
- width : 100% ;
6
- box-sizing : border-box ;
7
- margin : 0 ;
8
- padding : 0 ;
9
- color : $--color-black ;
10
- font-size : 14px ;
11
- font-variant : tabular-nums ;
12
- line-height : 1.5715 ;
13
- list-style : none ;
14
- font-feature-settings : " tnum" ;
15
- text-align : center ;
16
- .head {
17
- margin-bottom : 4px ;
18
- color : #00000073 ;
19
- font-size : 14px ;
5
+ $statistic-justify : center ;
6
+ $statistic-align : center ;
7
+ width : 100% ;
8
+ box-sizing : border-box ;
9
+ margin : 0 ;
10
+ padding : 0 ;
11
+ color : $--color-black ;
12
+ font-variant : tabular-nums ;
13
+ list-style : none ;
14
+ font-feature-settings : " tnum" ;
15
+ text-align : center ;
16
+ .head {
17
+ margin-bottom : 4px ;
18
+ color : $--color-text-regular ;
19
+ font-size : $--font-size-small ;
20
+ }
20
21
22
+ .con {
23
+ font-family : Sans-serif ;
24
+ display : flex ;
25
+ justify-content : $statistic-justify ;
26
+ align-items : $statistic-align ;
27
+ color : $--color-text-primary ;
28
+ .number {
29
+ font-size : $--font-size-extra-large ;
30
+ padding : 0 4px ;
21
31
}
22
-
23
- .con {
24
- font-family : Sans-serif ;
25
- display : flex ;
26
- justify-content :center ;
27
- align-items : center ;
28
- .number {
29
- font-size : 20px ;
30
- padding : 0 4px ;
31
- }
32
- span { display : inline-block ;
33
- margin : 0 ;
34
- line-height : 100% ;
35
- }
32
+ span {
33
+ display : inline-block ;
34
+ margin : 0 ;
35
+ line-height : 100% ;
36
36
}
37
- }
37
+ }
38
+ }
You can’t perform that action at this time.
0 commit comments