mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 12:14:41 +01:00
chore(Dropdown): rename Item to DropdownItem type
This commit is contained in:
@@ -55,7 +55,7 @@ import UAvatar from '../elements/Avatar.vue'
|
||||
import UKbd from '../elements/Kbd.vue'
|
||||
import ULinkCustom from '../elements/LinkCustom.vue'
|
||||
import { usePopper } from '../../composables/usePopper'
|
||||
import type { Item } from '../../types/dropdown'
|
||||
import type { DropdownItem } from '../../types/dropdown'
|
||||
import type { PopperOptions } from '../../types'
|
||||
import { useAppConfig } from '#imports'
|
||||
// TODO: Remove
|
||||
@@ -77,7 +77,7 @@ export default defineComponent({
|
||||
},
|
||||
props: {
|
||||
items: {
|
||||
type: Array as PropType<Item[][]>,
|
||||
type: Array as PropType<DropdownItem[][]>,
|
||||
default: () => []
|
||||
},
|
||||
mode: {
|
||||
|
||||
2
src/runtime/types/dropdown.d.ts
vendored
2
src/runtime/types/dropdown.d.ts
vendored
@@ -1,7 +1,7 @@
|
||||
import type { RouteLocationRaw } from 'vue-router'
|
||||
import type { Avatar } from './avatar'
|
||||
|
||||
export interface Item {
|
||||
export interface DropdownItem {
|
||||
to?: string | RouteLocationRaw
|
||||
exact?: boolean
|
||||
label: string
|
||||
|
||||
Reference in New Issue
Block a user