From 20c3696bb09bdc2b5f68eb7da5a3ae83e9bf95e2 Mon Sep 17 00:00:00 2001 From: Dominique CLAUSE Date: Mon, 13 Apr 2020 20:18:19 +0200 Subject: [PATCH] Do not add each item data as props but wrap it in a single data prop. --- dist/index.js | 4 +++- src/item.js | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index da87014..18f182b 100644 --- a/dist/index.js +++ b/dist/index.js @@ -530,7 +530,9 @@ return h(this.tag, { role: 'item' }, [h(this.component, { - props: this.source + props: { + data: this.source + } })]); } }); // wrapping for slot. diff --git a/src/item.js b/src/item.js index 8a94331..6b9051c 100644 --- a/src/item.js +++ b/src/item.js @@ -58,7 +58,7 @@ export const Item = Vue.component('virtual-list-item', { return h(this.tag, { role: 'item' }, [h(this.component, { - props: this.source + props: { data: this.source } })]) } })