Просмотр исходного кода

fix(search): compatible old crud

Lind 3 лет назад
Родитель
Сommit
bf83e9ce64
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      src/components/BaseCrud/index.tsx
  2. 1 1
      src/components/SearchComponent/index.tsx

+ 1 - 1
src/components/BaseCrud/index.tsx

@@ -45,7 +45,7 @@ export type Props<T> = {
   formEffect?: () => void; // 与form参数 只有一个生效
   form?: Form;
   /** @name 用于存储搜索历史记录的标记*/
-  moduleName: string; //
+  moduleName?: string; //
 };
 
 const BaseCrud = <T extends Record<string, any>>(props: Props<T>) => {

+ 1 - 1
src/components/SearchComponent/index.tsx

@@ -37,7 +37,7 @@ const server2Ui = (source: SearchTermsServer): SearchTermsUI => ({
 interface Props<T> {
   field: ProColumns<T>[];
   onSearch: (params: any) => void;
-  target: string;
+  target?: string;
 }
 
 const termType = [