fix: title field in assign fields value (#1848)

This commit is contained in:
katherinehhh 2023-05-12 13:42:18 +08:00 committed by GitHub
parent 94284c6210
commit 81b3afb57b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -133,7 +133,6 @@ FormItem.Designer = function Designer() {
value: field?.name, value: field?.name,
label: compile(field?.uiSchema?.title) || field?.name, label: compile(field?.uiSchema?.title) || field?.name,
})); }));
let readOnlyMode = 'editable'; let readOnlyMode = 'editable';
if (fieldSchema['x-disabled'] === true) { if (fieldSchema['x-disabled'] === true) {
readOnlyMode = 'readonly'; readOnlyMode = 'readonly';
@ -810,7 +809,7 @@ FormItem.Designer = function Designer() {
}} }}
/> />
)} )}
{options.length > 0 && fieldSchema['x-component'] === 'CollectionField' && ( {options.length > 0 && isAssociationField && (
<SchemaSettings.SelectItem <SchemaSettings.SelectItem
key="title-field" key="title-field"
title={t('Title field')} title={t('Title field')}