42 lines
933 B
Vue
42 lines
933 B
Vue
<!--
|
|
filename: index.vue
|
|
author: liubin
|
|
date: 2023-09-08 13:30:13
|
|
description: 放在这中间的小组件
|
|
-->
|
|
|
|
<template>
|
|
<div class="yx-dark-widget">
|
|
<YxDarkWidgetContainer icon="1" title="车间温度" value="27℃" />
|
|
<YxDarkWidgetContainer icon="2" title="当前火向" value="东火" />
|
|
<YxDarkWidgetContainer icon="3" title="换火时间" value="12:23:33" />
|
|
<YxDarkWidgetContainer icon="4" title="剩余时间" value="6h" />
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import YxDarkWidgetContainer from "@/components/yx-dark/widget/widgetContainer.vue";
|
|
|
|
export default {
|
|
name: "YxDarkWidget",
|
|
components: { YxDarkWidgetContainer },
|
|
props: {},
|
|
data() {
|
|
return {};
|
|
},
|
|
computed: {},
|
|
methods: {},
|
|
};
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
.yx-dark-widget {
|
|
display: flex;
|
|
gap: 16px;
|
|
position: absolute;
|
|
top: 80px;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
}
|
|
</style>
|