fix: association field cannot enable link in table column (#2066)

* fix: association field cannot enable link in table column

* refactor: code improve
This commit is contained in:
katherinehhh 2023-06-17 09:01:35 +08:00 committed by GitHub
parent e5bab3249a
commit e3045a2f9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -161,6 +161,7 @@ const InternalFileManager = (props) => {
modalProps: { modalProps: {
getContainer: others?.getContainer, getContainer: others?.getContainer,
}, },
formValueChanged: false,
}} }}
> >
<RecordPickerProvider {...pickerProps}> <RecordPickerProvider {...pickerProps}>

View File

@ -136,7 +136,7 @@ export const TableColumnDesigner = (props) => {
collectionField?.interface, collectionField?.interface,
) && ) &&
!isFileField && !isFileField &&
field.readPrety && ( readOnlyMode === 'read-pretty' && (
<SchemaSettings.SwitchItem <SchemaSettings.SwitchItem
title={t('Enable link')} title={t('Enable link')}
checked={fieldSchema['x-component-props']?.enableLink !== false} checked={fieldSchema['x-component-props']?.enableLink !== false}