Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
简介
主要变更
EditorTree
UI 渲染组件,负责对数据进行渲染prefix
、theme
以及className
的定义EditorTreeController
,负责响应 UI 的事件。ExplorerController
中 AddPanel 的逻辑,把这部分逻辑移到EditorController
中,在初始化的时候进行initView
。EditorTree
组件与EditorService
联动起来,确保当 Editor 中的数据发生变更的时候,EditorTree 也可以做到更新EditorTreeService
,负责提供外部接口以及订阅 UI 事件EditorModel
,因为EditorTree
不考虑自己去维护一份数据,所以没用到。但是考虑到大部分 module 的 Events 都是放在 model 层的,所以这里还是新增了一下,主要是为了声明EditorTreeEvent
onClose
等事件以及相应的 emit 和 subscribe 方法export
import
的声明遗留问题
closeSaved