Skip to content

Commit d9a44c5

Browse files
committed
feat: add slotNode for shell prop
1 parent 2f8b954 commit d9a44c5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/shell/src/prop.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ export default class Prop {
4343
return Node.create(this[propSymbol].getNode());
4444
}
4545

46+
/**
47+
* return the slot node (only if the current prop represents a slot)
48+
*/
49+
get slotNode(): Node | null {
50+
return Node.create(this[propSymbol].slotNode);
51+
}
52+
4653
/**
4754
* judge if it is a prop or not
4855
*/

0 commit comments

Comments
 (0)