<template>
  <div id="app">
    <el-container class="container">
      <el-aside width="200px" style="background-color: #545c64">
        <leftAside></leftAside>
      </el-aside>
      <el-container>
        <el-header style="text-align: left; font-size: 20px">
          <topHead></topHead>
        </el-header>

        <el-main class="main">
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>
<script>
import leftAside from "@/components/leftAside.vue";
import topHead from "@/components/topHead.vue";
export default {
  components: { leftAside, topHead },
  data() {
    return {};
  },
};
</script>

<style lang="less">
html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}
#app {
  width: 100%;
  height: 100%;
  .container {
    width: 100%;
    height: 100%;
    .main {
      width: 100%;
      height: calc(~"100% - 60px");
      overflow-y: scroll;
    }
  }
}
.el-header {
  background-color: #b3c0d1;
  color: #333;
  line-height: 60px;
}
</style>