init commit

This commit is contained in:
lb
2023-05-06 15:55:27 +08:00
commit bf70872359
26 changed files with 6048 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
<template>
<!-- line chart -->
<div></div>
</template>
<script>
export default {
name: "BarChart",
props: {},
data() {
return {};
},
created() {},
mounted() {},
methods: {},
};
</script>
<style scoped></style>

View File

@@ -0,0 +1,35 @@
<template>
<!-- 带框的 container -->
<div class="outter-container" :style="{ padding, backgroundColor }">
<slot />
</div>
</template>
<script>
export default {
name: "Container",
props: {
padding: {
type: String,
default: '10px 10px 10px 10px'
},
backgroundColor: {
type: String,
default: ''
}
},
data() {
return {};
},
created() {},
mounted() {},
methods: {},
};
</script>
<style scoped>
.outter-container {
padding: 0;
background: #ccc;
}
</style>

View File

@@ -0,0 +1,21 @@
<template>
<div class="draggable-container">
<!-- draggable -->
<slot />
</div>
</template>
<script>
export default {
name: "DragableContainer",
props: {},
data() {
return {};
},
created() {},
mounted() {},
methods: {},
};
</script>
<style scoped></style>

View File

@@ -0,0 +1,19 @@
<template>
<!-- line chart -->
<div></div>
</template>
<script>
export default {
name: "LineChart",
props: {},
data() {
return {};
},
created() {},
mounted() {},
methods: {},
};
</script>
<style scoped></style>

View File

@@ -0,0 +1,23 @@
<template>
<div></div>
</template>
<script>
export default {
name: "SmallBox",
props: {
title: {
type: String,
default: '水', // 水 电 气
}
},
data() {
return {};
},
created() {},
mounted() {},
methods: {},
};
</script>
<style scoped></style>

View File

@@ -0,0 +1,23 @@
<template>
<div></div>
</template>
<script>
export default {
name: "SmallBox2",
props: {
title: {
type: String,
default: '车间温度', // 车间温度 当前火向 换火时间 剩余时间
}
},
data() {
return {};
},
created() {},
mounted() {},
methods: {},
};
</script>
<style scoped></style>

View File

@@ -0,0 +1,19 @@
<template>
<!-- 引入 el-table -->
<div></div>
</template>
<script>
export default {
name: "SmallTable",
props: {},
data() {
return {};
},
created() {},
mounted() {},
methods: {},
};
</script>
<style scoped></style>

View File

@@ -0,0 +1,35 @@
<template>
<!-- small-title -->
<div class="small-title">
<template v-if="type === 0">
<span>000</span>
<span>设计单位中建材智能自动化研究院</span>
<span>000</span>
</template>
<template v-if="type === 1">
<span>000</span>
<span>23&nbsp;&nbsp;2023.02.27星期一&nbsp;&nbsp;02:23:23</span>
<span>000</span>
</template>
</div>
</template>
<script>
export default {
name: "SmallTitle",
props: {
type: {
type: Number,
default: 0, // 1
},
},
data() {
return {};
},
created() {},
mounted() {},
methods: {},
};
</script>
<style scoped></style>

View File

@@ -0,0 +1,46 @@
<template>
<!-- 带标题的 container -->
<div class="sub-container" :style="{ padding }">
<div class="title">
<span></span>
<span>{{ title }}</span>
</div>
<div class="content">
<slot />
</div>
</div>
</template>
<script>
export default {
name: "SubContainer",
props: {
title: {
type: String,
default: "Default Title",
},
icon: {
type: String,
default: "default",
},
padding: {
type: String,
default: "10px",
},
},
data() {
return {};
},
created() {},
mounted() {},
methods: {},
};
</script>
<style scoped>
.sub-container {}
.title {
margin-bottom: 12px;
}
</style>

View File

@@ -0,0 +1,37 @@
<template>
<div class="tiny-table">
<table>
<thead>
<tr>
<th></th>
<th>原板宽</th>
<th>净板宽</th>
<th>玻璃厚度</th>
</tr>
</thead>
<tbody>
<tr>
<td>A线</td>
<td>3300mm</td>
<td>2800mm</td>
<td>2mm</td>
</tr>
</tbody>
</table>
</div>
</template>
<script>
export default {
name: "TinyTable",
props: {},
data() {
return {};
},
created() {},
mounted() {},
methods: {},
};
</script>
<style scoped></style>