| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
 | | <template> |  |   <div class="demo-Circle"> |  |     <div style> |  |       <i-circle |  |         :size="size" |  |         :trail-width="4" |  |         :stroke-width="5" |  |         :percent="75" |  |         stroke-linecap="square" |  |         stroke-color="#43a3fb" |  |       > |  |         <div class="demo-Circle-custom"> |  |           <h1>1500</h1> |  |           <p>昨日活跃用户数量</p> |  |           <span> |  |             占比 |  |             <i>{{1500/20000}}%</i> |  |           </span> |  |         </div> |  |       </i-circle> |  |     </div> |  |     <div style> |  |       <i-circle |  |         :size="size" |  |         :trail-width="4" |  |         :stroke-width="5" |  |         :percent="75" |  |         stroke-linecap="square" |  |         stroke-color="#43a3fb" |  |       > |  |         <div class="demo-Circle-custom"> |  |           <h1>12000</h1> |  |           <p>上月活跃用户数量</p> |  |           <span> |  |             占比 |  |             <i>{{12000/150000}}%</i> |  |           </span> |  |         </div> |  |       </i-circle> |  |     </div> |  |   </div> |  | </template> |  | <script> |  | export default { |  |   props:{ |  |     size:{ |  |       type:Number, |  |       default:150 |  |     } |  |   } |  | } |  | </script> |  | <style scoped> |  | .demo-Circle { |  |   display: flex; |  | } |  | .demo-Circle > div { |  |   flex: 1; |  |   text-align: center; |  | } |  | .demo-Circle > div:first-child{ |  |   padding-left:10%; |  | } |  |   |  | .demo-Circle > div:last-child{ |  |   padding-right:10%; |  | } |  | </style> |  | <style lang="less" scoped> |  | .demo-Circle-custom { |  |   & h1 { |  |     color:#ffffff; |  |     font-size: 28px; |  |     font-weight: normal; |  |   } |  |   & p { |  |     color: #ece8e8; |  |     font-size: 14px; |  |     margin: 10px 0 15px; |  |   } |  |   & span { |  |     display: block; |  |     padding-top: 15px; |  |     color: wheat; |  |     font-size: 14px; |  |     &:before { |  |       content: ""; |  |       display: block; |  |       width: 50px; |  |       height: 1px; |  |       margin: 0 auto; |  |       background: #e0e3e6; |  |       position: relative; |  |       top: -15px; |  |     } |  |   } |  |   & span i { |  |     font-style: normal; |  |     color: white; |  |   } |  | } |  | </style> | 
 |