-
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
Vue3 canvas标签在执行微信小程序编译时会自动加上bindtouchstart="eh"等事件。 #11880
Comments
taro-bot2
bot
added
F-vue3
Framework - Vue 3
T-weapp
Target - 编译到微信小程序
V-3
Version - 3.x
labels
Jun 2, 2022
@gezichenshan 确认从模板中删除这些事件绑定能解决卡顿问题么? |
@Chen-jj 确定,删除之后滑动没有卡顿了。 有没有一个编译参数可以禁止Taro为原生组件加某些属性? 比如还有我在run dev:weapp的时候,发现会给img标签增加一个h5-img的class样式。 |
可以试试参考编写一个 Taro 插件:https://github.com/NervJS/taro-plugin-inject/blob/master/src/index.ts,删除
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
相关平台
微信小程序
复现仓库
https://github.com/jooyyy/abroad-go 这个是私有仓库你们看不了。
小程序基础库: 2.24.3
使用框架: Vue 3
复现步骤
npm run build:weapp
期望结果
期望canvas编译过程不自动添加bind事件
实际结果
canvas编译后增加了非期望的bindtouchend, bindtouchstart等事件,会导致canvas处滑动卡顿。
环境信息
The text was updated successfully, but these errors were encountered: