From cf488810e7db467bf356052c435a14b43f980b42 Mon Sep 17 00:00:00 2001 From: "waliang.wang" Date: Tue, 11 Jul 2017 12:30:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0connect?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/containers/Login/Login.js | 54 ++++++-------------------------- 1 file changed, 9 insertions(+), 45 deletions(-) diff --git a/client/containers/Login/Login.js b/client/containers/Login/Login.js index 05fd9be1..a1eaa0b2 100644 --- a/client/containers/Login/Login.js +++ b/client/containers/Login/Login.js @@ -1,16 +1,9 @@ -<<<<<<< HEAD -import React, { Component } from 'react' -import PropTypes from 'prop-types' -import { connect } from 'react-redux' -import { Button, Input, Icon, Checkbox } from 'antd' import './Login.scss' -======= -import './Login.scss'; -import React, { Component } from 'react'; -import { Form, Button, Input, Icon, Checkbox } from 'antd'; -import { BrowserRouter as Router, Route, Link } from 'react-router-dom'; +import React, { Component } from 'react' +import { connect } from 'react-redux' +import PropTypes from 'prop-types' +import { Form, Button, Input, Icon, Checkbox } from 'antd' const FormItem = Form.Item; ->>>>>>> 68828ebd3b3ac60015757711625048cef4b44165 @connect( () => ({ @@ -18,42 +11,13 @@ const FormItem = Form.Item; }) ) class Login extends Component { + static propTypes = { + form: PropTypes.object, + } + handleSubmit = (e) => { e.preventDefault(); const form = this.props.form; - -<<<<<<< HEAD - static propTypes = { - value: PropTypes.string, - per: PropTypes.string, - } - - render () { - return ( - - {this.props.value}{this.props.per} -
-
- } /> - - } /> - -
- 记住密码 - -
-
-
-
- ) -======= // 获取全部组件的值 // console.log(form.getFieldsValue()); form.validateFields((err, values) => { @@ -62,6 +26,7 @@ class Login extends Component { } }); } + render() { const { getFieldDecorator } = this.props.form; return ( @@ -91,7 +56,6 @@ class Login extends Component { ); ->>>>>>> 68828ebd3b3ac60015757711625048cef4b44165 } }