@cc-component/cc-core 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.
@@ -1,9 +1,9 @@
1
- {
2
- "ver": "4.0.24",
3
- "importer": "typescript",
4
- "imported": true,
5
- "uuid": "be82897c-95e5-4d69-9c19-4ff84d7f02eb",
6
- "files": [],
7
- "subMetas": {},
8
- "userData": {}
9
- }
1
+ {
2
+ "ver": "4.0.24",
3
+ "importer": "typescript",
4
+ "imported": true,
5
+ "uuid": "be82897c-95e5-4d69-9c19-4ff84d7f02eb",
6
+ "files": [],
7
+ "subMetas": {},
8
+ "userData": {}
9
+ }
@@ -19,6 +19,7 @@ import { LayerType } from "../config/LayerType";
19
19
  import { ELoggerLevel } from "../lib/logger/ELoggerLevel";
20
20
  import { SkeletonAnim } from "../home/BaseSkeleton";
21
21
  import { Tools } from "../home/Tools";
22
+ import { ecs } from "../lib/ecs/ECS";
22
23
 
23
24
  export class App {
24
25
  /**当前bundle */
@@ -285,11 +286,12 @@ export class App {
285
286
  App.Ins.openedWindowsConfig.set(className, config);
286
287
  }
287
288
  //@ts-ignore
288
- view.window_name = className;
289
+ config.name = className;
289
290
  //@ts-ignore
290
291
  view.config = config;
291
292
  //@ts-ignore
292
293
  if (param) view.param = param;
294
+
293
295
  resolve(view);
294
296
  } catch (error) {
295
297
  console.error("加载窗口失败:", config.path, error);
@@ -328,7 +330,7 @@ export class App {
328
330
  * eventName:关闭方法名称
329
331
  * param:参数
330
332
  */
331
- const closeEvent: { eventName: string, param?: any } = view.closeEvent
333
+ const closeEvent: { eventName: string, param?: any } = view.closeEvent?.()
332
334
  const close: Function = view[closeEvent.eventName]
333
335
  if (close) { close.call(view, closeEvent.param) }
334
336
  if (view && view.node && view.node.isValid) view.node.destroy(); // 关闭窗口
@@ -1,9 +1,9 @@
1
- {
2
- "ver": "1.2.0",
3
- "importer": "directory",
4
- "imported": true,
5
- "uuid": "becc7741-24ad-4102-b41f-b4e76ec62918",
6
- "files": [],
7
- "subMetas": {},
8
- "userData": {}
9
- }
1
+ {
2
+ "ver": "1.2.0",
3
+ "importer": "directory",
4
+ "imported": true,
5
+ "uuid": "becc7741-24ad-4102-b41f-b4e76ec62918",
6
+ "files": [],
7
+ "subMetas": {},
8
+ "userData": {}
9
+ }
package/index.ts.meta CHANGED
@@ -1,9 +1,9 @@
1
- {
2
- "ver": "4.0.24",
3
- "importer": "typescript",
4
- "imported": true,
5
- "uuid": "7a336b7d-79a3-48ef-9451-d925e367809b",
6
- "files": [],
7
- "subMetas": {},
8
- "userData": {}
9
- }
1
+ {
2
+ "ver": "4.0.24",
3
+ "importer": "typescript",
4
+ "imported": true,
5
+ "uuid": "7a336b7d-79a3-48ef-9451-d925e367809b",
6
+ "files": [],
7
+ "subMetas": {},
8
+ "userData": {}
9
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cc-component/cc-core",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "engine": ">=3.8.6",
5
5
  "description": "系统组件添加常用扩展方法",
6
6
  "main": "index.ts",
package/package.json.meta CHANGED
@@ -1,11 +1,11 @@
1
- {
2
- "ver": "2.0.1",
3
- "importer": "json",
4
- "imported": true,
5
- "uuid": "561e76c1-e517-4977-ac87-442704e3de8f",
6
- "files": [
7
- ".json"
8
- ],
9
- "subMetas": {},
10
- "userData": {}
11
- }
1
+ {
2
+ "ver": "2.0.1",
3
+ "importer": "json",
4
+ "imported": true,
5
+ "uuid": "561e76c1-e517-4977-ac87-442704e3de8f",
6
+ "files": [
7
+ ".json"
8
+ ],
9
+ "subMetas": {},
10
+ "userData": {}
11
+ }