whychdw
2021-01-09 8aaa1d4deb6f764f93a9ee49f9b4be7620e024e1
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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
<template>
    <div class="paramModule">
        <div class="param-right">
            <div class="rotate"></div>
        </div>
        <div class="param-left">
            <div class="title">{{name}}</div>
            <div class="dataCon">{{value}}</div>
        </div>
    </div>
</template>
 
<script>
export default {
  props: {
    name: {
      type: String,
      default: ""
    },
    value: {
      type: Number,
      default: 0
    }
  },
    data() {
        return {};
    },
};
</script>
 
<style scoped>
.paramModule *{
  box-sizing: border-box;
}
.paramModule {
    display: flex;
    justify-items: center;
    align-items: center;
}
.param-right {
    width: 100px;
    height: 100px;
    border: 2px solid #00fefe;
    border-radius: 50%;
    display: flex;
    justify-items: center;
    align-items: center;
    background-color: #00253f;
    position: relative;
}
.param-right::before {
    position: absolute;
    content: "";
    display: block;
    width: 60px;
    height: 60px;
    left: 50%;
    top: 50%;
  margin-left: -30px;
  margin-top: -30px;
    border: 1px dashed #00fefe;
    border-radius: 50%;
}
.param-right::after {
    position: absolute;
    content: "";
    display: block;
    width: 26px;
    height: 26px;
  top: 50%;
  left: 50%;
  margin-top: -13px;
  margin-left: -13px;
    border: 1px solid #00fefe;
    border-radius: 50%;
}
.param-right .rotate {
    width: 50px;
    height: 50px;
    border: 6px solid #fa884c;
    position: absolute;
    left: 24px;
    top: 24px;
    -webkit-clip-path: circle(50% at 100% 0%);
    border-radius: 50%;
    /*-webkit-animation: rotate 2s infinite linear;*/
    /*animation: rotate 2s infinite linear;*/
}
@-webkit-keyframes rotate {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
@keyframes rotate {
    0% {
        -webkit-transform: rotate(0deg);
        transform: rotate(0deg);
    }
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
.param-left {
    width: 160px;
    height: 70px;
    background-color: #00fefe;
    border-radius: 0 30px 30px 0;
    border: 1px solid #fa884c;
    margin-left: -17px;
    padding-left: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.param-left .title {
    font-size: 13px;
  font-weight: bold;
    color: #00253f;
}
.param-left .dataCon {
  display: inline-block;
  min-width: 50px;
    font-size: 22px;
  text-align: center;
    color: #fa884c;
    padding: 4px;
    background-color: #00253f;
    margin-top: 4px;
}
</style>