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

Function setup

packages/runtime-core/__tests__/helpers/useModel.spec.ts:33–39  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

31 props: ['modelValue'],
32 emits: ['update:modelValue'],
33 setup(props) {
34 foo = useModel(props, 'modelValue')
35 return () => {
36 compRender()
37 return foo.value
38 }
39 },
40 })
41
42 const msg = ref('')

Callers

nothing calls this directly

Calls 7

useModelFunction · 0.90
hFunction · 0.85
openBlockFunction · 0.85
createElementBlockFunction · 0.85
refFunction · 0.50
watchFunction · 0.50
setValueFunction · 0.50

Tested by

no test coverage detected