mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2025-12-12 11:20:11 +00:00
feat: add slotNode for shell prop
This commit is contained in:
parent
2f8b9545de
commit
d9a44c5de7
@ -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
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user