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循环模式下点击事件无效 #1484

Closed
Pasoul opened this issue May 26, 2017 · 8 comments
Closed

swiper循环模式下点击事件无效 #1484

Pasoul opened this issue May 26, 2017 · 8 comments

Comments

@Pasoul
Copy link

Pasoul commented May 26, 2017

场景:
有两个轮播图,加上loop实现循环播放,发现只有带有vux-swiper-item-clone的图片点击事件无效

代码:
<swiper :list="img_list" auto loop height="3.75rem" @clickItem="clickbanner"></swiper>

@Pasoul
Copy link
Author

Pasoul commented May 26, 2017

补充:在大于两张图片的时候无问题,暂时的解决方法是把swiper.js里面的_loopTwoItems方法注释掉

@airyland
Copy link
Owner

@unclay 有空来帮忙看看

@unclay
Copy link
Collaborator

unclay commented May 26, 2017

pull出了点问题,明天再看看

@Pasoul
Copy link
Author

Pasoul commented May 27, 2017

谢谢,用了下代码是可行的,但是得加上const me = this,不然会报错me undefined @unclay

@Mapz
Copy link

Mapz commented May 30, 2017

我也出现这个问题了,哈哈

@airyland
Copy link
Owner

#1499

@JiangMengQing
Copy link

使用@click.native点击事件能生效

@gy2986589
Copy link

在swiper中 用 Previewer组建怎么不好用。。。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants