Skip to content

Commit

Permalink
style: 修改登录样式
Browse files Browse the repository at this point in the history
  • Loading branch information
JackySoft committed Aug 29, 2024
1 parent 8fba03d commit 86ce865
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/editor/src/pages/login/Login.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useEffect, useState } from 'react';
import type { FormProps } from 'antd';
import { Button, Form, Input, InputNumber, Space } from 'antd';
import { Button, Flex, Form, Input, InputNumber, Space } from 'antd';
import { useNavigate } from 'react-router-dom';
import { login, sendEmail, regist } from '@/api/user';
import storage from '@/utils/storage';
Expand Down Expand Up @@ -111,14 +111,14 @@ export default function Login() {

{type === 'regist' && (
<Form.Item>
<Space>
<Flex gap={20}>
<Form.Item<FieldType> name="code" noStyle rules={[{ required: true, message: '请输入验证码' }]}>
<InputNumber prefix={<SafetyOutlined />} style={{ width: '100%' }} placeholder="验证码" />
</Form.Item>
<Button type="primary" onClick={handleCreateCode} disabled={count > 0} loading={loading1}>
{count > 0 ? count + 's' : '获取验证码'}
</Button>
</Space>
</Flex>
</Form.Item>
)}

Expand Down

0 comments on commit 86ce865

Please sign in to comment.