File tree Expand file tree Collapse file tree 1 file changed +18
-5
lines changed
src/runtime/nuxt/composables Expand file tree Collapse file tree 1 file changed +18
-5
lines changed Original file line number Diff line number Diff line change 1
1
import { withoutTrailingSlash } from 'ufo'
2
2
import type { RouteMeta } from 'vue-router'
3
3
import type { MaybeRefOrGetter } from 'vue'
4
- import type { BreadcrumbLink } from '@nuxt/ui/dist/runtime/types'
5
4
import { defu } from 'defu'
5
+ import type { NuxtLinkProps } from 'nuxt/app'
6
6
import { pathBreadcrumbSegments } from '../../pure/breadcrumbs'
7
7
import {
8
8
computed ,
@@ -15,6 +15,22 @@ import {
15
15
withSiteTrailingSlash ,
16
16
} from '#imports'
17
17
18
+ interface NuxtUIBreadcrumbItem extends NuxtLinkProps {
19
+ label : string
20
+ labelClass ?: string
21
+ icon ?: string
22
+ iconClass ?: string
23
+ as ?: string
24
+ type ?: string
25
+ disabled ?: boolean
26
+ active ?: boolean
27
+ exact ?: boolean
28
+ exactQuery ?: boolean
29
+ exactMatch ?: boolean
30
+ inactiveClass ?: string
31
+ [ key : string ] : any
32
+ }
33
+
18
34
export interface BreadcrumbProps {
19
35
/**
20
36
* Generate the breadcrumbs based on a different path than the current route.
@@ -63,20 +79,17 @@ export interface BreadcrumbProps {
63
79
hideRoot ?: MaybeRefOrGetter < boolean >
64
80
}
65
81
66
- export interface BreadcrumbItemProps extends BreadcrumbLink {
82
+ export interface BreadcrumbItemProps extends NuxtUIBreadcrumbItem {
67
83
/** Whether the breadcrumb item represents the aria-current. */
68
84
current ?: boolean
69
85
/**
70
86
* The type of current location the breadcrumb item represents, if `isCurrent` is true.
71
87
* @default 'page'
72
88
*/
73
89
ariaCurrent ?: 'page' | 'step' | 'location' | 'date' | 'time' | boolean | 'true' | 'false'
74
- /** Whether the breadcrumb item is disabled. */
75
- disabled ?: boolean
76
90
to : string
77
91
ariaLabel ?: string
78
92
separator ?: boolean | string
79
- icon ?: string
80
93
class ?: ( string | string [ ] | undefined ) [ ] | string
81
94
/**
82
95
* @internal
You can’t perform that action at this time.
0 commit comments