Files
oops-plugin-framework/tsconfig.json
dgflash d2c68fbab5 fix(gui): 修复 onBeforeRemove 回调不触发的问题
问题原因:
在 LayerUI.remove() 方法中,state.valid 被提前设置为 false,
导致 LayerUIElement.remove() 中判断 state.valid 时条件不成立,
从而跳过了 onBeforeRemove 回调的触发。

修复方案:
将 state.valid = false 的赋值操作移动到 LayerUIElement.remove()
调用之后执行,确保回调能正常触发。

影响范围:
- 修复通过 oops.gui.remove() 关闭界面时 onBeforeRemove 回调不执行的问题
- 不影响界面缓存和异步加载的僵尸节点防护逻辑
2026-04-01 22:38:10 +08:00

40 lines
1012 B
JSON

{
"compilerOptions": {
"target": "ES2017",
"module": "CommonJS",
"outDir": "./dist",
"rootDir": "./src",
"strict": true,
"strictNullChecks": false,
"noImplicitAny": false,
"moduleResolution": "node",
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"experimentalDecorators": true,
"isolatedModules": true,
"baseUrl": "./",
"paths": {
"db://oops-framework/*": [
"./assets/*"
]
},
"types": [
"node",
"../../temp/declarations/cc.custom-macro",
"../../temp/declarations/cc",
"../../temp/declarations/jsb",
"../../temp/declarations/cc.env"
]
},
"include": [
"@types/**/*",
"src/**/*"
],
"exclude": [
"node_modules",
"dist",
"temp"
]
}