mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-12 17:08:14 +00:00
fix: 处理复杂 prop 对象在 dispose 时没有清除子对象中的 slot 实例
This commit is contained in:
parent
901510f326
commit
9babbe7f9c
@ -590,7 +590,7 @@ export class Prop implements IPropParent {
|
||||
}
|
||||
this._maps = null;
|
||||
if (this._slotNode && this._slotNode.slotFor === this) {
|
||||
this._slotNode.purge();
|
||||
this._slotNode.remove();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -95,6 +95,7 @@ export type RootSchema = PageSchema | ComponentSchema | BlockSchema;
|
||||
|
||||
export interface SlotSchema extends NodeSchema {
|
||||
componentName: 'Slot';
|
||||
name?: string;
|
||||
params?: string[];
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user