/*
 * @FilePath: \wang-vue-worke:\demo\daping\src\utils\hint.ts
 * @Author: 王路平
 * @文件版本: V1.0.0
 * @Date: 2023-02-13 13:43:09
 * @Description: 
 * 
 * 版权信息         : 2023 by ${再登软件}, All Rights Reserved.
 */

import { ElMessage } from "element-plus";

export const open1 = (message: string) => {
  ElMessage({
    //灰色
    showClose: true,
    message: message,
    grouping: true,
    offset: 200,
  });
};
export const open2 = (message: string) => {
  //绿色成功
  ElMessage({
    showClose: true,
    message: message,
    type: "success",
    offset: 200,
    grouping: true,
    duration: 800,
  });
};
export const open3 = (message: string) => {
  //黄色 警告
  ElMessage({
    showClose: true,
    message: message,
    type: "warning",
    grouping: true,
    offset: 200,
  });
};
export const open4 = (message: string) => {
  //红色报错
  ElMessage({
    showClose: true,
    message: message,
    type: "error",
    grouping: true,
    offset: 200,
  });
};
