export type MessageBoxType = 'success' | 'confirm' | 'info' | 'error' | 'input' export interface QfMessageBoxOptions { /** Title of the MessageBox */ title?: string /** Content of the MessageBox */ msg?: string showCancel?: boolean, showConfirm?: boolean, confirmText?: string, cancelText?: string, doConfirm?: Function, doCancel?: Function, rule: Array /** Message type, used for icon display */ type?: MessageBoxType } export interface QfMessageBox { (options: QfMessageBoxOptions): void success: QfMessageBoxShortcutMethod confirm: QfMessageBoxShortcutMethod info: QfMessageBoxShortcutMethod warning: QfMessageBoxShortcutMethod error: QfMessageBoxShortcutMethod input: QfMessageBoxShortcutMethod } export interface QfMessageBoxShortcutMethod { (title: string, message: string, doConfirm?: Function, doCancel?: Function): void } declare module 'vue/types/vue' { interface Vue { $msgBox: QfMessageBox } }