mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 16:46:31 +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