Requirements: drag a node in the antd tree control to a div container

problem description

requirements: drag a node in the antdtree control to a div container,
clipboard.png

the environmental background of the problems and what methods you have tried

tried react-dnd, but react-dnd only supports native tags, not react components;
tree control is antd"s Tree,

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?


Boss, have you solved


excuse me, is there a solution to this?


image.png
image.png
when treedata is assembled, loop (gData) (a case of tree with search function on the official website of the loop function) performs some logical processing on the data, and then title accepts element tags and wraps them with a good assembly layer encapsulated by react-dnd

.
Menu