Skip to content

Commit 102a70d

Browse files
committed
build: package
1 parent dc10f1b commit 102a70d

File tree

6 files changed

+25
-13
lines changed

6 files changed

+25
-13
lines changed

lib/cube.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/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: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7770,6 +7770,10 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
77707770
deprecated: {
77717771
replacedBy: 'options'
77727772
}
7773+
},
7774+
refreshResetCurrent: {
7775+
type: Boolean,
7776+
default: true
77737777
}
77747778
},
77757779
data: function data() {
@@ -7814,7 +7818,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
78147818
this._destroy();
78157819
clearTimeout(this._timer);
78167820

7817-
if (this.slide) {
7821+
if (this.slide && this.refreshResetCurrent) {
78187822
this.currentPageIndex = 0;
78197823
}
78207824
this._updateSlideDom();
@@ -8464,9 +8468,9 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
84648468
});
84658469
},
84668470
checkBoundary: function checkBoundary(scroll, pos) {
8467-
if (scroll.movingDirectionX) {
8471+
if (scroll.distX) {
84688472
this._scrolling = true;
8469-
var reached = scroll.movingDirectionX === -1 ? pos.x >= scroll.minScrollX : pos.x <= scroll.maxScrollX;
8473+
var reached = scroll.distX > 0 ? pos.x >= scroll.minScrollX : pos.x <= scroll.maxScrollX;
84708474
if (reached) {
84718475
this._hasEnableSlide = true;
84728476
this._slide(scroll);
@@ -8475,7 +8479,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
84758479
this._scroll(scroll);
84768480
}
84778481
}
8478-
} else if (scroll.movingDirectionY) {
8482+
} else if (scroll.distY) {
84798483
this._scrolling = true;
84808484
this._scroll(scroll);
84818485
}

lib/index.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6554,7 +6554,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
65546554
}
65556555

65566556
var Cube = {
6557-
version: "1.10.9",
6557+
version: "1.10.10",
65586558
install: install,
65596559
BScroll: _module.BetterScroll,
65606560
createAPI: _module.createAPI
@@ -18837,9 +18837,9 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
1883718837
});
1883818838
},
1883918839
checkBoundary: function checkBoundary(scroll, pos) {
18840-
if (scroll.movingDirectionX) {
18840+
if (scroll.distX) {
1884118841
this._scrolling = true;
18842-
var reached = scroll.movingDirectionX === -1 ? pos.x >= scroll.minScrollX : pos.x <= scroll.maxScrollX;
18842+
var reached = scroll.distX > 0 ? pos.x >= scroll.minScrollX : pos.x <= scroll.maxScrollX;
1884318843
if (reached) {
1884418844
this._hasEnableSlide = true;
1884518845
this._slide(scroll);
@@ -18848,7 +18848,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
1884818848
this._scroll(scroll);
1884918849
}
1885018850
}
18851-
} else if (scroll.movingDirectionY) {
18851+
} else if (scroll.distY) {
1885218852
this._scrolling = true;
1885318853
this._scroll(scroll);
1885418854
}
@@ -19004,6 +19004,10 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
1900419004
deprecated: {
1900519005
replacedBy: 'options'
1900619006
}
19007+
},
19008+
refreshResetCurrent: {
19009+
type: Boolean,
19010+
default: true
1900719011
}
1900819012
},
1900919013
data: function data() {
@@ -19048,7 +19052,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
1904819052
this._destroy();
1904919053
clearTimeout(this._timer);
1905019054

19051-
if (this.slide) {
19055+
if (this.slide && this.refreshResetCurrent) {
1905219056
this.currentPageIndex = 0;
1905319057
}
1905419058
this._updateSlideDom();

lib/slide/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5288,6 +5288,10 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
52885288
deprecated: {
52895289
replacedBy: 'options'
52905290
}
5291+
},
5292+
refreshResetCurrent: {
5293+
type: Boolean,
5294+
default: true
52915295
}
52925296
},
52935297
data: function data() {
@@ -5332,7 +5336,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
53325336
this._destroy();
53335337
clearTimeout(this._timer);
53345338

5335-
if (this.slide) {
5339+
if (this.slide && this.refreshResetCurrent) {
53365340
this.currentPageIndex = 0;
53375341
}
53385342
this._updateSlideDom();

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)