<template>
  <div class="home-container">

    <!-- 左侧菜单 -->
    <div class="side-bar">
      <side-bar></side-bar>
    </div>

    <!-- 主体 -->
    <div class="main-container">

      <div class="nav-bar">

      </div>

      <div class="content-container">
        <router-view></router-view>
      </div>

    </div>

  </div>
</template>
<script>
import SideBar from "@/components/SideBar";
export default {
  name: "Home",
  components: {
    SideBar
  },
  data() {
    return {

    };
  },
  //可访问data属性
  created() {

  },
  //计算集
  computed: {

  },
  //方法集
  methods: {

  },
}
</script>
<style lang="scss" scoped>
.home-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  overflow: hidden;

  .side-bar {
    width: 260px;
    height: 100%;
  }

  .main-container {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;

    .nav-bar {
      width: 100%;
      height: 70px;
      border-bottom: 1px solid #EEEEEE;
      box-sizing: border-box;
    }

    .content-container {
      width: 100%;
      height: calc(100% - 70px);
      padding: 16px;
      box-sizing: border-box;
      overflow-y: auto;
      overflow-x: hidden;
    }
  }
}
</style>
