Skip to content

Commit f4b24bc

Browse files
committed
fix(list-view): add "list" slot in Vue component
fixes #4201 fixes #4195
1 parent 27ae4e1 commit f4b24bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vue/components/list.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ export default {
228228
const { list: slotsList, default: slotsDefault } = slots;
229229
const rootChildrenBeforeList = [];
230230
const rootChildrenAfterList = [];
231-
const ulChildren = slotsList || [];
231+
const ulChildren = slotsList && typeof slotsList === 'function' ? [slotsList()] : [];
232232
let wasUlChild = false;
233233
if (slotsDefault) {
234234
slotsDefault().forEach((vnode) => {

0 commit comments

Comments
 (0)