From 5b7d29de4dd4416db780ba32f616de05fcb869bb Mon Sep 17 00:00:00 2001 From: lishuang Date: Sat, 6 Jun 2020 00:51:11 +0800 Subject: [PATCH] Finish the Login page. --- package.json | 1 + src/pages/user/Login.less | 18 +----------------- src/pages/user/Login.tsx | 26 ++++++++------------------ 3 files changed, 10 insertions(+), 35 deletions(-) diff --git a/package.json b/package.json index 6b713db..b12c0eb 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,7 @@ "version": "0.1.0", "private": true, "dependencies": { + "@ant-design/icons": "^4.2.1", "@testing-library/react": "^9.3.2", "@testing-library/user-event": "^7.1.2", "antd": "^4.3.1", diff --git a/src/pages/user/Login.less b/src/pages/user/Login.less index c0001d9..77aab14 100644 --- a/src/pages/user/Login.less +++ b/src/pages/user/Login.less @@ -1,28 +1,12 @@ - .user-login { - padding-top: 150px; .welcome { text-align: center; - font-size: 18px; + font-size: 20px; font-weight: bold; padding-bottom: 40px; } - .login-form { - - - .ant-input-prefix { - .anticon { - color: rgba(0, 0, 0, .25); - } - } - } - - .login-form-button { - width: 100%; - } - } diff --git a/src/pages/user/Login.tsx b/src/pages/user/Login.tsx index 0a7f9c7..5c1fd92 100644 --- a/src/pages/user/Login.tsx +++ b/src/pages/user/Login.tsx @@ -5,6 +5,8 @@ import TankComponent from "../../common/component/TankComponent"; import {Button, Col, Form, Input, message as MessageBox, Row} from 'antd'; import User from "../../common/model/user/User"; import Moon from "../../common/model/global/Moon"; +import {LockOutlined, UserOutlined} from '@ant-design/icons'; + interface IProps extends RouteComponentProps { @@ -30,7 +32,6 @@ class RawLogin extends TankComponent { } - onFinish(values: any) { console.log('Success:', values); @@ -57,14 +58,6 @@ class RawLogin extends TankComponent { let that = this - const layout = { - labelCol: {span: 8}, - wrapperCol: {span: 16}, - }; - const tailLayout = { - wrapperCol: {offset: 8, span: 16}, - }; - return (
@@ -76,35 +69,32 @@ class RawLogin extends TankComponent {
- + }/> - + }/> - - -
+