Skip to content

Commit d5a9ec2

Browse files
committed
feat(Breadcrumb): add exact prop
Signed-off-by: John Molakvoæ <[email protected]>
1 parent 56b79af commit d5a9ec2

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

src/components/NcBreadcrumb/NcBreadcrumb.vue

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ This component is meant to be used inside a Breadcrumbs component.
4141
@dragleave="dragLeave">
4242
<element :is="tag"
4343
v-if="(title || icon) && !$slots.default"
44+
:exact="exact"
4445
:to="to"
4546
:href="href">
4647
<!-- @slot Slot for passing a material design icon. Precedes the icon and title prop. -->
@@ -89,42 +90,57 @@ export default {
8990
type: String,
9091
required: true,
9192
},
93+
9294
/**
93-
* The router-link to prop [https://router.vuejs.org/api/#to](https://router.vuejs.org/api/#to)
94-
* If set, the breadcrumbs will be rendered by router-link.
95+
* Route Location the link should navigate to when clicked on.
96+
* @see https://v3.router.vuejs.org/api/#to
9597
*/
9698
to: {
9799
type: [String, Object],
98100
default: undefined,
99101
},
102+
103+
/**
104+
* Route Location the link should navigate to when clicked on.
105+
* @see https://v3.router.vuejs.org/api/#exact
106+
*/
107+
exact: {
108+
type: Boolean,
109+
default: false,
110+
},
111+
100112
/**
101113
* Set this prop if your app doesn't use vue-router, breadcrumbs will show as normal links.
102114
*/
103115
href: {
104116
type: String,
105117
default: undefined,
106118
},
119+
107120
/**
108121
* Set a css icon-class to show an icon instead of the title text.
109122
*/
110123
icon: {
111124
type: String,
112125
default: '',
113126
},
127+
114128
/**
115129
* Disable dropping on this breadcrumb.
116130
*/
117131
disableDrop: {
118132
type: Boolean,
119133
default: false,
120134
},
135+
121136
/**
122137
* Force the actions to display in a three dot menu
123138
*/
124139
forceMenu: {
125140
type: Boolean,
126141
default: false,
127142
},
143+
128144
/**
129145
* Open state of the Actions menu
130146
*/

0 commit comments

Comments
 (0)