fix: added emits property to Vue components (#199)

This commit is contained in:
Tobias Kündig
2021-01-22 13:13:20 +01:00
committed by GitHub
parent 17a853501d
commit de16c1bd80
2 changed files with 2 additions and 0 deletions
@@ -71,6 +71,7 @@ function useListboxContext(component: string) {
export const Listbox = defineComponent({
name: 'Listbox',
emits: ['update:modelValue'],
props: {
as: { type: [Object, String], default: 'template' },
modelValue: { type: [Object, String, Number, Boolean], default: null },
@@ -48,6 +48,7 @@ export const SwitchGroup = defineComponent({
export const Switch = defineComponent({
name: 'Switch',
emits: ['update:modelValue'],
props: {
as: { type: [Object, String], default: 'button' },
modelValue: { type: [Object, Boolean], default: null },