maestro-server/bootue

View on GitHub
src/slider/script.js

Summary

Maintainability
A
0 mins
Test Coverage
export default {
  computed: {
    index () { return this.$parent.$children.indexOf(this) },
    show () { return this.$parent.index === this.index }
  },
  mounted () {
    if (this.$parent.indicator_list) {
      this.$parent.indicator_list.push(this.index)
    }

    if (this.index === 0) {
      this.$el.classList.add('active')
    }
  }
}