mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-02-04 14:17:55 +01:00
docs: improve props types (#588)
This commit is contained in:
@@ -34,7 +34,7 @@ import { twMerge } from 'tailwind-merge'
|
||||
import { Popover as HPopover, PopoverButton as HPopoverButton, PopoverPanel as HPopoverPanel } from '@headlessui/vue'
|
||||
import { usePopper } from '../../composables/usePopper'
|
||||
import { defuTwMerge } from '../../utils'
|
||||
import type { PopperOptions } from '../../types'
|
||||
import type { PopperOptions } from '../../types/popper'
|
||||
import { useAppConfig } from '#imports'
|
||||
// TODO: Remove
|
||||
// @ts-expect-error
|
||||
@@ -51,11 +51,9 @@ export default defineComponent({
|
||||
inheritAttrs: false,
|
||||
props: {
|
||||
mode: {
|
||||
type: String,
|
||||
type: String as PropType<'click' | 'hover'>,
|
||||
default: 'click',
|
||||
validator: (value: string) => {
|
||||
return ['click', 'hover'].includes(value)
|
||||
}
|
||||
validator: (value: string) => ['click', 'hover'].includes(value)
|
||||
},
|
||||
disabled: {
|
||||
type: Boolean,
|
||||
|
||||
Reference in New Issue
Block a user