refs #1766 Introduce vue-virtual-scroll in Search/Tag
This commit is contained in:
parent
e688cee974
commit
8353818492
|
@ -1,8 +1,12 @@
|
|||
<template>
|
||||
<div id="search_tag">
|
||||
<template v-for="tag in results">
|
||||
<tag :tag="tag"></tag>
|
||||
<DynamicScroller :items="results" :min-item-size="46" key-field="name" class="scroller" page-mode>
|
||||
<template v-slot="{ item, index, active }">
|
||||
<DynamicScrollerItem :item="item" :active="active" :size-dependencies="[item.name]" :data-index="index">
|
||||
<tag :tag="item"></tag>
|
||||
</DynamicScrollerItem>
|
||||
</template>
|
||||
</DynamicScroller>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
|
|
Loading…
Reference in New Issue