App.vue 1014 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <template>
  2. <div id="app" class="app-wrapper" v-loading="defaultLoading">
  3. <!-- <transition name="fade" mode="out-in"> -->
  4. <router-view />
  5. <!-- </transition> -->
  6. </div>
  7. </template>
  8. <script>
  9. // import "@/assets/style/index.css";
  10. export default {
  11. created() {},
  12. computed: {
  13. defaultLoading() {
  14. return this.$store.state.settings.loading;
  15. },
  16. },
  17. methods: {},
  18. };
  19. </script>
  20. <style lang="scss">
  21. body {
  22. width: 100%;
  23. height: 100%;
  24. }
  25. ::v-deep .vue-recycle-scroller__item-wrapper::-webkit-scrollbar {
  26. display: block !important;
  27. }
  28. .fade-enter-active,
  29. .fade-leave-active {
  30. transition: opacity 0.5s ease;
  31. }
  32. .fade-enter, .fade-leave-to /* .fade-leave-active in <2.1.8 */ {
  33. opacity: 0;
  34. }
  35. </style>
  36. <style scoped>
  37. #app .theme-picker {
  38. display: none;
  39. }
  40. html, body, #app {
  41. height: 100%;
  42. overflow: hidden;
  43. }
  44. .app-wrapper {
  45. min-height: 100vh;
  46. overflow: hidden;
  47. }
  48. html::-webkit-scrollbar,
  49. body::-webkit-scrollbar,
  50. #app::-webkit-scrollbar {
  51. width: 0;
  52. height: 0;
  53. }
  54. </style>