From 60a768deae2589c4049eba74c076bcb1baabc65d Mon Sep 17 00:00:00 2001 From: ddcat1115 Date: Wed, 3 Jan 2018 11:34:06 +0800 Subject: [PATCH] fix Login demo lint --- src/components/Login/demo/basic.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/components/Login/demo/basic.md b/src/components/Login/demo/basic.md index 12afef72..1fca454f 100644 --- a/src/components/Login/demo/basic.md +++ b/src/components/Login/demo/basic.md @@ -18,7 +18,7 @@ class LoginDemo extends React.Component { autoLogin: true, } onSubmit = (err, values) => { - console.log(`value collected ->`, {...values, autoLogin: this.state.autoLogin}); + console.log('value collected ->', { ...values, autoLogin: this.state.autoLogin }); if (this.state.type === 'tab1') { this.setState({ notice: '', @@ -27,21 +27,21 @@ class LoginDemo extends React.Component { setTimeout(() => { this.setState({ notice: '账号或密码错误!', - }) + }); }, 500); } - }) + }); } } onTabChange = (key) => { this.setState({ type: key, - }) + }); } changeAutoLogin = (e) => { this.setState({ autoLogin: e.target.checked, - }) + }); } render() { return ( @@ -75,7 +75,7 @@ class LoginDemo extends React.Component { 注册账户 - ) + ); } } -- GitLab