Files
funjia-admin/src/components/SystemLayout.vue
T
2025-03-27 19:37:24 +08:00

52 lines
1.1 KiB
Vue

<template>
<el-row>
<el-col :span="24">
<slot name="header" :style="{ height: '80px' }">
<home-header></home-header>
</slot>
</el-col>
</el-row>
<el-row :style="{
height: 'calc(100% - 80px)'
}">
<el-col :span="3">
<slot name="sidebar"></slot>
</el-col>
<el-col :span="21" :style="{
background: '#f0f2f5', padding: '20px', overflow: 'auto',
height: 'calc(100vh - 80px)'
}">
<slot name="content"></slot>
</el-col>
</el-row>
<el-row>
<el-col :span="24">
</el-col>
</el-row>
</template>
<script setup lang="ts">
import HomeHeader from "@/containers/HomeHeader.vue"
</script>
<style module lang="scss">
/* .el-menu-vertical-demo:not(.el-menu--collapse) {
width: 200px;
min-height: 400px;
} */
:global {
html,
body,
#app {
height: 100%;
width: 100%;
padding: 0;
margin: 0;
}
:local(.layout) {
height: 100%;
}
}
</style>