checkDuration() — vue Function Reference
Architecture documentation for the checkDuration() function in transition.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD b0759915_6b10_041f_5114_4d9bd88aef97["checkDuration()"] 9054be9b_2c50_137b_ab18_88c14104b006["transition.ts"] b0759915_6b10_041f_5114_4d9bd88aef97 -->|defined in| 9054be9b_2c50_137b_ab18_88c14104b006 5e37a19f_afa0_336d_f8ac_7a3188ea138b["enter()"] 5e37a19f_afa0_336d_f8ac_7a3188ea138b -->|calls| b0759915_6b10_041f_5114_4d9bd88aef97 755e8a88_aa58_e408_b321_a376fb0706e8["leave()"] 755e8a88_aa58_e408_b321_a376fb0706e8 -->|calls| b0759915_6b10_041f_5114_4d9bd88aef97 style b0759915_6b10_041f_5114_4d9bd88aef97 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/platforms/web/runtime/modules/transition.ts lines 278–292
function checkDuration(val, name, vnode) {
if (typeof val !== 'number') {
warn(
`<transition> explicit ${name} duration is not a valid number - ` +
`got ${JSON.stringify(val)}.`,
vnode.context
)
} else if (isNaN(val)) {
warn(
`<transition> explicit ${name} duration is NaN - ` +
'the duration expression might be incorrect.',
vnode.context
)
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does checkDuration() do?
checkDuration() is a function in the vue codebase, defined in src/platforms/web/runtime/modules/transition.ts.
Where is checkDuration() defined?
checkDuration() is defined in src/platforms/web/runtime/modules/transition.ts at line 278.
What calls checkDuration()?
checkDuration() is called by 2 function(s): enter, leave.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free