mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 19:46:28 +00:00
refactor: field mode default value
This commit is contained in:
parent
b4de3e0ab8
commit
082988549d
@ -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'],
|
||||
|
Loading…
Reference in New Issue
Block a user