iter(g279): diffView 增加忽略行内空白模式

This commit is contained in:
HIsheR
2026-10-26 23:05:23 +08:00
parent 242624c33a
commit ef58a415e7
7 changed files with 64 additions and 24 deletions
+5
View File
@@ -1770,6 +1770,11 @@ const content = h(
"sum(1, '2');",
].join('\n'),
}),
diffView({
before: 'if (a) {\n return 1;\n}',
after: 'if (a) {\n return 1;\n}',
ignoreWhitespace: true, // 只差缩进:开启后不再报差异,但显示仍保留原文缩进
}),
),
section(
'sec-code',