Ohm-Management - Projektarbeit B-ME
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

VBreadcrumbsItem.js 1.1KB

12345678910111213141516171819202122232425262728293031
  1. function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
  2. import Routable from '../../mixins/routable';
  3. import mixins from '../../util/mixins';
  4. /* @vue/component */
  5. export default mixins(Routable).extend({
  6. name: 'v-breadcrumbs-item',
  7. props: {
  8. // In a breadcrumb, the currently
  9. // active item should be dimmed
  10. activeClass: {
  11. type: String,
  12. default: 'v-breadcrumbs__item--disabled'
  13. }
  14. },
  15. computed: {
  16. classes: function classes() {
  17. return _defineProperty({
  18. 'v-breadcrumbs__item': true
  19. }, this.activeClass, this.disabled);
  20. }
  21. },
  22. render: function render(h) {
  23. var _generateRouteLink = this.generateRouteLink(this.classes),
  24. tag = _generateRouteLink.tag,
  25. data = _generateRouteLink.data;
  26. return h('li', [h(tag, data, this.$slots.default)]);
  27. }
  28. });
  29. //# sourceMappingURL=VBreadcrumbsItem.js.map