UNPKG

vue-launchers

Version:
30 lines (29 loc) 848 B
import { DialogEnum } from '../enums/pluginEnum'; export declare const loadingStart: () => void; export declare const loadingFinish: () => void; export declare const loadingError: () => void; /** * * render 对话框 * @param { Object} params 配置参数, 详见 https://www.naiveui.com/zh-CN/light/components/dialog * ``` * 最简易的 demo * goDialog({ * onPositiveCallback: () => {} * }) * ``` */ export declare const goDialog: (params: { type?: DialogEnum; title?: string | (() => any); message?: string; positiveText?: string; negativeText?: string; closeNegativeText?: boolean; isMaskClosable?: boolean; onPositiveCallback: Function; onNegativeCallback?: Function; promise?: boolean; promiseResCallback?: Function; promiseRejCallback?: Function; [T: string]: any; }) => void;