jinjianback1.1/src/layout/components/AppMain.vue

32 lines
496 B
Vue
Raw Normal View History

2017-06-26 13:38:24 +08:00
<template>
2017-08-30 17:42:06 +08:00
<section class="app-main">
2018-08-28 18:30:36 +08:00
<transition name="fade-transform" mode="out-in">
2019-04-19 20:41:52 +08:00
<router-view :key="key" />
2017-08-30 17:42:06 +08:00
</transition>
</section>
2017-06-26 13:38:24 +08:00
</template>
<script>
2017-08-30 17:42:06 +08:00
export default {
name: 'AppMain',
computed: {
2019-04-19 20:41:52 +08:00
key() {
return this.$route.fullPath
}
2017-08-30 17:42:06 +08:00
}
}
2017-06-26 13:38:24 +08:00
</script>
2018-07-13 14:45:13 +08:00
<style scoped>
.app-main {
/*50 = navbar */
min-height: calc(100vh - 50px);
2019-04-19 20:41:52 +08:00
width: 100%;
2018-07-13 14:45:13 +08:00
position: relative;
overflow: hidden;
}
2019-04-19 20:41:52 +08:00
.fixed-header+.app-main {
padding-top: 50px;
}
2018-07-13 14:45:13 +08:00
</style>