ant-design-vue/components/vc-slick/default-props.js

57 lines
2.2 KiB
JavaScript
Raw Normal View History

import PropTypes from '../_util/vue-types';
2018-07-20 08:13:21 +00:00
const defaultProps = {
accessibility: { type: Boolean, default: true },
2018-07-20 08:13:21 +00:00
// 自定义高度
adaptiveHeight: { type: Boolean, default: false },
2018-07-20 08:13:21 +00:00
afterChange: PropTypes.any.def(null),
arrows: { type: Boolean, default: true },
autoplay: { type: Boolean, default: false },
2018-07-20 08:13:21 +00:00
autoplaySpeed: PropTypes.number.def(3000),
beforeChange: PropTypes.any.def(null),
centerMode: { type: Boolean, default: false },
2018-07-20 08:13:21 +00:00
centerPadding: PropTypes.string.def('50px'),
cssEase: PropTypes.string.def('ease'),
dots: { type: Boolean, default: false },
2018-07-20 08:13:21 +00:00
dotsClass: PropTypes.string.def('slick-dots'),
draggable: { type: Boolean, default: true },
unslick: { type: Boolean, default: false },
2018-07-20 08:13:21 +00:00
easing: PropTypes.string.def('linear'),
edgeFriction: PropTypes.number.def(0.35),
fade: { type: Boolean, default: false },
focusOnSelect: { type: Boolean, default: false },
infinite: { type: Boolean, default: true },
2018-07-20 08:13:21 +00:00
initialSlide: PropTypes.number.def(0),
lazyLoad: PropTypes.any.def(null),
verticalSwiping: { type: Boolean, default: false },
2018-07-20 08:13:21 +00:00
asNavFor: PropTypes.any.def(null),
// 圆点hover是否暂停
pauseOnDotsHover: { type: Boolean, default: false },
2018-07-20 08:13:21 +00:00
// focus是否暂停
pauseOnFocus: { type: Boolean, default: false },
2018-07-20 08:13:21 +00:00
// hover是否暂停
pauseOnHover: { type: Boolean, default: true },
2019-10-09 10:39:09 +00:00
responsive: PropTypes.array,
2018-07-20 08:13:21 +00:00
rows: PropTypes.number.def(1),
rtl: { type: Boolean, default: false },
2018-07-20 08:13:21 +00:00
slide: PropTypes.string.def('div'),
slidesPerRow: PropTypes.number.def(1),
slidesToScroll: PropTypes.number.def(1),
slidesToShow: PropTypes.number.def(1),
speed: PropTypes.number.def(500),
swipe: { type: Boolean, default: true },
2018-07-20 08:13:21 +00:00
swipeEvent: PropTypes.any.def(null),
swipeToSlide: { type: Boolean, default: false },
touchMove: { type: Boolean, default: true },
2018-07-20 08:13:21 +00:00
touchThreshold: PropTypes.number.def(5),
useCSS: { type: Boolean, default: true },
useTransform: { type: Boolean, default: true },
variableWidth: { type: Boolean, default: false },
vertical: { type: Boolean, default: false },
waitForAnimate: { type: Boolean, default: true },
2018-07-20 08:13:21 +00:00
children: PropTypes.array,
__propsSymbol__: PropTypes.any,
2019-01-12 03:33:27 +00:00
};
2018-07-20 08:13:21 +00:00
2019-01-12 03:33:27 +00:00
export default defaultProps;