Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 多标签Tab页支持拖拽排序 #426

Merged
merged 4 commits into from
Feb 21, 2023

Conversation

liweijie0812
Copy link
Collaborator

🤔 这个 PR 的性质是?

  • 日常 bug 修复
  • 新特性提交
  • 文档改进
  • 演示代码改进
  • 组件样式/交互改进
  • CI/CD 改进
  • 重构
  • 代码风格优化
  • 测试用例
  • 分支合并
  • 其他

🔗 相关 Issue

💡 需求背景和解决方案

📝 更新日志

  • feat: 多标签Tab页支持拖拽排序

  • 本条 PR 不需要纳入 Changelog

☑️ 请求合并前的自查清单

⚠️ 请自检并全部勾选全部选项⚠️

  • 文档已补充或无须补充
  • 代码演示已提供或无须提供
  • TypeScript 定义已补充或无须补充
  • Changelog 已提供或无须提供

@github-actions
Copy link
Contributor

github-actions bot commented Feb 20, 2023

完成

@uyarn
Copy link
Collaborator

uyarn commented Feb 20, 2023

没有其他问题 但是建议增加下对HomePage的判断 如果和HomePage换序( index 0 )就return不用执行了 不然一些关闭左右的逻辑涉及HomePage的就也要跟着改动了
image

@liweijie0812
Copy link
Collaborator Author

没有其他问题 但是建议增加下对HomePage的判断 如果和HomePage换序( index 0 )就return不用执行了 不然一些关闭左右的逻辑涉及HomePage的就也要跟着改动了 image

已调整,如果组件库tabs拖拽支持配置选项卡禁止拖拽更好

@uyarn
Copy link
Collaborator

uyarn commented Feb 20, 2023

不对 .. 这个drag其实不是受控的 跟在dragend的回调里没有关系 .. drag-sort 开启 组件内自己做顺序的控制 其实没有暴露API来做受控

@liweijie0812
Copy link
Collaborator Author

@uyarn 重新调整了右键关闭的逻辑,看看有没有问题

Copy link
Collaborator

@timi137137 timi137137 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@uyarn LGTM,but需要先处理 #429 不然会出现大冲突

@uyarn uyarn merged commit cfddfa0 into Tencent:develop Feb 21, 2023
@liweijie0812 liweijie0812 deleted the feat-tabs-drag branch March 17, 2023 03:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants