-->
<template>
- <Fragment>
+ <tr :class="{'list__row--active': active}" class="list__row">
<span v-if="source.attributes.failed" class="files-list__row--failed" />
<td class="files-list__row-checkbox">
:render="column.render"
:source="source" />
</td>
- </Fragment>
+ </tr>
</template>
<script lang='ts'>
source() {
this.resetState()
this.debounceIfNotCached()
+ logger.debug('FileEntry source changed', { source: this.source })
},
/**
<!-- Body -->
<tbody :style="tbodyStyle" class="files-list__tbody">
- <tr v-for="(item, i) in renderedItems"
+ <component :is="dataComponent"
+ v-for="(item, i) in renderedItems"
:key="i"
- :class="{'list__row--active': (i >= bufferItems || index <= bufferItems) && (i < shownItems - bufferItems)}"
- class="list__row">
- <component :is="dataComponent"
- :active="(i >= bufferItems || index <= bufferItems) && (i < shownItems - bufferItems)"
- :source="item"
- :index="i"
- :item-height="itemHeight"
- v-bind="extraProps" />
- </tr>
+ :active="(i >= bufferItems || index <= bufferItems) && (i < shownItems - bufferItems)"
+ :source="item"
+ :index="i"
+ v-bind="extraProps" />
</tbody>
<!-- Footer -->
this.index = this.scrollToIndex
this.$el.scrollTop = this.index * this.itemHeight + this.beforeHeight
},
- index() {
- logger.debug('VirtualList index updated to ' + this.index)
- },
},
mounted() {