npm install
npm run build
{ "presets": ["es2015","stage-0","react"] }
###相关参数
- items={IMAGE_DATA} //图片数据
- speed={1} //图片切换的速度(单位是秒)
- delay={2.2} //每隔多少秒切换一次
- pause={true} //鼠标移上去是否自动暂停
- autoplay={true}//是否自动播放
- dots={true} //是否显示导航小点
- arrows={true}//是否显示上一张和下一张箭头
- width={800}//轮播图的宽
- height={300}