- Remove the diff2html dependency and draw the UI by self. By getting rid of the diff2html dependency, many styling problems have been resolved.
- More accurate syntax highlighting and faster highlighting speed.
- Remove prop
syncScroll
due to bug. Synchronized scrolling is now enabled by default
- Add prop
syncScroll
to control whether the horizontal scroll bar needs to be scrolled synchronously
- Fixed type error when exporting
- Make the imported highlight.js style take effect only in
.d2h-wrapper
div
- Style adjustment, hide css
d2h-file-header
, same as vue-code-diff - Add prop
noDiffLineFeed
, do not diff windows line feed (CRLF) and linux line feed (LF)
- Fix the problem of displaying "File Without Change..." when isShowNoChange is true and the old and new codes are different, then show all the source code
- Add prop
language
, make highlighting more accurate
- In the side-by-side mode, support left and right synchronous scrolling
- Add Prop
trim
, it will remove the blank characters before and after the string
- Fixed the problem of highlight failure.
- Fixed the warning for vue2 users in console
- Fix incorrect style when comparing text
- Performance optimization, now rendering has better performance
- Add Prop
diffStyle
to control whether to display word-level differences or char-level differences
- Use the function of asynchronous rendering of the highlight code, without blocking the ui, greatly improving the page rendering speed
- Add hook function (before rendering, after rendering):
before-render
,after-render
- Add prop
highlight
to control whether to highlight the code.
- Fix the problem of abnormal rendering in some browsers (such as safari)
- Prop:
context
default value changed from 5 to 10 - fix possible line-height conflict(such as
antd.css
in antd-vue)
First Version.