<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>
|