File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
components/vc-progress/demo Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ export default {
17
17
} ,
18
18
} ,
19
19
render ( ) {
20
+ const { percent, color } = this ;
20
21
const containerStyle = {
21
22
width : '250px' ,
22
23
} ;
@@ -27,22 +28,22 @@ export default {
27
28
} ;
28
29
return (
29
30
< div >
30
- < h3 > Line Progress { this . percent } %</ h3 >
31
+ < h3 > Line Progress { percent } %</ h3 >
31
32
< div style = { containerStyle } >
32
- < Line percent = { this . percent } strokeWidth = "4" strokeColor = { this . color } />
33
+ < Line percent = { percent } strokeWidth = "4" strokeColor = { color } />
33
34
< Line
34
- percent = { [ this . percent / 2 , this . percent / 2 ] }
35
+ percent = { [ percent / 2 , percent / 2 ] }
35
36
strokeWidth = "4"
36
- strokeColor = { [ this . color , '#CCC' ] }
37
+ strokeColor = { [ color , '#CCC' ] }
37
38
/>
38
39
</ div >
39
- < h3 > Circle Progress { this . percent } %</ h3 >
40
+ < h3 > Circle Progress { percent } %</ h3 >
40
41
< div style = { circleContainerStyle } >
41
42
< Circle
42
- percent = { this . percent }
43
+ percent = { percent }
43
44
strokeWidth = "6"
44
45
strokeLinecap = "round"
45
- strokeColor = { this . color }
46
+ strokeColor = { color }
46
47
/>
47
48
</ div >
48
49
< p >
You can’t perform that action at this time.
0 commit comments