From ce2e2b7fdd98bf0e9d372f4c3818a1ddecddc4fd Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Mon, 6 May 2024 14:07:53 +0300 Subject: [PATCH] Refactor #5682 - For Paginator, Toast --- components/lib/paginator/Paginator.d.ts | 76 +++++++++++++++++++++++-- components/lib/paginator/Paginator.vue | 40 +++++++++++-- components/lib/toast/Toast.d.ts | 15 ++++- components/lib/toast/ToastMessage.vue | 2 +- 4 files changed, 122 insertions(+), 11 deletions(-) diff --git a/components/lib/paginator/Paginator.d.ts b/components/lib/paginator/Paginator.d.ts index 644276fa9..0c8e88bc9 100755 --- a/components/lib/paginator/Paginator.d.ts +++ b/components/lib/paginator/Paginator.d.ts @@ -309,21 +309,89 @@ export interface PaginatorSlots { state: PageState; }): VNode[]; /** + * @deprecated since v4.0. Use 'firsticon' slot instead. * Custom first page link icon template. + * @param {Object} scope - firstpagelinkicon's params. */ - firstpagelinkicon(): VNode[]; + firstpagelinkicon(scope: { + /** + * Style class of the jumptopagedropdown icon. + */ + class: string; + }): VNode[]; + /** + * Custom first page link icon template. + * @param {Object} scope - firsticon's params. + */ + firsticon(scope: { + /** + * Style class of the jumptopagedropdown icon. + */ + class: string; + }): VNode[]; + /** + * @deprecated since v4.0. Use 'previcon' slot instead. + * Custom previous page link icon template. + * @param {Object} scope - prevpagelinkicon's params. + */ + prevpagelinkicon(scope: { + /** + * Style class of the jumptopagedropdown icon. + */ + class: string; + }): VNode[]; /** * Custom previous page link icon template. + * @param {Object} scope - previcon's params. */ - prevpagelinkicon(): VNode[]; + previcon(scope: { + /** + * Style class of the jumptopagedropdown icon. + */ + class: string; + }): VNode[]; + /** + * @deprecated since v4.0. Use 'nexticon' slot instead. + * Custom finextrst page link icon template. + * @param {Object} scope - nextpagelinkicon's params. + */ + nextpagelinkicon(scope: { + /** + * Style class of the jumptopagedropdown icon. + */ + class: string; + }): VNode[]; /** * Custom finextrst page link icon template. + * @param {Object} scope - nexticon's params. */ - nextpagelinkicon(): VNode[]; + nexticon(scope: { + /** + * Style class of the jumptopagedropdown icon. + */ + class: string; + }): VNode[]; + /** + * @deprecated since v4.0. Use 'lasticon' slot instead. + * Custom last page link icon template. + * @param {Object} scope - lastpagelinkicon's params. + */ + lastpagelinkicon(scope: { + /** + * Style class of the jumptopagedropdown icon. + */ + class: string; + }): VNode[]; /** * Custom last page link icon template. + * @param {Object} scope - lasticon's params. */ - lastpagelinkicon(): VNode[]; + lasticon(scope: { + /** + * Style class of the jumptopagedropdown icon. + */ + class: string; + }): VNode[]; /** * Custom rowsperpagedropdownicon template. * @param {Object} scope - rowsperpagedropdownicon's params. diff --git a/components/lib/paginator/Paginator.vue b/components/lib/paginator/Paginator.vue index e343fb26e..b9e44ff6a 100755 --- a/components/lib/paginator/Paginator.vue +++ b/components/lib/paginator/Paginator.vue @@ -5,10 +5,42 @@