<template>
  <div class="learn-content-container">
    <Header title="学习内容" />
    <div class="content">
      <van-tabs type="card" v-model="activeTab">
        <van-tab title="启用列表">
          <content-tab :active="activeTab" :proId="proId" />
        </van-tab>
        <van-tab title="禁用列表">
          <content-tab :active="activeTab" :proId="proId" />
        </van-tab>
      </van-tabs>
    </div>
  </div>
</template>

<script>
import contentTab from "./contentTab.vue";
import Header from "@/components/Header/index.vue";
export default {
  components: { Header, contentTab },
  data() {
    return {
      activeTab: 0,
      proId: "",
    };
  },
  mounted() {
    this.proId = this.$route.query.id;
  },
  methods: {},
};
</script>

<style lang="scss" scoped>
.learn-content-container {
  width: 100%;
  height: 100vh;
  padding: 60px 16px 16px;
  box-sizing: border-box;
  .content {
    height: calc(100vh - 66px);
  }
  ::v-deep .van-tabs--card > .van-tabs__wrap {
    height: 40px;
    .van-tabs__nav {
      background: rgba(164, 21, 29, 0.1);
    }
    .van-tabs__nav--card {
      margin: 0;
      height: 40px;
      border-top-left-radius: 8px;
      border-top-right-radius: 8px;
      border: 1px solid #a4151d;
      .van-tab {
        color: #a4151d;
        border-right: 1px solid #a4151d;
        &.van-tab--active {
          color: #fff;
          background-color: #a4151d;
        }
        &:last-child {
          border-top-right-radius: 8px;
        }
        &:first-child {
          border-top-left-radius: 8px;
        }
      }
    }
  }
}
</style>