Skip to content

Commit d0215e4

Browse files
committed
build: package
1 parent 54399f1 commit d0215e4

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
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/index.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6839,7 +6839,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
68396839
}
68406840

68416841
var Cube = {
6842-
version: "1.12.2",
6842+
version: "1.12.3",
68436843
install: install,
68446844
BScroll: _module.BetterScroll,
68456845
createAPI: _module.createAPI
@@ -21126,6 +21126,9 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
2112621126
removeItem: function removeItem(item) {
2112721127
var index = this.items.indexOf(item);
2112821128
this.items.splice(index, 1);
21129+
if (index <= this.activeIndex) {
21130+
this.activeIndex -= 1;
21131+
}
2112921132
},
2113021133
onItemClick: function onItemClick(item, index) {
2113121134
this.$emit(EVENT_ITEM_CLICK, item, index);

lib/swipe/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,9 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
247247
removeItem: function removeItem(item) {
248248
var index = this.items.indexOf(item);
249249
this.items.splice(index, 1);
250+
if (index <= this.activeIndex) {
251+
this.activeIndex -= 1;
252+
}
250253
},
251254
onItemClick: function onItemClick(item, index) {
252255
this.$emit(EVENT_ITEM_CLICK, item, index);

0 commit comments

Comments
 (0)