mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-21 07:21:46 +01:00
chore(VerticalNavigation): rename Link to VerticalNavigationLink type
This commit is contained in:
@@ -45,7 +45,7 @@ import { omit } from 'lodash-es'
|
||||
import UIcon from '../elements/Icon.vue'
|
||||
import UAvatar from '../elements/Avatar.vue'
|
||||
import ULinkCustom from '../elements/LinkCustom.vue'
|
||||
import type { Link } from '../../types/vertical-navigation'
|
||||
import type { VerticalNavigationLink } from '../../types/vertical-navigation'
|
||||
import { useAppConfig } from '#imports'
|
||||
// TODO: Remove
|
||||
// @ts-expect-error
|
||||
@@ -61,7 +61,7 @@ export default defineComponent({
|
||||
},
|
||||
props: {
|
||||
links: {
|
||||
type: Array as PropType<Link[]>,
|
||||
type: Array as PropType<VerticalNavigationLink[]>,
|
||||
default: () => []
|
||||
},
|
||||
ui: {
|
||||
|
||||
2
src/runtime/types/vertical-navigation.d.ts
vendored
2
src/runtime/types/vertical-navigation.d.ts
vendored
@@ -1,7 +1,7 @@
|
||||
import type { RouteLocationRaw } from 'vue-router'
|
||||
import type { Avatar } from './avatar'
|
||||
|
||||
export interface Link {
|
||||
export interface VerticalNavigationLink {
|
||||
to?: string | RouteLocationRaw
|
||||
exact?: boolean
|
||||
label: string
|
||||
|
||||
Reference in New Issue
Block a user