phphe/he-tree

How to restrict nodes from being dragged to the root node? Currently, 'eachDroppable' cannot achieve this。

Closed this issue · 2 comments

I hope to add an event to determine whether the target node (including the root node) can be placed when dragging and dropping。Similar https://element.eleme.cn/#/en-US/component/tree to in allow-drop event

对于 root,使用 rootDroppable https://hetree.phphe.com/v2/api#rootdroppable

Thank you, I know what to do now