From 1bdf46a22ce459e2d9c695ccba7423bd89239569 Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Fri, 27 Aug 2021 14:48:05 +0300 Subject: [PATCH] #1275 for breadcrumb --- api-generator/components/breadcrumb.js | 6 ++++++ src/components/breadcrumb/Breadcrumb.d.ts | 1 + src/components/breadcrumb/Breadcrumb.vue | 10 +++++++--- src/components/breadcrumb/BreadcrumbItem.vue | 15 +++++++++++---- src/views/breadcrumb/BreadcrumbDoc.vue | 18 ++++++++++++++++++ src/views/menu/MenuDoc.vue | 2 +- 6 files changed, 44 insertions(+), 8 deletions(-) diff --git a/api-generator/components/breadcrumb.js b/api-generator/components/breadcrumb.js index 9026db2fd..035226d42 100644 --- a/api-generator/components/breadcrumb.js +++ b/api-generator/components/breadcrumb.js @@ -10,6 +10,12 @@ const BreadcrumbProps = [ type: "menuitem", default: "null", description: "Configuration for the home icon." + }, + { + name: "exact", + type: "boolean", + default: "true", + description: "Whether to apply 'router-link-active-exact' class if route exactly matches the item path." } ]; diff --git a/src/components/breadcrumb/Breadcrumb.d.ts b/src/components/breadcrumb/Breadcrumb.d.ts index b2524342a..76cbaaee7 100755 --- a/src/components/breadcrumb/Breadcrumb.d.ts +++ b/src/components/breadcrumb/Breadcrumb.d.ts @@ -1,6 +1,7 @@ interface BreadcrumbProps { home?: any; model?: any[]; + exact?: boolean; } declare class Breadcrumb { diff --git a/src/components/breadcrumb/Breadcrumb.vue b/src/components/breadcrumb/Breadcrumb.vue index fde0b6b9c..eb7db95c2 100755 --- a/src/components/breadcrumb/Breadcrumb.vue +++ b/src/components/breadcrumb/Breadcrumb.vue @@ -1,10 +1,10 @@