Skip to content

Commit 486ab89

Browse files
doc
1 parent 42e9e7b commit 486ab89

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,19 @@ See example project [Example](https://github.com/MrWangJustToDo/git-diff-view/tr
5656
![Screenshot](https://raw.githubusercontent.com/MrWangJustToDo/git-diff-view/aa2e918498270f737d28e7531eab08fa3f1b8831/2.png)
5757
![Screenshot](https://raw.githubusercontent.com/MrWangJustToDo/git-diff-view/aa2e918498270f737d28e7531eab08fa3f1b8831/3.png)
5858

59+
### Template mode
60+
61+
For better performance and customization, now the `DiffView` component support template mode, and it's the default setting. SEE [Template Mode](https://github.com/MrWangJustToDo/git-diff-view/blob/main/packages/core/src/parse/template.ts)
62+
63+
### FastDiff template
64+
65+
Using the `template mode`, the `DiffView` component can utilize the `fast-diff` package to generate diffLine templates for better readability of differences. SEE [FastDiffTemplate](https://github.com/MrWangJustToDo/git-diff-view/blob/main/packages/core/src/parse/template.ts)
66+
67+
#### Default diffLine
68+
![Screenshot](https://github.com/MrWangJustToDo/git-diff-view/blob/main/default.png);
69+
70+
#### FastDiff diffLine
71+
![Screenshot](https://github.com/MrWangJustToDo/git-diff-view/blob/main/enableFastDiffTemplate.png)
5972

6073
## Features
6174

default.png

211 KB
Loading

enableFastDiffTemplate.png

213 KB
Loading

0 commit comments

Comments
 (0)