Skip to content

Commit 3231794

Browse files
committed
docs: update props
1 parent 5ad3a96 commit 3231794

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

README-zh.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ Vue.use(CodeDiff);
112112
| diffStyle | 差异风格, 单词级差异或字母级差异 | string | word, char | word |
113113
| trim | 移除字符串前后空白字符 | boolean | - | false |
114114
| noDiffLineFeed | 不 diff windows 换行符(CRLF)与 linux 换行符(LF) | boolean | - | false |
115+
| maxHeight | 组件最大高度,例如 300px | number | - | undefined |
115116

116117
## 拓展高亮语言
117118

@@ -186,7 +187,9 @@ v-code-diff 的 1.x 版本相较于 0.x 版本,具有打包体积减小、性
186187
## 变更记录
187188

188189
### 1.0.0
190+
189191
重构后第一版
192+
190193
1. 移除 diff2html 依赖,自行绘制 ui。由于摆脱了 diff2html 依赖,解决了之前很多样式问题
191194
2. 更准确的语法高亮,更快的高亮速度
192195

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ Not recommended, but the relevant capabilities are retained to facilitate migrat
112112
| diffStyle | Difference style, word-level differences or letter-level differences | string | word, char | word |
113113
| trim | Remove blank characters at the beginning and end of the string | boolean | - | false |
114114
| noDiffLineFeed | Don't diff Windows line feed (CRLF) and Linux line feed (LF) | boolean | - | false |
115+
| maxHeight | Maximum height of component, for example: 300px | string | - | undefined |
115116

116117
## Extend languages
117118

@@ -193,7 +194,8 @@ simultaneously.
193194

194195
### 1.0.0-alpha.0
195196

196-
1. Remove the diff2html dependency and draw the UI by self. By getting rid of the diff2html dependency, many styling problems have been resolved.
197+
1. Remove the diff2html dependency and draw the UI by self. By getting rid of the diff2html dependency, many styling
198+
problems have been resolved.
197199
2. More accurate syntax highlighting and faster highlighting speed.
198200

199201
### 0.3.12

0 commit comments

Comments
 (0)