default.render() — vue Function Reference
Architecture documentation for the default.render() function in transition-group.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 66553ff0_65bc_d871_35c1_f0b228325a77["default.render()"] 7c91c607_f320_9fb6_0e00_4e5d50689bec["transition-group.ts"] 66553ff0_65bc_d871_35c1_f0b228325a77 -->|defined in| 7c91c607_f320_9fb6_0e00_4e5d50689bec b540b163_1630_f661_69e2_d6cd1c278184["extractTransitionData()"] 66553ff0_65bc_d871_35c1_f0b228325a77 -->|calls| b540b163_1630_f661_69e2_d6cd1c278184 style 66553ff0_65bc_d871_35c1_f0b228325a77 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/platforms/web/runtime/components/transition-group.ts lines 58–102
render(h: Function) {
const tag: string = this.tag || this.$vnode.data.tag || 'span'
const map: Record<string, any> = Object.create(null)
const prevChildren: Array<VNode> = (this.prevChildren = this.children)
const rawChildren: Array<VNode> = this.$slots.default || []
const children: Array<VNode> = (this.children = [])
const transitionData = extractTransitionData(this)
for (let i = 0; i < rawChildren.length; i++) {
const c: VNode = rawChildren[i]
if (c.tag) {
if (c.key != null && String(c.key).indexOf('__vlist') !== 0) {
children.push(c)
map[c.key] = c
;(c.data || (c.data = {})).transition = transitionData
} else if (__DEV__) {
const opts = c.componentOptions
const name: string = opts
? getComponentName(opts.Ctor.options as any) || opts.tag || ''
: c.tag
warn(`<transition-group> children must be keyed: <${name}>`)
}
}
}
if (prevChildren) {
const kept: Array<VNode> = []
const removed: Array<VNode> = []
for (let i = 0; i < prevChildren.length; i++) {
const c: VNode = prevChildren[i]
c.data!.transition = transitionData
// @ts-expect-error .getBoundingClientRect is not typed in Node
c.data!.pos = c.elm.getBoundingClientRect()
if (map[c.key!]) {
kept.push(c)
} else {
removed.push(c)
}
}
this.kept = h(tag, null, kept)
this.removed = removed
}
return h(tag, null, children)
},
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does default.render() do?
default.render() is a function in the vue codebase, defined in src/platforms/web/runtime/components/transition-group.ts.
Where is default.render() defined?
default.render() is defined in src/platforms/web/runtime/components/transition-group.ts at line 58.
What does default.render() call?
default.render() calls 1 function(s): extractTransitionData.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free