| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <template>
- <section class="app-main">
- <!-- -->
- <transition name="fade-transform"
- mode="out-in">
- <keep-alive>
- <router-view :key="key" />
- </keep-alive>
- </transition>
- </section>
- </template>
- <script>
- export default {
- name: 'AppMain',
- computed: {
- key () {
- return this.$route.path
- },
- cachedViews () {
- return this.$store.state.tagsView.cachedViews
- },
- keep () {
- return this.$route.meta.noCache
- }
- }
- }
- </script>
- <style scoped>
- .app-main {
- /*50 = navbar */
- /* height: calc(100vh - 80px); */
- /* height: 100vh; */
- padding-top: 80px;
- /* min-width: 1440px; */
- position: relative;
- /* overflow: auto; */
- box-sizing: border-box;
- }
- .fixed-header + .app-main {
- padding-top: 80px;
- }
- </style>
- <style lang="scss">
- // fix css style bug in open el-dialog
- .el-popup-parent--hidden {
- .fixed-header {
- padding-right: 15px;
- }
- }
- </style>
|