opt: fix proxy handler use target directly
This commit is contained in:
parent
5a9b55c75b
commit
864ffa0de7
@ -503,7 +503,7 @@ class Group extends Superview {
|
|||||||
set: (target, index, value) => {
|
set: (target, index, value) => {
|
||||||
const ret = Reflect.set(target, index, value);
|
const ret = Reflect.set(target, index, value);
|
||||||
// Let getDirty return true
|
// Let getDirty return true
|
||||||
this.dirtyProps.children = this.children.map(e => e.viewId);
|
this.dirtyProps.children = target.map(e => e.viewId);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -2024,7 +2024,7 @@ class Group extends Superview {
|
|||||||
set: (target, index, value) => {
|
set: (target, index, value) => {
|
||||||
const ret = Reflect.set(target, index, value);
|
const ret = Reflect.set(target, index, value);
|
||||||
// Let getDirty return true
|
// Let getDirty return true
|
||||||
this.dirtyProps.children = this.children.map(e => e.viewId);
|
this.dirtyProps.children = target.map(e => e.viewId);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -385,7 +385,7 @@ export class Group extends Superview {
|
|||||||
set: (target, index, value) => {
|
set: (target, index, value) => {
|
||||||
const ret = Reflect.set(target, index, value);
|
const ret = Reflect.set(target, index, value);
|
||||||
// Let getDirty return true
|
// Let getDirty return true
|
||||||
this.dirtyProps.children = this.children.map(e => e.viewId);
|
this.dirtyProps.children = target.map(e => e.viewId);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -451,7 +451,7 @@ export abstract class Group extends Superview {
|
|||||||
set: (target, index, value) => {
|
set: (target, index, value) => {
|
||||||
const ret = Reflect.set(target, index, value)
|
const ret = Reflect.set(target, index, value)
|
||||||
// Let getDirty return true
|
// 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
|
return ret
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
2
doric-web/dist/index.js
vendored
2
doric-web/dist/index.js
vendored
@ -2078,7 +2078,7 @@ class Group extends Superview {
|
|||||||
set: (target, index, value) => {
|
set: (target, index, value) => {
|
||||||
const ret = Reflect.set(target, index, value);
|
const ret = Reflect.set(target, index, value);
|
||||||
// Let getDirty return true
|
// Let getDirty return true
|
||||||
this.dirtyProps.children = this.children.map(e => e.viewId);
|
this.dirtyProps.children = target.map(e => e.viewId);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user