From 43faf8704d6ff6fb4107f65189ad5dee3fdf81bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Wed, 6 Sep 2023 11:50:14 +0300 Subject: [PATCH] Fixed #3921 - DataTable and TreeTable: new Paginator dropdown icon slots --- components/lib/datatable/DataTable.d.ts | 20 +++++++++++++++++++ components/lib/datatable/DataTable.vue | 12 +++++++++++ .../lib/paginator/JumpToPageDropdown.vue | 9 +++++++-- components/lib/paginator/Paginator.d.ts | 20 +++++++++++++++++++ components/lib/paginator/Paginator.vue | 2 ++ .../lib/paginator/RowsPerPageDropdown.vue | 9 +++++++-- components/lib/treetable/TreeTable.d.ts | 20 +++++++++++++++++++ components/lib/treetable/TreeTable.vue | 12 +++++++++++ 8 files changed, 100 insertions(+), 4 deletions(-) diff --git a/components/lib/datatable/DataTable.d.ts b/components/lib/datatable/DataTable.d.ts index 1e67b6c955..009e268e48 100755 --- a/components/lib/datatable/DataTable.d.ts +++ b/components/lib/datatable/DataTable.d.ts @@ -1224,6 +1224,26 @@ export interface DataTableSlots { * Custom paginator last page link icon template. */ paginatorlastpagelinkicon(): VNode[]; + /** + * Custom paginatorrowsperpagedropdownicon template. + * @param {Object} scope - paginator rowsperpagedropdownicon's params. + */ + paginatorrowsperpagedropdownicon(scope: { + /** + * Style class of the paginator rowsperpagedropdown icon. + */ + class: string; + }): VNode[]; + /** + * Custom paginatorjumptopagedropdownicon template. + * @param {Object} scope - paginator jumptopagedropdownicon's params. + */ + paginatorjumptopagedropdownicon(scope: { + /** + * Style class of the paginator jumptopagedropdown icon. + */ + class: string; + }): VNode[]; } /** * Defines valid emits in Datatable component. diff --git a/components/lib/datatable/DataTable.vue b/components/lib/datatable/DataTable.vue index dbe2b22517..aefafabab6 100755 --- a/components/lib/datatable/DataTable.vue +++ b/components/lib/datatable/DataTable.vue @@ -45,6 +45,12 @@ + +
+ +
diff --git a/components/lib/paginator/JumpToPageDropdown.vue b/components/lib/paginator/JumpToPageDropdown.vue index cdaf0f6e54..9fa40a0e0f 100644 --- a/components/lib/paginator/JumpToPageDropdown.vue +++ b/components/lib/paginator/JumpToPageDropdown.vue @@ -11,7 +11,11 @@ :pt="ptm('jumpToPageDropdown')" data-pc-section="jumptopagedropdown" data-pc-group-section="pagedropdown" - > + > + +