Skip to content

Commit 5af33ef

Browse files
committed
Change itemprop to itemprops
1 parent b313a0f commit 5af33ef

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
onscroll: Function,
5252
item: { type: Object },
5353
itemcount: { type: Number },
54-
itemprop: { type: Function }
54+
itemprops: { type: Function }
5555
},
5656

5757
created: function () {
@@ -370,7 +370,9 @@
370370
var targets = []
371371
for (var i = delta.start; i <= Math.ceil(delta.end); i++) {
372372
// create vnode, using custom attrs binder.
373-
var slot = this.item ? this.$createElement(this.item, this.itemprop(i)) : slots[i]
373+
var slot = this.item && this.itemprops
374+
? this.$createElement(this.item, this.itemprops(i))
375+
: slots[i]
374376
targets.push(slot)
375377
}
376378

0 commit comments

Comments
 (0)