浏览代码

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

(cherry picked from commit 9fba2886abdd650f5b1d39f0451e5891f501ee38)
YunaiV 2 年之前
父节点
当前提交
7c8794fc53
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/hooks/web/useCrudSchemas.ts

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

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