mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 10:26:45 +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-content': '{{t("Automatically generate default values")}}',
|
||||||
'x-decorator': 'FormItem',
|
'x-decorator': 'FormItem',
|
||||||
'x-component': 'Checkbox',
|
'x-component': 'Checkbox',
|
||||||
|
default: true,
|
||||||
};
|
};
|
||||||
|
|
||||||
export const relationshipType: ISchema = {
|
export const relationshipType: ISchema = {
|
||||||
|
@ -87,7 +87,10 @@ const getSchema = ({
|
|||||||
return useRequest(
|
return useRequest(
|
||||||
() =>
|
() =>
|
||||||
Promise.resolve({
|
Promise.resolve({
|
||||||
data: cloneDeep(omit(schema.default, ['uiSchema.rawTitle'])),
|
data: {
|
||||||
|
...cloneDeep(omit(schema.default, ['uiSchema.rawTitle'])),
|
||||||
|
autoFill: schema.default?.autoFill !== false,
|
||||||
|
},
|
||||||
}),
|
}),
|
||||||
options,
|
options,
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user