feat(Table): enhance row drag functionality#4229
Open
Conversation
… collapsed states
Collaborator
TDesign Component Site Preview Open
|
commit: |
1ee2f70 to
9c914d6
Compare
d8d365f to
416869a
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

🤔 这个 PR 的性质是?
🔗 相关 Issue
【1】
expandedRow占据的位置,导致获取index后交换数组异常【2】
【3】
💡 需求背景和解决方案
合并了以下两个旧 PR
dragSortfailure when affix header is not mounted #3970拖拽时整体的渲染逻辑是,父行位置更新 -> data 刷新 -> 表格重绘
所以
expandedRow/tree子节点在拖拽过程中只能停留原地现在改为拖拽时隐藏原本的子节点,并生成一份它们的虚拟图像(
DataTransfer.setDragImage()),使其与父行一起随鼠标移📝 更新日志
tdesign-react
expandedRow时,行拖拽异常的问题headerAffixedTop时,列拖拽失效的问题@tdesign-react/chat
☑️ 请求合并前的自查清单