使用react-dnd+antd tree实现两个列表的拖拽
使用react-dnd+antd tree实现两个列表的拖拽数据传递
以下功能
DragSource可拖拽到DragTarget中,DragTarget动态添加节点 DragTraget可实现拖拽排序功能 效果图:git clone https://github.com/vonxq/TreeDragDemo.git
npm i 或 yarn
npm start 或 yarn start
源码讲解
使用react-dnd+antd tree实现两个列表的拖拽数据传递
附录采用create-react-app快速构建 代码结构如下:
my-app/
README.md
node_modules/
package.json
public/
index.html
favicon.ico
src/
App.css
App.js
App.test.js
index.css
index.js
logo.svg
版权声明:
1、该文章(资料)来源于互联网公开信息,我方只是对该内容做点评,所分享的下载地址为原作者公开地址。2、网站不提供资料下载,如需下载请到原作者页面进行下载。