iter(g282): 代码块支持长行折行

This commit is contained in:
HIsheR
2026-10-26 23:08:29 +08:00
parent cdf68b457e
commit c98f98e3f4
7 changed files with 27 additions and 5 deletions
+1
View File
@@ -1784,6 +1784,7 @@ const content = h(
title: 'sum.ts',
lang: 'ts',
maxHeight: 200,
wrap: true, // 窄屏下长行折行,不横向滚
code: [
'export function sum(a: number, b: number): number {',
' if (typeof a !== \'number\') throw new TypeError(\'a 必须是数字\');',