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
微信小程序
小程序基础库: 2.16.0 使用框架: Vue 2
Taro.createSelectorQuery().select('#my-comp').boundingClientRect()可以获取到组件
无法获取到组件。显示null。
👽 Taro v3.2.0 Taro CLI 3.2.0 environment info: System: OS: Windows 10 Binaries: Node: 14.15.4 - D:\tools\nodejs\node.EXE Yarn: 1.22.10 - D:\tools\nodejs\yarn.CMD npm: 6.14.10 - D:\tools\nodejs\npm.CMD
相关代码: https://github.com/NervJS/taro/blob/next/packages/shared/src/template.ts#L1:L10
The text was updated successfully, but these errors were encountered:
看看微信小程序的文档吧,穿透自定义组件获取的写法:'>>>'
Sorry, something went wrong.
Taro.createSelectorQuery().in(this),自定组件里面这个this(实例)怎么拿到
@qwerlp 看看这个:#9357
No branches or pull requests
相关平台
微信小程序
小程序基础库: 2.16.0
使用框架: Vue 2
复现步骤
期望结果
Taro.createSelectorQuery().select('#my-comp').boundingClientRect()可以获取到组件
实际结果
无法获取到组件。显示null。
环境信息
补充信息
相关代码:
https://github.com/NervJS/taro/blob/next/packages/shared/src/template.ts#L1:L10
https://taro-docs.jd.com/taro/docs/migration/#scope-%E5%92%8C-componenttype
The text was updated successfully, but these errors were encountered: