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

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e66705-45bb3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e66705-45bb3.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?