@easyui/element-plus-pro
Version:
This is an extended ui components library for element-plus
27 lines (26 loc) • 576 B
JavaScript
import { l as o } from "../_dependencies/lodash.js";
import { ElMessage as n } from "element-plus";
import { MessageType as t } from "../types/propsDefine.d.js";
const r = (a, s, e) => n(Object.assign({
type: a,
message: s,
duration: 1500
}, o.omit(e || {}, ["type", "message"])));
class i {
static success(s, e) {
return r(t.SUCCESS, s, e);
}
static warning(s, e) {
return r(t.WARNING, s, e);
}
static error(s, e) {
return r(t.ERROR, s, e);
}
static info(s, e) {
return r(t.INFO, s, e);
}
}
const m = () => i;
export {
m as default
};