cbvirtua 1.0.76 → 1.0.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
Binary file
|
package/package.json
CHANGED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
data(){
|
|
2
|
+
return {
|
|
3
|
+
bannerList:['11.png','222.png'],
|
|
4
|
+
swiperOption: {
|
|
5
|
+
pagination: {
|
|
6
|
+
el: ".case-swiper-pagination"
|
|
7
|
+
//区分不同Swiper的组件
|
|
8
|
+
},
|
|
9
|
+
//显示分页
|
|
10
|
+
loop: true,
|
|
11
|
+
//开启循环
|
|
12
|
+
loopedSlides: 6,
|
|
13
|
+
//设置平滑
|
|
14
|
+
slidesPerView: 3,
|
|
15
|
+
//设置能够同时显示的数量(可设置 auto)
|
|
16
|
+
speed: 1000,
|
|
17
|
+
//切换速度
|
|
18
|
+
|
|
19
|
+
navigation: {
|
|
20
|
+
prevEl: ".swiper-button-prev2",
|
|
21
|
+
nextEl: ".swiper-button-next2"
|
|
22
|
+
},
|
|
23
|
+
//左右箭头按钮(可自定义)
|
|
24
|
+
|
|
25
|
+
// autoplay: false,
|
|
26
|
+
//是否开启自动轮播
|
|
27
|
+
|
|
28
|
+
autoplay: {
|
|
29
|
+
delay: 1000,
|
|
30
|
+
stopOnLastSlide: false,
|
|
31
|
+
disableOnInteraction: false
|
|
32
|
+
},
|
|
33
|
+
// 开启自动轮播后,设置自动轮播的延迟时间
|
|
34
|
+
loopAdditionalSlides: 1,
|
|
35
|
+
//复制若干个slide
|
|
36
|
+
// slidesPerGroup: 3,
|
|
37
|
+
// 定义slides的数量多少为一组,即每次切换slides的数量,默认每次切换一张
|
|
38
|
+
on: {
|
|
39
|
+
slideChangeTransitionEnd: function() {
|
|
40
|
+
console.log(this.activeIndex);
|
|
41
|
+
//获取当前下标,切换结束时,告诉我现在是第几个slide
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|