fix: added emits property to Vue components (#199)
This commit is contained in:
@@ -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 },
|
||||
|
||||
Reference in New Issue
Block a user