Blame view

HHECS.Web/src/layout/components/AppMain.vue 779 Bytes
胡菁 authored
1
2
3
4
5
6
7
8
9
10
<template>
  <section class="app-main">
    <transition name="fade-transform" mode="out-in">
      <router-view :key="key" />
    </transition>
  </section>
</template>

<script>
export default {
胡菁 authored
11
  name: "AppMain",
胡菁 authored
12
13
  computed: {
    key() {
胡菁 authored
14
15
16
17
      return this.$route.path;
    },
  },
};
胡菁 authored
18
19
20
21
</script>

<style scoped>
.app-main {
22
23
  /*50 = navbar  34 = TagsView 38 = copyright*/
  min-height: calc(100vh - 122px);
胡菁 authored
24
25
26
27
  width: 100%;
  position: relative;
  overflow: hidden;
}
28
.fixed-header + .app-main {
胡菁 authored
29
30
  padding-top: 50px;
}
31
32
33
/* .fixed-bottom + .app-main {
  padding-bottom: 50px;
} */
胡菁 authored
34
35
36
37
38
39
40
41
</style>

<style lang="scss">
// fix css style bug in open el-dialog
.el-popup-parent--hidden {
  .fixed-header {
    padding-right: 15px;
  }
42
43
44
  .fixed-footer {
    padding-right: 15px;
  }
胡菁 authored
45
46
}
</style>