Skip to content

Commit d278446

Browse files
committed
fix: carousel type error warning
1 parent b5d4dfd commit d278446

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/carousel/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export const CarouselProps = {
6565
variableWidth: PropTypes.bool,
6666
useCSS: PropTypes.bool,
6767
slickGoTo: PropTypes.number,
68-
responsive: PropTypes.array.def(null),
68+
responsive: PropTypes.array,
6969
};
7070

7171
const Carousel = {

components/vc-slick/src/default-props.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const defaultProps = {
3131
pauseOnFocus: PropTypes.bool.def(false),
3232
// hover是否暂停
3333
pauseOnHover: PropTypes.bool.def(true),
34-
responsive: PropTypes.array.def(null),
34+
responsive: PropTypes.array,
3535
rows: PropTypes.number.def(1),
3636
rtl: PropTypes.bool.def(false),
3737
slide: PropTypes.string.def('div'),

0 commit comments

Comments
 (0)