<template>
  <div class="personal">
    <div class="content-wrapper">
      <div class="main">
        <el-tabs :tab-position="'left'" type="card" class="wrapper">
          <el-tab-pane label="我的点赞">
            <Like />
          </el-tab-pane>
          <el-tab-pane label="我的收藏">
            <Collection />
          </el-tab-pane>
          <el-tab-pane label="浏览记录">
            <Footprint />
          </el-tab-pane>
          <el-tab-pane label="个人信息"><Info /></el-tab-pane>
        </el-tabs>
      </div>
    </div>
    <!-- <Footer /> -->
  </div>
</template>

<script>
import { relateRelics, exhibitions } from "@/mock/mock";
import Like from "./components/Like.vue";
import Collection from "./components/Collection.vue";
import Footprint from "./components/Footprint.vue";
import Info from "./components/Info.vue";
import NavBar from "@/components/NavBar";
import Footer from "@/components/Footer";
export default {
  components: {
    Like,
    Collection,
    Footprint,
    Info,
    NavBar,
    Footer,
  },
  name: "Personal",
  data() {
    return {
      relateRelics: relateRelics,
      exhibitions: exhibitions,
      list: ["我的点赞", "我的收藏", "浏览记录", "个人信息"],
    };
  },
  methods: {
    handleSizeChange(value) {
      console.log("handleSizeChange", value);
    },
    handleCurrentChange(value) {
      console.log("handleCurrentChange", value);
    },
  },
};
</script>

<style lang='scss' scoped>
$blue: #2069c4;
.personal {
  // width: 1200px;
  margin: auto;
  .content-wrapper {
    background-color: #fff;
    align-items: flex-start;
    .main {
      padding: 40px;
    }
  }
}
::v-deep {
  .el-tabs__header .is-left {
    width: 200px;
    border: none;
  }
}
::v-deep {
  .el-tabs--left.el-tabs--card .el-tabs__item.is-left {
    color: #333;
    background: #f7f7f7;
    display: flex;
    justify-content: center;
    border: none;
  }
}
::v-deep {
  .el-tabs--left.el-tabs--card .el-tabs__item.is-active:not(.is-top) {
    background-color: #eeeeee;
    color: $blue;
    font-weight: bold;
  }
}

::v-deep .el-tabs__active-bar {
  background-color: #2069c4;
}

::v-deep {
  .el-tabs__item:hover,
  .el-tabs__item.is-active {
    color: #2069c4;
  }
}
// ::v-deep{
//   .el-tabs__nav.is-top{
//     display: flex;
//   }
// }
// ::v-deep{
//   .el-tabs__item.is-top.is-active{
//     width: 100px;
//     display: flex;
//     justify-content: center;
//   }

//   .el-tabs__active-bar.is-top{
//     width: 100px !important;
//   }
// }
</style>