Skip to content

Commit d226a7a

Browse files
dclausetangbc
authored andcommitted
Do not add each item data as props but wrap it in a single data prop.
1 parent 40565a5 commit d226a7a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

dist/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,9 @@
530530
return h(this.tag, {
531531
role: 'item'
532532
}, [h(this.component, {
533-
props: this.source
533+
props: {
534+
data: this.source
535+
}
534536
})]);
535537
}
536538
}); // wrapping for slot.

src/item.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export const Item = Vue.component('virtual-list-item', {
5858
return h(this.tag, {
5959
role: 'item'
6060
}, [h(this.component, {
61-
props: this.source
61+
props: { data: this.source }
6262
})])
6363
}
6464
})

0 commit comments

Comments
 (0)