Open mrsweaters opened 3 years ago
I got the same issue when trying to use 2.0.0-alpha.1
.
My code:
<dynamic-scroller
:items="flatNodes"
:min-item-size="18"
class="w-4/4 h-4/4"
>
<template #default="{ item, index, active }">
<dynamic-scroller-item
:item="item"
:active="active"
:data-index="index"
:data-active="active"
>
<div>
{{ index }} - {{ active }}
</div>
</dynamic-scroller-item>
</template>
</dynamic-scroller>
Error on console:
I think PR #666 could fix this issue
did this issue ever get solved?
When attempting to implement the DynamicScroller in Vue 3, I'm getting a
TypeError: this.$slots.default is not a function
exception when I attempt to render theDynamicScrollerItem
component. If I remove the component, the exception goes away.Using version
2.0.0-alpha.1
.