chore: output show to multi root

This commit is contained in:
Joel 2025-03-26 16:50:55 +08:00
parent 41232259e1
commit 365e401b27

View File

@ -21,12 +21,15 @@ const ShowPanel: FC<Props> = ({
},
}
return (
<div>
<Field
name={'response'}
payload={schema.schema}
required
/>
<div className='relative left-[-7px]'>
{Object.keys(schema.schema.properties!).map(name => (
<Field
key={name}
name={name}
payload={schema.schema.properties![name]}
required={!!schema.schema.required?.includes(name)}
/>
))}
</div>
)
}