mirror of
https://gitee.com/dgflash/oops-plugin-framework.git
synced 2026-05-07 19:07:30 +08:00
问题原因: 在 LayerUI.remove() 方法中,state.valid 被提前设置为 false, 导致 LayerUIElement.remove() 中判断 state.valid 时条件不成立, 从而跳过了 onBeforeRemove 回调的触发。 修复方案: 将 state.valid = false 的赋值操作移动到 LayerUIElement.remove() 调用之后执行,确保回调能正常触发。 影响范围: - 修复通过 oops.gui.remove() 关闭界面时 onBeforeRemove 回调不执行的问题 - 不影响界面缓存和异步加载的僵尸节点防护逻辑
40 lines
1012 B
JSON
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"
|
|
]
|
|
} |