refactor: select options configuration (#3964)

This commit is contained in:
katherinehhh 2024-04-08 17:40:59 +08:00 committed by GitHub
parent ce0f4ddf04
commit bbdfad4ea3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -295,7 +295,7 @@ export const dataSource: ISchema = {
'x-decorator': 'FormItem',
'x-component': 'Input',
'x-reactions': (field: Field) => {
if (!field.initialValue) {
if (!field.initialValue && !field.initialized) {
field.initialValue = uid();
field.setValue(uid());
}