From d1d50714abb269484e5056d06be5feba5c3bb93e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bahad=C4=B1r=20Sofuo=C4=9Flu?= Date: Mon, 29 May 2023 21:41:50 +0300 Subject: [PATCH] Refactor #3965 - For ConfirmPopup --- .../lib/confirmpopup/BaseConfirmPopup.vue | 115 ++++++++++++++++ components/lib/confirmpopup/ConfirmPopup.d.ts | 5 + components/lib/confirmpopup/ConfirmPopup.vue | 123 +++--------------- 3 files changed, 137 insertions(+), 106 deletions(-) create mode 100644 components/lib/confirmpopup/BaseConfirmPopup.vue diff --git a/components/lib/confirmpopup/BaseConfirmPopup.vue b/components/lib/confirmpopup/BaseConfirmPopup.vue new file mode 100644 index 000000000..c540387b4 --- /dev/null +++ b/components/lib/confirmpopup/BaseConfirmPopup.vue @@ -0,0 +1,115 @@ + diff --git a/components/lib/confirmpopup/ConfirmPopup.d.ts b/components/lib/confirmpopup/ConfirmPopup.d.ts index 72d3f8209..ae38ecd83 100644 --- a/components/lib/confirmpopup/ConfirmPopup.d.ts +++ b/components/lib/confirmpopup/ConfirmPopup.d.ts @@ -94,6 +94,11 @@ export interface ConfirmPopupProps { * @type {ConfirmPopupPassThroughOptions} */ pt?: ConfirmPopupPassThroughOptions; + /** + * When enabled, it removes component related styles in the core. + * @defaultValue false + */ + unstyled?: boolean; } /** diff --git a/components/lib/confirmpopup/ConfirmPopup.vue b/components/lib/confirmpopup/ConfirmPopup.vue index f0aaf5559..6abc11d4f 100644 --- a/components/lib/confirmpopup/ConfirmPopup.vue +++ b/components/lib/confirmpopup/ConfirmPopup.vue @@ -1,29 +1,29 @@ - -