Fix(Input): Fixed the problem of not validating whitespace characters

Fixed the problem of not validating whitespace characters
This commit is contained in:
2024-04-22 00:27:27 +08:00
parent 90351ec972
commit b471d55e7a
6 changed files with 9 additions and 9 deletions

View File

@@ -985,7 +985,7 @@ const Template = () => {
<AntdForm.Item
name={'name'}
label={'名称'}
rules={[{ required: true, whitespace: false }]}
rules={[{ required: true, whitespace: true }]}
>
<AntdInput allowClear />
</AntdForm.Item>