Skip to content

Commit

Permalink
docs: 更新 swiper 组件文档
Browse files Browse the repository at this point in the history
  • Loading branch information
zhetengbiji committed Aug 29, 2019
1 parent 49bbca8 commit ea45c77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/component/swiper.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
|easing-function|String|default|指定 swiper 切换缓动动画类型,有效值:default、linear、easeInCubic、easeOutCubic、easeInOutCubic|微信小程序|
|@change|EventHandle||current 改变时会触发 change 事件,event.detail = {current: current, source: source}||
|@transition|EventHandle||swiper-item 的位置发生改变时会触发 transition 事件,event.detail = {dx: dx, dy: dy}|微信小程序、5+App、支付宝小程序、头条小程序、QQ小程序|
|@animationfinish|EventHandle||动画结束时会触发 animationfinish 事件,event.detail 同上|头条小程序不支持|
|@animationfinish|EventHandle||动画结束时会触发 animationfinish 事件,event.detail = {current: current, source: source}|头条小程序不支持|

change 事件返回 detail 中包含一个 source 字段,表示导致变更的原因,可能值如下:

Expand Down

0 comments on commit ea45c77

Please sign in to comment.