cashier-mer/src/layout/index.vue

47 lines
970 B
Vue
Raw Normal View History

2024-03-30 18:04:30 +08:00
<script setup>
import myHeader from "./myHeader.vue"
import myAside from "./myAside.vue"
</script>
<template>
<div class="common-layout">
<el-container>
<el-header>
<myHeader></myHeader>
</el-header>
<el-container>
<el-aside width="100px">
<myAside></myAside>
</el-aside>
<el-main>
<router-view class="my-main"></router-view>
</el-main>
</el-container>
</el-container>
</div>
</template>
<style scoped lang="scss">
.common-layout{
width: 100vw;
height: 100vh;
background-color: #001529;
.el-header{
color: #fff;
}
.el-aside{
color: #fff;
}
.el-main{
background-color: #f5f5f5;
width: calc(100vw - 100px);
min-height: calc(100vh - 60px);
border-radius: 2rem 0 0 0;
.my-main{
height: 100%;
width: 100%;
}
}
}
</style>