🎈 perf(优化):
This commit is contained in:
parent
25aff4f481
commit
2a8a13cca2
@ -298,11 +298,11 @@ export default memo(({ show = false, onClose, title = '', productId = 0 }: param
|
||||
<View className={styles.color_con}>
|
||||
<VirtualList
|
||||
className={styles.virtual_list}
|
||||
height={400} /* 列表的高度 */
|
||||
width='100%' /* 列表的宽度 */
|
||||
itemData={list} /* 渲染列表的数据 */
|
||||
itemCount={list.length + 1} /* 渲染列表的长度 */
|
||||
itemSize={100} /* 列表单项的高度 */
|
||||
height={400}
|
||||
width='100%'
|
||||
itemData={list}
|
||||
itemCount={list.length + 1}
|
||||
itemSize={100}
|
||||
overscanCount={1}>
|
||||
{Rows}
|
||||
</VirtualList>
|
||||
|
Loading…
x
Reference in New Issue
Block a user