behavior-eden-coco-plugin/dist/runtime/decorator/index.js
2023-09-21 01:32:33 +08:00

14 lines
391 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"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;