diff --git a/components/lib/breadcrumb/Breadcrumb.d.ts b/components/lib/breadcrumb/Breadcrumb.d.ts index f72a3c166..2c663ce7f 100755 --- a/components/lib/breadcrumb/Breadcrumb.d.ts +++ b/components/lib/breadcrumb/Breadcrumb.d.ts @@ -20,6 +20,7 @@ export declare type BreadcrumbPassThroughOptionType = BreadcrumbPassThroughAttri export interface BreadcrumbPassThroughMethodOptions { instance: any; props: BreadcrumbProps; + context: BreadcrumbContext; } /** @@ -73,6 +74,20 @@ export interface BreadcrumbPassThroughAttributes { [key: string]: any; } +/** + * Defines current options in Breadcrumb component. + */ +export interface BreadcrumbContext { + /** + * Current menuitem + */ + item: any; + /** + * Index of the menuitem + */ + index: number; +} + /** * Defines valid properties in Breadcrumb component. */ diff --git a/components/lib/breadcrumb/BreadcrumbItem.vue b/components/lib/breadcrumb/BreadcrumbItem.vue index f86d635dd..0428a16e1 100755 --- a/components/lib/breadcrumb/BreadcrumbItem.vue +++ b/components/lib/breadcrumb/BreadcrumbItem.vue @@ -1,17 +1,17 @@