@ives_xxz/framework 1.4.0 → 1.4.1
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/FW.d.ts +0 -5
- package/Framework.ts +3 -4
- package/define/FWEventDefine.ts +0 -7
- package/package.json +1 -1
package/FW.d.ts
CHANGED
package/Framework.ts
CHANGED
|
@@ -117,7 +117,7 @@ class Framework {
|
|
|
117
117
|
}
|
|
118
118
|
|
|
119
119
|
/**
|
|
120
|
-
*
|
|
120
|
+
* 创建注册表实例
|
|
121
121
|
*/
|
|
122
122
|
createRegistry(bundleName: string): FW.Registry {
|
|
123
123
|
if (!this.registry.has(bundleName)) return;
|
|
@@ -126,12 +126,11 @@ class Framework {
|
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
/**
|
|
129
|
-
*
|
|
129
|
+
* 销毁注册表实例
|
|
130
130
|
* @param bundleName
|
|
131
131
|
*/
|
|
132
132
|
destroyRegistry(bundleName: string) {
|
|
133
|
-
if (this.registry.has(bundleName)) return;
|
|
134
|
-
this.registry.delete(bundleName);
|
|
133
|
+
if (!this.registry.has(bundleName)) return;
|
|
135
134
|
this.container.unbind(this.registry.get(bundleName));
|
|
136
135
|
}
|
|
137
136
|
|
package/define/FWEventDefine.ts
CHANGED
|
@@ -1,11 +1,4 @@
|
|
|
1
1
|
export namespace FWEventDefine {
|
|
2
|
-
export enum SystemEvent {
|
|
3
|
-
BUNDLE_LOADED = 'BUNDLE_LOADED',
|
|
4
|
-
BUNDLE_RELEASE = 'BUNDLE_RELEASE',
|
|
5
|
-
BUNDLE_REGISTERED = 'BUNDLE_REGISTERED',
|
|
6
|
-
BUNDLE_UN_REGISTERED = 'BUNDLE_UN_REGISTERED',
|
|
7
|
-
}
|
|
8
|
-
|
|
9
2
|
export enum LanguageEvent {
|
|
10
3
|
/** 语言变更 */
|
|
11
4
|
LANGUAGE_CHANGE = 'LANGUAGE_CHANGE',
|