Skip to content

Commit 9ca1012

Browse files
committed
feat(code-review): 对比级别默认设置为char级别
1 parent b772e49 commit 9ca1012

File tree

1 file changed

+1
-0
lines changed
  • packages/devui-vue/devui/code-review/src

1 file changed

+1
-0
lines changed

packages/devui-vue/devui/code-review/src/utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ export function parseDiffCode(container: HTMLElement, code: string, outputFormat
165165
matching: 'lines',
166166
outputFormat: outputFormat,
167167
highlight: true,
168+
diffStyle: 'char',
168169
rawTemplates: TemplateMap[outputFormat],
169170
});
170171
if (outputFormat === 'side-by-side') {

0 commit comments

Comments
 (0)