lind 3 лет назад
Родитель
Сommit
6c8dd54852
1 измененных файлов с 1 добавлено и 4 удалено
  1. 1 4
      src/components/SearchComponent/index.tsx

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

@@ -191,7 +191,6 @@ const SearchComponent = <T extends Record<string, any>>(props: Props<T>) => {
         effects() {
           onFieldReact('*.*.column', async (typeFiled, f) => {
             const _column = (typeFiled as Field).value;
-
             const _field = field.find((item) => item.dataIndex === _column);
             if (_column === 'id') {
               f.setFieldState(typeFiled.query('.termType'), async (state) => {
@@ -214,9 +213,7 @@ const SearchComponent = <T extends Record<string, any>>(props: Props<T>) => {
                   });
                   f.setFieldState(typeFiled.query('.value'), async (state) => {
                     state.componentType = 'Select';
-                    // state.loading = true;
                     state.dataSource = __option;
-                    // state.loading = false;
                   });
                   break;
                 case 'treeSelect':
@@ -273,7 +270,7 @@ const SearchComponent = <T extends Record<string, any>>(props: Props<T>) => {
           });
         },
       }),
-    [target],
+    [target, expand],
   );
 
   const historyForm = createForm();