App.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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 lang="scss">
  15. body {
  16. margin: 0px;
  17. padding: 0px;
  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. position: absolute;
  24. top: 0px;
  25. bottom: 0px;
  26. width: 100%;
  27. }
  28. .el-submenu [class^=fa] {
  29. vertical-align: baseline;
  30. margin-right: 10px;
  31. }
  32. .el-menu-item [class^=fa] {
  33. vertical-align: baseline;
  34. margin-right: 10px;
  35. }
  36. .toolbar {
  37. background: #f2f2f2;
  38. padding: 10px;
  39. .el-form-item {
  40. margin-bottom: 10px;
  41. }
  42. }
  43. .fade-enter-active,
  44. .fade-leave-active {
  45. transition: all .2s ease;
  46. }
  47. .fade-enter,
  48. .fade-leave-active {
  49. opacity: 0;
  50. }
  51. </style>