<template>
  <div>
    <div class="row header">
      <span class="type">序号</span>
      <span class="count">建筑名称</span>
      <span class="time"
        >建筑高度
        <img src="../../../assets/images/Group 1321314644.png" alt="" />
      </span>
      <span class="unit"
        >建筑面积
        <img src="../../../assets/images/Group 1321314644.png" alt="" />
      </span>
    </div>
    <VueSeamlessScroll :data="list" :class-option="classOption" class="warp">
      <ul class="item">
        <li class="row" v-for="(item, index) in list" :key="index">
          <span class="type">{{ index + 1 }}</span>
          <span class="count">{{ item[0] }}</span>
          <span class="time">{{ item[1] }}</span>
          <span class="unit">{{ item[2] }}</span>
        </li>
      </ul>
    </VueSeamlessScroll>
  </div>
</template>

<script>
import VueSeamlessScroll from "vue-seamless-scroll";
export default {
  name: "BuildingStatistics",
  components: {
    VueSeamlessScroll,
  },
  data() {
    return {
      list: [
        ["国泰艺术中心", "59m", "200m"],
        ["人民大礼堂", "59m", "200m"],
        ["重庆大剧院", "59m", "200m"],
        ["环球艺术中心", "59m", "200m"],
        ["重庆大剧院", "59m", "200m"],
        ["国泰艺术中心", "59m", "200m"],
        ["国泰艺术中心", "59m", "200m"],
        ["国泰艺术中心", "59m", "200m"],
        ["国泰艺术中心", "59m", "200m"],
      ],
    };
  },
  computed: {
    classOption() {
      return {
        singleHeight: 51,
      };
    },
  },
};
</script>
<style scoped lang="less">
.warp {
  height: 521px;
  margin: 0 auto;
  overflow: hidden;
  .item {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    cursor: pointer;
  }
}

.header {
  color: #61DBFF !important;
  height: 38px !important;
  background-color: rgba(0, 163, 255, 0.3) !important;
  margin-top: 2px;
  letter-spacing: 1px;
  .is_notice {
    line-height: 19px;
    font-size: 10px;
  }
}

li.row > span {
  text-align: center;
  font-size: 14x;
  position: relative;
  display: inline-block;
}

li.row {
  //   border-bottom: 1px dotted #1d525f;
  box-sizing: border-box;
}

.row,
li,
a {
  display: block;
  height: 46px;
  line-height: 46px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  background-color: rgba(0, 0, 0, 0.2);
  color: #fff;
  margin-top: 5px;
  .time,
  .type,
  .count,
  .unit {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .time {
    flex: 0.2;
  }
  .type {
    flex: 0.12;
  }
  .count {
    flex: 0.2;
  }
  .unit {
    flex: 0.35;
  }
}
</style>
