Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pro-blocks
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanledexianxianxian
pro-blocks
Commits
60a768de
Commit
60a768de
authored
Jan 03, 2018
by
ddcat1115
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix Login demo lint
parent
481787a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/components/Login/demo/basic.md
src/components/Login/demo/basic.md
+6
-6
No files found.
src/components/Login/demo/basic.md
View file @
60a768de
...
...
@@ -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 {
<
a
style
=
{
{
float
:
'
right
'
}
}
href
=
""
>
注册账户
</
a
>
</
div
>
</
Login
>
)
)
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment