diff --git a/api-generator/components/confirmpopup.js b/api-generator/components/confirmpopup.js index 36e260e9a..cded48cc0 100644 --- a/api-generator/components/confirmpopup.js +++ b/api-generator/components/confirmpopup.js @@ -35,6 +35,10 @@ const ConfirmPopupSlots = [ { name: 'rejecticon', description: 'Custom reject icon template.' + }, + { + name: 'container', + description: 'Custom container template.' } ]; diff --git a/components/lib/confirmpopup/ConfirmPopup.d.ts b/components/lib/confirmpopup/ConfirmPopup.d.ts index ca08bfd6e..bcab36bf2 100644 --- a/components/lib/confirmpopup/ConfirmPopup.d.ts +++ b/components/lib/confirmpopup/ConfirmPopup.d.ts @@ -165,6 +165,24 @@ export interface ConfirmPopupSlots { * Custom icon template. */ rejecticon(): VNode[]; + /** + * Custom container slot. + * @param {Object} scope - container slot's params. + */ + container(scope: { + /** + * Message of the component + */ + message: any; + /** + * Accept function of the component + */ + onAccept: () => void; + /** + * Reject function of the component + */ + onReject: () => void; + }): VNode[]; } /** diff --git a/components/lib/confirmpopup/ConfirmPopup.vue b/components/lib/confirmpopup/ConfirmPopup.vue index 38dddfd4e..a0143b101 100644 --- a/components/lib/confirmpopup/ConfirmPopup.vue +++ b/components/lib/confirmpopup/ConfirmPopup.vue @@ -2,32 +2,35 @@
-