拆镜复刻
This commit is contained in:
@@ -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' }} />
|
||||
) : (
|
||||
|
||||
Reference in New Issue
Block a user