浏览代码

fix(search): fix search value Component

Lind 4 年之前
父节点
当前提交
788466e2a3
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/components/SearchComponent/index.tsx

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

@@ -153,6 +153,10 @@ const SearchComponent = <T extends Record<string, any>>(props: Props<T>) => {
               f.setFieldState(typeFiled.query('.termType'), async (state) => {
                 state.value = 'gt';
               });
+            } else {
+              f.setFieldState(typeFiled.query('.value'), async (state) => {
+                state.componentType = 'Input';
+              });
             }
           });
         },