koel/resources/assets/js/components/layout/main-wrapper/index.vue
2024-07-06 17:44:57 +02:00

28 lines
769 B
Vue

<template>
<div id="mainWrapper">
<SideBar />
<MainContent />
<ExtraDrawer />
<ModalWrapper />
</div>
</template>
<script lang="ts" setup>
import { defineAsyncComponent } from 'vue'
import SideBar from '@/components/layout/main-wrapper/sidebar/Sidebar.vue'
import MainContent from '@/components/layout/main-wrapper/MainContent.vue'
import ExtraDrawer from '@/components/layout/main-wrapper/ExtraDrawer.vue'
const ModalWrapper = defineAsyncComponent(() => import('@/components/layout/ModalWrapper.vue'))
</script>
<style lang="postcss">
#mainWrapper {
position: relative;
display: flex;
flex: 1;
height: 0; /* fix a flex-box bug https://github.com/philipwalton/flexbugs/issues/197#issuecomment-378908438 */
overflow: hidden;
}
</style>