From 95ca69d45345a5ce3849f456b4a5bda03bcd2e21 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: Tue, 18 Apr 2023 14:50:19 +0300 Subject: [PATCH] Refactor #3832 Refactor #3833 - ConfirmDialog & ConfirmPopup updates --- .../lib/confirmdialog/ConfirmDialog.d.ts | 12 +++++++++++ .../lib/confirmdialog/ConfirmDialog.vue | 21 ++++++++++++++++--- components/lib/confirmpopup/ConfirmPopup.d.ts | 12 +++++++++++ components/lib/confirmpopup/ConfirmPopup.vue | 21 ++++++++++++++++--- 4 files changed, 60 insertions(+), 6 deletions(-) diff --git a/components/lib/confirmdialog/ConfirmDialog.d.ts b/components/lib/confirmdialog/ConfirmDialog.d.ts index 15866fd0f..b087d314b 100644 --- a/components/lib/confirmdialog/ConfirmDialog.d.ts +++ b/components/lib/confirmdialog/ConfirmDialog.d.ts @@ -62,6 +62,18 @@ export interface ConfirmDialogSlots { * @param {Object} scope - message slot's params. */ message(scope: { message: ConfirmationOptions }): VNode[]; + /** + * Custom icon template. + */ + icon(): VNode[]; + /** + * Custom icon template. + */ + accepticon(): VNode[]; + /** + * Custom icon template. + */ + rejecticon(): VNode[]; } /** diff --git a/components/lib/confirmdialog/ConfirmDialog.vue b/components/lib/confirmdialog/ConfirmDialog.vue index 44ad632e0..223245cda 100644 --- a/components/lib/confirmdialog/ConfirmDialog.vue +++ b/components/lib/confirmdialog/ConfirmDialog.vue @@ -13,13 +13,28 @@ @update:visible="onHide" > diff --git a/components/lib/confirmpopup/ConfirmPopup.d.ts b/components/lib/confirmpopup/ConfirmPopup.d.ts index 6440faf68..a002aee94 100644 --- a/components/lib/confirmpopup/ConfirmPopup.d.ts +++ b/components/lib/confirmpopup/ConfirmPopup.d.ts @@ -30,6 +30,18 @@ export interface ConfirmPopupSlots { * @param {Object} scope - message slot's params. */ message(scope: { message: ConfirmationOptions }): VNode[]; + /** + * Custom icon template. + */ + icon(): VNode[]; + /** + * Custom icon template. + */ + accepticon(): VNode[]; + /** + * Custom icon template. + */ + rejecticon(): VNode[]; } /** diff --git a/components/lib/confirmpopup/ConfirmPopup.vue b/components/lib/confirmpopup/ConfirmPopup.vue index bf472c367..0cc76b001 100644 --- a/components/lib/confirmpopup/ConfirmPopup.vue +++ b/components/lib/confirmpopup/ConfirmPopup.vue @@ -4,14 +4,29 @@