applyModelTransform() — vue Function Reference
Architecture documentation for the applyModelTransform() function in modules.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD 46043458_13ed_3173_6938_1b3beb4bf08a["applyModelTransform()"] 480317ab_b1ef_f907_829e_f74af9eae452["elementToOpenTagSegments()"] 480317ab_b1ef_f907_829e_f74af9eae452 -->|calls| 46043458_13ed_3173_6938_1b3beb4bf08a style 46043458_13ed_3173_6938_1b3beb4bf08a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/server-renderer/src/optimizing-compiler/modules.ts lines 19–33
export function applyModelTransform(el: ASTElement, state: CodegenState) {
if (el.directives) {
for (let i = 0; i < el.directives.length; i++) {
const dir = el.directives[i]
if (dir.name === 'model') {
state.directives.model(el, dir, state.warn)
// remove value for textarea as its converted to text
if (el.tag === 'textarea' && el.props) {
el.props = el.props.filter(p => p.name !== 'value')
}
break
}
}
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does applyModelTransform() do?
applyModelTransform() is a function in the vue codebase.
What calls applyModelTransform()?
applyModelTransform() is called by 1 function(s): elementToOpenTagSegments.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free