refs #1766 Introduce vue-virtual-scroll in SideBar/Follows

This commit is contained in:
AkiraFukushima 2020-10-20 01:15:01 +09:00
parent 4b36d8f4e1
commit d2a808b650
1 changed files with 15 additions and 11 deletions

View File

@ -1,15 +1,19 @@
<template> <template>
<div id="follows"> <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
:user="follow" :user="item"
v-bind:key="follow.id" v-bind:key="item.id"
:relationship="targetRelation(follow.id)" :relationship="targetRelation(item.id)"
@followAccount="followAccount" @followAccount="followAccount"
@unfollowAccount="unfollowAccount" @unfollowAccount="unfollowAccount"
> >
</user> </user>
</DynamicScrollerItem>
</template> </template>
</DynamicScroller>
</div> </div>
</template> </template>