VirtualList itemSize #9298
-
长列表itemSize怎么转为rpx? |
Beta Was this translation helpful? Give feedback.
Answered by
ZakaryCode
May 31, 2021
Replies: 2 comments 3 replies
-
可以看看文档这里哦 |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
ZakaryCode
-
做一个骨架屏组件,骨架屏item的高度跟实际列表的item高度一样,然后获取item的rect得到height,再付给虚拟列表的itemSize |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
可以看看文档这里哦
https://nervjs.github.io/taro/docs/size.html#api