diff --git a/api-generator/components/breadcrumb.js b/api-generator/components/breadcrumb.js index e466fb154..5aa6d7d91 100644 --- a/api-generator/components/breadcrumb.js +++ b/api-generator/components/breadcrumb.js @@ -27,6 +27,10 @@ const BreadcrumbSlots = [ { name: 'separator', description: 'Custom separator template.' + }, + { + name: 'itemicon', + description: 'Custom item icon template.' } ]; diff --git a/components/lib/breadcrumb/Breadcrumb.d.ts b/components/lib/breadcrumb/Breadcrumb.d.ts index 7e4675394..2aaf5299b 100755 --- a/components/lib/breadcrumb/Breadcrumb.d.ts +++ b/components/lib/breadcrumb/Breadcrumb.d.ts @@ -56,6 +56,20 @@ export interface BreadcrumbSlots { * Custom separator template. */ separator(): VNode[]; + /** + * Custom item icon template. + * @param {Object} scope - item icon slot's params. + */ + itemicon(scope: { + /** + * Menuitem instance + */ + item: MenuItem; + /** + * Style class of the item icon element. + */ + class: any; + }): VNode[]; } /** diff --git a/components/lib/breadcrumb/Breadcrumb.vue b/components/lib/breadcrumb/Breadcrumb.vue index e59e31a09..d242a2538 100755 --- a/components/lib/breadcrumb/Breadcrumb.vue +++ b/components/lib/breadcrumb/Breadcrumb.vue @@ -1,14 +1,14 @@