版博士V2.0程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

27 lines
649 B

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