mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-12 17:08:14 +00:00
fix: Tab cant change
This commit is contained in:
parent
6fad8fb86a
commit
c21d7f13f3
@ -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