1
0
Fork 0
management/front/dkha-web-sz-main/node_modules/@babel/runtime/helpers/createClass.js

19 lines
816 B
JavaScript
Raw Normal View History

2024-01-16 21:26:16 +08:00
var toPropertyKey = require("./toPropertyKey.js");
2023-12-18 13:12:25 +08:00
function _defineProperties(target, props) {
for (var i = 0; i < props.length; i++) {
var descriptor = props[i];
descriptor.enumerable = descriptor.enumerable || false;
descriptor.configurable = true;
if ("value" in descriptor) descriptor.writable = true;
2024-01-16 21:26:16 +08:00
Object.defineProperty(target, toPropertyKey(descriptor.key), descriptor);
2023-12-18 13:12:25 +08:00
}
}
function _createClass(Constructor, protoProps, staticProps) {
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
if (staticProps) _defineProperties(Constructor, staticProps);
2024-01-16 21:26:16 +08:00
Object.defineProperty(Constructor, "prototype", {
writable: false
});
2023-12-18 13:12:25 +08:00
return Constructor;
}
2024-01-16 21:26:16 +08:00
module.exports = _createClass, module.exports.__esModule = true, module.exports["default"] = module.exports;