chore: enable overring field default value (#1777)

This commit is contained in:
ChengLei Shao 2023-04-27 13:36:41 +08:00 committed by GitHub
parent daf2034f8d
commit f0816c663e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 2 deletions

View File

@ -45,7 +45,6 @@ const getSchema = (schema: IField, record: any, compile, getContainer): ISchema
}, },
}, },
}; };
properties['defaultValue']['x-disabled'] = record.overriding;
} }
return { return {

View File

@ -25,7 +25,6 @@ const getSchema = (schema: IField, record: any, compile, getContainer): ISchema
properties['defaultValue'] = cloneDeep(schema.default.uiSchema); properties['defaultValue'] = cloneDeep(schema.default.uiSchema);
properties['defaultValue']['title'] = compile('{{ t("Default value") }}'); properties['defaultValue']['title'] = compile('{{ t("Default value") }}');
properties['defaultValue']['x-decorator'] = 'FormItem'; properties['defaultValue']['x-decorator'] = 'FormItem';
properties['defaultValue']['x-disabled'] = true;
} }
return { return {
type: 'object', type: 'object',