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

Function setup

packages/runtime-core/__tests__/apiExpose.spec.ts:8–17  ·  view source on GitHub ↗
(_, { expose })

Source from the content-addressed store, hash-verified

6 const Child = defineComponent({
7 render() {},
8 setup(_, { expose }) {
9 expose({
10 foo: 1,
11 bar: ref(2),
12 })
13 return {
14 bar: ref(3),
15 baz: ref(4),
16 }
17 },
18 })
19
20 const childRef = ref()

Callers

nothing calls this directly

Calls 3

refFunction · 0.90
hFunction · 0.90
exposeFunction · 0.85

Tested by

no test coverage detected