cashier-mer/src/layout/index.vue

56 lines
1.2 KiB
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>
2024-04-06 17:08:15 +08:00
<router-view v-slot="{ Component }" class="my-main">
<transition name="el-fade-in-linear">
<component :is="Component"></component>
</transition>
</router-view>
<!-- <transition name="el-zoom-in-top">
2024-03-30 18:04:30 +08:00
<router-view class="my-main"></router-view>
2024-04-06 17:08:15 +08:00
</transition> -->
2024-04-02 18:18:48 +08:00
</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);
2024-04-02 18:42:05 +08:00
height: calc(100vh - 60px);
2024-04-02 18:18:48 +08:00
border-radius: 2rem 0 0 0;
2024-04-02 18:42:05 +08:00
overflow-y: scroll;
2024-04-02 18:18:48 +08:00
.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>