75 lines
1.4 KiB
Vue
75 lines
1.4 KiB
Vue
<template>
|
|
<!-- 窑炉运行时间 -->
|
|
<Container usage="NumberOrDate">
|
|
<SubContainer title="窑炉运行时间" icon="clock" padding="17px">
|
|
<div class="flex flex-col">
|
|
<div class="time flex flex-center">
|
|
<DigitalBox
|
|
class="time--item"
|
|
v-for="(item, index) in time"
|
|
:key="index"
|
|
:value="item"
|
|
/>
|
|
</div>
|
|
<div class="text">窑炉运行时间</div>
|
|
</div>
|
|
</SubContainer>
|
|
</Container>
|
|
</template>
|
|
|
|
<script>
|
|
import Container from "../layout/Container.vue";
|
|
import SubContainer from "../layout/SubContainer.vue";
|
|
import DigitalBox from "../common/DigitalBox.vue";
|
|
|
|
export default {
|
|
name: "KilnRuntime",
|
|
components: { Container, SubContainer, DigitalBox },
|
|
props: {},
|
|
data() {
|
|
return {
|
|
time: "2202天55时",
|
|
};
|
|
},
|
|
};
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
@import "../../assets/styles/functions";
|
|
|
|
.time {
|
|
// background: #eee;
|
|
margin: 12px 0;
|
|
}
|
|
|
|
.flex-center {
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.time--item:not(:last-child) {
|
|
margin-right: 8px;
|
|
}
|
|
|
|
.text {
|
|
padding: 12px 0;
|
|
text-align: center;
|
|
font-size: 23px;
|
|
letter-spacing: 4px;
|
|
position: relative;
|
|
user-select: none;
|
|
}
|
|
|
|
.text::after {
|
|
content: "";
|
|
display: block;
|
|
position: absolute;
|
|
left: 10%;
|
|
bottom: 16px;
|
|
height: 3px;
|
|
width: 80%;
|
|
/* 渐变色 */
|
|
background: linear-gradient(to left, #8ae7f800, #6fe2fff0, #52cbef00);
|
|
}
|
|
</style>
|