mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-03-05 17:57:13 +00:00
feat: add slotNode for shell prop
This commit is contained in:
parent
8af35a3dc4
commit
7a14fff218
@ -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