Skip to content

Commit b8a09a4

Browse files
authored
fix item wrapper when using item slot API (#393)
* fix item slot * fix item slot * fix item slot * fix item slot * fix item slot
1 parent 0d7d686 commit b8a09a4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: dist/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -673,11 +673,11 @@
673673
attrs: {
674674
role: 'listitem'
675675
}
676-
}, [slotComponent ? h('div', slotComponent({
676+
}, [slotComponent ? slotComponent({
677677
item: source,
678678
index: index,
679679
scope: props
680-
})) : h(component, {
680+
}) : h(component, {
681681
props: props,
682682
scopedSlots: scopedSlots
683683
})]);

Diff for: src/item.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export const Item = Vue.component('virtual-list-item', {
6363
attrs: {
6464
role: 'listitem'
6565
}
66-
}, [slotComponent ? h('div', slotComponent({ item: source, index: index, scope: props })) : h(component, {
66+
}, [slotComponent ? slotComponent({ item: source, index: index, scope: props }) : h(component, {
6767
props,
6868
scopedSlots: scopedSlots
6969
})])

0 commit comments

Comments
 (0)