cashier-mer/src/layout/index.vue

49 lines
954 B
Vue
Raw Normal View History

2024-03-30 18:04:30 +08:00
<script setup>
2024-04-02 18:18:48 +08:00
import myHeader from "./myHeader.vue";
import myAside from "./myAside.vue";
2024-03-30 18:04:30 +08:00
</script>
<template>
2024-04-02 18:18:48 +08:00
<div class="common-layout">
<el-container>
<el-header>
<myHeader></myHeader>
</el-header>
2024-03-30 18:04:30 +08:00
<el-container>
2024-04-02 18:18:48 +08:00
<el-aside width="100px">
<myAside></myAside>
</el-aside>
<el-main>
<transition name="el-zoom-in-top">
2024-03-30 18:04:30 +08:00
<router-view class="my-main"></router-view>
2024-04-02 18:18:48 +08:00
</transition>
</el-main>
2024-03-30 18:04:30 +08:00
</el-container>
2024-04-02 18:18:48 +08:00
</el-container>
</div>
2024-03-30 18:04:30 +08:00
</template>
<style scoped lang="scss">
2024-04-02 18:18:48 +08:00
.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%;
2024-03-30 18:04:30 +08:00
}
2024-04-02 18:18:48 +08:00
}
2024-03-30 18:04:30 +08:00
}
2024-04-02 18:18:48 +08:00
</style>