starwait/layouts/home.vue
2025-04-25 18:02:03 +08:00

42 lines
784 B
Vue

<script setup lang="ts">
</script>
<template>
<div class="homeLayout">
<HomeHeader class="homeHeader"/>
<div class="homeMain">
<main class="homeMainContent">
<slot name="default"/>
</main>
</div>
</div>
</template>
<style scoped>
.homeLayout {
position: relative;
height: 100vh;
width: 100vw;
overflow: hidden;
display: flex;
flex-direction: column;
.homeHeader {
flex-shrink: 0;
}
div.homeMain {
position: relative;
overflow-y: hidden;
flex: 1;
width: 100%;
& > main.homeMainContent {
position: relative;
width: 100%;
height: 100%;
overflow: auto;
}
}
}
</style>