Fixed #1836 - For ConfirmPopup

pull/1846/head
mertsincan 2021-12-01 16:23:32 +03:00
parent 21862781e9
commit ab924a64b5
1 changed files with 38 additions and 7 deletions

View File

@ -1,16 +1,47 @@
interface ConfirmPopupProps { import { VNode } from 'vue';
import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
import { ConfirmationOptions } from '../confirmationoptions';
export interface ConfirmPopupProps {
/**
* Optional key to match the key of the confirmation, useful to target a specific confirm dialog instance.
*/
group?: string; group?: string;
} }
interface ConfirmPopupMessageSlot { export interface ConfirmPopupSlots {
message: any; /**
* Custom message template.
* @param {Object} scope - message slot's params.
*/
message: (scope: {
message: ConfirmationOptions;
}) => VNode[];
} }
declare class ConfirmPopup { export declare type ConfirmPopupEmits = {
$props: ConfirmPopupProps; }
$slots: {
message: ConfirmPopupMessageSlot declare class ConfirmPopup extends ClassComponent<ConfirmPopupProps, ConfirmPopupSlots, ConfirmPopupEmits> { }
declare module '@vue/runtime-core' {
interface GlobalComponents {
ConfirmPopup: GlobalComponentConstructor<ConfirmPopup>
} }
} }
/**
*
* ConfirmPopup displays a confirmation overlay displayed relatively to its target.
*
* Helper API:
*
* - Confirmation API
* - ConfirmationService
*
* Demos:
*
* - [ConfirmPopup](https://www.primefaces.org/primevue/showcase/#/confirmpopup)
*
*/
export default ConfirmPopup; export default ConfirmPopup;