利用react-rnd插件,实现元素在视窗内的拖动改变位置先进行插件的安装 npm i -S react-rnd. 组件内部引入 import { Rnd } from "react-rnd";.
確定! 回上一頁