Sfoglia il codice sorgente

fix(search): search

lind 3 anni fa
parent
commit
6c8dd54852
1 ha cambiato i file con 1 aggiunte e 4 eliminazioni
  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() {
         effects() {
           onFieldReact('*.*.column', async (typeFiled, f) => {
           onFieldReact('*.*.column', async (typeFiled, f) => {
             const _column = (typeFiled as Field).value;
             const _column = (typeFiled as Field).value;
-
             const _field = field.find((item) => item.dataIndex === _column);
             const _field = field.find((item) => item.dataIndex === _column);
             if (_column === 'id') {
             if (_column === 'id') {
               f.setFieldState(typeFiled.query('.termType'), async (state) => {
               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) => {
                   f.setFieldState(typeFiled.query('.value'), async (state) => {
                     state.componentType = 'Select';
                     state.componentType = 'Select';
-                    // state.loading = true;
                     state.dataSource = __option;
                     state.dataSource = __option;
-                    // state.loading = false;
                   });
                   });
                   break;
                   break;
                 case 'treeSelect':
                 case 'treeSelect':
@@ -273,7 +270,7 @@ const SearchComponent = <T extends Record<string, any>>(props: Props<T>) => {
           });
           });
         },
         },
       }),
       }),
-    [target],
+    [target, expand],
   );
   );
 
 
   const historyForm = createForm();
   const historyForm = createForm();