<template>
  <div class="info-container">
    <div class="title">{{ tLang('device', '设备信息') }}</div>
    <div class="content">
      <div class="info-item" v-for="item of infoList">
        <span class="info-name">{{ item.name }}:</span>
        <span>{{ item.value }}</span>
      </div>
    </div>
  </div>
</template>

<script setup>

let infoList = [
    {name: '设备名称', value: '123456789'},
    {name: '机架号', value: '123456789'},
    {name: '最后保养', value: '123456789'},
]
</script>

<style lang="scss" scoped>
.title {
    width: 100%;
    height: 20px;
    line-height: 20px;
    font-size: 14px;
    color: #cfcfcf;

}

.content {
    width: 100%;
    height: calc(100% - 20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.info-container {
    width: 100%;
    height: 100%;
    .content {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      .info-item {
        width: 100%;
        height: 26px;
        margin: 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        .info-name {
          font-size: 12px;
          color: #999898;
        }
        span {
          margin: 0 10px;
        }
      }
    }
}
</style>
