mirror of
https://gitee.com/sli97/behavior-eden-coco-plugin.git
synced 2025-10-09 08:36:25 +00:00
init
This commit is contained in:
13
dist/runtime/decorator/index.js
vendored
Normal file
13
dist/runtime/decorator/index.js
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
"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;
|
Reference in New Issue
Block a user