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.

tabs-computed.js 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. 'use strict';
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. /**
  6. * Tabs computed
  7. *
  8. * @mixin
  9. */
  10. /* @vue/component */
  11. exports.default = {
  12. computed: {
  13. activeTab: function activeTab() {
  14. if (!this.selectedItems.length) return undefined;
  15. return this.selectedItems[0];
  16. },
  17. containerStyles: function containerStyles() {
  18. return this.height ? {
  19. height: parseInt(this.height, 10) + 'px'
  20. } : null;
  21. },
  22. hasArrows: function hasArrows() {
  23. return (this.showArrows || !this.isMobile) && this.isOverflowing;
  24. },
  25. isMobile: function isMobile() {
  26. return this.$vuetify.breakpoint.width < this.mobileBreakPoint;
  27. },
  28. sliderStyles: function sliderStyles() {
  29. return {
  30. left: this.sliderLeft + 'px',
  31. transition: this.sliderLeft != null ? null : 'none',
  32. width: this.sliderWidth + 'px'
  33. };
  34. }
  35. }
  36. };
  37. //# sourceMappingURL=tabs-computed.js.map