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 {
|
return {
|
||||||
|
@ -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',
|
||||||
|
Loading…
Reference in New Issue
Block a user