2022-04-15 14:24:30 +00:00
|
|
|
<template>
|
|
|
|
<div id="mainWrapper">
|
2022-04-15 17:00:08 +00:00
|
|
|
<Sidebar/>
|
|
|
|
<MainContent/>
|
|
|
|
<ExtraPanel/>
|
|
|
|
<ModalWrapper/>
|
2022-04-15 14:24:30 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2022-04-15 17:00:08 +00:00
|
|
|
<script lang="ts" setup>
|
|
|
|
import { defineAsyncComponent } from 'vue'
|
2022-04-15 14:24:30 +00:00
|
|
|
|
2022-04-15 17:00:08 +00:00
|
|
|
const Sidebar = defineAsyncComponent(() => import('@/components/layout/main-wrapper/sidebar.vue'))
|
|
|
|
const MainContent = defineAsyncComponent(() => import('@/components/layout/main-wrapper/main-content.vue'))
|
|
|
|
const ExtraPanel = defineAsyncComponent(() => import('@/components/layout/main-wrapper/extra-panel.vue'))
|
2022-04-20 12:38:38 +00:00
|
|
|
const ModalWrapper = defineAsyncComponent(() => import('@/components/layout/ModalWrapper.vue'))
|
2022-04-15 14:24:30 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
#mainWrapper {
|
|
|
|
display: flex;
|
|
|
|
flex: 1;
|
|
|
|
height: 0; // fix a flex-box bug https://github.com/philipwalton/flexbugs/issues/197#issuecomment-378908438
|
|
|
|
overflow: hidden;
|
|
|
|
}
|
|
|
|
</style>
|