AppMain.vue 822 Bytes
Newer Older
Pan's avatar
Pan committed
1
<template>
Pan's avatar
Pan committed
2
  <section class="app-main">
Pan's avatar
Pan committed
3
    <transition name="fade-transform" mode="out-in">
neogcg's avatar
neogcg committed
4
 <!-- <keep-alive include="Dashboard"> -->
yanzhongrong's avatar
yanzhongrong committed
5
      <router-view :key="key" />
neogcg's avatar
neogcg committed
6
    <!-- </keep-alive> -->
Pan's avatar
Pan committed
7 8
    </transition>
  </section>
Pan's avatar
Pan committed
9 10 11
</template>

<script>
yanzhongrong's avatar
yanzhongrong committed
12

Pan's avatar
Pan committed
13 14 15
export default {
  name: 'AppMain',
  computed: {
花裤衩's avatar
花裤衩 committed
16
    key() {
17
      return this.$route.path
花裤衩's avatar
花裤衩 committed
18
    }
Pan's avatar
Pan committed
19 20
  }
}
Pan's avatar
Pan committed
21
</script>
22 23 24

<style scoped>
.app-main {
neogcg's avatar
neogcg committed
25 26
  margin: 0 0px 20px 20px;
  padding: 20px 20px 20px 20px;
yanzhongrong's avatar
yanzhongrong committed
27 28
  background: #fff;
  border-radius: 8px;
29
  /*50 = navbar  */
neogcg's avatar
neogcg committed
30
  min-height: calc(100vh - 106px);
neogcg's avatar
neogcg committed
31
  width: calc(98% - 20px);
32 33 34
  position: relative;
  overflow: hidden;
}
花裤衩's avatar
花裤衩 committed
35 36
.fixed-header+.app-main {
  padding-top: 50px;
37 38 39 40 41 42 43 44 45
}
</style>

<style lang="scss">
// fix css style bug in open el-dialog
.el-popup-parent--hidden {
  .fixed-header {
    padding-right: 15px;
  }
花裤衩's avatar
花裤衩 committed
46
}
47
</style>