fix: 修正关闭英雄弹窗时移除错误UI的问题

修复 HListComp.ts 中 closeHeros 方法错误移除 UIID.Ranks 的问题,改为正确移除 UIID.Heros
This commit is contained in:
walkpan
2026-04-09 09:37:06 +08:00
parent 36d65ac3cc
commit 27541a054e
4 changed files with 643 additions and 416 deletions

View File

@@ -66,18 +66,18 @@
],
"_active": true,
"_components": [
{
"__id__": 343
},
{
"__id__": 345
},
{
"__id__": 347
},
{
"__id__": 349
}
],
"_prefab": {
"__id__": 349
"__id__": 351
},
"_lpos": {
"__type__": "cc.Vec3",
@@ -7782,15 +7782,18 @@
},
{
"__id__": 339
},
{
"__id__": 342
}
],
"_prefab": {
"__id__": 342
"__id__": 344
},
"_lpos": {
"__type__": "cc.Vec3",
"x": -283.044,
"y": -557.014,
"x": -307.35,
"y": -566,
"z": 0
},
"_lrot": {
@@ -7802,8 +7805,8 @@
},
"_lscale": {
"__type__": "cc.Vec3",
"x": 1,
"y": 1,
"x": 0.8,
"y": 0.8,
"z": 1
},
"_mobility": 0,
@@ -7959,6 +7962,42 @@
"handler": "closeHeros",
"customEventData": ""
},
{
"__type__": "cc.Widget",
"_name": "",
"_objFlags": 0,
"__editorExtras__": {},
"node": {
"__id__": 334
},
"_enabled": true,
"__prefab": {
"__id__": 343
},
"_alignFlags": 12,
"_target": null,
"_left": -10,
"_right": 0,
"_top": 0,
"_bottom": 25,
"_horizontalCenter": 0,
"_verticalCenter": 0,
"_isAbsLeft": true,
"_isAbsRight": true,
"_isAbsTop": true,
"_isAbsBottom": true,
"_isAbsHorizontalCenter": true,
"_isAbsVerticalCenter": true,
"_originalWidth": 0,
"_originalHeight": 0,
"_alignMode": 2,
"_lockFlags": 0,
"_id": ""
},
{
"__type__": "cc.CompPrefabInfo",
"fileId": "a7uiV9n8lKp5cOeXiR+A4U"
},
{
"__type__": "cc.PrefabInfo",
"root": {
@@ -7982,7 +8021,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 344
"__id__": 346
},
"_contentSize": {
"__type__": "cc.Size",
@@ -8010,7 +8049,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 346
"__id__": 348
},
"_alignFlags": 45,
"_target": null,
@@ -8046,7 +8085,7 @@
},
"_enabled": true,
"__prefab": {
"__id__": 348
"__id__": 350
},
"hero_icon": {
"__id__": 30