Interface VNode<HostNode, HostElement, ExtraProps>

interface VNode<HostNode, HostElement, ExtraProps> {
    anchor: null | HostNode;
    appContext: null | AppContext;
    children: VNodeNormalizedChildren;
    component: null | ComponentInternalInstance;
    dirs: null | DirectiveBinding<any>[];
    el: null | HostNode;
    key: null | PropertyKey;
    patchFlag: number;
    props: null | VNodeProps & ExtraProps;
    ref: null | VNodeNormalizedRef;
    scopeId: null | string;
    shapeFlag: number;
    suspense: null | SuspenseBoundary;
    target: null | HostElement;
    targetAnchor: null | HostNode;
    targetStart: 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 | PropertyKey
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
targetStart: null | HostNode
transition: null | TransitionHooks<HostElement>