<script setup lang="ts">
import Header from "./Header.vue"
import Aside from "./Aside.vue"
</script>

<template>
  <div class="common-layout">
    <el-container style="height: 100%;">
     <el-header class="header">
        <Header></Header>
      </el-header>
      <el-container>
        <el-aside width="200px" class="aside">
          <Aside></Aside>
        </el-aside>
        <el-container>
          <el-main class="main">
            <router-view></router-view>
          </el-main>
        </el-container>
      </el-container>
    </el-container>
  </div>
</template>

<style scoped>
.common-layout {
    height: 100%;
    width: 100%;
    position: fixed;
}
.main {
  width: 100%;
  padding: 2px;
  background-color: #F7F7F7;
}
.header {
  width: 100%;
  height: 8%;
}
.aside {
  width: 12%;
  height: 100%;
}
</style>