behavior-eden-coco-plugin/dist/runtime/decorator/index.js

14 lines
391 B
JavaScript
Raw Normal View History

2023-09-20 17:32:11 +00:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.btclass = exports.nodeClsMap = void 0;
exports.nodeClsMap = new Map();
/***
* 收集被装饰的类用来在运行时通过节点类型找到对应的class
*/
const btclass = (name) => {
return function (target) {
exports.nodeClsMap.set(name, target);
};
};
exports.btclass = btclass;