chore(Dropdown): rename Item to DropdownItem type

This commit is contained in:
Benjamin Canac
2023-07-17 11:17:39 +02:00
parent 773a23f969
commit 5a4d0e1097
2 changed files with 3 additions and 3 deletions

View File

@@ -55,7 +55,7 @@ import UAvatar from '../elements/Avatar.vue'
import UKbd from '../elements/Kbd.vue' import UKbd from '../elements/Kbd.vue'
import ULinkCustom from '../elements/LinkCustom.vue' import ULinkCustom from '../elements/LinkCustom.vue'
import { usePopper } from '../../composables/usePopper' import { usePopper } from '../../composables/usePopper'
import type { Item } from '../../types/dropdown' import type { DropdownItem } from '../../types/dropdown'
import type { PopperOptions } from '../../types' import type { PopperOptions } from '../../types'
import { useAppConfig } from '#imports' import { useAppConfig } from '#imports'
// TODO: Remove // TODO: Remove
@@ -77,7 +77,7 @@ export default defineComponent({
}, },
props: { props: {
items: { items: {
type: Array as PropType<Item[][]>, type: Array as PropType<DropdownItem[][]>,
default: () => [] default: () => []
}, },
mode: { mode: {

View File

@@ -1,7 +1,7 @@
import type { RouteLocationRaw } from 'vue-router' import type { RouteLocationRaw } from 'vue-router'
import type { Avatar } from './avatar' import type { Avatar } from './avatar'
export interface Item { export interface DropdownItem {
to?: string | RouteLocationRaw to?: string | RouteLocationRaw
exact?: boolean exact?: boolean
label: string label: string