diff --git a/packages/shell/src/prop.ts b/packages/shell/src/prop.ts index 9d5f42cb5..aba59ca73 100644 --- a/packages/shell/src/prop.ts +++ b/packages/shell/src/prop.ts @@ -43,6 +43,13 @@ export default class Prop { return Node.create(this[propSymbol].getNode()); } + /** + * return the slot node (only if the current prop represents a slot) + */ + get slotNode(): Node | null { + return Node.create(this[propSymbol].slotNode); + } + /** * judge if it is a prop or not */