nebula/components/layouts/mobile/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>
2020-07-03 11:04:25 +08:00
<header-view/>
2020-06-19 17:10:44 +08:00
</el-header>
<el-main>
2020-07-03 11:04:25 +08:00
<nuxt :nuxt-child-key="$route.name" />
2020-06-19 17:10:44 +08:00
</el-main>
<el-footer>
2020-07-03 11:04:25 +08:00
<footer-view/>
2020-06-19 17:10:44 +08:00
</el-footer>
</el-container>
</template>
<script>
2020-07-03 11:04:25 +08:00
import { mapState } from 'vuex'
import HeaderView from "./header";
import FooterView from "./footer";
2020-06-19 17:10:44 +08:00
export default {
2020-07-03 11:04:25 +08:00
name: "MobileMain",
components: {
HeaderView,
FooterView
},
computed: {
...mapState('global', [])
}
2020-06-19 17:10:44 +08:00
}
</script>
<style scoped>
2020-07-03 11:04:25 +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-07-03 11:04:25 +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>