mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-21 07:21:46 +01:00
feat(Link)!: rename from LinkCustom and add exact-query / exact-hash props
This commit is contained in:
4
src/runtime/types/button.d.ts
vendored
4
src/runtime/types/button.d.ts
vendored
@@ -1,4 +1,6 @@
|
||||
export interface Button {
|
||||
import type { Link } from './link'
|
||||
|
||||
export interface Button extends Link {
|
||||
type?: string
|
||||
block?: boolean
|
||||
label?: string
|
||||
|
||||
4
src/runtime/types/dropdown.d.ts
vendored
4
src/runtime/types/dropdown.d.ts
vendored
@@ -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
|
||||
|
||||
1
src/runtime/types/index.d.ts
vendored
1
src/runtime/types/index.d.ts
vendored
@@ -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
8
src/runtime/types/link.d.ts
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
import type { NuxtLinkProps } from '#app'
|
||||
|
||||
export interface Link extends NuxtLinkProps {
|
||||
exact?: boolean
|
||||
exactQuery?: boolean
|
||||
exactMatch?: boolean
|
||||
inactiveClass?: string
|
||||
}
|
||||
4
src/runtime/types/vertical-navigation.d.ts
vendored
4
src/runtime/types/vertical-navigation.d.ts
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user