ASTElement Type — vue Architecture
Architecture documentation for the ASTElement type/interface in compiler.ts from the vue codebase.
Entity Profile
Source Code
src/types/compiler.ts lines 105–184
export type ASTElement = {
type: 1
tag: string
attrsList: Array<ASTAttr>
attrsMap: { [key: string]: any }
rawAttrsMap: { [key: string]: ASTAttr }
parent: ASTElement | void
children: Array<ASTNode>
start?: number
end?: number
processed?: true
static?: boolean
staticRoot?: boolean
staticInFor?: boolean
staticProcessed?: boolean
hasBindings?: boolean
text?: string
attrs?: Array<ASTAttr>
dynamicAttrs?: Array<ASTAttr>
props?: Array<ASTAttr>
plain?: boolean
pre?: true
ns?: string
component?: string
inlineTemplate?: true
transitionMode?: string | null
slotName?: string | null
slotTarget?: string | null
slotTargetDynamic?: boolean
slotScope?: string | null
scopedSlots?: { [name: string]: ASTElement }
ref?: string
refInFor?: boolean
if?: string
ifProcessed?: boolean
elseif?: string
else?: true
ifConditions?: ASTIfConditions
for?: string
forProcessed?: boolean
key?: string
alias?: string
iterator1?: string
iterator2?: string
staticClass?: string
classBinding?: string
staticStyle?: string
styleBinding?: string
events?: ASTElementHandlers
nativeEvents?: ASTElementHandlers
transition?: string | true
transitionOnAppear?: boolean
model?: {
value: string
callback: string
expression: string
}
directives?: Array<ASTDirective>
forbidden?: true
once?: true
onceProcessed?: boolean
wrapData?: (code: string) => string
wrapListeners?: (code: string) => string
// 2.4 ssr optimization
ssrOptimizability?: number
}
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free