1.Carousel 走马灯
显示左右切换箭头 arrows:true
this.state = {
settings: {
variableWidth: true,
arrows: true,
autoplay: true,
speed: 2000,
autoplaySpeed: 5000,
cssEase: 'linear'
}
}
render() {
const { settings } = this.state
return (
<Carousel
{...settings}
>
{
... //循环图片
}
</Carousel>
)
}
2.相关详细文档请点击这里
版权声明:本文为Radish999原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。