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.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. 'use strict';
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. var _routable = require('../../mixins/routable');
  6. var _routable2 = _interopRequireDefault(_routable);
  7. var _mixins = require('../../util/mixins');
  8. var _mixins2 = _interopRequireDefault(_mixins);
  9. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  10. 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; }
  11. /* @vue/component */
  12. exports.default = (0, _mixins2.default)(_routable2.default).extend({
  13. name: 'v-breadcrumbs-item',
  14. props: {
  15. // In a breadcrumb, the currently
  16. // active item should be dimmed
  17. activeClass: {
  18. type: String,
  19. default: 'v-breadcrumbs__item--disabled'
  20. }
  21. },
  22. computed: {
  23. classes: function classes() {
  24. return _defineProperty({
  25. 'v-breadcrumbs__item': true
  26. }, this.activeClass, this.disabled);
  27. }
  28. },
  29. render: function render(h) {
  30. var _generateRouteLink = this.generateRouteLink(this.classes),
  31. tag = _generateRouteLink.tag,
  32. data = _generateRouteLink.data;
  33. return h('li', [h(tag, data, this.$slots.default)]);
  34. }
  35. });
  36. //# sourceMappingURL=VBreadcrumbsItem.js.map