Interface VNode<HostNode, HostElement, ExtraProps>

interface VNode {
    anchor: null | HostNode;
    appContext: null | AppContext;
    children: VNodeNormalizedChildren;
    component: null | ComponentInternalInstance;
    dirs: null | DirectiveBinding<any>[];
    el: null | HostNode;
    key: null | string | number | symbol;
    patchFlag: number;
    props: null | VNodeProps & ExtraProps;
    ref: null | VNodeNormalizedRef;
    scopeId: null | string;
    shapeFlag: number;
    suspense: null | SuspenseBoundary;
    target: null | HostElement;
    targetAnchor: null | HostNode;
    transition: null | TransitionHooks<HostElement>;
    type: VNodeTypes;
}

Type Parameters

Properties

anchor: null | HostNode
appContext: null | AppContext
component: null | ComponentInternalInstance
dirs: null | DirectiveBinding<any>[]
el: null | HostNode
key: null | string | number | symbol
patchFlag: number
props: null | VNodeProps & ExtraProps
ref: null | VNodeNormalizedRef
scopeId: null | string

SFC only. This is assigned on vnode creation using currentScopeId which is set alongside currentRenderingInstance.

shapeFlag: number
suspense: null | SuspenseBoundary
target: null | HostElement
targetAnchor: null | HostNode
transition: null | TransitionHooks<HostElement>

Generated using TypeDoc