genRadioModel() — vue Function Reference
Architecture documentation for the genRadioModel() function in model.ts from the vue codebase.
Entity Profile
Dependency Diagram
graph TD e0270395_cfcd_95be_7420_a465afa99bd7["genRadioModel()"] fba67da2_5967_6779_f088_36da3dcbd363["model.ts"] e0270395_cfcd_95be_7420_a465afa99bd7 -->|defined in| fba67da2_5967_6779_f088_36da3dcbd363 604989de_6282_4011_dd2f_f80716675ba4["model()"] 604989de_6282_4011_dd2f_f80716675ba4 -->|calls| e0270395_cfcd_95be_7420_a465afa99bd7 style e0270395_cfcd_95be_7420_a465afa99bd7 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