genRadioModel() — vue Function Reference
Architecture documentation for the genRadioModel() function in model.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD fb457e23_0ab3_279f_682a_3810510d757d["genRadioModel()"] 15390ccf_ab46_d508_a1ed_b3b87cc03914["model.ts"] fb457e23_0ab3_279f_682a_3810510d757d -->|defined in| 15390ccf_ab46_d508_a1ed_b3b87cc03914 d13f0020_9aae_98ba_33de_e0cf5575ddfd["model()"] d13f0020_9aae_98ba_33de_e0cf5575ddfd -->|calls| fb457e23_0ab3_279f_682a_3810510d757d style fb457e23_0ab3_279f_682a_3810510d757d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
src/platforms/web/compiler/directives/model.ts lines 107–117
function genRadioModel(
el: ASTElement,
value: string,
modifiers?: ASTModifiers | null
) {
const number = modifiers && modifiers.number
let valueBinding = getBindingAttr(el, 'value') || 'null'
valueBinding = number ? `_n(${valueBinding})` : valueBinding
addProp(el, 'checked', `_q(${value},${valueBinding})`)
addHandler(el, 'change', genAssignmentCode(value, valueBinding), null, true)
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does genRadioModel() do?
genRadioModel() is a function in the vue codebase, defined in src/platforms/web/compiler/directives/model.ts.
Where is genRadioModel() defined?
genRadioModel() is defined in src/platforms/web/compiler/directives/model.ts at line 107.
What calls genRadioModel()?
genRadioModel() is called by 1 function(s): model.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free