From 46f63c068ea3afe38f7a0c7ee42826fd71c56ba7 Mon Sep 17 00:00:00 2001 From: mertsincan Date: Mon, 17 Apr 2023 08:42:20 +0300 Subject: [PATCH] Refactor #3832 Refactor #3833 - For Breadcrumb --- api-generator/components/breadcrumb.js | 4 ++++ components/lib/breadcrumb/Breadcrumb.d.ts | 14 ++++++++++++++ components/lib/breadcrumb/Breadcrumb.vue | 4 ++-- components/lib/breadcrumb/BreadcrumbItem.vue | 10 +++++----- 4 files changed, 25 insertions(+), 7 deletions(-) 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 @@