App.vue 645 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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: 13px;
  20. -webkit-font-smoothing: antialiased;
  21. }
  22. #app {
  23. top: 0;
  24. bottom: 0;
  25. width: 100%;
  26. min-width: 1320px;
  27. }
  28. .fade-enter-active,
  29. .fade-leave-active {
  30. transition: all 0.2s ease;
  31. }
  32. .fade-enter,
  33. .fade-leave-active {
  34. opacity: 0;
  35. }
  36. </style>