ConfirmDialog message class update

pull/3518/head^2
Bahadır Sofuoğlu 2023-01-10 13:03:29 +03:00
parent d9244f66a2
commit d8f0f25121
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@
<CDialog v-model:visible="visible" role="alertdialog" class="p-confirm-dialog" :modal="true" :header="header" :blockScroll="blockScroll" :position="position" :breakpoints="breakpoints" :closeOnEscape="closeOnEscape" @update:visible="onHide"> <CDialog v-model:visible="visible" role="alertdialog" class="p-confirm-dialog" :modal="true" :header="header" :blockScroll="blockScroll" :position="position" :breakpoints="breakpoints" :closeOnEscape="closeOnEscape" @update:visible="onHide">
<template v-if="!$slots.message"> <template v-if="!$slots.message">
<i v-if="confirmation.icon" :class="iconClass" /> <i v-if="confirmation.icon" :class="iconClass" />
<span :class="{ 'p-confirm-dialog-message': confirmation.icon }">{{ message }}</span> <span :class="{ 'p-confirm-dialog-message': !!confirmation.icon }">{{ message }}</span>
</template> </template>
<component v-else :is="$slots.message" :message="confirmation"></component> <component v-else :is="$slots.message" :message="confirmation"></component>
<template #footer> <template #footer>