0.1.6 • Published 6 years ago
vue-mobile-carousel v0.1.6
Vue-mobile-carousel
Installation
npm i vue-mobile-carouselUsage
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 devPS
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
6 years ago
0.1.5
6 years ago
0.1.4
6 years ago
0.1.3
6 years ago
0.1.2
6 years ago
0.1.1
6 years ago
0.1.0
6 years ago
0.0.9
6 years ago
0.0.8
6 years ago
0.0.7
6 years ago
0.0.6
7 years ago
0.0.5
7 years ago
0.0.4
7 years ago
0.0.3
7 years ago
0.0.2
7 years ago
0.0.1
7 years ago
1.0.4
7 years ago
1.0.3
7 years ago
1.0.2
7 years ago
1.0.1
7 years ago
1.0.0
7 years ago