UNPKG

v-dialogs

Version:

A simple command-style pop-up dialog components for Vue3

35 lines (31 loc) 711 B
import { AppContext } from 'vue' export * from './alert' export * from './message' export * from './toast' export * from './modal' export * from './drawer' export * from './mask' declare interface DialogInstallOptions { /** * The instance name of the dialog * * @default 'dlg' * @example * * import Dialogs from 'v-dialogs' * createApp().use(Dialogs, { * instanceName: '$dialog' * }) * * this.$dialog.alert('Hello World') */ instanceName?: string } export default class { /** * Globally install dialogs * @param app - the Vue app instance * @param options - globally install options */ install (app:AppContext, options: DialogInstallOptions): void }