implent mvvm

This commit is contained in:
pengfei.zhou
2019-07-24 16:38:34 +08:00
parent f33c320b0c
commit 43fd9fedd1
7 changed files with 119 additions and 59 deletions

View File

@@ -252,6 +252,10 @@ export abstract class Group extends View {
onChildPropertyChanged(child: View) {
this.getDirtyChildrenModel()[this.children.indexOf(child)] = child.nativeViewModel
this.getDirtyChildrenModel().length = this.children.length
if (this.parent) {
this.parent.onChildPropertyChanged(this)
}
}
isDirty() {