85 lines
1.5 KiB
Vue
85 lines
1.5 KiB
Vue
<template>
|
|
<!-- 窑炉运行时间 -->
|
|
<Container usage="NumberOrDate">
|
|
<SubContainer title="窑炉运行时间" icon="clock" padding="34px">
|
|
<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: adjust(12px) 0;
|
|
}
|
|
|
|
.flex-center {
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.time--item:not(:last-child) {
|
|
margin-right: adjust(8px);
|
|
}
|
|
|
|
.text {
|
|
padding: adjust(12px) 0;
|
|
text-align: center;
|
|
font-size: adjust(23px);
|
|
letter-spacing: adjust(4px);
|
|
position: relative;
|
|
z-index: 10;
|
|
user-select: none;
|
|
}
|
|
|
|
.text::after {
|
|
content: "";
|
|
display: block;
|
|
position: absolute;
|
|
z-index: 0;
|
|
left: 12%;
|
|
bottom: adjust(10px);
|
|
height: adjust(4px);
|
|
width: 76%;
|
|
/* 渐变色 */
|
|
background: radial-gradient(
|
|
ellipse at center,
|
|
#6fe2ff,
|
|
#6fe2ffc0,
|
|
#52cbef80,
|
|
#52cbef30,
|
|
#52cbef00,
|
|
transparent
|
|
);
|
|
}
|
|
</style>
|