<template>
  <div class="infos">
    <!-- <div
      class="info-item"
      v-for="(item, index) in infoList"
      :key="index"
    >
      <span class="item-val">{{ item.val }}</span>
      <span class="item-title">{{ item.name }}</span>
    </div> -->
  </div>
</template>
<script lang="ts">
import { reactive } from 'vue'
export default {
  setup() {
    const infoList = reactive([
      {
        name: '温度',
        val: '12',
      },
      {
        name: '湿度',
        val: '45',
      },
      {
        name: '烟感',
        val: '12',
      },
      {
        name: '水浸',
        val: '12',
      },
      {
        name: '消防',
        val: '67',
      },
      {
        name: '供电',
        val: '27',
      },
    ])
    return {
      infoList
    }
  }
}
</script>
<style lang="scss" scoped>
  .infos {
    margin-top: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-around;
    .info-item {
      display: flex;
      flex-direction: column;
      text-align: center;
      .item-title {
        width: 100%;
        font-weight: bold;
        padding: 4px 50px;
        letter-spacing: 1px;
        line-height: 18px;
        text-align: center;
        color: #badeff;
        font-size: 13px;
        background: linear-gradient( to right, transparent, rgba(0, 134, 255, 1), transparent );
        font-style: oblique;
      }
      .item-val {
        font-size: 30px;
        font-weight: bold;
        width: 100%;
        text-align: center;
        text-shadow: 2px 2px 15px rgba(255, 255, 255, 0.7);
        margin-bottom: 10px;
        letter-spacing: 1px;
      }
    }
  }
</style>