Tencent / Tencent/tdesign-react
[Tabs 选项卡] 希望能提供一个onDragEnd拖拽结束的方法
Open
Nobody has claimed this yet.
💪🏻 enhancement
- Dominant language
- TypeScript
- Stars
- 965
- Forks
- 373
- Avg merge
- 3d 6h
- Merged PRs (30d)
- 17
Description
这个功能解决了什么问题
tabs支持拖拽,但是目前只有一个onDragSort方法,只能相邻元素1到2,2到3的拖拽,无法从1拖到3(官方demo)
你建议的方案是什么
建议加上拖拽开始、拖拽结束之类方法
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the Tabs drag-and-drop implementation and the existing onDragSort API mentioned in the issue. Compare its behavior with the official demo, then define how drag-start and drag-end callbacks should report a reorder, including non-adjacent moves. Done means the new callback behavior is exposed and verified for the reported drag scenario.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100