Skip to content

Commit 29620a6

Browse files
committed
build: package
1 parent aabbb43 commit 29620a6

File tree

6 files changed

+32
-11
lines changed

6 files changed

+32
-11
lines changed

lib/cube.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/image-preview/image-preview.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/image-preview/index.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7145,7 +7145,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
71457145
watch: {
71467146
initialIndex: function initialIndex(newIndex) {
71477147
if (newIndex !== this.currentPageIndex) {
7148-
this.slide && this.slide.goToPage(newIndex);
7148+
this._goToPage(newIndex);
71497149
}
71507150
}
71517151
},
@@ -7224,7 +7224,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
72247224

72257225
this.slide.on('scrollEnd', this._onScrollEnd);
72267226

7227-
this.slide.goToPage(this.currentPageIndex, 0, 0);
7227+
this._goToPage(this.currentPageIndex, 0);
72287228

72297229
if (this.options.listenScroll && this.options.probeType === 3) {
72307230
this.slide.on('scroll', this._onScroll);
@@ -7301,6 +7301,13 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
73017301
}
73027302
_this4._refresh();
73037303
}, 60);
7304+
},
7305+
_goToPage: function _goToPage(index, time) {
7306+
if (this.direction === DIRECTION_H) {
7307+
this.slide && this.slide.goToPage(index, 0, time);
7308+
} else if (this.direction === DIRECTION_V) {
7309+
this.slide && this.slide.goToPage(0, index, time);
7310+
}
73047311
}
73057312
},
73067313
mounted: function mounted() {

lib/index.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6869,7 +6869,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
68696869
}
68706870

68716871
var Cube = {
6872-
version: "1.12.8",
6872+
version: "1.12.9",
68736873
install: install,
68746874
BScroll: _module.BetterScroll,
68756875
createAPI: _module.createAPI
@@ -19944,7 +19944,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
1994419944
watch: {
1994519945
initialIndex: function initialIndex(newIndex) {
1994619946
if (newIndex !== this.currentPageIndex) {
19947-
this.slide && this.slide.goToPage(newIndex);
19947+
this._goToPage(newIndex);
1994819948
}
1994919949
}
1995019950
},
@@ -20023,7 +20023,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
2002320023

2002420024
this.slide.on('scrollEnd', this._onScrollEnd);
2002520025

20026-
this.slide.goToPage(this.currentPageIndex, 0, 0);
20026+
this._goToPage(this.currentPageIndex, 0);
2002720027

2002820028
if (this.options.listenScroll && this.options.probeType === 3) {
2002920029
this.slide.on('scroll', this._onScroll);
@@ -20100,6 +20100,13 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
2010020100
}
2010120101
_this4._refresh();
2010220102
}, 60);
20103+
},
20104+
_goToPage: function _goToPage(index, time) {
20105+
if (this.direction === DIRECTION_H) {
20106+
this.slide && this.slide.goToPage(index, 0, time);
20107+
} else if (this.direction === DIRECTION_V) {
20108+
this.slide && this.slide.goToPage(0, index, time);
20109+
}
2010320110
}
2010420111
},
2010520112
mounted: function mounted() {

lib/slide/index.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -813,7 +813,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
813813
watch: {
814814
initialIndex: function initialIndex(newIndex) {
815815
if (newIndex !== this.currentPageIndex) {
816-
this.slide && this.slide.goToPage(newIndex);
816+
this._goToPage(newIndex);
817817
}
818818
}
819819
},
@@ -892,7 +892,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
892892

893893
this.slide.on('scrollEnd', this._onScrollEnd);
894894

895-
this.slide.goToPage(this.currentPageIndex, 0, 0);
895+
this._goToPage(this.currentPageIndex, 0);
896896

897897
if (this.options.listenScroll && this.options.probeType === 3) {
898898
this.slide.on('scroll', this._onScroll);
@@ -969,6 +969,13 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
969969
}
970970
_this4._refresh();
971971
}, 60);
972+
},
973+
_goToPage: function _goToPage(index, time) {
974+
if (this.direction === DIRECTION_H) {
975+
this.slide && this.slide.goToPage(index, 0, time);
976+
} else if (this.direction === DIRECTION_V) {
977+
this.slide && this.slide.goToPage(0, index, time);
978+
}
972979
}
973980
},
974981
mounted: function mounted() {

lib/slide/slide.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)