@@ -39,7 +39,7 @@ export class Login extends PureComponent<InternalProps> {
3939
4040 return (
4141 < div className = { styles . login } >
42- < svg className = "Header__svg" xmlns = "http://www.w3.org/2000/svg" viewBox = "0 0 1337.97 684.43" >
42+ { /* <svg className="Header__svg" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1337.97 684.43">
4343 <path
4444 className="Header__shape bigSquare" fill="#16d5d1"
4545 d="M546.519 349.271l86.383-56.098 56.097 86.383-86.383 56.098z"
@@ -65,40 +65,42 @@ export class Login extends PureComponent<InternalProps> {
6565 className="Header__shape littleCircle"
6666 fill="#0f1c70" cx="1036.52" cy="203.17" r="27"
6767 />
68- </ svg >
69- < Form style = { { width : 320 } } onSubmit = { this . onSubmit } >
70- < Form . Item >
71- { getFieldDecorator ( 'email' , {
72- rules : [
73- { required : true , message : 'Please input email!' } ,
74- { pattern : EmailRxp , message : 'Please input right email!' } ,
75- ] ,
76- } ) (
77- < Input
78- prefix = { < Icon type = "inbox" style = { { color } } /> }
79- placeholder = "Email"
80- />
81- ) }
82- </ Form . Item >
83- < Form . Item >
84- { getFieldDecorator ( 'password' , {
85- rules : [
86- { required : true , message : 'Please input password!' } ,
87- ] ,
88- } ) (
89- < Input
90- type = "password"
91- prefix = { < Icon type = "key" style = { { color } } /> }
92- placeholder = "Password"
93- />
94- ) }
95- </ Form . Item >
96- < Form . Item >
97- < Button block type = "primary" htmlType = "submit" loading = { loading } >
98- 登录
99- </ Button >
100- </ Form . Item >
101- </ Form >
68+ </svg> */ }
69+ < div className = { styles . container } >
70+ < Form onSubmit = { this . onSubmit } >
71+ < Form . Item >
72+ { getFieldDecorator ( 'email' , {
73+ rules : [
74+ { required : true , message : 'Please input email!' } ,
75+ { pattern : EmailRxp , message : 'Please input right email!' } ,
76+ ] ,
77+ } ) (
78+ < Input
79+ prefix = { < Icon type = "inbox" style = { { color } } /> }
80+ placeholder = "Email"
81+ />
82+ ) }
83+ </ Form . Item >
84+ < Form . Item >
85+ { getFieldDecorator ( 'password' , {
86+ rules : [
87+ { required : true , message : 'Please input password!' } ,
88+ ] ,
89+ } ) (
90+ < Input
91+ type = "password"
92+ prefix = { < Icon type = "key" style = { { color } } /> }
93+ placeholder = "Password"
94+ />
95+ ) }
96+ </ Form . Item >
97+ < Form . Item >
98+ < Button block type = "primary" htmlType = "submit" loading = { loading } >
99+ 登录
100+ </ Button >
101+ </ Form . Item >
102+ </ Form >
103+ </ div >
102104 </ div >
103105 ) ;
104106 }
0 commit comments