App.vue 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <template>
  2. <div id="app">
  3. <transition name="fade" mode="out-in">
  4. <!-- <keep-alive>
  5. <router-view v-if='$route.meta != null && $route.meta.keepAlive'/>
  6. </keep-alive> -->
  7. <router-view />
  8. </transition>
  9. </div>
  10. </template>
  11. <script>
  12. export default {
  13. name: 'app',
  14. components: {}
  15. }
  16. </script>
  17. <style lang="scss">
  18. body {
  19. margin: 0px;
  20. padding: 0px;
  21. font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, SimSun, sans-serif;
  22. font-size: 14px;
  23. -webkit-font-smoothing: antialiased;
  24. }
  25. #app {
  26. position: absolute;
  27. top: 0px;
  28. bottom: 0px;
  29. width: 100%;
  30. }
  31. .el-submenu [class^=fa] {
  32. vertical-align: baseline;
  33. margin-right: 10px;
  34. }
  35. .el-menu-item [class^=fa] {
  36. vertical-align: baseline;
  37. margin-right: 10px;
  38. }
  39. .toolbar {
  40. background: #f2f2f2;
  41. padding: 10px;
  42. .el-form-item {
  43. margin-bottom: 10px;
  44. }
  45. }
  46. .fade-enter-active,
  47. .fade-leave-active {
  48. transition: all .2s ease;
  49. }
  50. .fade-enter,
  51. .fade-leave-active {
  52. opacity: 0;
  53. }
  54. </style>