@ives_xxz/framework 1.5.2 → 1.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/FrameworkBase.ts +2 -2
- package/package.json +1 -1
package/FrameworkBase.ts
CHANGED
|
@@ -50,7 +50,7 @@ export abstract class FrameworkBase {
|
|
|
50
50
|
const bundleName = this.findBundleNameByClassName();
|
|
51
51
|
if (!bundleName) return;
|
|
52
52
|
|
|
53
|
-
const tag = this.
|
|
53
|
+
const tag = this.getClassTag();
|
|
54
54
|
|
|
55
55
|
if (tag !== FWSystemDefine.FWBindTag.LOGIC) {
|
|
56
56
|
this.logic = Framework.getComponent<FW.Logic>(
|
|
@@ -145,7 +145,7 @@ export abstract class FrameworkBase {
|
|
|
145
145
|
return classNameLower.includes(bundleNameLower);
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
private
|
|
148
|
+
private getClassTag(): FWSystemDefine.FWBindTag {
|
|
149
149
|
const className = this.moduleName;
|
|
150
150
|
if (className.endsWith('Logic')) return FWSystemDefine.FWBindTag.LOGIC;
|
|
151
151
|
if (className.endsWith('Data')) return FWSystemDefine.FWBindTag.DATA;
|