diff --git a/packages/designer/src/document/node/props/prop.ts b/packages/designer/src/document/node/props/prop.ts index e903f70ef..448f72f9c 100644 --- a/packages/designer/src/document/node/props/prop.ts +++ b/packages/designer/src/document/node/props/prop.ts @@ -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(); } } diff --git a/packages/types/src/schema.ts b/packages/types/src/schema.ts index 85f8521bd..8ca0f2b5f 100644 --- a/packages/types/src/schema.ts +++ b/packages/types/src/schema.ts @@ -95,6 +95,7 @@ export type RootSchema = PageSchema | ComponentSchema | BlockSchema; export interface SlotSchema extends NodeSchema { componentName: 'Slot'; + name?: string; params?: string[]; }