|
@@ -169,10 +169,10 @@ const filterFormSchema = (crudSchema: CrudSchema[], allSchemas: AllSchemas): For
|
|
|
|
|
|
eachTree(crudSchema, (schemaItem: CrudSchema) => {
|
|
eachTree(crudSchema, (schemaItem: CrudSchema) => {
|
|
// 判断是否显示
|
|
// 判断是否显示
|
|
- if (schemaItem?.form?.show) {
|
|
|
|
|
|
+ if (schemaItem?.form?.show !== false) {
|
|
const formSchemaItem = {
|
|
const formSchemaItem = {
|
|
// 默认为 input
|
|
// 默认为 input
|
|
- component: schemaItem.form.component || 'Input',
|
|
|
|
|
|
+ component: schemaItem?.form?.component || 'Input',
|
|
componentProps: {},
|
|
componentProps: {},
|
|
...schemaItem.form,
|
|
...schemaItem.form,
|
|
field: schemaItem.field,
|
|
field: schemaItem.field,
|
|
@@ -211,7 +211,7 @@ const filterFormSchema = (crudSchema: CrudSchema[], allSchemas: AllSchemas): For
|
|
for (const task of formRequestTask) {
|
|
for (const task of formRequestTask) {
|
|
task()
|
|
task()
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ console.log(formSchema)
|
|
return formSchema
|
|
return formSchema
|
|
}
|
|
}
|
|
|
|
|