diff --git a/api-generator/components/confirmdialog.js b/api-generator/components/confirmdialog.js index 7e1a4df28..1dcd29cc0 100644 --- a/api-generator/components/confirmdialog.js +++ b/api-generator/components/confirmdialog.js @@ -47,6 +47,10 @@ const ConfirmDialogSlots = [ { name: 'rejecticon', description: 'Custom reject icon template.' + }, + { + name: 'container', + description: 'Custom container template.' } ]; diff --git a/components/lib/confirmdialog/ConfirmDialog.d.ts b/components/lib/confirmdialog/ConfirmDialog.d.ts index 32a499de5..8e18f7a9a 100644 --- a/components/lib/confirmdialog/ConfirmDialog.d.ts +++ b/components/lib/confirmdialog/ConfirmDialog.d.ts @@ -211,6 +211,20 @@ export interface ConfirmDialogSlots { * Custom icon template. */ rejecticon(): VNode[]; + /** + * Custom container slot. + * @param {Object} scope - container slot's params. + */ + container(scope: { + /** + * Message of the component + */ + message: any; + /** + * Close dialog function. + */ + onClose: () => void; + }): VNode[]; } /** diff --git a/components/lib/confirmdialog/ConfirmDialog.vue b/components/lib/confirmdialog/ConfirmDialog.vue index 951101edc..f39593c84 100644 --- a/components/lib/confirmdialog/ConfirmDialog.vue +++ b/components/lib/confirmdialog/ConfirmDialog.vue @@ -14,15 +14,20 @@ :pt="pt" :unstyled="unstyled" > -