Cosmetics
parent
6fc67bf2d8
commit
a9c215224d
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div :ref="elementRef" :class="containerClass" :style="style" @scroll="onScroll">
|
<div :ref="elementRef" :class="containerClass" :style="style" @scroll="onScroll">
|
||||||
<div :ref="contentRef" class="p-virtualscroller-content">
|
<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>
|
<slot name="item" :item="item" :options="getOptions(index)"></slot>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
|
@ -462,7 +462,7 @@ export default {
|
||||||
},
|
},
|
||||||
spacerRef(el) {
|
spacerRef(el) {
|
||||||
this.spacer = el;
|
this.spacer = el;
|
||||||
},
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
containerClass() {
|
containerClass() {
|
||||||
|
@ -476,7 +476,7 @@ export default {
|
||||||
'p-component-overlay': !this.$slots.loader
|
'p-component-overlay': !this.$slots.loader
|
||||||
}];
|
}];
|
||||||
},
|
},
|
||||||
renderItems() {
|
loadedItems() {
|
||||||
const items = this.items;
|
const items = this.items;
|
||||||
if (items && !this.d_loading) {
|
if (items && !this.d_loading) {
|
||||||
const isBoth = this.isBoth();
|
const isBoth = this.isBoth();
|
||||||
|
|
Loading…
Reference in New Issue