<template>
  <div class="mic-fire">
    <div class="table">
      <div>
        <p>地址</p>
        <p>人数</p>
        <p>设备</p>
      </div>
      <div v-for="(item, i) in list" :key="i">
        <p>{{item.address}}</p>
        <p>{{item.person}}</p>
        <p>{{item.device}}</p>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'MicFire',
  data() {
    return {
      list: [
        {address: '南京东路123号', person: 12, device: '灭火器、水泵'},
        {address: '南京东路123号', person: 9, device: '灭火器、水泵'},
        {address: '南京东路123号', person: 12, device: '灭火器、水泵'},
        {address: '南京东路123号', person: 9, device: '灭火器、水泵'},
        {address: '南京东路123号', person: 12, device: '灭火器、水泵'},
        {address: '南京东路123号', person: 9, device: '灭火器、水泵'},
      ],
    }
  },
}
</script>

<style lang="stylus" scoped>
.mic-fire
  .table
    border .01rem solid $cardFontColor
    >div
      display flex
      background $color-map(.15)
      &:first-child
        background $color-map()
      &+div
        border-top inherit
      p
        flex 1
        line-height 2
        padding 0 .05rem
        &+p
          border-left .01rem solid $cardFontColor
</style>
