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
无
1.10.12
感谢vant-weapp团队提供组件
我的问题: 使用tabs组件,但是tab是通过数据请求,然后数据遍历渲染出来的。小程序统计JS报错Cannot read properties of null (reading \'width\'), 查看组件源码发现,猜测可能是tabs组件中在mountd使用requestAnimationFrame执行任务,是否可以将requestAnimationFrame替换为nextTick 。因为渲染tags有可能内部tab还没有遍历渲染完,就不能获取到内部的tab元素
Cannot read properties of null (reading \'width\')
requestAnimationFrame
nextTick
小程序报错截图
小程序编译代码断点截图
源代码tabs组件截图
感谢帮助
Android
The text was updated successfully, but these errors were encountered:
我尝试了一下setTimeout去异步获取数据并设置data 但是没有看到控制台有错误信息 可以提供一个小程序代码片段吗?
Sorry, something went wrong.
No branches or pull requests
重现链接
无
Vant Weapp 版本
1.10.12
描述一下你遇到的问题。
感谢vant-weapp团队提供组件
我的问题:
使用tabs组件,但是tab是通过数据请求,然后数据遍历渲染出来的。小程序统计JS报错
Cannot read properties of null (reading \'width\')
,查看组件源码发现,猜测可能是tabs组件中在mountd使用requestAnimationFrame执行任务,是否可以将
requestAnimationFrame
替换为nextTick
。因为渲染tags有可能内部tab还没有遍历渲染完,就不能获取到内部的tab元素小程序报错截图
小程序编译代码断点截图
源代码tabs组件截图
感谢帮助
重现步骤
设备/浏览器
Android
The text was updated successfully, but these errors were encountered: