Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swiper 组件的 item 改变不会自动滚动 #150

Closed
duxinxiao opened this issue Jul 20, 2018 · 2 comments
Closed

Swiper 组件的 item 改变不会自动滚动 #150

duxinxiao opened this issue Jul 20, 2018 · 2 comments
Assignees
Labels
bug Something isn't working P0 Highest priority
Milestone

Comments

@duxinxiao
Copy link

Mand Mobile Version

1.4.1

OS Version & Browser Version

Chrome 67.0.3396.99

Node Version, Package Management Tool

v9.2.0

Recurring Steps

先给 md-swiper-item 绑定一个空数组 [],然后经过网络请求更新数组,渲染出多个 md-swiper-item

Expectant Behaviors

新的 swiper 可以自动播放

Actual Behaviors

swiper 一直停留在第一页,需手动滚动一页后才会自动播放

@xxyan0205 xxyan0205 added bug Something isn't working P0 Highest priority labels Jul 20, 2018
@xxyan0205 xxyan0205 added this to the v1.5.x milestone Jul 20, 2018
@duxinxiao
Copy link
Author

@xxyan0205 再提一句,swiper 没有 click 事件啊。。任何一层都捕获不到事件,这个需求很常见的呀

@xxyan0205
Copy link
Collaborator

is-prevent | 是否阻止默认的事件,如页面滚动事件 | Boolean | true | 为swiper-item绑定点击事件需将其设置为false

moyus pushed a commit that referenced this issue Jul 20, 2018
#152)

* fix(swiper): fixed not autoplay when created swiper-item by async data[#150]

* fix(swiper): pause mod
@moyus moyus closed this as completed Jul 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working P0 Highest priority
Projects
None yet
Development

No branches or pull requests

4 participants