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 5d51b92c_25f3_226b_3352_9a8026c7b04b["ASTElement"] d24a563e_3268_196c_05d7_d517e9d8aafa["index.d.ts"] 5d51b92c_25f3_226b_3352_9a8026c7b04b -->|defined in| d24a563e_3268_196c_05d7_d517e9d8aafa style 5d51b92c_25f3_226b_3352_9a8026c7b04b 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