2.0.0 • Published 5 years ago

rmc-m-carousel v2.0.0

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

rmc-m-carousel


React Mobile Carousel Component (web and react-native)

react node version npm download

Screenshots

Usage

npm install rmc-m-carousel
import Carousel from 'rmc-m-carousel';

<Carousel>
  <a target="_blank" rel="nofollow me noopener noreferrer" href="https://www.baidu.com">
    <img src="//d3kpm7yklociqe.cloudfront.net/ext/theme/20181207_banner_jpgwinter/banner.jpg" alt=""/>
  </a>
  <a target="_blank" rel="nofollow me noopener noreferrer" href="https://www.baidu.com">
    <img src="//d3kpm7yklociqe.cloudfront.net/ext/theme/20181210_banner_coat/banner.jpg" alt=""/>
  </a>
</Carousel>

see example

Development

npm i
npm start

Example

http://localhost:8000/examples/

install

npm download

API

属性说明类型默认值
selectedIndex手动设置当前显示的索引number0
indicator是否显示指示器Booleantrue
indicatorType指示器类型String 'dots', 'number''dots'
autoplay是否自动切换Booleanfalse
autoplayInterval自动切换的时间间隔Number3000
dotStyle指示点样式Object
dotActiveStyle激活的指示点样式Object
dotClickSwipe点击指示点切换Objecttrue
speed滑动灵敏度number500
beforeChange切换面板前的回调函数(from: number, to: number): void
afterChange切换面板后的回调函数(current: number): void

Test Case

npm test
npm run chrome-test

Coverage

npm run coverage

open coverage/ dir

License

rmc-m-carousel is released under the MIT license.

2.0.0

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

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