This repository has been archived on 2024-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
keksAccountGUI/node_modulesOLD/vuetify/lib/components/VBreadcrumbs/VBreadcrumbsItem.js

42 lines
896 B
JavaScript
Raw Normal View History

2019-08-11 18:48:02 +00:00
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