mirror of
https://github.com/vuejs/vue.git
synced 2024-11-22 04:39:46 +00:00
parent
52a59790a5
commit
e0a9546ef3
@ -28,6 +28,9 @@ Vue.extend({
|
||||
}
|
||||
ctx.emit('foo')
|
||||
ctx.slots.default && ctx.slots.default()
|
||||
ctx.expose({
|
||||
a: 123
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
|
1
types/v3-setup-context.d.ts
vendored
1
types/v3-setup-context.d.ts
vendored
@ -33,4 +33,5 @@ export interface SetupContext<E extends EmitsOptions = {}> {
|
||||
attrs: Data
|
||||
slots: Slots
|
||||
emit: EmitFn<E>
|
||||
expose(exposed?: Record<string, any>): void
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user