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
小程序(@nutui/nutui-taro)
4.0.2
3.3.0-alpha.4
dev:weapp
npm
16.16.0
chrome
macos 13
Taro CLI 3.5.11 environment info: System: OS: macOS 13.0 Shell: 5.8.1 - /bin/zsh Binaries: Node: 16.16.0 - ~/.nvm/versions/node/v16.16.0/bin/node Yarn: 1.22.19 - ~/.yarn/bin/yarn npm: 8.18.0 - ~/.nvm/versions/node/v16.16.0/bin/npm
nutui.jd.com/taro/vue/4x/
Cannot read property 'height' of null
setTimeout(() => { const query = Taro.createSelectorQuery(); query.select(".nut-tabbar").boundingClientRect(); query.exec((res) => { height.value = res[0].height; }); }, 500);
微信小程序自定义tabbar在dom中跟 page平级,Taro.createSelectorQuery() 无法获取到 ".nut-tabbar" 节点。导致res为[null]
The text was updated successfully, but these errors were encountered:
怎么解决呢?
Sorry, something went wrong.
怎么解决的呢
fix(tabbar): 修复 useTaroRect 报错问题 (#2775)
38d341d
close #2188
Successfully merging a pull request may close this issue.
NutUI scenes(nutui 场景)
小程序(@nutui/nutui-taro)
NutUI-vue version(nutui-vue 版本)
4.0.2
Vue version(vue 版本)
3.3.0-alpha.4
Operating environment(运行环境)
dev:weapp
Citation method(引用方式)
npm
Node version(node 版本)
16.16.0
Browser and its version(浏览器及其版本)
chrome
System and its version(系统及其版本)
macos 13
Taro environmental information(taro 环境信息)
Taro CLI 3.5.11 environment info:
System:
OS: macOS 13.0
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 16.16.0 - ~/.nvm/versions/node/v16.16.0/bin/node
Yarn: 1.22.19 - ~/.yarn/bin/yarn
npm: 8.18.0 - ~/.nvm/versions/node/v16.16.0/bin/npm
Reproduction link(重现链接)
nutui.jd.com/taro/vue/4x/
Steps to reproduce(重现步骤)
Cannot read property 'height' of null
微信小程序自定义tabbar在dom中跟 page平级,Taro.createSelectorQuery() 无法获取到 ".nut-tabbar" 节点。导致res为[null]
What is expected?(期望的结果是什么?)
Cannot read property 'height' of null
What is actually happening?(实际的结果是什么?)
Cannot read property 'height' of null
The text was updated successfully, but these errors were encountered: