-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
vue@v3.0.6 之后 onCamelCase 事件语法无法触发事件 #8796
Comments
taro-bot2
bot
added
F-vue3
Framework - Vue 3
T-weapp
Target - 编译到微信小程序
V-3
Version - 3.x
labels
Mar 2, 2021
b2nil
changed the title
Taro v3.1 触摸事件写法与 Taro v3.0 存在不兼容的情况
Taro v3.1 onCamelCase 事件语法无法触发事件
Mar 5, 2021
看起来这个问题好像是 |
b2nil
changed the title
Taro v3.1 onCamelCase 事件语法无法触发事件
vue@v3.0.6 之后 onCamelCase 事件语法无法触发事件
Mar 19, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
相关平台
小程序、H5
复现仓库
https://github.com/b2nil/taro-ui-vue3
**小程序基础库: **
使用框架: Vue 3
复现步骤
Vue3
框架pages/index/index.vue
的代码替换为以下代码yarn dev:h5
或yarn dev:weapp
期望结果
使用
onTouchMove
,onTouchStart
,onScrollToUpper
,onLineChange
等可以触发事件实际结果
taro v3.1.1 事件使用
onCamelCase
语法 (on
后面为 2 个单词以上) 不能触发事件。必须改写为onCamelcase
才能触发,例如onLinechange
,onScrolltoupper
等等。在 taro v3.0 种使用
onCamelCase
写法是可以事件的。环境信息
补充信息
这个问题会导致使用 v3.0 写的组件库升级后,需要做很多改动。
The text was updated successfully, but these errors were encountered: