1.0.0 • Published 3 years ago

carousel-react-hooks v1.0.0

Weekly downloads
1
License
ISC
Repository
-
Last release
3 years ago

一个基于react、ahooks的轮播组件

入参说明

dataSource: DataSourceItem[], // 符合格式的数据

imgChange?: Function, // 选中图片的函数

id?: number, // 默认选中的图片

imgNumber: number, // 一行显示多少张图片

isPreview,: boolean // 是否预览

backgroundColor?: string, // 背景颜色

initClick?: boolean, // 初始化时候是否需要默认选中第一张图片

borderColor?: string, // 图片边框颜色