chore: improve types and imports

This commit is contained in:
Benjamin Canac
2022-07-21 23:33:06 +02:00
parent 7b3263a621
commit 6b813bd3b3
26 changed files with 93 additions and 62 deletions

View File

@@ -42,18 +42,28 @@ import {
MenuItems,
MenuItem
} from '@headlessui/vue'
import type { Ref } from 'vue'
import type { Ref, PropType } from 'vue'
import type { RouteLocationNormalized } from 'vue-router'
import { ref, onMounted } from 'vue'
import NuxtLink from '#app/components/nuxt-link'
import Icon from '../elements/Icon'
import Avatar from '../elements/Avatar'
import Icon from '../elements/Icon.vue'
import Avatar from '../elements/Avatar.vue'
import { classNames, usePopper } from '../../utils'
import type { Avatar as AvatarType } from '../../types/avatar'
import $ui from '#build/ui'
const props = defineProps({
items: {
type: Array,
type: Array as PropType<{
to: RouteLocationNormalized
exact: boolean
label: string
disabled?: boolean
slot?: string
icon?: string
avatar?: Partial<AvatarType>
click?: Function
}[][]>,
default: () => []
},
placement: {