We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
问题描述 自定义组件点击事件无法触发
复现步骤
<template> <view> <aa @tap="customTap"></aa> </view> </template> <script> export default { data() { return {} }, methods: { customTap(e) { console.log('customTap', e) } } } </script>
aa 是一个自定义组件,点击 aa
aa
预期结果 触发点击事件
实际结果 h5 和 app 不触发事件,微信小程序可以触发,但事件信息是 undefined
h5
app
undefined
系统信息:
The text was updated successfully, but these errors were encountered:
vue2自定义组件如果要监听原生事件,需要加.native修饰符,即:@tap.native="customTap" 目前 tap.native 有问题,稍后修复,可以先使用@click.native替换
Sorry, something went wrong.
fix(vue2): tap.native=>click.native (#3259)
421b2fb
还没解决吗
本帖时间较久,如有问题请开新贴,并补充复现工程
fxy060608
No branches or pull requests
问题描述
自定义组件点击事件无法触发
复现步骤
aa
是一个自定义组件,点击aa
预期结果
触发点击事件
实际结果
h5
和app
不触发事件,微信小程序可以触发,但事件信息是undefined
系统信息:
The text was updated successfully, but these errors were encountered: