listview use supernode

This commit is contained in:
pengfei.zhou
2019-11-14 21:00:33 +08:00
parent e3d07dc3ef
commit 401d0e57a0
7 changed files with 43 additions and 41 deletions

View File

@@ -70,7 +70,7 @@ export class List extends Superview implements IList {
private renderBunchedItems(start: number, length: number) {
return new Array(Math.min(length, this.itemCount - start)).fill(0).map((_, idx) => {
const listItem = this.getItem(start + idx)
return listItem.viewId
return listItem.toModel()
})
}
}