<template>
    <div class="dustGlzb">
        <div class="dust-gl-box" v-for="(item, index) in dustZbList" :key="index">
            <div class="gl-box-content">
                <span class="gl-label">{{ item.label }}</span>
                <span class="gl-val">{{ item.val }}</span>
            </div>
        </div>
    </div>
</template>

<script lang="ts" setup>
import { reactive } from 'vue'

let dustZbList = reactive([
    { id: 0, label: '最高温度(℃)', val: 12 },
    { id: 1, label: '环境湿度(%)', val: 12 },
    { id: 2, label: '风速(m/s)', val: 12 },
    { id: 3, label: '采煤机', val: 12 },
    { id: 4, label: '水压(Mpa)', val: 12 },
    { id: 5, label: '水阀', val: 12 },
])

</script>

<style lang="less" scoped>
.dustGlzb {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-wrap: wrap;

    .dust-gl-box {
        width: 50%;
        height: 66px;
        display: flex;
        justify-content: center;
        align-items: center;

        .gl-box-content {
            position: relative;
            width: 254px;
            height: 100%;
            .gl-label{
                position: absolute;
                left: 74px;
                top: 50%;
                transform: translate(0,-50%);
                color: #fff;
            }
            .gl-val{
                position: absolute;
                right: 36px;
                top: 50%;
                transform: translate(0,-40%);
                font-family: 'douyuFont';
                color: #1fb3f7;
            }
        }

        &:nth-child(1) .gl-box-content {
            background: url('../../../../../assets/images/dust/dusthome/gl-1.png') no-repeat center;
            background-size: 100% 100%;
        }

        &:nth-child(2) .gl-box-content {
            background: url('../../../../../assets/images/dust/dusthome/gl-2.png') no-repeat center;
            background-size: 100% 100%;
        }

        &:nth-child(3) .gl-box-content {
            background: url('../../../../../assets/images/dust/dusthome/gl-3.png') no-repeat center;
            background-size: 100% 100%;
        }

        &:nth-child(4) .gl-box-content {
            background: url('../../../../../assets/images/dust/dusthome/gl-4.png') no-repeat center;
            background-size: 100% 100%;
        }

        &:nth-child(5) .gl-box-content {
            background: url('../../../../../assets/images/dust/dusthome/gl-5.png') no-repeat center;
            background-size: 100% 100%;
        }

        &:nth-child(6) .gl-box-content {
            background: url('../../../../../assets/images/dust/dusthome/gl-6.png') no-repeat center;
            background-size: 100% 100%;
        }
    }
}</style>