FIX InfiniteScroll when use VnTable #704

Merged
jsegarra merged 1 commits from fix_VnTable_infiniteScroll into dev 2024-09-12 08:22:26 +00:00
1 changed files with 14 additions and 7 deletions

View File

@ -224,13 +224,20 @@ defineExpose({ fetch, addFilter, paginate });
v-bind="$attrs" v-bind="$attrs"
> >
<slot name="body" :rows="store.data"></slot> <slot name="body" :rows="store.data"></slot>
<div v-if="isLoading" class="info-row q-pa-md text-center"> <div v-if="isLoading" class="spinner info-row q-pa-md text-center">
<QSpinner color="primary" size="md" /> <QSpinner color="primary" size="md" />
</div> </div>
</QInfiniteScroll> </QInfiniteScroll>
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped>
.spinner {
z-index: 1;
align-content: end;
position: absolute;
bottom: 0;
left: 0;
}
.info-row { .info-row {
width: 100%; width: 100%;