42 lines
896 B
JavaScript
42 lines
896 B
JavaScript
|
import Routable from '../../mixins/routable';
|
||
|
import mixins from '../../util/mixins';
|
||
|
/* @vue/component */
|
||
|
|
||
|
export default mixins(Routable).extend({
|
||
|
name: 'v-breadcrumbs-item',
|
||
|
props: {
|
||
|
// In a breadcrumb, the currently
|
||
|
// active item should be dimmed
|
||
|
activeClass: {
|
||
|
type: String,
|
||
|
default: 'v-breadcrumbs__item--disabled'
|
||
|
},
|
||
|
ripple: {
|
||
|
type: [Boolean, Object],
|
||
|
default: false
|
||
|
}
|
||
|
},
|
||
|
computed: {
|
||
|
classes() {
|
||
|
return {
|
||
|
'v-breadcrumbs__item': true,
|
||
|
[this.activeClass]: this.disabled
|
||
|
};
|
||
|
}
|
||
|
|
||
|
},
|
||
|
|
||
|
render(h) {
|
||
|
const {
|
||
|
tag,
|
||
|
data
|
||
|
} = this.generateRouteLink();
|
||
|
return h('li', [h(tag, { ...data,
|
||
|
attrs: { ...data.attrs,
|
||
|
'aria-current': this.isActive && this.isLink ? 'page' : undefined
|
||
|
}
|
||
|
}, this.$slots.default)]);
|
||
|
}
|
||
|
|
||
|
});
|
||
|
//# sourceMappingURL=VBreadcrumbsItem.js.map
|