'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var vue = require('vue');
var elementPlus = require('element-plus');

const notificationTypes = ["success", "info", "warning", "error"];
const notify = (options) => {
  return elementPlus.ElNotification(options);
};
notificationTypes.forEach((type) => {
  notify[type] = (options = {}) => {
    if (typeof options === "string" || vue.isVNode(options)) {
      options = {
        message: options
      };
    }
    return notify({
      ...options,
      type
    });
  };
});
notify.closeAll = elementPlus.ElNotification.closeAll;
notify.updateOffsets = elementPlus.ElNotification.updateOffsets;
notify._context = elementPlus.ElNotification._context;

exports.default = notify;
exports.notificationTypes = notificationTypes;
//# sourceMappingURL=method.js.map
