diff --git a/api-generator/components/breadcrumb.js b/api-generator/components/breadcrumb.js index ccd97f768..e466fb154 100644 --- a/api-generator/components/breadcrumb.js +++ b/api-generator/components/breadcrumb.js @@ -22,7 +22,11 @@ const BreadcrumbProps = [ const BreadcrumbSlots = [ { name: 'item', - description: 'Template of a menuitem.' + description: 'Custom item template.' + }, + { + name: 'separator', + description: 'Custom separator template.' } ]; diff --git a/components/lib/breadcrumb/Breadcrumb.d.ts b/components/lib/breadcrumb/Breadcrumb.d.ts index 96cbd96ad..7e4675394 100755 --- a/components/lib/breadcrumb/Breadcrumb.d.ts +++ b/components/lib/breadcrumb/Breadcrumb.d.ts @@ -52,6 +52,10 @@ export interface BreadcrumbSlots { */ item: MenuItem; }): VNode[]; + /** + * Custom separator template. + */ + separator(): VNode[]; } /** diff --git a/components/lib/breadcrumb/Breadcrumb.vue b/components/lib/breadcrumb/Breadcrumb.vue index 8e48401c9..e59e31a09 100755 --- a/components/lib/breadcrumb/Breadcrumb.vue +++ b/components/lib/breadcrumb/Breadcrumb.vue @@ -4,7 +4,9 @@ @@ -13,6 +15,7 @@