input 都增加清空按钮

This commit is contained in:
禺狨
2023-04-25 10:15:07 +08:00
parent 391af1a488
commit 86a16c9722
21 changed files with 99 additions and 18 deletions

View File

@@ -45,14 +45,14 @@ const ChangePasswordPage = () => {
name="old_password"
rules={[{ required: true, message: "请输入原密码!" }]}
>
<Input.Password placeholder="请输入原密码" />
<Input.Password placeholder="请输入原密码" allowClear />
</Form.Item>
<Form.Item
label="新密码"
name="new_password"
rules={[{ required: true, message: "请输入新密码!" }]}
>
<Input.Password placeholder="请输入新密码" />
<Input.Password placeholder="请输入新密码" allowClear />
</Form.Item>
<Form.Item wrapperCol={{ offset: 8, span: 16 }}>
<Button type="primary" htmlType="submit">