Fix(Input): Fixed the problem of not validating whitespace characters
Fixed the problem of not validating whitespace characters
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user