feat(Link)!: rename from LinkCustom and add exact-query / exact-hash props

This commit is contained in:
Benjamin Canac
2023-07-30 19:46:27 +02:00
parent a9300db91e
commit cefe5a76e0
10 changed files with 72 additions and 29 deletions

View File

@@ -1,4 +1,6 @@
export interface Button {
import type { Link } from './link'
export interface Button extends Link {
type?: string
block?: boolean
label?: string

View File

@@ -1,7 +1,7 @@
import type { NuxtLinkProps } from '#app'
import type { Link } from './link'
import type { Avatar } from './avatar'
export interface DropdownItem extends NuxtLinkProps {
export interface DropdownItem extends Link {
label: string
slot?: string
icon?: string

View File

@@ -4,6 +4,7 @@ export * from './button'
export * from './clipboard'
export * from './command-palette'
export * from './dropdown'
export * from './link'
export * from './notification'
export * from './popper'
export * from './tabs'

8
src/runtime/types/link.d.ts vendored Normal file
View File

@@ -0,0 +1,8 @@
import type { NuxtLinkProps } from '#app'
export interface Link extends NuxtLinkProps {
exact?: boolean
exactQuery?: boolean
exactMatch?: boolean
inactiveClass?: string
}

View File

@@ -1,7 +1,7 @@
import type { NuxtLinkProps } from '#app'
import type { Link } from './link'
import type { Avatar } from './avatar'
export interface VerticalNavigationLink extends NuxtLinkProps {
export interface VerticalNavigationLink extends Link {
label: string
icon?: string
iconClass?: string