0.1.6 • Published 5 years ago
vue-mobile-carousel v0.1.6
Vue-mobile-carousel
Installation
npm i vue-mobile-carousel
Usage
import { Carousel } from 'vue-mobile-carousel'
export default {
...
components:{
Carousel
}
...
}
Config
key | value | description | |
---|---|---|---|
initPage | Number | init page for show | |
speed | Number (ms) | per active's time | |
expect_height | Number (px) | image's actually height | |
imgArray | Array | for example:{src:'x.png',href:'x.html'} | |
autoplay | Boolean (default:false) | autoplay | |
navigator_pos | String: inner | outer | inner: pageniation is in banner, outer: pageniation is not |
normalClass | Object (css) | pageniation-element's style | |
navigator_pos | Object (css) | actived pageniation-element's style | |
beforeClick | Event | beforeClick |
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