fix: 修复歌单拖拽排序问题 - #321
Open
yananZz wants to merge 2 commits into
Open
Conversation
- 优化 DragReceiver 组件样式,增加可见性和视觉反馈 - 添加必要的 preventDefault 和 stopPropagation 以正确处理拖放事件 - 修复拖拽排序时未考虑当前排序状态的问题 - 修复倒序排列时拖拽顺序错误的问题 - 调整添加音乐逻辑,新添加的音乐现在显示在列表顶部 - 更新音乐顺序时正确设置 sortIndex 和 timestamp
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.
问题描述
修复歌单拖拽排序功能的多个问题
修改内容
1. 优化 DragReceiver 组件
2. 修复音乐列表拖拽排序逻辑
3. 优化添加音乐逻辑
4. 完善音乐顺序更新
测试说明
已测试以下场景:
相关Issue
(#249)