kailong321200875 10 mesiacov pred
rodič
commit
c77586c567
1 zmenil súbory, kde vykonal 3 pridanie a 0 odobranie
  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',