fix: carousel type error warning

pull/1255/head
tanjinzhou 2019-10-09 18:39:09 +08:00
parent b5d4dfd30f
commit d2784465c2
2 changed files with 2 additions and 2 deletions

View File

@ -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 = {

View File

@ -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'),