mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-02-02 13:17:57 +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 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: {
|
||||||
|
|||||||
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 { 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
|
||||||
|
|||||||
Reference in New Issue
Block a user