feat: editorTree & editorTabs support scroll into view #275
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.
简介
主要变更
Scrollable
组件做到 collapse 里面的话,会带来的问题有如下Scrollable
的实例,也就很难做scrollTo
Collapse
和Scrollable
组件强耦合,如果有不需要Scrollable
的子组件的话,就无法做到Scrollable
和Collapse
做解耦,让需要的子组件自行引入Scrollable
并做 scroll into view 的需求Collapse
的计算函数,由于层级结构发生调整,所以按照原来的算法会拿到不准确的 content height ,也就会导致高度计算错误,故需要借助data-*
来定位 content 节点editorTree
和editorTabs
支持 scroll into viewRelated Issues
Closed #230 Closed #278