From 29c2fd9cb88717e866a99ee202a8fffb3ca841e0 Mon Sep 17 00:00:00 2001 From: Orion Date: Fri, 11 Sep 2026 11:12:30 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=EF=B8=8F=20refactor(core):=20?= =?UTF-8?q?=E4=BC=98=E5=8C=96=20UI=20=E4=BA=A4=E4=BA=92=E4=BD=93=E9=AA=8C?= =?UTF-8?q?=E4=B8=8E=E5=88=97=E8=A1=A8=E9=AB=98=E5=BA=A6=E5=8A=A8=E7=94=BB?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 引入 fcb-secondary-card 样式类统一卡片视觉表现 * 增强卡片悬停效果与过渡动画平滑度 * 优化 FileManageView 高度切换的动画计算逻辑 * 修正列表组件样式类以适配新的交互规范 --- src/assets/style/main.css | 16 ++++++++++++++++ src/components/common/FileRecordList.vue | 2 +- src/components/common/SentRecordList.vue | 2 +- src/views/manage/FileManageView.vue | 11 ++++++++--- 4 files changed, 26 insertions(+), 5 deletions(-) diff --git a/src/assets/style/main.css b/src/assets/style/main.css index 480681e..ad6b03c 100644 --- a/src/assets/style/main.css +++ b/src/assets/style/main.css @@ -113,6 +113,8 @@ textarea { border-color: rgba(113, 153, 168, 0.68); box-shadow: 0 20px 44px rgba(4, 10, 14, 0.46); } +.fcb-secondary-card { transition: all 300ms ease !important; box-shadow: -8px -8px 20px rgba(255,255,255,.8), 8px 8px 20px rgba(163,177,198,.5) !important; } +.fcb-secondary-card:hover { transform: translateY(-2px); background: #f0f4f8 !important; box-shadow: -10px -10px 25px rgba(255,255,255,.9), 10px 10px 25px rgba(163,177,198,.6) !important; } .data-table-2026 thead th { background: rgba(236, 244, 246, 0.76); @@ -466,6 +468,20 @@ html, body, #app { background: var(--fcb-bg); color: var(--fcb-text); } border-color: transparent !important; box-shadow: -10px -10px 25px rgba(255,255,255,.9), 10px 10px 25px rgba(163,177,198,.6) !important; } + +/* Keep every dashboard card on the same 300ms pastel hover curve. */ +.theme-2026-card-hover { + transition: all 300ms ease !important; +} +.theme-2026-card-hover:hover { + background: #f0f4f8 !important; + border-color: transparent !important; + box-shadow: -10px -10px 25px rgba(255,255,255,.9), 10px 10px 25px rgba(163,177,198,.6) !important; +} +.dark .theme-2026-card-hover:hover { + background: #2f414a !important; + box-shadow: -10px -10px 25px rgba(69,88,99,.45), 10px 10px 25px rgba(10,18,23,.55) !important; +} input:not([type=file]), select, textarea { background: var(--fcb-surface) !important; color: var(--fcb-text) !important; border-color: #d5e1e5 !important; box-shadow: var(--fcb-shadow-in); } button, a { border-radius: 14px; } button:not(:disabled), a { cursor: pointer; } diff --git a/src/components/common/FileRecordList.vue b/src/components/common/FileRecordList.vue index 58decce..db17e6c 100644 --- a/src/components/common/FileRecordList.vue +++ b/src/components/common/FileRecordList.vue @@ -7,7 +7,7 @@
diff --git a/src/components/common/SentRecordList.vue b/src/components/common/SentRecordList.vue index a7c15f6..585ffc4 100644 --- a/src/components/common/SentRecordList.vue +++ b/src/components/common/SentRecordList.vue @@ -7,7 +7,7 @@
diff --git a/src/views/manage/FileManageView.vue b/src/views/manage/FileManageView.vue index 01e64ad..2714944 100644 --- a/src/views/manage/FileManageView.vue +++ b/src/views/manage/FileManageView.vue @@ -1879,19 +1879,24 @@ const animateLifecycleHeight = async () => { await nextTick() const viewport = lifecycleViewportRef.value if (!viewport || reducedMotionQuery.matches) return + lifecycleHeightAnimation?.cancel() + lifecycleHeightAnimation = null + viewport.style.height = '' + await nextTick() const currentHeight = viewport.getBoundingClientRect().height viewport.style.height = `${currentHeight}px` await nextTick() const targetHeight = viewport.scrollHeight - lifecycleHeightAnimation?.cancel() lifecycleHeightAnimation = viewport.animate( [{ height: `${currentHeight}px` }, { height: `${targetHeight}px` }], { duration: 420, easing: 'cubic-bezier(0.22, 1, 0.36, 1)', fill: 'forwards' } ) - lifecycleHeightAnimation.addEventListener('finish', () => { + const cleanup = () => { viewport.style.height = '' lifecycleHeightAnimation = null - }, { once: true }) + } + lifecycleHeightAnimation.addEventListener('finish', cleanup, { once: true }) + lifecycleHeightAnimation.addEventListener('cancel', cleanup, { once: true }) } const LIFECYCLE_ENTER_MS = 160