Showing
1 changed file
with
1 additions
and
14 deletions
| ... | ... | @@ -127,7 +127,7 @@ export const formSchema: FormSchema[] = [ | 
| 127 | 127 | required: true, | 
| 128 | 128 | component: 'Input', | 
| 129 | 129 | componentProps: { | 
| 130 | - maxLength: 32, | |
| 130 | + maxLength: 255, | |
| 131 | 131 | placeholder: '请输入字典值', | 
| 132 | 132 | }, | 
| 133 | 133 | }, | 
| ... | ... | @@ -159,18 +159,5 @@ export const formSchema: FormSchema[] = [ | 
| 159 | 159 | componentProps: { | 
| 160 | 160 | maxLength: 255, | 
| 161 | 161 | }, | 
| 162 | - dynamicRules: () => { | |
| 163 | - return [ | |
| 164 | - { | |
| 165 | - required: false, | |
| 166 | - validator: (_, value) => { | |
| 167 | - if (String(value).length > 255) { | |
| 168 | - return Promise.reject('字数不超过255个字'); | |
| 169 | - } | |
| 170 | - return Promise.resolve(); | |
| 171 | - }, | |
| 172 | - }, | |
| 173 | - ]; | |
| 174 | - }, | |
| 175 | 162 | }, | 
| 176 | 163 | ]; | ... | ... |