koel/resources/assets/js/components/layout/main-wrapper/index.vue
2022-12-02 17:46:40 +01:00

27 lines
730 B
Vue

<template>
<div id="mainWrapper">
<SideBar />
<MainContent />
<ExtraPanel />
<ModalWrapper />
</div>
</template>
<script lang="ts" setup>
import { defineAsyncComponent } from 'vue'
import SideBar from '@/components/layout/main-wrapper/Sidebar.vue'
import MainContent from '@/components/layout/main-wrapper/MainContent.vue'
import ExtraPanel from '@/components/layout/main-wrapper/ExtraPanel.vue'
const ModalWrapper = defineAsyncComponent(() => import('@/components/layout/ModalWrapper.vue'))
</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>