<!-- 
    filename: KilnInfo.vue
    author: liubin
    date: 2023-12-11 09:01:15
    description: 
-->

<template>
	<div class="kiln-info" style="flex: 1">
		<Container name="窑炉信息" size="small" style="">
			<div
				class="absolute"
				style="
					padding: 12px;
					display: grid;
					grid-template-columns: repeat(2, 1fr);
					grid-auto-rows: auto;
					gap: 8px;
				">
				<ShadowRect v-for="info in kilnInfo" :key="info.name" :rounded="false">
					<span
						style="
							font-size: 16px;
							line-height: 1.45;
							flex: 1.2;
							text-align: right;
							padding-right: 8px;
							letter-spacing: 1px;
						">
						{{ info.name }}
					</span>
					<span style="font-size: 16px; line-height: 1.45; flex: 1">
						{{ info.value }}
						<!-- {{ Math.floor(Math.random() * 100) }}Hz -->
					</span>
				</ShadowRect>
			</div>
		</Container>
	</div>
</template>

<script>
import Container from '../components/Container.vue';
import ShadowRect from '../components/ShadowRect.vue';
export default {
	name: 'KilnInfo',
	components: { Container, ShadowRect },
	props: {},
	data() {
		return {
			kilnInfo: [
				{ name: '窑炉压力', value: '83Kpa' },
				{ name: '循环水温度', value: '53℃' },
				{ name: '循环水流量', value: '23m³/h' },
				{ name: '循环水压力', value: '33Kpa' },
				{ name: '助燃风压力', value: '12Kpa' },
				{ name: '碹顶加权温度', value: '32℃' },
				{ name: '压缩气压力', value: '83Kpa' },
				{ name: '融化加权温度', value: '123℃' },
			],
		};
	},
	computed: {},
	methods: {},
};
</script>

<style scoped lang="scss">
.kiln-info {
}
</style>
