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

不能增加事件 #9

Closed
mlboy opened this issue Mar 4, 2016 · 5 comments
Closed

不能增加事件 #9

mlboy opened this issue Mar 4, 2016 · 5 comments

Comments

@mlboy
Copy link

mlboy commented Mar 4, 2016

不能增加 <swipe-item @click="alert()"

@furybean
Copy link
Contributor

furybean commented Mar 4, 2016

可以试试 @tap

@mlboy
Copy link
Author

mlboy commented Mar 4, 2016

可以加你q讨论下吗, 415235169

@mlboy
Copy link
Author

mlboy commented Mar 4, 2016

是因为
#8 (comment)
导致的, prevent = true时候就不能触发事件了

@furybean
Copy link
Contributor

furybean commented Mar 4, 2016

是的,所以我加了自定义事件 @tap 来解决这个问题。你把 @click 换成 @tap 就可以了。

@iqingting
Copy link
Contributor

click 和 tap 表示无缘无故被 @ 了好几次

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

No branches or pull requests

3 participants