diff --git a/src/condition/ConditionDecorator.ts b/src/condition/ConditionDecorator.ts index d74de0d..1803cd5 100644 --- a/src/condition/ConditionDecorator.ts +++ b/src/condition/ConditionDecorator.ts @@ -20,6 +20,7 @@ export namespace _conditionDecorator { /** target 类的构造函数 */ return function (ctor: any): void { cdClassMap.set(conditionType, ctor); + return ctor; }; } } \ No newline at end of file diff --git a/src/ui/UIDecorator.ts b/src/ui/UIDecorator.ts index 2cf4938..677dcf6 100644 --- a/src/ui/UIDecorator.ts +++ b/src/ui/UIDecorator.ts @@ -170,6 +170,7 @@ export namespace _uidecorator { }); // 首次引擎注册完成后 动态注册窗口header _registerFinish && WindowManager.dynamicRegisterHeader(ctor, pkg, name, bundle || ""); + return ctor; }; }