<template>
  <div id="zhuanti">
    <el-row>
      <el-col :span="24" class="info">
        <el-tabs type="border-card">
          <el-tab-pane v-for="(item, index) in zhuantiList" :key="index">
            <span slot="label">{{ item.title }}</span>
            <el-col :span="24" class="list">
              <ul>
                <li class="zhuantiList" v-for="(tag, index) in item.children" :key="index">
                  <el-col :span="20" class="title textOver">{{ tag.title }}</el-col>
                  <el-col :span="4" class="date textOver">{{ tag.date }}</el-col>
                </li>
              </ul>
              <el-col class="more" :span="24"><el-link :underline="false">查看更多</el-link></el-col>
            </el-col>
          </el-tab-pane>
        </el-tabs>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: 'zhuanti',
  props: {
    zhuantiList: null,
  },
  components: {},
  data: () => ({}),
  created() {},
  computed: {},
  methods: {},
};
</script>

<style lang="less" scoped>
ul {
  padding: 0;
  margin: 0;
}
li {
  padding: 0;
  margin: 0;
  color: #999;
}
.info {
  padding: 20px;
  height: 300px;
  overflow: hidden;
}
/deep/.el-tabs--border-card {
  border: none;
  box-shadow: none;
}
/deep/.el-tabs--border-card > .el-tabs__header {
  background-color: transparent;
  border-bottom: none;
  margin: 0 0 10px 0;
}
/deep/.el-tabs--border-card > .el-tabs__header .el-tabs__item.is-active {
  color: #2c3350;
  border-right-color: transparent;
  border-left-color: transparent;
}
/deep/.el-tabs__item {
  padding: 0 15px 0 0;
  font-size: 22px;
  font-weight: bold;
}
/deep/.el-tabs--top.el-tabs--border-card > .el-tabs__header .el-tabs__item:nth-child(2) {
  padding-left: 0;
}
/deep/.el-tabs--border-card > .el-tabs__content {
  padding: 0;
}
.list {
  height: 220px;
  overflow: hidden;
}
.list ul {
  min-height: 30px;
  max-height: 180px;
  overflow: hidden;
  padding: 0 0 0 20px;
}
.list ul li {
  padding: 0 0 9px 0;
}
.list ul li .date {
  display: inline-block;
  width: 90px;
  text-align: left;
  font-size: 16px;
  color: #60626e;
}
.list ul li .title {
  display: inline-block;
  font-size: 16px;
  color: #60626e;
  width: 610px;
  margin: 0 20px 0 0;
}
.list ul li:hover .date {
  color: #215299;
}
.list ul li:hover .title {
  color: #215299;
}
.more {
  height: 30px;
  line-height: 25px;
  text-align: center;
  background: #f5f5f5;
}
.more .el-link {
  font-size: 16px;
  color: #60626e;
}
</style>
