<template>
    <div class="warpper" style="background-color: #f8f8f8;">
        <div :class="bIniFrame?('router-style'+(toggleMenu? '':' toggle-left')):''" style="height: 100%;">
            <keep-alive :include="keepInclude">
                <router-view style="padding: 0 20px 0 10px"></router-view>
            </keep-alive>
        </div>
    </div>
</template>
<script>
  import { mapGetters } from 'vuex'
  export default {
    name: 'index',
    data() {
      return {
        sideBarColor: 'red',
        miniSideBar: false,
        sideBarBg: true,
        sideBarImg: 1,
        bIniFrame: false
      }
    },
    computed: {
      ...mapGetters([
        'activeTabIndex',
        'headerTabs',
        'toggleMenu',
        'keepInclude'
      ])
    },
    mounted() {
      this.bIniFrame = self === top
    },
    methods: {
    }
  }
</script>

<style rel="stylesheet/scss" lang="scss">
.warpper {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: left;
  .router-style {
    position: absolute;
    left: 230px;
    top: 120px;
    right: 0;
    bottom: 0;
    padding: 0px;
    margin: 0 0 10px 0;
    box-sizing: border-box;
    overflow-y: auto;
  }
  .tab-style {
    overflow: hidden;
    display: flex;
    flex-direction: row;
    // background-color:#EEEFF6;
    position: absolute;
    left: 230px;
    top: 70px;
    right: 0;
    margin: 0 10px 10px 0;
    box-sizing: border-box;
    .tab-style-nav {
      display: inline-block;
      white-space: nowrap;
      position: relative;
      transition: transform 0.3s;
      // border: 1px solid #DBDBDB;
      border-bottom: none;
      border-radius: 4px 4px 0 0;
      .tab-style-item {
        position: relative;
        padding: 0 20px;
        height: 40px;
        box-sizing: border-box;
        line-height: 40px;
        display: inline-block;
        list-style: none;
        font-size: 14px;
        font-weight: 500;
        border-bottom: 1px solid #eb4f52;
        // border-left: 1px solid #DBDBDB;
        transition: color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1),
          padding 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
        // .item-active-span{
        //   color: #409eff;
        // }
        .el-icon-close {
          position: relative;
          font-size: 12px;
          width: 0;
          height: 8px;
          vertical-align: middle;
          line-height: 9px;
          border-radius: 50%;
          overflow: hidden;
          top: -1px;
          right: -8px;
          transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
        }
        .el-icon-close-active {
          transform-origin: 100% 50%;
          text-align: center;
          width: 12px;
          transform: scale(0.9);
        }
        .el-icon-close:hover {
          height: 12px;
          line-height: 12px;
          border: 3px solid #e5e5ea;
          display: inline-block;
          background-color: #e5e5ea;
          content: "\E60F";
        }
      }
      /**/
      .item-active {
        border-bottom: 4px solid red;
        // background-color: #eee;
        color: #eb4f52;
      }
    }
    .tab-style-nonav {
      display: inline-block;

      border-bottom: 1px solid #eb4f52;
      width: 100%;
    }
  }
}
.table-style-left {
  left: 110px !important;
}
.toggle-left {
  left: 110px !important;
}
</style>
