Explorar o código

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

YunaiV %!s(int64=2) %!d(string=hai) anos
pai
achega
9fba2886ab
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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 = {