1
This commit is contained in:
parent
a5d85f8555
commit
958751bca3
@ -35,11 +35,10 @@ export const convertJsonSchemaToColumns = (schema: JsonSchema): ProFormColumnsTy
|
||||
|
||||
return Object.entries(schema.properties).map(([key, value]: [string, JsonSchemaProperty]) => {
|
||||
const baseConfig = {
|
||||
title: value.title || key,
|
||||
title: value.description ? `${value.title || key} (${value.description})` : (value.title || key),
|
||||
dataIndex: key,
|
||||
formItemProps: {
|
||||
required: schema.required?.includes(key),
|
||||
help: value.description,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user