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
A
ant-design-pro
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
ant-design-pro
Commits
8058e4d8
Commit
8058e4d8
authored
Nov 16, 2018
by
ιεΈ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rm umi/local in components
parent
3fffc83d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
src/components/Login/LoginItem.js
src/components/Login/LoginItem.js
+2
-3
src/pages/User/Login.js
src/pages/User/Login.js
+7
-1
No files found.
src/components/Login/LoginItem.js
View file @
8058e4d8
import
React
,
{
Component
}
from
'
react
'
;
import
React
,
{
Component
}
from
'
react
'
;
import
{
Form
,
Input
,
Button
,
Row
,
Col
}
from
'
antd
'
;
import
{
Form
,
Input
,
Button
,
Row
,
Col
}
from
'
antd
'
;
import
{
formatMessage
}
from
'
umi/locale
'
;
import
omit
from
'
omit.js
'
;
import
omit
from
'
omit.js
'
;
import
styles
from
'
./index.less
'
;
import
styles
from
'
./index.less
'
;
import
ItemMap
from
'
./map
'
;
import
ItemMap
from
'
./map
'
;
...
@@ -10,8 +9,8 @@ const FormItem = Form.Item;
...
@@ -10,8 +9,8 @@ const FormItem = Form.Item;
class
WrapFormItem
extends
Component
{
class
WrapFormItem
extends
Component
{
static
defaultProps
=
{
static
defaultProps
=
{
getCaptchaButtonText
:
formatMessage
({
id
:
'
form.captcha
'
})
,
getCaptchaButtonText
:
'
captcha
'
,
getCaptchaSecondText
:
formatMessage
({
id
:
'
form.captcha.second
'
})
,
getCaptchaSecondText
:
'
second
'
,
};
};
constructor
(
props
)
{
constructor
(
props
)
{
...
...
src/pages/User/Login.js
View file @
8058e4d8
...
@@ -96,7 +96,13 @@ class LoginPage extends Component {
...
@@ -96,7 +96,13 @@ class LoginPage extends Component {
formatMessage
({
id
:
'
app.login.message-invalid-verification-code
'
})
formatMessage
({
id
:
'
app.login.message-invalid-verification-code
'
})
)}
)}
<
Mobile
name
=
"
mobile
"
/>
<
Mobile
name
=
"
mobile
"
/>
<
Captcha
name
=
"
captcha
"
countDown
=
{
120
}
onGetCaptcha
=
{
this
.
onGetCaptcha
}
/
>
<
Captcha
name
=
"
captcha
"
countDown
=
{
120
}
onGetCaptcha
=
{
this
.
onGetCaptcha
}
getCaptchaButtonText
=
{
formatMessage
({
id
:
'
form.captcha
'
})}
getCaptchaSecondText
=
{
formatMessage
({
id
:
'
form.captcha.second
'
})}
/
>
<
/Tab
>
<
/Tab
>
<
div
>
<
div
>
<
Checkbox
checked
=
{
autoLogin
}
onChange
=
{
this
.
changeAutoLogin
}
>
<
Checkbox
checked
=
{
autoLogin
}
onChange
=
{
this
.
changeAutoLogin
}
>
...
...
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