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

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