|
|
|
@ -266,7 +266,6 @@ const filterFormSchema = (crudSchema: CrudSchema[], allSchemas: AllSchemas): For |
|
|
|
|
// 过滤 descriptions 结构
|
|
|
|
|
const filterDescriptionsSchema = (crudSchema: CrudSchema[]): DescriptionsSchema[] => { |
|
|
|
|
const descriptionsSchema: FormSchema[] = [] |
|
|
|
|
|
|
|
|
|
eachTree(crudSchema, (schemaItem: CrudSchema) => { |
|
|
|
|
// 判断是否显示
|
|
|
|
|
if (schemaItem?.isDetail !== false && schemaItem.detail?.show !== false) { |
|
|
|
@ -275,6 +274,9 @@ const filterDescriptionsSchema = (crudSchema: CrudSchema[]): DescriptionsSchema[ |
|
|
|
|
field: schemaItem.field, |
|
|
|
|
label: schemaItem.detail?.label || schemaItem.label |
|
|
|
|
} |
|
|
|
|
if (schemaItem.form?.component == 'Editor') { |
|
|
|
|
descriptionsSchemaItem.span = 2 |
|
|
|
|
} |
|
|
|
|
if (schemaItem.dictType) { |
|
|
|
|
descriptionsSchemaItem.dictType = schemaItem.dictType |
|
|
|
|
} |
|
|
|
|