Refactor #4433 - ConfirmDialog
parent
1fce3d50a5
commit
9beab952eb
|
@ -224,6 +224,14 @@ export interface ConfirmDialogSlots {
|
||||||
* Close dialog function.
|
* Close dialog function.
|
||||||
*/
|
*/
|
||||||
onClose: () => void;
|
onClose: () => void;
|
||||||
|
/**
|
||||||
|
* Accept function of the component
|
||||||
|
*/
|
||||||
|
onAccept: () => void;
|
||||||
|
/**
|
||||||
|
* Reject function of the component
|
||||||
|
*/
|
||||||
|
onReject: () => void;
|
||||||
}): VNode[];
|
}): VNode[];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
:unstyled="unstyled"
|
:unstyled="unstyled"
|
||||||
>
|
>
|
||||||
<template v-if="$slots.container" #container="slotProps">
|
<template v-if="$slots.container" #container="slotProps">
|
||||||
<slot name="container" :message="confirmation" :onClose="slotProps.onClose" />
|
<slot name="container" :message="confirmation" :onClose="slotProps.onClose" :onAccept="accept" :onReject="reject" />
|
||||||
</template>
|
</template>
|
||||||
<template v-if="!$slots.container">
|
<template v-if="!$slots.container">
|
||||||
<template v-if="!$slots.message">
|
<template v-if="!$slots.message">
|
||||||
|
|
Loading…
Reference in New Issue