kailong321200875 10 月之前
父节点
当前提交
c77586c567
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      src/hooks/web/useCrudSchemas.ts

+ 3 - 0
src/hooks/web/useCrudSchemas.ts

@@ -80,6 +80,9 @@ const filterSearchSchema = (crudSchema: CrudSchema[]): FormSchema[] => {
 
   for (let i = 0; i < length; i++) {
     const schemaItem = crudSchema[i]
+    if (schemaItem.search?.hidden === true) {
+      continue
+    }
     // 判断是否隐藏
     const searchSchemaItem = {
       component: schemaItem?.search?.component || 'Input',