Graphin
Graphin copied to clipboard
升级2.4.10之后components里没有undoredo了
Describe the bug
Your Example Website or App
N/A
Steps to Reproduce the Bug or Issue
N/A
Expected behavior
N/A
Screenshots or Videos
No response
Platform
- OS: [e.g. macOS, Windows, Linux]
- Browser: [e.g. Chrome, Safari, Firefox]
- Version: [e.g. 91.1]
Additional context
No response
哪个版本里有?
哪个版本里有?
好像是没有的。 我看文档上给的有,纠结了一下午,暂且先不用这个功能吧
https://antv-graphin.gitee.io/components/interaction/undo-redo 这也太假了吧。。
以前1.x有,后来2.x之后应该是还没有实现,可以参考1.x的时候搞一把
https://github.com/antvis/G6VP/blob/master/packages/gi-assets-advance/src/components/hooks/useRedoUndo.tsx 可以参考这个实现