vue-code-diff
vue-code-diff copied to clipboard
vue文件差异对比
我按照提示添加了 `.d2h-files-diff { position: relative; } .d2h-files-diff > .d2h-file-side-diff ~ .d2h-file-side-diff { position: absolute; }` 但显示依旧错位,右侧比左侧高一行。 

- 例如 ``` baseJson: { "a": 100, "b": 100 } actualJson: { "a": 101, "b": 105 } 自定义规则 threshold = 1% diff = abs((actualJsonValue - baseJsonValue)/baseJsonValue) 当符合 diff > threshold时才认为是diff...
 
for me jest could not resolve the package because of the leading slash. This should fix it.
通常情况下这个插件被用于vue中,是否考虑将vue移入peerDependencies中,避免项目中出现多种版本的vue依赖。 另外从reade.me中的使用方式来看,提供的codeDiff.install方式并没有被使用到