A8000
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

73 lines
1.2 KiB

8 months ago
8 months ago
8 months ago
8 months ago
  1. <template>
  2. <div id="regular-container">
  3. <TabBar />
  4. <div>
  5. <router-view v-slot="{ Component }">
  6. <keep-alive>
  7. <component :is="Component" />
  8. </keep-alive>
  9. </router-view>
  10. </div>
  11. </div>
  12. </template>
  13. <script setup lang="ts">
  14. import TabBar from './components/Consumables/TabBar.vue'
  15. </script>
  16. <style scoped lang="less">
  17. #regular-container {
  18. margin: 0;
  19. padding: 0;
  20. width: 100%;
  21. height: 100%;
  22. .main-top {
  23. display: flex;
  24. justify-self: space-between;
  25. }
  26. .main-bottom {
  27. width: 100%;
  28. .buffer-little-title {
  29. display: flex;
  30. margin: 5px 0 0 5px 0;
  31. .line {
  32. margin-right: 5px;
  33. }
  34. }
  35. .ball-area {
  36. display: flex;
  37. justify-self: space-between;
  38. flex-wrap: wrap;
  39. .ball-grid {
  40. margin: 5px;
  41. }
  42. }
  43. }
  44. .fade-slide-enter-active,
  45. .fade-slide-leave-active {
  46. transition:
  47. opacity 0.5s,
  48. transform 0.5s;
  49. /* 控制透明度和滑动的过渡时间 */
  50. }
  51. .fade-slide-enter-from {
  52. opacity: 0;
  53. transform: translateX(20px);
  54. /* 从右侧滑入 */
  55. }
  56. .fade-slide-leave-to {
  57. opacity: 0;
  58. transform: translateX(-20px);
  59. /* 向左滑出 */
  60. }
  61. }
  62. </style>