Pārlūkot izejas kodu

feat(search): search history

Lind 3 gadi atpakaļ
vecāks
revīzija
83f0bdf731
1 mainītis faili ar 6 papildinājumiem un 1 dzēšanām
  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: {
                           'x-decorator': 'FormItem',
                           'x-component': 'Input.TextArea',
-                          maxLength: 50,
+                          'x-validator': [
+                            {
+                              max: 50,
+                              message: '最多可输入50个字符',
+                            },
+                          ],
                         },
                       },
                     }}