-
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
[email protected] 转鸿蒙 cssStyleDeclaration
方法没有考虑到原型链上的属性取值
#16936
Comments
This was referenced Nov 30, 2024
18 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
相关平台
鸿蒙
使用框架: Vue 3
复现步骤
例如:在 vue3 runtime-dom 中会调用 style.setProperty 方法,由于经过了 Taro 的代理 https://github.com/NervJS/taro/blob/feat/4.0.8/packages/taro-platform-harmony/src/runtime-ets/dom/cssStyleDeclaration.ts#L106, 得到的返回结果是 空字符串,这个时候就会报错
vue3 代码链接: https://github.com/vuejs/core/blob/5a5406d002f568e928489920d0dcc7086c808a8d/packages/runtime-dom/src/modules/style.ts#L88
期望结果
可以正常调用不报错
实际结果
style.setProperty is not callable
环境信息
The text was updated successfully, but these errors were encountered: