Files
Nexior/src/layouts/Console.vue
T

82 lines
1.2 KiB
Vue

<template>
<div class="container">
<el-aside class="aside">
<navigator />
</el-aside>
<el-header class="header">
<navigator />
</el-header>
<el-main class="main"> <router-view /> </el-main>
</div>
</template>
<script lang="ts">
import { defineComponent } from 'vue';
import Navigator from '@/components/console/Navigator.vue';
import { ElMain, ElAside } from 'element-plus';
export default defineComponent({
name: 'LayoutConsole',
components: {
Navigator,
ElMain,
ElAside
}
});
</script>
<style lang="scss" scoped>
.container {
display: flex;
height: 100vh;
width: 100%;
max-width: initial;
}
.header {
padding: 0;
}
$width: 300px;
.aside {
width: $width;
height: 100%;
background-color: white;
padding: 15px;
padding-top: 50px;
}
.header {
display: none;
}
.main {
width: calc(100% - $width);
background-color: #f3f5f6;
height: 100%;
}
@media (max-width: 800px) {
.container {
display: block;
}
.aside {
display: none;
}
.header {
display: block;
background: white;
padding: 15px;
padding-top: 50px;
height: fit-content;
overflow: hidden;
.logo {
width: 100%;
}
}
.main {
width: 100%;
}
}
</style>