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-watchers.js 1.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. 'use strict';
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. /**
  6. * Tabs watchers
  7. *
  8. * @mixin
  9. */
  10. /* @vue/component */
  11. exports.default = {
  12. watch: {
  13. activeTab: function activeTab(val, oldVal) {
  14. this.setOverflow();
  15. if (!val) return;
  16. this.tabItems && this.tabItems(this.getValue(val, this.items.indexOf(val)));
  17. // Do nothing for first tab
  18. // is handled from isBooted
  19. // watcher
  20. if (oldVal == null) return;
  21. this.updateTabsView();
  22. },
  23. alignWithTitle: 'callSlider',
  24. centered: 'callSlider',
  25. fixedTabs: 'callSlider',
  26. hasArrows: function hasArrows(val) {
  27. if (!val) this.scrollOffset = 0;
  28. },
  29. /* @deprecate */
  30. internalValue: function internalValue(val) {
  31. /* istanbul ignore else */
  32. if (!this.$listeners['input']) return;
  33. this.$emit('input', val);
  34. },
  35. lazyValue: 'updateTabs',
  36. right: 'callSlider',
  37. '$vuetify.application.left': 'onResize',
  38. '$vuetify.application.right': 'onResize',
  39. scrollOffset: function scrollOffset(val) {
  40. this.$refs.container.style.transform = 'translateX(' + -val + 'px)';
  41. if (this.hasArrows) {
  42. this.prevIconVisible = this.checkPrevIcon();
  43. this.nextIconVisible = this.checkNextIcon();
  44. }
  45. }
  46. }
  47. };
  48. //# sourceMappingURL=tabs-watchers.js.map