我尝试在我的应用程序中实现一个功能,允许用户重置他拖动的所有组件以重置到其原始位置。
我假设这个功能存在于 react-draggable 中,因为这个关闭和发布的问题:“允许重置拖动位置”(https://github.com/idanen/react-draggable/issues/7)。但是我在文档(https://www.npmjs.com/package/react-draggable)中没有找到任何提示。
stackoverflow 中有一个内容相同的问题,但它已被删除(https://stackoverflow.com/questions/61593112/how-to-reset-to-default-position-react-draggable)。
谢谢你的帮助 :-)