1
// Styles
2
import './VChipGroup.sass'
3

4
// Extensions
5
import { BaseSlideGroup } from '../VSlideGroup/VSlideGroup'
6

7
// Mixins
8
import Colorable from '../../mixins/colorable'
9

10
// Utilities
11
import mixins from '../../util/mixins'
12

13
/* @vue/component */
14
export default mixins(
15
  BaseSlideGroup,
16
  Colorable
17
).extend({
18
  name: 'v-chip-group',
19

20 1
  provide () {
21 1
    return {
22
      chipGroup: this,
23
    }
24
  },
25

26
  props: {
27
    column: Boolean,
28
  },
29

30
  computed: {
31 1
    classes () {
32 1
      return {
33
        ...BaseSlideGroup.options.computed.classes.call(this),
34
        'v-chip-group': true,
35
        'v-chip-group--column': this.column,
36
      }
37
    },
38
  },
39

40
  watch: {
41 1
    column (val) {
42 1
      if (val) this.scrollOffset = 0
43

44 1
      this.$nextTick(this.onResize)
45
    },
46
  },
47

48
  methods: {
49 1
    genData () {
50 1
      return this.setTextColor(this.color, {
51
        ...BaseSlideGroup.options.methods.genData.call(this),
52
      })
53
    },
54
  },
55
})

Read our documentation on viewing source code .

Loading