zhytech-ui
Version:
基于Vue3 + ElementPlus + TypeScript封装的组件库
36 lines (35 loc) • 1.09 kB
TypeScript
import { MessageType } from '../types/enum';
type MType = keyof typeof MessageType;
/**
* @description: 提示信息
* @param type 类型
* @param message 消息内容
* @return
*/
export declare const showMessage: (type: MType, message: string) => void;
/**
* @description: 弹窗
* @param type 类型
* @param message 消息内容
* @param title 消息标题
* @param btnName 按钮显示文字
* @return
*/
export declare const showAlert: (type: MType, message: string, title?: string, btnName?: string) => Promise<import('element-plus').MessageBoxData>;
/**
* @description: 确认弹窗
* @param message 消息内容
* @param title 消息标题
* @param callback 回调函数
* @param btnName 按钮显示文字
* @return
*/
export declare const confirmBox: (message: string, title: string, callback?: Function, btnName?: string) => Promise<void>;
/**
* @description: 删除确认框
* @param message 消息内容
* @param callback 回调韩式
* @return
*/
export declare const deleteConfirm: (message: string, callback: Function) => Promise<void>;
export {};