javascript - antd's Tree component, does it support drag and drop restrictions?
ringa_lee2017-05-19 10:32:01
0
1
880
When dragging the Tree component, I want to restrict the parent node from being dragged to the level of the child node, which means that only the child node can be dragged upwards. Can this be supported by antd?
The final rendering only depends on what the data looks like. The change of the data is under your own control. Whether it is allowed or not is just a matter of whether the data changes.
For example, the following code,子节点只能放到第三个下面,不能放到第一个below (because this is my logic).
The final rendering only depends on what the data looks like. The change of the data is under your own control. Whether it is allowed or not is just a matter of whether the data changes.
For example, the following code,
子节点
只能放到第三个
下面,不能放到第一个
below (because this is my logic).