refs #1766 Introduce vue-virtual-scroll in SideBar/Follows
This commit is contained in:
parent
4b36d8f4e1
commit
d2a808b650
|
@ -1,15 +1,19 @@
|
|||
<template>
|
||||
<div id="follows">
|
||||
<template v-for="follow in follows">
|
||||
<DynamicScroller :items="follows" :min-item-size="53" class="scroller" page-mode>
|
||||
<template v-slot="{ item, index, active }">
|
||||
<DynamicScrollerItem :item="item" :active="active" :size-dependencies="[item.item]" :data-index="index">
|
||||
<user
|
||||
:user="follow"
|
||||
v-bind:key="follow.id"
|
||||
:relationship="targetRelation(follow.id)"
|
||||
:user="item"
|
||||
v-bind:key="item.id"
|
||||
:relationship="targetRelation(item.id)"
|
||||
@followAccount="followAccount"
|
||||
@unfollowAccount="unfollowAccount"
|
||||
>
|
||||
</user>
|
||||
</DynamicScrollerItem>
|
||||
</template>
|
||||
</DynamicScroller>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
|
Loading…
Reference in New Issue