Skip to content

Latest commit

 

History

History
58 lines (42 loc) · 2.24 KB

README.md

File metadata and controls

58 lines (42 loc) · 2.24 KB

bee-carousel-figure

npm version Build Status Coverage Status devDependency Status NPM downloads Average time to resolve an issue Percentage of issues still open

react bee-carousel-figure component for tinper-bee

some description...

依赖

  • react >= 15.3.0
  • react-dom >= 15.3.0
  • prop-types >= 15.6.0

使用方法

API

参数 说明 类型 默认值
afterChange 切换面板的回调 function(current)
autoplay 是否自动切换 boolean false
beforeChange 切换面板的回调 function(from, to) false
dotPosition 面板指示点位置,可选 top bottom left right string bottom
dots 是否显示面板指示点 boolean true
easing 动画效果 string linear
effect 动画效果函数,可取 scrollx, fade string scrollx

方法

名称 描述
goTo(slideNumber, dontAnimate) 切换到指定面板, dontAnimate = true 时,不使用动画
next() 切换到下一面板
prev() 切换到上一面板

更多参数可参考:https://github.com/akiran/react-slick

开发调试

$ npm install -g bee-tools
$ git clone https://github.com/tinper-bee/bee-carousel-figure
$ cd bee-carousel-figure
$ npm install
$ npm run dev