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] 节点拖拽功能希望支持限制部分节点禁止拖拽,拓展范围限制同级拖拽 #2444

Closed
jieyuming opened this issue May 24, 2023 · 11 comments
Assignees
Labels
💪🏻 enhancement New feature or request to be published fixed, not be published

Comments

@jieyuming
Copy link

jieyuming commented May 24, 2023

这个功能解决了什么问题

目前tree组件支持通过draggable属性,设置节点可拖拽。实际场景是1级目录禁止拖拽,二级目录的拖拽的范围只能在同级目录(需要限制把三级目录拖到二级目录来)

你建议的方案是什么

需要tree组件能拓展能力,新增2个属性:
1.判断节点能否被拖拽
2.限制同级目录拓展

例如element plus支持
image

@github-actions
Copy link
Contributor

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

@github-actions
Copy link
Contributor

github-actions bot commented May 24, 2023

♥️ 有劳 @TabSpace 尽快确认问题。
确认有效后将下一步计划和可能需要的时间回复给 @jieyuming

@zhangvj
Copy link

zhangvj commented Aug 8, 2023

同有这个需求 +1

@zhoulujun
Copy link
Contributor

这个需求能支持一下吗?

@Found-404
Copy link

同有这个需求 +1

@zhangvj
Copy link

zhangvj commented Mar 15, 2024

@uyarn 大佬麻烦关注下这个需求

@uyarn
Copy link
Collaborator

uyarn commented Mar 15, 2024

tree的开发同学这个月会排期来处理tree的相关需求

@uyarn uyarn added the 💪🏻 enhancement New feature or request label Mar 15, 2024
@uyarn uyarn added the to be published fixed, not be published label Jun 20, 2024
@uyarn
Copy link
Collaborator

uyarn commented Jun 20, 2024

support allowDrop API 1.9.5

@uyarn uyarn closed this as completed Jun 20, 2024
@Found-404
Copy link

支持allowDropAPI 1.9.5

请问vue3何时可以支持呢?

@uyarn
Copy link
Collaborator

uyarn commented Jun 20, 2024

也是下个版本 Tencent/tdesign-vue-next#4312

@Jinsdw
Copy link

Jinsdw commented Jun 26, 2024

支持allowDropAPI 1.9.5

请问vue3何时可以支持呢?

这个问题,你不用就可以了,手搓一个tree

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 fixed, not be published
Projects
None yet
Development

No branches or pull requests

7 participants