diff --git a/packages/core/src/Accordion/AccordionRoot.vue b/packages/core/src/Accordion/AccordionRoot.vue index 83a141851..0c20ee5c3 100644 --- a/packages/core/src/Accordion/AccordionRoot.vue +++ b/packages/core/src/Accordion/AccordionRoot.vue @@ -83,7 +83,7 @@ const emits = defineEmits>() defineSlots<{ default: (props: { /** Current active value */ - modelValue: typeof modelValue.value + modelValue: SingleOrMultipleTypeProps['modelValue'] }) => any }>() @@ -113,6 +113,6 @@ provideAccordionRootContext({ :as-child="asChild" :as="as" > - + diff --git a/packages/core/src/Combobox/ComboboxRoot.vue b/packages/core/src/Combobox/ComboboxRoot.vue index f33757c13..c51a20aae 100644 --- a/packages/core/src/Combobox/ComboboxRoot.vue +++ b/packages/core/src/Combobox/ComboboxRoot.vue @@ -3,7 +3,7 @@ import type { Ref } from 'vue' import type { ListboxRootProps } from '@/Listbox' import { createContext, useDirection, useFilter } from '@/shared' import { usePrimitiveElement } from '@/Primitive' -import type { AcceptableValue, GenericComponentInstance } from '@/shared/types' +import type { AcceptableValue, GenericComponentInstance, SingleOrMultipleProps } from '@/shared/types' type ComboboxRootContext = { modelValue: Ref> @@ -76,7 +76,7 @@ defineSlots<{ /** Current open state */ open: typeof open.value /** Current active value */ - modelValue: typeof modelValue.value + modelValue: SingleOrMultipleProps['modelValue'] }) => any }>() @@ -239,7 +239,7 @@ provideComboboxRootContext({ > diff --git a/packages/core/src/Listbox/ListboxRoot.vue b/packages/core/src/Listbox/ListboxRoot.vue index 5b008132c..342d7d741 100644 --- a/packages/core/src/Listbox/ListboxRoot.vue +++ b/packages/core/src/Listbox/ListboxRoot.vue @@ -56,7 +56,7 @@ export interface ListboxRootProps boolean) } -export type ListboxRootEmits = { +export type ListboxRootEmits = { /** Event handler called when the value changes. */ 'update:modelValue': [value: S extends true ? T[] : T] /** Event handler when highlighted element changes. */ @@ -79,12 +79,12 @@ const props = withDefaults(defineProps>(), { selectionBehavior: 'toggle', orientation: 'vertical', }) -const emits = defineEmits>() +const emits = defineEmits>() defineSlots<{ default: (props: { /** Current active value */ - modelValue: typeof modelValue.value + modelValue: SingleOrMultipleProps['modelValue'] }) => any }>() @@ -392,7 +392,7 @@ provideListboxRootContext({ } }" > - + >() defineSlots<{ default: (props: { /** Current input values */ - modelValue: typeof modelValue.value + modelValue: SingleOrMultipleProps['modelValue'] /** Current open state */ open: typeof open.value }) => any @@ -172,7 +172,7 @@ provideSelectRootContext({