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

Function getModelAssigner

packages/runtime-dom/src/directives/vModel.ts:21–26  ·  view source on GitHub ↗
(vnode: VNode)

Source from the content-addressed store, hash-verified

19type AssignerFn = (value: any) => void
20
21const getModelAssigner = (vnode: VNode): AssignerFn => {
22 const fn =
23 vnode.props!['onUpdate:modelValue'] ||
24 (__COMPAT__ && vnode.props!['onModelCompat:input'])
25 return isArray(fn) ? value => invokeArrayFns(fn, value) : fn
26}
27
28function onCompositionStart(e: Event) {
29 ;(e.target as any).composing = true

Callers 2

createdFunction · 0.85
beforeUpdateFunction · 0.85

Calls 1

invokeArrayFnsFunction · 0.90

Tested by

no test coverage detected