feat:调整登陆页面输入框布局
This commit is contained in:
@@ -60,20 +60,28 @@ const LoginPage: React.FC = () => {
|
|||||||
</Title>
|
</Title>
|
||||||
<p style={{ color: '#86868b', marginTop: 8 }}>学生综合管理平台</p>
|
<p style={{ color: '#86868b', marginTop: 8 }}>学生综合管理平台</p>
|
||||||
</div>
|
</div>
|
||||||
<Form name="login" onFinish={onFinish} size="large">
|
<Form name="login" layout="vertical" onFinish={onFinish} size="large">
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label="用户名"
|
label="用户名"
|
||||||
name="username"
|
name="username"
|
||||||
rules={[{ required: true, message: '请输入用户名' }]}
|
rules={[{ required: true, message: '请输入用户名' }]}
|
||||||
>
|
>
|
||||||
<Input prefix={<UserOutlined />} placeholder="用户名" />
|
<Input
|
||||||
|
prefix={<UserOutlined />}
|
||||||
|
placeholder="用户名"
|
||||||
|
autoComplete="username"
|
||||||
|
/>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
label="密码"
|
label="密码"
|
||||||
name="password"
|
name="password"
|
||||||
rules={[{ required: true, message: '请输入密码' }]}
|
rules={[{ required: true, message: '请输入密码' }]}
|
||||||
>
|
>
|
||||||
<Input.Password prefix={<LockOutlined />} placeholder="密码" />
|
<Input.Password
|
||||||
|
prefix={<LockOutlined />}
|
||||||
|
placeholder="密码"
|
||||||
|
autoComplete="current-password"
|
||||||
|
/>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item>
|
<Form.Item>
|
||||||
<Button
|
<Button
|
||||||
|
|||||||
Reference in New Issue
Block a user