react-diff-view
react-diff-view copied to clipboard
如果完全一样的两个文件可不可以也展示出来能,或者说有没有api
理论上你可以自己造一个Hunk对象,里面所有的Change对象都是normal类型,然后拿去显示
另一个方法,如果你的diff都是前端生成的(2个字符串生成diff串),那diff库通常有个类似context的参数指定diff前后不变的行显示多少,给它来个Infinity或者非常大的数字
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.