From bf5224dabe2883d6a7fa774d1080c8f4403de51a Mon Sep 17 00:00:00 2001 From: duanshuwen Date: Sun, 9 Nov 2025 17:26:01 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E7=9B=B8=E5=85=B3=E5=95=86=E5=93=81?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/SwipeCards/index.vue | 9 +++++++-- src/components/SwipeCards/styles/index.scss | 7 ++----- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/components/SwipeCards/index.vue b/src/components/SwipeCards/index.vue index 8164fb5..0723107 100644 --- a/src/components/SwipeCards/index.vue +++ b/src/components/SwipeCards/index.vue @@ -42,7 +42,7 @@ > {{ item.photoName }} @@ -98,7 +98,12 @@ watch( ); // 触摸状态 -const touchState = ref({ startX: 0, startY: 0, moving: false, isClickCandidate: false }); +const touchState = ref({ + startX: 0, + startY: 0, + moving: false, + isClickCandidate: false, +}); const touchStart = (e, index) => { if (index !== 0 || animatingOut.value) return; diff --git a/src/components/SwipeCards/styles/index.scss b/src/components/SwipeCards/styles/index.scss index 17fc7c0..a4a4a09 100644 --- a/src/components/SwipeCards/styles/index.scss +++ b/src/components/SwipeCards/styles/index.scss @@ -35,9 +35,6 @@ } .album-title { - background: linear-gradient( - 180deg, - rgba(0, 0, 0, 0) 0%, - rgba(0, 0, 0, 0.6) 100% - ); + background: rgba(0, 0, 0, 0.5); + height: 20px; }