Fixed #1766 - DataTable lazy loading paginator defect

pull/1280/head^2
Tuğçe Küçükoğlu 2021-11-17 12:42:15 +03:00
parent 91635f7f52
commit 4167611fe7
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@
<div class="p-datatable-header" v-if="$slots.header">
<slot name="header"></slot>
</div>
<DTPaginator v-if="paginatorTop" :rows="d_rows" :first="d_first" :totalRecords="totalRecordsLength" :pageLinkSize="pageLinkSize" :template="paginatorTemplate" :rowsPerPageOptions="rowsPerPageOptions"
<DTPaginator v-if="paginatorTop" :rows="d_rows" :first="lazy ? 0 : d_first" :totalRecords="totalRecordsLength" :pageLinkSize="pageLinkSize" :template="paginatorTemplate" :rowsPerPageOptions="rowsPerPageOptions"
:currentPageReportTemplate="currentPageReportTemplate" class="p-paginator-top" @page="onPage($event)" :alwaysShow="alwaysShowPaginator">
<template #start v-if="$slots.paginatorstart">
<slot name="paginatorstart"></slot>
@ -47,7 +47,7 @@
<DTTableFooter :columnGroup="footerColumnGroup" :columns="columns" />
</table>
</div>
<DTPaginator v-if="paginatorBottom" :rows="d_rows" :first="d_first" :totalRecords="totalRecordsLength" :pageLinkSize="pageLinkSize" :template="paginatorTemplate" :rowsPerPageOptions="rowsPerPageOptions"
<DTPaginator v-if="paginatorBottom" :rows="d_rows" :first="lazy ? 0 : d_first" :totalRecords="totalRecordsLength" :pageLinkSize="pageLinkSize" :template="paginatorTemplate" :rowsPerPageOptions="rowsPerPageOptions"
:currentPageReportTemplate="currentPageReportTemplate" class="p-paginator-bottom" @page="onPage($event)" :alwaysShow="alwaysShowPaginator">
<template #start v-if="$slots.paginatorstart">
<slot name="paginatorstart"></slot>