<template>
  <div class="homeWrap" v-loading="loading">
    <el-container>
      <Menu></Menu>
      <el-main>
        <HeaderCom @setLoding="setLoding"></HeaderCom>
        <!-- <MenuTag></MenuTag> -->
        <!-- 主体内容-->
        <!-- <el-scrollbar>
          <ul>
            <li v-for="(item, index) in history" :key="index">{{ item }}</li>
          </ul>
        </el-scrollbar> -->
        <transition name="slide-fade">
          <div class="main-content">
            <router-view />
          </div>
        </transition>
      </el-main>
    </el-container>
  </div>
</template>

<script>
import HeaderCom from "@/components/HeaderCom.vue";
import Menu from "./components/Menu";
import MenuTag from "@/components/MenuTag.vue";

export default {
  components: {
    Menu,
    HeaderCom,
    MenuTag,
  },
  data() {
    return {
      // history: ["11", "22", "33"],
      loading: false,
    };
  },
  mounted() {},
  created() {},
  methods: {
    setLoding(state) {
      this.loading = state;
    },
  },
};
</script>

<style lang="scss" scoped>
.homeWrap {
  height: 100vh;
  .el-container {
    // height: 100%;
    min-height: 88vh;
  }
  .el-main {
    min-width: 800px;
    // min-height: 88vh;
    height: 100%;
    background-color: #f7f7f8;
    padding: 0;
    .main-content {
      height: 100%;
    }
  }
}

.slide-fade-enter-active {
  transition: all 0.3s ease-out;
}

.slide-fade-leave-active {
  transition: all 0.5s cubic-bezier(1, 0.5, 0.6, 1);
}

.slide-fade-enter-from,
.slide-fade-leave-to {
  transform: translateX(50px);
  opacity: 0;
}
</style>
