This commit is contained in:
asp_ly 2024-12-26 20:53:51 +08:00
parent a5d85f8555
commit 958751bca3

View File

@ -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,
},
};