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
虚拟滚动 itemSize 类型为 number,实际情况是 VirtualList 组件里写的是px,这样就导致不同的设备类型不适配,能否支持写rpx? 或者告知下 itemSize 适配不同设备的方法?
itemSize 可以写字符串,支持 rpx
The text was updated successfully, but these errors were encountered:
Taro.pxTransform 转换下?
Sorry, something went wrong.
这个怎么解决的?
压根就别用virtuallist,这个组件没放进导出模块就是因为没写好。
虚拟滚动 itemSize 类型为 number,实际情况是 VirtualList 组件里写的是px,这样就导致不同的设备类型不适配,能否支持写rpx?
不太可能支持,如果该参数支持更多单位会导致虚拟列表复杂度上升,且 rpx 一类单位无法在组件内计算相关值,这会导致组件显示出现错误
或者告知下 itemSize 适配不同设备的方法
由于该参数仅对应子节点高度,需要额外适配耗费的情况比较少,同时对于该类情况可以通过 pxTransform 将子节点高度与 itemSize 对齐
Successfully merging a pull request may close this issue.
这个特性解决了什么问题?
虚拟滚动 itemSize 类型为 number,实际情况是 VirtualList 组件里写的是px,这样就导致不同的设备类型不适配,能否支持写rpx? 或者告知下 itemSize 适配不同设备的方法?
这个 API 长什么样?
itemSize 可以写字符串,支持 rpx
The text was updated successfully, but these errors were encountered: