|
@@ -21,18 +21,20 @@ export default {
|
|
swiperOption: {
|
|
swiperOption: {
|
|
// NotNextTick is a component's own property, and if notNextTick is set to true, the component will not instantiate the swiper through NextTick, which means you can get the swiper object the first time (if you need to use the get swiper object to do what Things, then this property must be true)
|
|
// NotNextTick is a component's own property, and if notNextTick is set to true, the component will not instantiate the swiper through NextTick, which means you can get the swiper object the first time (if you need to use the get swiper object to do what Things, then this property must be true)
|
|
// notNextTick是一个组件自有属性,如果notNextTick设置为true,组件则不会通过NextTick来实例化swiper,也就意味着你可以在第一时间获取到swiper对象,假如你需要刚加载遍使用获取swiper对象来做什么事,那么这个属性一定要是true
|
|
// notNextTick是一个组件自有属性,如果notNextTick设置为true,组件则不会通过NextTick来实例化swiper,也就意味着你可以在第一时间获取到swiper对象,假如你需要刚加载遍使用获取swiper对象来做什么事,那么这个属性一定要是true
|
|
- notNextTick: false,
|
|
|
|
|
|
+ notNextTick: true,
|
|
// swiper configs 所有的配置同swiper官方api配置
|
|
// swiper configs 所有的配置同swiper官方api配置
|
|
autoplay: 5000,
|
|
autoplay: 5000,
|
|
// direction : 'vertical',
|
|
// direction : 'vertical',
|
|
// 默认为"slide"(位移切换),可设置为"fade"(淡入)"cube"(方块)"coverflow"(3d流)"flip"(3d翻转)
|
|
// 默认为"slide"(位移切换),可设置为"fade"(淡入)"cube"(方块)"coverflow"(3d流)"flip"(3d翻转)
|
|
effect: 'slide',
|
|
effect: 'slide',
|
|
grabCursor: true,
|
|
grabCursor: true,
|
|
|
|
+ loop: true,
|
|
setWrapperSize: true,
|
|
setWrapperSize: true,
|
|
// autoHeight: true,
|
|
// autoHeight: true,
|
|
// paginationType:"bullets",
|
|
// paginationType:"bullets",
|
|
pagination: '.swiper-pagination',
|
|
pagination: '.swiper-pagination',
|
|
paginationClickable: true,
|
|
paginationClickable: true,
|
|
|
|
+ autoplayDisableOnInteraction: false,
|
|
// prevButton: '.swiper-button-prev',
|
|
// prevButton: '.swiper-button-prev',
|
|
// nextButton: '.swiper-button-next',
|
|
// nextButton: '.swiper-button-next',
|
|
// scrollbar:'.swiper-scrollbar',
|
|
// scrollbar:'.swiper-scrollbar',
|