mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-09 00:42:36 +00:00
Refactor #3965 - For OverlayPanel
This commit is contained in:
parent
ef409b2200
commit
1cc307043c
5 changed files with 155 additions and 123 deletions
|
@ -2,6 +2,7 @@
|
|||
import BaseComponent from 'primevue/basecomponent';
|
||||
|
||||
const classes = {
|
||||
root: 'p-confirm-dialog',
|
||||
icon: ({ instance }) => ['p-confirm-dialog-icon', instance.confirmation ? instance.confirmation.icon : null],
|
||||
message: 'p-confirm-dialog-message',
|
||||
rejectButton: ({ instance }) => ['p-confirm-dialog-reject', instance.confirmation ? instance.confirmation.rejectClass || 'p-button-text' : null],
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<CDialog
|
||||
v-model:visible="visible"
|
||||
role="alertdialog"
|
||||
class="p-confirm-dialog"
|
||||
:class="cx('root')"
|
||||
:modal="true"
|
||||
:header="header"
|
||||
:blockScroll="blockScroll"
|
||||
|
@ -16,7 +16,7 @@
|
|||
>
|
||||
<template v-if="!$slots.message">
|
||||
<slot name="icon">
|
||||
<component v-if="$slots.icon" :is="$slots.icon" class="p-confirm-dialog-icon" :class="cx('icon')" />
|
||||
<component v-if="$slots.icon" :is="$slots.icon" :class="cx('icon')" />
|
||||
<span v-else-if="confirmation.icon" :class="cx('icon')" v-bind="ptm('icon')" />
|
||||
</slot>
|
||||
<span :class="cx('message')" v-bind="ptm('message')">{{ message }}</span>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue