refactor: field mode default value

This commit is contained in:
katherinehhh 2023-05-08 14:00:01 +08:00
parent b4de3e0ab8
commit 082988549d

View File

@ -514,7 +514,7 @@ FormItem.Designer = function Designer() {
key="field-mode"
title={t('Field mode')}
options={fieldModeOptions}
value={field?.componentProps?.['mode'] || isFileField ? 'FileManager' : 'Select'}
value={field?.componentProps?.['mode'] || (isFileField ? 'FileManager' : 'Select')}
onChange={(mode) => {
const schema = {
['x-uid']: fieldSchema['x-uid'],