Cosmetics

pull/1391/head
mertsincan 2021-07-27 12:16:18 +03:00
parent 6fc67bf2d8
commit a9c215224d
1 changed files with 13 additions and 13 deletions

View File

@ -1,7 +1,7 @@
<template>
<div :ref="elementRef" :class="containerClass" :style="style" @scroll="onScroll">
<div :ref="contentRef" class="p-virtualscroller-content">
<template v-for="(item, index) of renderItems" :key="index">
<template v-for="(item, index) of loadedItems" :key="index">
<slot name="item" :item="item" :options="getOptions(index)"></slot>
</template>
</div>
@ -462,7 +462,7 @@ export default {
},
spacerRef(el) {
this.spacer = el;
},
}
},
computed: {
containerClass() {
@ -476,7 +476,7 @@ export default {
'p-component-overlay': !this.$slots.loader
}];
},
renderItems() {
loadedItems() {
const items = this.items;
if (items && !this.d_loading) {
const isBoth = this.isBoth();