default.updated() — vue Function Reference
Architecture documentation for the default.updated() function in transition-group.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 6fe78fb0_2b1f_cb8f_eaeb_8f1fba2700a1["default.updated()"] 8604834e_72c7_6a5f_2bab_e07b77f57174["addTransitionClass()"] 6fe78fb0_2b1f_cb8f_eaeb_8f1fba2700a1 -->|calls| 8604834e_72c7_6a5f_2bab_e07b77f57174 90afa8b0_bab8_d609_1928_b82464e9f59a["removeTransitionClass()"] 6fe78fb0_2b1f_cb8f_eaeb_8f1fba2700a1 -->|calls| 90afa8b0_bab8_d609_1928_b82464e9f59a style 6fe78fb0_2b1f_cb8f_eaeb_8f1fba2700a1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/platforms/web/runtime/components/transition-group.ts lines 104–143
updated() {
const children: Array<VNodeWithData> = this.prevChildren
const moveClass: string = this.moveClass || (this.name || 'v') + '-move'
if (!children.length || !this.hasMove(children[0].elm, moveClass)) {
return
}
// we divide the work into three loops to avoid mixing DOM reads and writes
// in each iteration - which helps prevent layout thrashing.
children.forEach(callPendingCbs)
children.forEach(recordPosition)
children.forEach(applyTranslation)
// force reflow to put everything in position
// assign to this to avoid being removed in tree-shaking
// $flow-disable-line
this._reflow = document.body.offsetHeight
children.forEach((c: VNode) => {
if (c.data!.moved) {
const el: any = c.elm
const s: any = el.style
addTransitionClass(el, moveClass)
s.transform = s.WebkitTransform = s.transitionDuration = ''
el.addEventListener(
transitionEndEvent,
(el._moveCb = function cb(e) {
if (e && e.target !== el) {
return
}
if (!e || /transform$/.test(e.propertyName)) {
el.removeEventListener(transitionEndEvent, cb)
el._moveCb = null
removeTransitionClass(el, moveClass)
}
})
)
}
})
},
Domain
Subdomains
Source
Frequently Asked Questions
What does default.updated() do?
default.updated() is a function in the vue codebase.
What does default.updated() call?
default.updated() calls 2 function(s): addTransitionClass, removeTransitionClass.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free