唐润平:UI显示面板开发起步版
This commit is contained in:
134
src/components/content/usedEle/UsedEle.vue
Normal file
134
src/components/content/usedEle/UsedEle.vue
Normal file
@@ -0,0 +1,134 @@
|
||||
<template>
|
||||
<div id="used-ele">
|
||||
<div class="title">用电量</div>
|
||||
<div class="content">
|
||||
<div class="item">
|
||||
<div class="name">一号变频器</div>
|
||||
<ul>
|
||||
<li>
|
||||
<img
|
||||
src="../../../assets/images/usedEle/icon-all.png"
|
||||
alt=""
|
||||
/><span>总用电量:2345v</span>
|
||||
</li>
|
||||
<li>
|
||||
<img
|
||||
src="../../../assets/images/usedEle/icon-month.png"
|
||||
alt=""
|
||||
/><span>总用电量:2345v</span>
|
||||
</li>
|
||||
<li>
|
||||
<img
|
||||
src="../../../assets/images/usedEle/icon-day.png"
|
||||
alt=""
|
||||
/><span>总用电量:2345v</span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="item">
|
||||
<div class="name">二号变频器</div>
|
||||
<ul>
|
||||
<li>
|
||||
<img
|
||||
src="../../../assets/images/usedEle/icon-all.png"
|
||||
alt=""
|
||||
/><span>总用电量:2345v</span>
|
||||
</li>
|
||||
<li>
|
||||
<img
|
||||
src="../../../assets/images/usedEle/icon-month.png"
|
||||
alt=""
|
||||
/><span>总用电量:2345v</span>
|
||||
</li>
|
||||
<li>
|
||||
<img
|
||||
src="../../../assets/images/usedEle/icon-day.png"
|
||||
alt=""
|
||||
/><span>总用电量:2345v</span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { defineProps } from "vue";
|
||||
defineProps({
|
||||
oneTransducer: Object,
|
||||
twoTransducer: Object,
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
#used-ele {
|
||||
width: 830px;
|
||||
height: 351px;
|
||||
color: aliceblue;
|
||||
position: absolute;
|
||||
top: 1711px;
|
||||
left: 68px;
|
||||
background-image: url(../../../assets/images/usedEle/bg.png);
|
||||
background-position: center center;
|
||||
background-size: 100%;
|
||||
background-repeat: no-repeat;
|
||||
padding: 21px 62px 37px 70px;
|
||||
.title {
|
||||
width: 96px;
|
||||
height: 42px;
|
||||
font-size: 32px;
|
||||
font-family: MicrosoftYaHei, MicrosoftYaHei;
|
||||
font-weight: bold;
|
||||
color: #38cafb;
|
||||
line-height: 42px;
|
||||
}
|
||||
.content {
|
||||
//border: white solid 1px;
|
||||
height: calc(100% - 30px);
|
||||
margin-top: 4px;
|
||||
display: flex;
|
||||
.item {
|
||||
flex: 1;
|
||||
font-size: 12px;
|
||||
.name {
|
||||
width: 150px;
|
||||
height: 40px;
|
||||
font-size: 30px;
|
||||
font-family: MicrosoftYaHei, MicrosoftYaHei;
|
||||
font-weight: bold;
|
||||
color: #ffffff;
|
||||
line-height: 40px;
|
||||
margin: 24px 0px 28px 0px;
|
||||
}
|
||||
ul {
|
||||
font-size: 14px;
|
||||
li {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
width: 270px;
|
||||
height: 37px;
|
||||
font-size: 28px;
|
||||
font-family: MicrosoftYaHei;
|
||||
color: #cb7c4b;
|
||||
line-height: 37px;
|
||||
margin-bottom: 25px;
|
||||
img {
|
||||
width: 29px;
|
||||
width: 33px;
|
||||
margin-right: 14px;
|
||||
}
|
||||
}
|
||||
& > :nth-child(2) {
|
||||
color: #4bcb6b;
|
||||
}
|
||||
& > :nth-child(3) {
|
||||
color: #4bcbbc;
|
||||
}
|
||||
}
|
||||
}
|
||||
& > :nth-child(2) {
|
||||
transform: translateX(25px);
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user