diff --git a/playground/pages/breadcrumb.vue b/playground/pages/breadcrumb.vue index ff6ace16..727d8ebc 100644 --- a/playground/pages/breadcrumb.vue +++ b/playground/pages/breadcrumb.vue @@ -1,20 +1,31 @@ diff --git a/src/runtime/components/Breadcrumb.vue b/src/runtime/components/Breadcrumb.vue index 070808fe..826eb55d 100644 --- a/src/runtime/components/Breadcrumb.vue +++ b/src/runtime/components/Breadcrumb.vue @@ -10,33 +10,37 @@ const appConfig = _appConfig as AppConfig & { ui: { breadcrumb: Partial extends Omit { - links?: T[] + items?: T[] separatorIcon?: IconProps['name'] class?: any ui?: Partial } -type SlotProps = (props: { link: T, active: boolean, index: number }) => any +type SlotProps = (props: { item: T, index: number, active?: boolean }) => any export interface BreadcrumbSlots { leading: SlotProps - default: SlotProps + label: SlotProps trailing: SlotProps + item: SlotProps + [key: string]: SlotProps separator(): any } -