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

Function setup

packages/runtime-dom/__tests__/patchProps.spec.ts:366–379  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

364 const fn = vi.fn()
365 const comp = {
366 setup() {
367 const checked = ref()
368 return () =>
369 withDirectives(
370 h('input', {
371 type: 'checkbox',
372 value: undefined,
373 'onUpdate:modelValue': (value: any) => {
374 checked.value = value
375 },
376 }),
377 [[vModelCheckbox, checked.value]],
378 )
379 },
380 }
381
382 const root = document.createElement('div')

Callers

nothing calls this directly

Calls 3

refFunction · 0.90
withDirectivesFunction · 0.90
hFunction · 0.90

Tested by

no test coverage detected