未验证 提交 97ceaca1 编写于 作者: pu_da's avatar pu_da 提交者: GitHub

docs: 增加swiper `animationfinish`事件返回错误数据说明

1. 在监听`animationfinish`事件时如果不监听`change`事件,则返回的 `event.detail`始终为第一次的数据
上级 29f94fa3
......@@ -48,6 +48,7 @@ change 事件返回 detail 中包含一个 source 字段,表示导致变更的
**Tips**
- 如果要使``@animationfinish``返回正确的数据,必须监听``@change``事件。
- 使用竖向滚动时,需要给 ``<scroll-view>`` 一个固定高度,通过 css 设置 height。
- 注意:其中只可放置 ``<swiper-item>`` 组件,否则会导致未定义的行为。
- 如果遇到current、current-item-id属性设置不生效的问题参考:[组件属性设置不生效解决办法](/use?id=%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册