fix: carousel type error warning
parent
b5d4dfd30f
commit
d2784465c2
|
@ -65,7 +65,7 @@ export const CarouselProps = {
|
|||
variableWidth: PropTypes.bool,
|
||||
useCSS: PropTypes.bool,
|
||||
slickGoTo: PropTypes.number,
|
||||
responsive: PropTypes.array.def(null),
|
||||
responsive: PropTypes.array,
|
||||
};
|
||||
|
||||
const Carousel = {
|
||||
|
|
|
@ -31,7 +31,7 @@ const defaultProps = {
|
|||
pauseOnFocus: PropTypes.bool.def(false),
|
||||
// hover是否暂停
|
||||
pauseOnHover: PropTypes.bool.def(true),
|
||||
responsive: PropTypes.array.def(null),
|
||||
responsive: PropTypes.array,
|
||||
rows: PropTypes.number.def(1),
|
||||
rtl: PropTypes.bool.def(false),
|
||||
slide: PropTypes.string.def('div'),
|
||||
|
|
Loading…
Reference in New Issue