提交 1a2dcc68 编写于 作者: shutao-dc's avatar shutao-dc

update list-view.md

上级 05289dcc
......@@ -29,7 +29,12 @@ list-view和scroll-view都是滚动组件,list适用于长列表场景,其
<!-- UTSCOMJSON.list-item.description -->
<!-- UTSCOMJSON.list-item.attrubute -->
<!-- UTSCOMJSON.list-item.attrubute -->
### list-item复用机制
type属性定义list-item组件类型。每一个type类型都会有对应的list-item组件缓存池,当list-view组件滚动触发加载list-item组件时,会优先查询对应type缓存池是否存在可复用的list-item组件。有则复用没有则创建新的list-item组件。
当list-item组件被滚动出屏幕则会优先添加到对应类型的list-item缓存池,每个类型缓存最大5个(不同平台缓存最大值不固定),如果缓存池已满则进行组件销毁!减少不必要的内存占用。
<!-- UTSCOMJSON.list-item.event -->
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册