From 016d4ac4fcc9c75bdd9e5c6121d0e87344ab0551 Mon Sep 17 00:00:00 2001 From: "du.meimei" Date: Wed, 28 May 2025 17:22:20 +0800 Subject: [PATCH] =?UTF-8?q?feat(components):=20=E4=BC=98=E5=8C=96=E6=95=B0?= =?UTF-8?q?=E5=AD=97=E6=BB=9A=E5=8A=A8=E6=95=88=E6=9E=9C=E5=B9=B6=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=BE=AA=E7=8E=AF=E6=92=AD=E6=94=BE=E6=8E=A7=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 CountTo 组件中添加 update:readyLoop 事件,用于通知数字滚动完成 - 在 Header 组件中使用 readyLoop 事件来控制 Swiper 轮播的初始化和销毁 - 优化了数字滚动的动画效果,确保滚动到目标数字后停止 --- src/components/CountTo.vue | 13 +++++++++++-- src/views/Home/components/Header.vue | 28 +++++++++++++++++++++------- 2 files changed, 32 insertions(+), 9 deletions(-) diff --git a/src/components/CountTo.vue b/src/components/CountTo.vue index 2d7dc246..b36edb9b 100644 --- a/src/components/CountTo.vue +++ b/src/components/CountTo.vue @@ -1,5 +1,5 @@ diff --git a/src/views/Home/components/Header.vue b/src/views/Home/components/Header.vue index 87bcbc60..45689068 100644 --- a/src/views/Home/components/Header.vue +++ b/src/views/Home/components/Header.vue @@ -5,12 +5,14 @@
-