소스 검색

feat(search): search history

Lind 3 년 전
부모
커밋
83f0bdf731
1개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. 6 1
      src/components/SearchComponent/index.tsx

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

@@ -410,7 +410,12 @@ const SearchComponent = <T extends Record<string, any>>(props: Props<T>) => {
                         alias: {
                         alias: {
                           'x-decorator': 'FormItem',
                           'x-decorator': 'FormItem',
                           'x-component': 'Input.TextArea',
                           'x-component': 'Input.TextArea',
-                          maxLength: 50,
+                          'x-validator': [
+                            {
+                              max: 50,
+                              message: '最多可输入50个字符',
+                            },
+                          ],
                         },
                         },
                       },
                       },
                     }}
                     }}