iter(g282): 代码块支持长行折行
This commit is contained in:
@@ -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 必须是数字\');',
|
||||
|
||||
Reference in New Issue
Block a user