refs #1766 Introduce vue-virtual-scroll in SideBar/Follows
This commit is contained in:
parent
4b36d8f4e1
commit
d2a808b650
|
@ -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>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue