Skip to content

Commit a31f1c2

Browse files
committed
Update item mode total less than keeps.
2 parents c43ca8e + 67dd17d commit a31f1c2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,9 @@
445445
// item-mode shoud judge from items prop.
446446
if (this.item) {
447447
delta.total = this.itemcount
448+
if (delta.keeps > delta.total) {
449+
delta.end = delta.total - 1
450+
}
448451
} else {
449452
if (!slots.length) {
450453
delta.start = 0

0 commit comments

Comments
 (0)