App.vue 622 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <template>
  2. <div id="app">
  3. <transition name="fade" mode="out-in">
  4. <router-view></router-view>
  5. </transition>
  6. </div>
  7. </template>
  8. <script>
  9. export default {
  10. name: 'app',
  11. components: {}
  12. }
  13. </script>
  14. <style>
  15. body {
  16. margin: 0;
  17. padding: 0;
  18. font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, SimSun, sans-serif;
  19. font-size: 14px;
  20. -webkit-font-smoothing: antialiased;
  21. }
  22. #app {
  23. top: 0;
  24. bottom: 0;
  25. width: 100%;
  26. }
  27. .fade-enter-active,
  28. .fade-leave-active {
  29. transition: all 0.2s ease;
  30. }
  31. .fade-enter,
  32. .fade-leave-active {
  33. opacity: 0;
  34. }
  35. </style>