Ver código fonte

ep-admin: fix: 修复表格与搜索框字段不能不一致的问题

(cherry picked from commit 9fba2886abdd650f5b1d39f0451e5891f501ee38)
YunaiV 2 anos atrás
pai
commit
7c8794fc53
1 arquivos alterados com 2 adições e 0 exclusões
  1. 2 0
      src/hooks/web/useCrudSchemas.ts

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

@@ -29,6 +29,8 @@ type CrudSearchParams = {
   show?: boolean
   // 接口
   api?: () => Promise<any>
+  // 搜索字段
+  field?: string
 } & Omit<FormSchema, 'field'>
 
 type CrudTableParams = {