diff --git a/src/views/ViewerLayout.vue b/src/views/ViewerLayout.vue index 6b8706c..1a2f7a2 100644 --- a/src/views/ViewerLayout.vue +++ b/src/views/ViewerLayout.vue @@ -476,6 +476,7 @@ @@ -676,19 +677,7 @@ // --- 路由过渡动画 --- .fade-slide-enter-active, .fade-slide-leave-active { - transition: opacity 0.25s ease, transform 0.25s ease; - // 关键: 相对于 content-layout-container 定位 - position: absolute; - top: 0; - left: 0; - width: 100%; - height: 100%; // 让过渡元素也撑满容器高度 - // 关键: 保持内边距和盒模型一致 - padding: var(--vtsuru-content-padding); - box-sizing: border-box; - // 关键: 背景色防止透视 - background-color: var(--n-card-color); // 使用内容区的背景色 - z-index: 1; + transition: opacity 0.2s ease, transform 0.2s ease; } .fade-slide-enter-from { diff --git a/src/views/view/QuestionBoxView.vue b/src/views/view/QuestionBoxView.vue index 6aa19f4..9cf7588 100644 --- a/src/views/view/QuestionBoxView.vue +++ b/src/views/view/QuestionBoxView.vue @@ -26,6 +26,8 @@ import { NSpin, NIcon, useMessage, + NCarousel, + NCarouselItem, } from 'naive-ui' import { AddCircle24Regular, DismissCircle24Regular } from '@vicons/fluent' import { computed, onMounted, onUnmounted, ref } from 'vue' @@ -706,44 +708,10 @@ onUnmounted(() => {