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

[tree] 希望tree组件能新增取消拖拽事件 #4288

Closed
ljh0809 opened this issue Jun 13, 2024 · 4 comments
Closed

[tree] 希望tree组件能新增取消拖拽事件 #4288

ljh0809 opened this issue Jun 13, 2024 · 4 comments
Assignees
Labels
💪🏻 enhancement New feature or request to be published to be published

Comments

@ljh0809
Copy link

ljh0809 commented Jun 13, 2024

这个功能解决了什么问题

我的需求是拖拽节点到另一个节点时需要判断此次拖拽是否可以拖拽,如果不可以这个时候就需要一个方法来取消掉这次拖拽事件,但是目前tree组件没有提供这个功能

你建议的方案是什么

建议可以增加该方法

Copy link
Contributor

👋 @ljh0809,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@TabSpace
Copy link
Contributor

查看了下代码,感觉可以加个 dropStart 事件,提供 drop 相关事件参数,在实际执行插入动作之前执行,并在事件后判断是否切断后续动作。

@uyarn
Copy link
Collaborator

uyarn commented Jun 19, 2024

@uyarn uyarn added the 🏃 in progress someone is developing label Jun 19, 2024
@uyarn uyarn added to be published to be published and removed 🏃 in progress someone is developing labels Jun 21, 2024
@uyarn
Copy link
Collaborator

uyarn commented Jun 28, 2024

supported 1.9.7

@uyarn uyarn closed this as completed Jun 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💪🏻 enhancement New feature or request to be published to be published
Projects
None yet
Development

No branches or pull requests

3 participants