<commit_before><template>
  <div id="islider"></div>
</template>

<script>
import ISlider from '../assets/js/iSlider'

export default {
  data () {
    return {
      slider: null
    }
  },
  props: {
    banner: [],
    vertical: false,
    animateTime: 2000
  },
  ready () {
    setTimeout(() => {
      if (this.banner.length === 0) {
        this.banner.push({
          content: '/img/乐夺宝/banner背景.png'
        })
      }
      let self = this
      this.slider = new ISlider({
        dom: self.$el,
        data: this.banner,
        animateTime: this.animateTime,
        isVertical: this.vertical, // 垂直滑动
        isLooping: true, // 循环播放
        isDebug: false,
        isAutoplay: true, // 自动播放
        isOverspread: true // 背景平铺
      })
    }, 100)
  }
}
</script>

<style lang="sass">
#islider {
  height: 135px;
  width: 100%;
  overflow: hidden;
  position: relative;<commit_msg>2016年05月30日10:04:10<commit_after><template>
  <div id="islider"></div>
</template>

<script>
import ISlider from '../assets/js/iSlider'

export default {
  data () {
    return {
      slider: null
    }
  },
  props: {
    banner: [],
    vertical: false,
    animateTime: 2000
  },
  ready () {
    setTimeout(() => {
      if (this.banner.length === 0) {
        this.banner.push({
          content: '/img/乐夺宝/banner背景.png'
        })
      }
      let self = this
      this.slider = new ISlider({
        dom: self.$el,
        data: this.banner,
        animateTime: this.animateTime,
        isVertical: this.vertical, // 垂直滑动
        isLooping: true, // 循环播放
        isDebug: false,
        isAutoplay: true, // 自动播放
        isOverspread: true // 背景平铺
      })
    }, 2000)
  }
}
</script>

<style lang="sass">
#islider {
  height: 135px;
  width: 100%;
  overflow: hidden;
  position: relative;
{'fraction_non_alphanumeric': 0.1510272071071627, 'fraction_numerical': 0.02387562465297057, 'mean_word_length': 1.968698517298188, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2819089', 'n_tokens_mistral': 696, 'n_tokens_neox': 681, 'n_words': 135}