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 992B

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