lb 1 год назад
Родитель
Сommit
d8f97dd8f4
2 измененных файлов: 48 добавлений и 11 удалений
  1. +37
    -3
      src/components/boxes/KilnRuntime.vue
  2. +11
    -8
      src/components/layout/Main.vue

+ 37
- 3
src/components/boxes/KilnRuntime.vue Просмотреть файл

@@ -1,14 +1,33 @@
<template>
<!-- 窑炉运行时间 -->
<div></div>
<Container usage="NumberOrDate">
<SubContainer title="窑炉运行时间" icon="clock">
<div class="flex flex-col">
<div class="time">
<div class="time--item" v-for="(item, index) in time" :key="index">
{{ item }}
</div>
</div>
<div class="text">
窑炉运行时间
</div>
</div>
</SubContainer>
</Container>
</template>

<script>
import Container from "../layout/Container.vue";
import SubContainer from "../layout/SubContainer.vue";

export default {
name: "KilnRuntime",
components: { Container, SubContainer },
props: {},
data() {
return {};
return {
time: "2202天55时",
};
},
created() {},
mounted() {},
@@ -16,4 +35,19 @@ export default {
};
</script>

<style scoped></style>
<style scoped>

.time--item {
color: white;
/* background: ''; */
}

.text {}

.text::after{
content: '';
display: block;
/* 渐变色 */
/* background: khaki; */
}
</style>

+ 11
- 8
src/components/layout/Main.vue Просмотреть файл

@@ -1,21 +1,24 @@
<template>
<main>
main content
main content
<AreaOne />
<Container :usage="'NumberOrDate'" />
<!-- <Container :usage="'NumberOrDate'" />
<Container :usage="'Table'" />
<Container :usage="'Charts'" />
<Container :usage="'NumberAndChart'" />
</main>
<Container :usage="'NumberAndChart'" /> -->

<KilnRuntime />
</main>
</template>

<script>
import AreaOne from '../isolate-area-1/Area.vue'
import Container from './Container.vue'
import KilnRuntime from "../boxes/KilnRuntime.vue";
import AreaOne from "../isolate-area-1/Area.vue";
// import Container from './Container.vue'

export default {
name: "Main",
components: { AreaOne, Container },
components: { AreaOne, KilnRuntime },
props: {},
data() {
return {};
@@ -27,7 +30,7 @@ export default {
</script>

<style scoped lang="scss">
@import '../../assets/styles/functions';
@import "../../assets/styles/functions";

main {
height: 1px;


Загрузка…
Отмена
Сохранить