0.1.6 • Published 5 years ago

vue-mobile-carousel v0.1.6

Weekly downloads
22
License
MIT
Repository
github
Last release
5 years ago

Vue-mobile-carousel

js-standard-style

Installation

npm i vue-mobile-carousel

Usage

import { Carousel } from 'vue-mobile-carousel'

export default {
  ...
  components:{
    Carousel
  }
  ...
}

Config

keyvaluedescription
initPageNumberinit page for show
speedNumber (ms)per active's time
expect_heightNumber (px)image's actually height
imgArrayArrayfor example:{src:'x.png',href:'x.html'}
autoplayBoolean (default:false)autoplay
navigator_posString: innerouterinner: pageniation is in banner, outer: pageniation is not
normalClassObject (css)pageniation-element's style
navigator_posObject (css)actived pageniation-element's style
beforeClickEventbeforeClick

Example

<Carousel
  :initPage = 0
  :speed = 3000
  :expect_height = 280
  :imgArray = imgArray
  :autoplay = true
  :navigator_pos='inner'
  :normalClass={background:#f4f5f6}
  :activeClass={background:#fff}
  ></Carousel>

Run in local

npm i install
npm run dev

PS

width of image bases on standard screen width(750) if image's height 750 * 280 ,when screen width is 375, the height is 140

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago