Merged
Conversation
Contributor
|
@maxchang3 is attempting to deploy a commit to the somiawhitering's projects Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Owner
|
感谢PR! |
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.
非常好项目使我旋转在下意识尝试进行拖拽排序时发现当前实现并不支持,于是顺手实现了一个版本。
基于比较流行的 dnd-kit 实现,经过简单测试,在移动端和 PC 端均能良好运行。预览视频如下:
Jietu20260311-180137-HD.mp4
构建产出对比:
如果您已经有其他实现计划请无视~
参考链接
https://dndkit.com/react/hooks/use-sortable
clauderic/dnd-kit#1564
https://github.com/clauderic/dnd-kit/tree/main/apps/stories/stories/react/Sortable