MCPcopy
hub / github.com/vuejs/core / getValue

Function getValue

packages/runtime-dom/src/directives/vModel.ts:284–286  ·  view source on GitHub ↗
(el: HTMLOptionElement | HTMLInputElement)

Source from the content-addressed store, hash-verified

282
283// retrieve raw value set via :value bindings
284function getValue(el: HTMLOptionElement | HTMLInputElement) {
285 return '_value' in el ? (el as any)._value : el.value
286}
287
288// retrieve raw value for true-value and false-value set via :true-value or :false-value bindings
289function getCheckboxValue(

Callers 2

createdFunction · 0.85
setSelectedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected