拆镜复刻

This commit is contained in:
孙佳艺
2026-06-24 17:36:17 +08:00
parent 7f1b18314e
commit 28c6e2c772
12 changed files with 323 additions and 300 deletions
@@ -29,7 +29,7 @@ function isRecord(value: unknown): value is Record<string, JsonValue> {
}
function ReadonlyBlock({ value }: { value: JsonValue }) {
const text = stringifySchemaValue(value);
const text = value === 'true' ? '是' : value === 'false' ? '否' : stringifySchemaValue(value);
return shouldUseSchemaTextArea(value) ? (
<TextArea value={text} rows={Math.min(6, Math.max(2, Math.ceil(text.length / 42)))} disabled style={{ borderRadius: 8, color: '#64748b' }} />
) : (