mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 08:36:44 +00:00
refactor: nanoid &uuid autoFill (#3955)
This commit is contained in:
parent
dfcf7671d3
commit
e81cfcbe98
@ -85,6 +85,7 @@ export const autoFill = {
|
||||
'x-content': '{{t("Automatically generate default values")}}',
|
||||
'x-decorator': 'FormItem',
|
||||
'x-component': 'Checkbox',
|
||||
default: true,
|
||||
};
|
||||
|
||||
export const relationshipType: ISchema = {
|
||||
|
@ -87,7 +87,10 @@ const getSchema = ({
|
||||
return useRequest(
|
||||
() =>
|
||||
Promise.resolve({
|
||||
data: cloneDeep(omit(schema.default, ['uiSchema.rawTitle'])),
|
||||
data: {
|
||||
...cloneDeep(omit(schema.default, ['uiSchema.rawTitle'])),
|
||||
autoFill: schema.default?.autoFill !== false,
|
||||
},
|
||||
}),
|
||||
options,
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user