fix(docs): 修正 v2.2.16 组件生命周期描述 (#278)

This commit is contained in:
YHH
2025-12-05 16:01:07 +08:00
committed by GitHub
parent e8fc7f497b
commit 2cb9c471f9
2 changed files with 2 additions and 6 deletions

View File

@@ -84,9 +84,7 @@
### Features ### Features
- **组件生命周期**: 添加组件生命周期回调支持 (#237) - **组件生命周期**: 添加组件生命周期回调支持 (#237)
- `onEnable()`: 组件启用时调用 - `onDeserialized()`: 组件从场景文件加载或快照恢复后调用,用于恢复运行时数据
- `onDisable()`: 组件禁用时调用
- `onDestroy()`: 组件销毁时调用
- **ServiceContainer 增强**: 改进服务容器功能 (#237) - **ServiceContainer 增强**: 改进服务容器功能 (#237)
- 支持 `Symbol.for()` 模式的服务标识 - 支持 `Symbol.for()` 模式的服务标识

View File

@@ -84,9 +84,7 @@ This document records the version update history of the `@esengine/ecs-framework
### Features ### Features
- **Component lifecycle**: Add component lifecycle callback support (#237) - **Component lifecycle**: Add component lifecycle callback support (#237)
- `onEnable()`: Called when component is enabled - `onDeserialized()`: Called after component is loaded from scene file or snapshot restore, used to restore runtime data
- `onDisable()`: Called when component is disabled
- `onDestroy()`: Called when component is destroyed
- **ServiceContainer enhancement**: Improve service container functionality (#237) - **ServiceContainer enhancement**: Improve service container functionality (#237)
- Support `Symbol.for()` pattern for service identifiers - Support `Symbol.for()` pattern for service identifiers