Rap 原分销系统代码Web
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
1.3KB

  1. <template>
  2. <section class="app-main">
  3. <transition name="fade-transform" mode="out-in">
  4. <keep-alive :include="cachedViews">
  5. <router-view :key="key" />
  6. </keep-alive>
  7. </transition>
  8. <el-backtop :bottom="50" :right="40"><i class="el-icon-caret-top" /></el-backtop>
  9. <div v-if="$store.state.settings.showFooter" id="el-main-footer">
  10. <span v-html="$store.state.settings.footerTxt" />
  11. <span> ⋅ </span>
  12. <a href="https://beian.miit.gov.cn/#/Integrated/index" target="_blank">{{ $store.state.settings.caseNumber }}</a>
  13. </div>
  14. </section>
  15. </template>
  16. <script>
  17. export default {
  18. name: 'AppMain',
  19. computed: {
  20. cachedViews() {
  21. return this.$store.state.tagsView.cachedViews
  22. },
  23. key() {
  24. return this.$route.path
  25. }
  26. }
  27. }
  28. </script>
  29. <style lang="scss" scoped>
  30. .app-main {
  31. /* 50= navbar 50 */
  32. min-height: calc(100vh - 50px);
  33. width: 100%;
  34. position: relative;
  35. overflow: hidden;
  36. }
  37. .fixed-header+.app-main {
  38. padding-top: 50px;
  39. }
  40. .hasTagsView {
  41. .app-main {
  42. /* 84 = navbar + tags-view = 50 + 34 */
  43. min-height: calc(100vh - 84px);
  44. }
  45. .fixed-header+.app-main {
  46. padding-top: 84px;
  47. }
  48. }
  49. </style>
  50. <style lang="scss">
  51. // fix css style bug in open el-dialog
  52. .el-popup-parent--hidden {
  53. .fixed-header {
  54. padding-right: 15px;
  55. }
  56. }
  57. </style>