vue-virtual-scroll-list
vue-virtual-scroll-list copied to clipboard
How can itemComponent emit event?
<virtual-list ref="basicVsl" style="height:300px; overflow-y: auto; margin-top: 10px;" :item-class="'scroll-item'" :data-key="'id'" :data-sources="basicSourceList" :data-component="itemComponent" :keeps="20" @scroll="onBasicScroll" @change="change" // it not work />
itemComponent emit like this this.$parent.$parent.$emit("xxx");