From 97ceaca1405e5c8257e78d186a66b121013118cb Mon Sep 17 00:00:00 2001 From: luch Date: Mon, 24 Aug 2020 09:51:45 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E5=A2=9E=E5=8A=A0swiper=20`animationfi?= =?UTF-8?q?nish`=E4=BA=8B=E4=BB=B6=E8=BF=94=E5=9B=9E=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 在监听`animationfinish`事件时如果不监听`change`事件,则返回的 `event.detail`始终为第一次的数据 --- docs/component/swiper.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/component/swiper.md b/docs/component/swiper.md index 18ecec49e..6b95af98f 100644 --- a/docs/component/swiper.md +++ b/docs/component/swiper.md @@ -48,6 +48,7 @@ change 事件返回 detail 中包含一个 source 字段,表示导致变更的 **Tips** +- 如果要使``@animationfinish``返回正确的数据,必须监听``@change``事件。 - 使用竖向滚动时,需要给 ```` 一个固定高度,通过 css 设置 height。 - 注意:其中只可放置 ```` 组件,否则会导致未定义的行为。 - 如果遇到current、current-item-id属性设置不生效的问题参考:[组件属性设置不生效解决办法](/use?id=%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98) -- GitLab