mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 17:02:38 +00:00
Fixed #6683 - For DataTable
This commit is contained in:
parent
f11a8be82f
commit
0bc96d5ef3
2 changed files with 44 additions and 8 deletions
20
packages/primevue/src/datatable/DataTable.d.ts
vendored
20
packages/primevue/src/datatable/DataTable.d.ts
vendored
|
@ -1262,14 +1262,6 @@ export interface DataTableSlots {
|
|||
* Custom footer template.
|
||||
*/
|
||||
footer(): VNode[];
|
||||
/**
|
||||
* Custom paginator start template.
|
||||
*/
|
||||
paginatorstart(): VNode[];
|
||||
/**
|
||||
* Custom paginator end template.
|
||||
*/
|
||||
paginatorend(): VNode[];
|
||||
/**
|
||||
* Custom empty template.
|
||||
*/
|
||||
|
@ -1353,6 +1345,18 @@ export interface DataTableSlots {
|
|||
*/
|
||||
expanded: boolean;
|
||||
}): VNode[];
|
||||
/**
|
||||
* Custom paginator container template.
|
||||
*/
|
||||
paginatorcontainer(): VNode[];
|
||||
/**
|
||||
* Custom paginator start template.
|
||||
*/
|
||||
paginatorstart(): VNode[];
|
||||
/**
|
||||
* Custom paginator end template.
|
||||
*/
|
||||
paginatorend(): VNode[];
|
||||
/**
|
||||
* Custom paginator first page link icon template.
|
||||
*/
|
||||
|
|
|
@ -27,6 +27,22 @@
|
|||
:unstyled="unstyled"
|
||||
:pt="ptm('pcPaginator')"
|
||||
>
|
||||
<template v-if="$slots.paginatorcontainer" #container>
|
||||
<slot
|
||||
name="paginatorcontainer"
|
||||
:first="slotProps.first"
|
||||
:last="slotProps.last"
|
||||
:rows="slotProps.rows"
|
||||
:page="slotProps.page"
|
||||
:pageCount="slotProps.pageCount"
|
||||
:totalRecords="slotProps.totalRecords"
|
||||
:firstPageCallback="slotProps.firstPageCallback"
|
||||
:lastPageCallback="slotProps.lastPageCallback"
|
||||
:prevPageCallback="slotProps.prevPageCallback"
|
||||
:nextPageCallback="slotProps.nextPageCallback"
|
||||
:rowChangeCallback="slotProps.rowChangeCallback"
|
||||
></slot>
|
||||
</template>
|
||||
<template v-if="$slots.paginatorstart" #start>
|
||||
<slot name="paginatorstart"></slot>
|
||||
</template>
|
||||
|
@ -242,6 +258,22 @@
|
|||
:unstyled="unstyled"
|
||||
:pt="ptm('pcPaginator')"
|
||||
>
|
||||
<template v-if="$slots.paginatorcontainer" #container="slotProps">
|
||||
<slot
|
||||
name="paginatorcontainer"
|
||||
:first="slotProps.first"
|
||||
:last="slotProps.last"
|
||||
:rows="slotProps.rows"
|
||||
:page="slotProps.page"
|
||||
:pageCount="slotProps.pageCount"
|
||||
:totalRecords="slotProps.totalRecords"
|
||||
:firstPageCallback="slotProps.firstPageCallback"
|
||||
:lastPageCallback="slotProps.lastPageCallback"
|
||||
:prevPageCallback="slotProps.prevPageCallback"
|
||||
:nextPageCallback="slotProps.nextPageCallback"
|
||||
:rowChangeCallback="slotProps.rowChangeCallback"
|
||||
></slot>
|
||||
</template>
|
||||
<template v-if="$slots.paginatorstart" #start>
|
||||
<slot name="paginatorstart"></slot>
|
||||
</template>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue