<template>
  <div class="left-wai-box">

    <div class="left-box rightleft">
      <div class="left-bg">
        <div class="bgt"></div>
      </div>
      <div class="activity-left-box">
        <div class="activity-tab">
          <el-tabs v-model="activeName" @tab-click="handleClick" :stretch="true">
            <el-tab-pane label="预案查看" name="first" />
            <el-tab-pane label="活动历史档案" name="second" />
            <el-tab-pane label="活动纪要" name="third" />
          </el-tabs>
        </div>
        <div class="activity-info">
          <div class="activity-items" v-for="item in 20">
            <div>XXXXX活动预案</div>
            <i class="el-icon-arrow-right"></i>
          </div>
        </div>
      </div>
    </div>

  </div>
</template>
<script>
export default {
  name: 'mapLeftContent',
  data() {
    return {
      activeName: "first",
      tableOne: [
        {

        }
      ],
    }
  },

  methods: {
    handleClick(e){
      if (this.activeName == "first") {
      } else if (this.activeName == "second") {
      } else if (this.activeName == "third") {
      }
    },
  },
  mounted() {
  },
}
</script>
<style lang="scss" scoped>
.left-wai-box {
  position: absolute;
  height: 100%;
  top: 0px;
  left: 0px;
}

.left-box {
  height: 100%;



  .left-list-title {
    height: 100%;
    .Echarts{
      height: 40%;
      width: 100%;
    }
    .EchartsTop {
  
    }

    .EchartsTopTow {
      
    }
  }

  .activity-left-box {
    padding: 10px 20px;
    height: 100%;
    ::v-deep .el-tabs {
      .el-tabs__header {
        margin: 0;
        .el-tabs__nav {
          width: 100%;
        }
        // 默认字体
        .el-tabs__item {
          color:#ffffff;
        }
        // 选中字体
        .el-tabs__item.is-active {
          color: #1890ff;//选中
          opacity: 1;
        }
        // 去除下划线
        .el-tabs__nav-wrap::after {
          position: static !important;
        }
        // 修改下划线颜色
        .el-tabs__active-bar {
          background-color: #1890ff;
        }
      }
    }

    .activity-info {
      margin: 20px 0px;
      display: grid;
      grid-template-columns: 1fr;
      row-gap: 10px;
      height: calc(100% - 80px);
      overflow: scroll;
      .activity-items {
        padding: 10px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-radius: 5px;
        background-color: #2d609c;
        cursor: pointer;
        
        div {
          color: #fff;
        }
        i {
          color: #fff;
          font-size: 25px;
        }
      }
    }
    .activity-info::-webkit-scrollbar-track {
      background: rgba(0, 0, 0, 0.1);
      border-radius: 0;
    }

    .activity-info::-webkit-scrollbar {
      -webkit-appearance: none;
      width: 6px;
      height: 3px;
    }

    .activity-info::-webkit-scrollbar-thumb {
      border-radius: 5px;
      background: rgba(7, 127, 255, 0.5);
      transition: color 0.2s ease;
    }
  }


}
</style>