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

交互优化:拖动方法新增回调参数,方便用户获取移动至目标节点的相对位置 #525

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SunG0
Copy link

@SunG0 SunG0 commented Oct 9, 2023

目前拖动时用户只能通过tree左侧的箭头判断节点最终移动的位置,致使拖动操作时容易造成误判,操作结束前同样较难确定最终操作结果;
本次修改新增拖动方法回调参数:目标节点、移动位置;用户可以通过拿到‘拖动目标之于目标节点的相对位置’提供用户更清晰明确的拖动信息,同时也可以满足用户生成tree拖动操作日志等功能。
实现效果可见demo:drag_move.html

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.

1 participant