We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d592a2e commit 5c8f5f2Copy full SHA for 5c8f5f2
src/index.js
@@ -508,7 +508,7 @@
508
const slots = this.$slots.default || []
509
510
// item-mode shoud judge from items prop.
511
- if (this.item || this.$scopedSlots.default) {
+ if (this.item || this.$scopedSlots.item) {
512
delta.total = this.itemcount
513
if (delta.keeps > delta.total) {
514
delta.end = delta.total - 1
@@ -544,8 +544,8 @@
544
const renders = []
545
for (let i = delta.start; i < delta.total && i <= Math.ceil(delta.end); i++) {
546
let slot = null
547
- if (this.$scopedSlots.default) {
548
- slot = this.$scopedSlots.default(i)
+ if (this.$scopedSlots.item) {
+ slot = this.$scopedSlots.item(i)
549
} else if (this.item) {
550
slot = h(this.item, this.itemprops(i))
551
} else {
0 commit comments