index.vue 780 B

12345678910111213141516171819202122232425262728293031323334
  1. <template>
  2. <div class="app-main">
  3. <router-view v-slot="{ Component, route }">
  4. <Transition :enter-active-class="proxy?.animate.page.enter">
  5. <component :is="Component" :key="route.path" />
  6. </Transition>
  7. </router-view>
  8. </div>
  9. </template>
  10. <script setup name="AppMain" lang="ts">
  11. const { proxy } = getCurrentInstance() as any;
  12. </script>
  13. <style lang="scss" scoped>
  14. .app-main {
  15. height: 100vh;
  16. width: 100%;
  17. background: radial-gradient(87% 87% at 9% -34%, #315f7e 0%, #0f1926 100%);
  18. }
  19. </style>
  20. <style lang="scss">
  21. // ::-webkit-scrollbar {
  22. // width: 6px;
  23. // height: 6px;
  24. // }
  25. // ::-webkit-scrollbar-track {
  26. // background-color: #f1f1f1;
  27. // }
  28. // ::-webkit-scrollbar-thumb {
  29. // background-color: #c0c0c0;
  30. // border-radius: 3px;
  31. // }</style>