Merge commit 'c21d7f13f33f15e48b1ad3c0f95fa687364dd8fb' into def_releases_2021092316393939_ali-lowcode_ali-lowcode-engine/1.0.69

This commit is contained in:
tbfed 2021-09-29 14:03:07 +08:00
commit 39307fb847

View File

@ -140,10 +140,13 @@ export function leafWrapper(Comp: types.IBaseRenderer, {
}
componentWillReceiveProps(nextProps: any) {
const { _leaf, __tag, children, ...rest } = nextProps;
if (nextProps.__tag === this.state.__tag) {
this.setState({
nodeProps: rest,
});
return null;
}
const { _leaf, __tag, children, ...rest } = nextProps;
if (_leaf && this.leaf && _leaf !== this.leaf) {
this.disposeFunctions.forEach(fn => fn());
this.disposeFunctions = [];