diff --git a/dist/index.js b/dist/index.js index cc29248..b9dfb1f 100644 --- a/dist/index.js +++ b/dist/index.js @@ -673,11 +673,11 @@ attrs: { role: 'listitem' } - }, [slotComponent ? h('div', slotComponent({ + }, [slotComponent ? slotComponent({ item: source, index: index, scope: props - })) : h(component, { + }) : h(component, { props: props, scopedSlots: scopedSlots })]); diff --git a/src/item.js b/src/item.js index 73e99b1..a171fc9 100644 --- a/src/item.js +++ b/src/item.js @@ -63,7 +63,7 @@ export const Item = Vue.component('virtual-list-item', { attrs: { role: 'listitem' } - }, [slotComponent ? h('div', slotComponent({ item: source, index: index, scope: props })) : h(component, { + }, [slotComponent ? slotComponent({ item: source, index: index, scope: props }) : h(component, { props, scopedSlots: scopedSlots })])