opt: fix proxy handler use target directly

This commit is contained in:
pengfei.zhou
2021-06-03 18:24:02 +08:00
committed by osborn
parent 5a9b55c75b
commit 864ffa0de7
5 changed files with 5 additions and 5 deletions

View File

@@ -451,7 +451,7 @@ export abstract class Group extends Superview {
set: (target, index, value) => {
const ret = Reflect.set(target, index, value)
// Let getDirty return true
this.dirtyProps.children = this.children.map(e => e.viewId)
this.dirtyProps.children = (target as View[]).map(e => e.viewId)
return ret
}
})