primevue-mirror/components/lib/confirmdialog/BaseConfirmDialog.vue

32 lines
1.0 KiB
Vue
Raw Normal View History

2023-05-29 17:44:31 +00:00
<script>
import BaseComponent from 'primevue/basecomponent';
const classes = {
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],
rejectButtonIcon: ({ context }) => [context && context.icon, context && context.iconClass],
acceptButton: ({ instance }) => ['p-confirm-dialog-accept', instance.confirmation ? instance.confirmation.acceptClass : null],
acceptButtonIcon: ({ context }) => [context && context.icon, context && context.iconClass]
};
export default {
name: 'BaseConfirmDialog',
extends: BaseComponent,
props: {
group: String,
breakpoints: {
type: Object,
default: null
},
draggable: {
type: Boolean,
default: true
}
},
css: {
classes
}
};
</script>