Cosmetics
parent
6fc67bf2d8
commit
a9c215224d
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue