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

@@ -83,8 +83,9 @@ class ListVM extends ViewModel<ListModel, ListVH> {
heightSpec: LayoutSpec.JUST,
},
height: 50,
onClick: function () {
(this as Text).height += 10
onClick: () => {
data.text += "1"
vh.list.reload(this.context)
}
})
]), {