From b62a4af8db8ed80b1ea280e6810e881eaa865c22 Mon Sep 17 00:00:00 2001 From: gongxh Date: Tue, 26 Aug 2025 17:56:46 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=9A=E8=A3=85=E9=A5=B0=E5=99=A8=E8=B0=83?= =?UTF-8?q?=E7=94=A8=E9=93=BEbug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/condition/ConditionDecorator.ts | 1 + src/ui/UIDecorator.ts | 1 + 2 files changed, 2 insertions(+) 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; }; }