1、react-slick{图片滑动展示、}
npm install react-slick
API参数说明:
PropertyTypeDescriptionWorking
accessibility
bool
其他类名内滑动器的div
Yes
className
String
其他类名内滑动器的div
Yes
adaptiveHeight
bool
Adjust the slide's height automatically
Yes
arrows
bool
是否要显示左右箭头吗?
Yes
nextArrow
React Element
Use this element for the next arrow button
Yes
prevArrow
React Element
Use this element for the prev arrow button
Yes
autoplay
bool
Should the scroller auto scroll?
Yes
autoplaySpeed
int
delay between each auto scoll. in ms
Yes
centerMode
bool
Should we centre to a single item?
Yes
centerPadding