File tree Expand file tree Collapse file tree 1 file changed +25
-3
lines changed
src/components/NcBreadcrumb Expand file tree Collapse file tree 1 file changed +25
-3
lines changed Original file line number Diff line number Diff line change @@ -41,8 +41,11 @@ This component is meant to be used inside a Breadcrumbs component.
41
41
@dragleave =" dragLeave" >
42
42
<element :is =" tag"
43
43
v-if =" (title || icon) && !$slots.default"
44
+ :exact =" exact"
44
45
:to =" to"
45
- :href =" href" >
46
+ :href =" href"
47
+ v-bind =" $attrs"
48
+ v-on =" $listeners" >
46
49
<!-- @slot Slot for passing a material design icon. Precedes the icon and title prop. -->
47
50
<slot name =" icon" >
48
51
<span v-if =" icon" :class =" icon" class =" icon" />
@@ -89,42 +92,59 @@ export default {
89
92
type: String ,
90
93
required: true ,
91
94
},
95
+
92
96
/**
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.
97
+ * Route Location the link should navigate to when clicked on.
98
+ *
99
+ * @see https://v3.router.vuejs.org/api/#to
95
100
*/
96
101
to: {
97
102
type: [String , Object ],
98
103
default: undefined ,
99
104
},
105
+
106
+ /**
107
+ * Match the complete route attributes (query and hash included)
108
+ *
109
+ * @see https://v3.router.vuejs.org/api/#exact
110
+ */
111
+ exact: {
112
+ type: Boolean ,
113
+ default: false ,
114
+ },
115
+
100
116
/**
101
117
* Set this prop if your app doesn't use vue-router, breadcrumbs will show as normal links.
102
118
*/
103
119
href: {
104
120
type: String ,
105
121
default: undefined ,
106
122
},
123
+
107
124
/**
108
125
* Set a css icon-class to show an icon instead of the title text.
109
126
*/
110
127
icon: {
111
128
type: String ,
112
129
default: ' ' ,
113
130
},
131
+
114
132
/**
115
133
* Disable dropping on this breadcrumb.
116
134
*/
117
135
disableDrop: {
118
136
type: Boolean ,
119
137
default: false ,
120
138
},
139
+
121
140
/**
122
141
* Force the actions to display in a three dot menu
123
142
*/
124
143
forceMenu: {
125
144
type: Boolean ,
126
145
default: false ,
127
146
},
147
+
128
148
/**
129
149
* Open state of the Actions menu
130
150
*/
@@ -289,10 +309,12 @@ export default {
289
309
overflow : hidden ;
290
310
color : var (--color-text-maxcontrast );
291
311
padding : 12px ;
312
+ min-width : $clickable-area ;
292
313
max-width : 100% ;
293
314
border-radius : var (--border-radius-pill );
294
315
align-items : center ;
295
316
display : inline-flex ;
317
+ justify-content : center ;
296
318
297
319
> span {
298
320
overflow : hidden ;
You can’t perform that action at this time.
0 commit comments