fix(client/form-fields): fix fields's x-read-pretty (#994)

This commit is contained in:
lyf-coder 2022-10-31 22:49:33 +08:00 committed by GitHub
parent 9f5f2d6028
commit b23d2bcae7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -171,6 +171,7 @@ export const useFormItemInitializerFields = (options?: any) => {
'x-component': field.interface === 'o2m' ? 'TableField' : 'CollectionField', 'x-component': field.interface === 'o2m' ? 'TableField' : 'CollectionField',
'x-decorator': 'FormItem', 'x-decorator': 'FormItem',
'x-collection-field': `${name}.${field.name}`, 'x-collection-field': `${name}.${field.name}`,
'x-read-pretty': field?.uiSchema?.['x-read-pretty'],
'x-component-props': { 'x-component-props': {
}, },
}; };