mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-12-05 05:38:23 +08:00
chore: enable overring field default value (#1777)
This commit is contained in:
parent
daf2034f8d
commit
f0816c663e
@ -45,7 +45,6 @@ const getSchema = (schema: IField, record: any, compile, getContainer): ISchema
|
||||
},
|
||||
},
|
||||
};
|
||||
properties['defaultValue']['x-disabled'] = record.overriding;
|
||||
}
|
||||
|
||||
return {
|
||||
|
@ -25,7 +25,6 @@ const getSchema = (schema: IField, record: any, compile, getContainer): ISchema
|
||||
properties['defaultValue'] = cloneDeep(schema.default.uiSchema);
|
||||
properties['defaultValue']['title'] = compile('{{ t("Default value") }}');
|
||||
properties['defaultValue']['x-decorator'] = 'FormItem';
|
||||
properties['defaultValue']['x-disabled'] = true;
|
||||
}
|
||||
return {
|
||||
type: 'object',
|
||||
|
Loading…
Reference in New Issue
Block a user