Extract editor interaction states

This commit is contained in:
2026-03-26 21:30:46 +08:00
parent 6467d87b81
commit f6286d432c
6 changed files with 106 additions and 25 deletions

View File

@@ -41,6 +41,7 @@
- hierarchy tree node
- asset tile
- deferred popup / modal state
- inline text edit state
- inspector component section
- dialog action row
- property grid / scalar / vector 控件
@@ -146,10 +147,10 @@
- 创建 / 删除 / 重命名 / 复制 / 粘贴 / Duplicate / 重挂接走 command
- 快捷键已接 action 层
- 重命名状态已收成 `Begin / Commit / Cancel`
- 重命名交互已从 panel 局部字段收口到 shared inline edit state
仍待完成:
- 重命名状态机进一步下沉
- 拖拽 / 空白区域目标等细节继续统一
### Project
@@ -175,6 +176,7 @@
- 组件增删已走 command
- 组件内容编辑大部分已走 property grid
- Add Component 按钮与 popup 项已接 action 层
- Add Component popup 已接 shared popup state
仍待完成:
@@ -213,10 +215,9 @@
2. 继续将 panel 的本地状态机抽离
包括:
- hierarchy rename state
- project popup / dialog state
- inspector component popup state
- console filter state
- 其他仍散落在 panel 内的临时交互状态
3. 将剩余少量视觉硬编码继续下沉到 token / widget 层
尤其是 `ProjectPanel` 中的 icon color 和一部分 panel 局部尺寸。