js: list add reload api

This commit is contained in:
pengfei.zhou
2022-08-16 17:44:03 +08:00
committed by osborn
parent 7dda15efbd
commit 3de2162ef6
12 changed files with 56 additions and 3 deletions

View File

@@ -116,6 +116,11 @@ export class List extends Superview {
this.cachedViews.clear()
this.itemCount = 0
}
reload(context: BridgeContext) {
return this.nativeChannel(context, 'reload')() as Promise<void>
}
private getItem(itemIdx: number) {
let view = this.renderItem(itemIdx)
view.superview = this