whitespace: true,校验空格阻拦
<Form.Item
className="no-label salary-input"
label="手机号"
name="tel"
rules={[
{
required: true,
message: '请输入手机号',
},
{ whitespace: true },
]}
>
<Input
placeholder="请输入"
/>
</Form.Item>