Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3版本,codeEvents失效 #213

Closed
Bairuina opened this issue Jan 10, 2024 · 1 comment
Closed

3版本,codeEvents失效 #213

Bairuina opened this issue Jan 10, 2024 · 1 comment

Comments

@Bairuina
Copy link

参考demo:
https://codesandbox.io/p/sandbox/react-diff-view-codeevents-5k9ns4?file=%2Fsrc%2Findex.js%3A22%2C23

@otakustay
Copy link
Owner

感谢,文档描述是错了,codeEventswidgets属性现在是在Diff组件上的,我修改了一下你的代码:https://codesandbox.io/p/sandbox/react-diff-view-codeevents-forked-9ql8f2?file=%2Fsrc%2Findex.js%3A62%2C38

我会后续更新文档,还请先按调整后的代码使用,Hunk组件现在只有一个hunk属性了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants