Paginator updates for DataView

pull/4148/head
Tuğçe Küçükoğlu 2023-07-13 15:22:16 +03:00
parent 91c7fede14
commit 447773073a
2 changed files with 4 additions and 5 deletions

View File

@ -10,12 +10,11 @@ const classes = {
}
],
header: 'p-dataview-header',
paginatorTop: ({ instance }) => [{ 'p-paginator-top': instance.paginatorTop }],
paginator: ({ instance }) => (instance.paginatorTop ? 'p-paginator-top' : instance.paginatorBottom ? 'p-paginator-bottom' : ''),
content: 'p-dataview-content',
grid: 'p-grid p-nogutter grid grid-nogutter',
column: 'p-col col',
emptyMessage: 'p-dataview-emptymessage',
paginatorBottom: ({ instance }) => [{ 'p-paginator-bottom': instance.paginatorBottom }],
footer: 'p-dataview-footer'
};

View File

@ -12,7 +12,7 @@
:template="paginatorTemplate"
:rowsPerPageOptions="rowsPerPageOptions"
:currentPageReportTemplate="currentPageReportTemplate"
:class="cx('paginatorTop')"
:class="cx('paginator')"
:alwaysShow="alwaysShowPaginator"
@page="onPage($event)"
:unstyled="unstyled"
@ -47,11 +47,11 @@
:template="paginatorTemplate"
:rowsPerPageOptions="rowsPerPageOptions"
:currentPageReportTemplate="currentPageReportTemplate"
:class="cx('paginatorBottom')"
:class="cx('paginator')"
:alwaysShow="alwaysShowPaginator"
@page="onPage($event)"
:unstyled="unstyled"
:pt="ptm('root')"
:pt="ptm('paginator')"
>
<template v-if="$slots.paginatorstart" #start>
<slot name="paginatorstart"></slot>