ASTElement Type — vue Architecture
Architecture documentation for the ASTElement type/interface in index.d.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 9aa1c9d5_a08b_55c0_1515_e9394644e5e6["ASTElement"] 8aab0d1d_0ff3_3213_06b3_683bf6334b32["index.d.ts"] 9aa1c9d5_a08b_55c0_1515_e9394644e5e6 -->|defined in| 8aab0d1d_0ff3_3213_06b3_683bf6334b32 style 9aa1c9d5_a08b_55c0_1515_e9394644e5e6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/template-compiler/types/index.d.ts lines 90–163
export interface ASTElement {
type: 1
tag: string
attrsList: { name: string; value: any }[]
attrsMap: Record<string, any>
parent: ASTElement | undefined
children: ASTNode[]
processed?: true
static?: boolean
staticRoot?: boolean
staticInFor?: boolean
staticProcessed?: boolean
hasBindings?: boolean
text?: string
attrs?: { name: string; value: any }[]
props?: { name: string; value: string }[]
plain?: boolean
pre?: true
ns?: string
component?: string
inlineTemplate?: true
transitionMode?: string | null
slotName?: string
slotTarget?: string
slotScope?: string
scopedSlots?: Record<string, ASTElement>
ref?: string
refInFor?: boolean
if?: string
ifProcessed?: boolean
elseif?: string
else?: true
ifConditions?: ASTIfCondition[]
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?: ASTDirective[]
forbidden?: true
once?: true
onceProcessed?: boolean
wrapData?: (code: string) => string
wrapListeners?: (code: string) => string
// 2.4 ssr optimization
ssrOptimizability?: SSROptimizability
}
Defined In
Source
Frequently Asked Questions
What is the ASTElement type?
ASTElement is a type/interface in the vue codebase, defined in packages/template-compiler/types/index.d.ts.
Where is ASTElement defined?
ASTElement is defined in packages/template-compiler/types/index.d.ts at line 90.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free