完全跑通1.0版本
This commit is contained in:
21
frontend/node_modules/element-plus/es/utils/error.mjs
generated
vendored
Normal file
21
frontend/node_modules/element-plus/es/utils/error.mjs
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
import { isString } from "./types.mjs";
|
||||
//#region ../../packages/utils/error.ts
|
||||
var ElementPlusError = class extends Error {
|
||||
constructor(m) {
|
||||
super(m);
|
||||
this.name = "ElementPlusError";
|
||||
}
|
||||
};
|
||||
function throwError(scope, m) {
|
||||
throw new ElementPlusError(`[${scope}] ${m}`);
|
||||
}
|
||||
function debugWarn(scope, message) {
|
||||
{
|
||||
const error = isString(scope) ? new ElementPlusError(`[${scope}] ${message}`) : scope;
|
||||
console.warn(error);
|
||||
}
|
||||
}
|
||||
//#endregion
|
||||
export { debugWarn, throwError };
|
||||
|
||||
//# sourceMappingURL=error.mjs.map
|
||||
Reference in New Issue
Block a user