UNPKG

maz-ui

Version:

A standalone components library for Vue.Js 3 & Nuxt.Js 3

17 lines (16 loc) 604 B
import { App } from 'vue'; import { MazDialogConfirmProps } from '../../components/MazDialogConfirm.vue'; export type DialogOptions = Partial<Omit<MazDialogConfirmProps, 'modelValue' | 'variant' | 'justify'>> & { onClose?: () => unknown; onAccept?: (response: unknown) => unknown; onReject?: (response: unknown) => unknown; }; export declare class DialogHandler { private readonly app; readonly globalOptions: DialogOptions; constructor(app: App, globalOptions?: DialogOptions); open(options: DialogOptions): { destroy: () => void; close: () => void; }; }