error.js 626 B

12345678910111213141516171819202122232425
  1. 'use strict';
  2. Object.defineProperty(exports, '__esModule', { value: true });
  3. var shared = require('@vue/shared');
  4. class ElementPlusError extends Error {
  5. constructor(m) {
  6. super(m);
  7. this.name = "ElementPlusError";
  8. }
  9. }
  10. function throwError(scope, m) {
  11. throw new ElementPlusError(`[${scope}] ${m}`);
  12. }
  13. function debugWarn(scope, message) {
  14. if (process.env.NODE_ENV !== "production") {
  15. const error = shared.isString(scope) ? new ElementPlusError(`[${scope}] ${message}`) : scope;
  16. console.warn(error);
  17. }
  18. }
  19. exports.debugWarn = debugWarn;
  20. exports.throwError = throwError;
  21. //# sourceMappingURL=error.js.map