fix(Breadcrumb): render as nav

Resolves #2649
This commit is contained in:
Benjamin Canac
2024-11-15 09:52:42 +01:00
parent 8ed434c105
commit 756f791a1a
4 changed files with 73 additions and 45 deletions

View File

@@ -21,7 +21,7 @@ export interface BreadcrumbItem extends Omit<LinkProps, 'raw' | 'custom'> {
export interface BreadcrumbProps<T> {
/**
* The element or component this component should render as.
* @defaultValue 'div'
* @defaultValue 'nav'
*/
as?: any
items?: T[]
@@ -88,6 +88,7 @@ import ULinkBase from './LinkBase.vue'
import ULink from './Link.vue'
const props = withDefaults(defineProps<BreadcrumbProps<T>>(), {
as: 'nav',
labelKey: 'label'
})
const slots = defineSlots<BreadcrumbSlots<T>>()