message.ts 500 B

123456789101112131415
  1. import { InfoFilled, SuccessFilled } from "@element-plus/icons-vue";
  2. import { ElMessage, ElMessageBox } from "element-plus";
  3. import { markRaw } from "vue";
  4. export const confirm = (msg: string, okText = "确定") =>
  5. ElMessageBox.confirm(msg, "系统提示", {
  6. type: "warning",
  7. confirmButtonText: okText,
  8. // icon: markRaw(InfoFilled),
  9. });
  10. export const alert = (msg: string) =>
  11. ElMessageBox.alert(msg, "系统提示", {
  12. type: "warning",
  13. // icon: markRaw(SuccessFilled),
  14. });