nebula/components/layouts/pc/main.vue

59 lines
1.0 KiB
Vue
Raw Normal View History

2020-06-19 17:10:44 +08:00
<template>
<el-container>
<el-header>
<header-view/>
</el-header>
<el-main>
2020-06-22 17:13:42 +08:00
<nuxt :nuxt-child-key="$route.name" />
2020-06-19 17:10:44 +08:00
</el-main>
<el-footer>
<footer-view/>
</el-footer>
</el-container>
</template>
<script>
2020-06-21 21:56:34 +08:00
import { mapState } from 'vuex'
2020-06-19 17:10:44 +08:00
import HeaderView from "./header";
import FooterView from "./footer";
export default {
name: "PcMain",
components: {
HeaderView,
2020-06-22 17:13:42 +08:00
FooterView
2020-06-21 21:56:34 +08:00
},
computed: {
...mapState('global', [])
2020-06-19 17:10:44 +08:00
}
}
</script>
<style scoped>
2020-06-23 17:40:43 +08:00
.el-header {
padding-bottom: 1rem;
background: #fff;
border-bottom: 1px solid rgba(0, 40, 100, 0.12);
z-index: 80;
}
.el-main {
padding: 20px 0;
background-attachment: fixed;
min-height: 280px;
margin-bottom: 60px;
overflow-x: hidden;
}
2020-06-19 17:10:44 +08:00
2020-06-23 17:40:43 +08:00
.el-footer {
position: fixed;
bottom: 0;
width: 100%;
padding-top: 1rem;
padding-bottom: 1rem;
background: #fff;
border-top: 1px solid rgba(0, 40, 100, 0.12);
z-index: 80;
}
2020-06-19 17:10:44 +08:00
</style>