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

cell 无法绑定点击事件 bindtap='click' #20

Closed
jsaon-L opened this issue Nov 6, 2018 · 4 comments
Closed

cell 无法绑定点击事件 bindtap='click' #20

jsaon-L opened this issue Nov 6, 2018 · 4 comments

Comments

@jsaon-L
Copy link

jsaon-L commented Nov 6, 2018

描述错误


当我这么写的时候无法触发绑定事件 showvideo

当我修改 /dist/w-cell/index.wxml 中第六行 catchtap为bindtap 后 showvideo事件触发 因为catchtap阻止事件冒泡
image

由于我只看了一个礼拜微信小程序 所以我想知道 是插件写错了 还是我之前的用法不对
w-cell 的onClick事件需要怎么使用?因为没有示例代码我使用不成功

版本相关信息:
2018/11/6 下午六点版本

@cnyballk
Copy link
Member

cnyballk commented Nov 7, 2018

当我这么写的时候无法触发绑定事件 show video
请问是怎么写的

@jsaon-L
Copy link
Author

jsaon-L commented Nov 7, 2018

当我这么写的时候无法触发绑定事件show video请问
是怎么写的

image

@cnyballk
Copy link
Member

cnyballk commented Nov 7, 2018

当我这么写的时候无法触发绑定事件show video请问
是怎么写的

image

你改成bind允许冒泡确实可以,如果使用cell的onClick事件则直接使用 bind:onClick="showvideo"即可

@jsaon-L
Copy link
Author

jsaon-L commented Nov 7, 2018

当我这么写的时候无法触发绑定事件show video请问
是怎么写的

图片

你改成bind允许冒泡确实可以,如果使用cell的onClick事件则直接使用bind:onClick =“showvideo”即可

我看到文档里写了是有onClick事件的 但我不知道怎么写 我写的 onClick='showvideo' 😂
感谢!

@cnyballk cnyballk closed this as completed Nov 7, 2018
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

2 participants