mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-12 17:08:14 +00:00
Merge commit 'c21d7f13f33f15e48b1ad3c0f95fa687364dd8fb' into def_releases_2021092316393939_ali-lowcode_ali-lowcode-engine/1.0.69
This commit is contained in:
commit
39307fb847
@ -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 = [];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user