feat(compiler-core): support <portal> in template (#203)
This commit is contained in:
@@ -49,7 +49,8 @@ export const enum ElementTypes {
|
||||
ELEMENT,
|
||||
COMPONENT,
|
||||
SLOT,
|
||||
TEMPLATE
|
||||
TEMPLATE,
|
||||
PORTAL
|
||||
}
|
||||
|
||||
export interface Node {
|
||||
@@ -99,6 +100,7 @@ export type ElementNode =
|
||||
| ComponentNode
|
||||
| SlotOutletNode
|
||||
| TemplateNode
|
||||
| PortalNode
|
||||
|
||||
export interface BaseElementNode extends Node {
|
||||
type: NodeTypes.ELEMENT
|
||||
@@ -134,6 +136,11 @@ export interface TemplateNode extends BaseElementNode {
|
||||
| undefined
|
||||
}
|
||||
|
||||
export interface PortalNode extends BaseElementNode {
|
||||
tagType: ElementTypes.PORTAL
|
||||
codegenNode: ElementCodegenNode | undefined
|
||||
}
|
||||
|
||||
export interface TextNode extends Node {
|
||||
type: NodeTypes.TEXT
|
||||
content: string
|
||||
|
||||
Reference in New Issue
Block a user