gpui
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseNavigation
导航
Load the relevant reference file based on the task:
| Topic | File | When to load |
|---|---|---|
| Actions & keybindings | action.md | |
| Async & background tasks | async.md | |
| Context management | context.md | |
| Custom elements (low-level) | element.md | |
| Entity state | entity.md | |
| Events & subscriptions | event.md | |
| Focus & keyboard nav | focus-handle.md | |
| Global state | global.md | |
| Layout & styling | layout-style.md | |
| ElementId | element-id.md | |
| Testing | test.md | |
根据任务加载相关参考文件:
| 主题 | 文件 | 加载时机 |
|---|---|---|
| Actions & keybindings | action.md | |
| Async & background tasks | async.md | |
| Context management | context.md | |
| Custom elements (low-level) | element.md | |
| Entity state | entity.md | |
| Events & subscriptions | event.md | |
| Focus & keyboard nav | focus-handle.md | |
| Global state | global.md | |
| Layout & styling | layout-style.md | |
| ElementId | element-id.md | |
| Testing | test.md | |
Extended References
扩展参考
For deep-dive topics, additional reference files are available:
Element trait:
- element-api.md — complete API, hitbox system, event handling
- element-patterns.md — text, interactive, container, composite patterns
- element-examples.md — full examples: text, interactive, complex elements
- element-best-practices.md — performance, state, common pitfalls
- element-advanced.md — masonry/circular layouts, async updates, virtual lists
Entity management:
- entity-api.md — complete Entity API, methods, lifecycle
- entity-patterns.md — model-view, cross-entity communication, observer
- entity-best-practices.md — memory, performance, lifecycle
- entity-advanced.md — collections, registry, debounce, state machines
Testing:
- test-examples.md — testing examples and patterns
- test-reference.md — complete testing API reference
如需深入了解相关主题,可查看更多参考文件:
Element trait:
- element-api.md — 完整API、碰撞框系统、事件处理
- element-patterns.md — 文本、交互、容器、组合模式
- element-examples.md — 完整示例:文本、交互、复杂元素
- element-best-practices.md — 性能、状态、常见陷阱
- element-advanced.md — 瀑布流/环形布局、异步更新、虚拟列表
Entity management:
- entity-api.md — 完整Entity API、方法、生命周期
- entity-patterns.md — 模型-视图、跨实体通信、观察者模式
- entity-best-practices.md — 内存、性能、生命周期
- entity-advanced.md — 集合、注册中心、防抖、状态机
Testing:
- test-examples.md — 测试示例与模式
- test-reference.md — 完整测试API参考