1.0.1 • Published 7 years ago

swiper22 v1.0.1

Weekly downloads
3
License
ISC
Repository
github
Last release
7 years ago

swiper

a simple swiper for vue

install

npm install banner-swiper --save-dev

usage

import Vue from 'vue'
import Swiper from 'banner-swiper'

new Vue({
  el: 'body',
  components: {Swiper}
});



<swiper>
  <div class="swiper-item">1</div>
  <div class="swiper-item">2</div>
  <div class="swiper-item">3</div>
</swiper>

API

Namedefaultdescription
looptureauto play
speed3000the speed of playing
showIndicatorstureshow this indicators
height250pxdefine div height
indicatorType1define indicator position

for example

set the height of swiper to 540px and set the indicatorType to the lower right corner

the indicatorType's default is in the middle