<template>
  <div class="wrapper">
    <v-head></v-head>
    <layout-tabs></layout-tabs>

    <div class="content-box">
      <div class="content">
        <!-- <transition name="move" mode="out-in"> -->
        <keep-alive :include="caches">
          <router-view v-if="isRenderTab"></router-view>
        </keep-alive>
        <!-- </transition> -->
      </div>
    </div>
  </div>
</template>

<script>
import vHead from "./header.vue";
import LayoutTabs from "./LayoutTabs.vue";
import { mapState } from "vuex";
export default {
  data() {
    return {};
  },
  components: {
    vHead,
    LayoutTabs,
  },
  computed: {
    ...mapState("cache", ["caches"]),
    ...mapState(["isRenderTab"]),
  },
  created() {},
};
</script>
<style lang="less">
.wrapper {
  min-width: 1366px;
  color: #333;
  .content-box {
    position: absolute;
    left: 0px;
    right: 0;
    top: 92px;
    bottom: 0;
    //padding-bottom: 30px;
    -webkit-transition: left 0.3s ease-in-out;
    transition: left 0.3s ease-in-out;
    // background: @background-color-base;
    .content {
      width: 100%;
      height: 100%;
      //padding: 10px;
      overflow-y: auto;
      box-sizing: border-box;
    }
  }
}
</style>
