Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ant-design-pro
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Thiago Borges
ant-design-pro
Commits
e4652952
Commit
e4652952
authored
Nov 01, 2017
by
nikogu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed:
https://github.com/ant-design/ant-design-pro/issues/63#issuecomment-340979650
parent
b0cfa106
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
AdvancedProfile.js
src/routes/Profile/AdvancedProfile.js
+6
-10
No files found.
src/routes/Profile/AdvancedProfile.js
View file @
e4652952
import
React
,
{
Component
}
from
'react'
;
import
addEventListener
from
'rc-util/lib/Dom/addEventListener'
;
import
debounce
from
'lodash.debounce'
;
import
Debounce
from
'lodash-decorators/debounce'
;
import
{
connect
}
from
'dva'
;
import
{
Button
,
Menu
,
Dropdown
,
Icon
,
Row
,
Col
,
Steps
,
Card
,
Popover
,
Badge
,
Table
,
Tooltip
,
Divider
}
from
'antd'
;
import
classNames
from
'classnames'
;
...
...
@@ -93,7 +92,7 @@ const popoverContent = (
<
span
className
=
{
styles
.
textSecondary
}
style
=
{{
float
:
'right'
}}
>
<
Badge
status
=
"default"
text
=
{
<
span
style
=
{{
color
:
'rgba(0, 0, 0, 0.45)'
}}
>
未响应
<
/span>} /
>
<
/span
>
<
p
className
=
{
styles
.
textSecondary
}
style
=
{{
marginTop
:
4
}}
>
耗时:
2
小时
25
分钟
<
/p
>
<
p
className
=
{
styles
.
textSecondary
}
style
=
{{
marginTop
:
4
}}
>
耗时:
2
小时
25
分钟
<
/p
>
<
/div
>
);
...
...
@@ -156,21 +155,18 @@ export default class AdvancedProfile extends Component {
});
this
.
setStepDirection
();
this
.
resizeEvent
=
addEventListener
(
window
,
'resize'
,
debounce
(
this
.
setStepDirection
,
100
,
{
leading
:
false
,
}));
window
.
addEventListener
(
'resize'
,
this
.
setStepDirection
);
}
componentWillUnmount
()
{
if
(
this
.
resizeEvent
)
{
this
.
resizeEvent
.
remove
();
}
window
.
removeEventListener
(
'resize'
,
this
.
setStepDirection
);
}
onOperationTabChange
=
(
key
)
=>
{
this
.
setState
({
operationkey
:
key
});
}
@
Debounce
(
200
)
setStepDirection
=
()
=>
{
const
{
stepDirection
}
=
this
.
state
;
const
w
=
getWindowWidth
();
...
...
@@ -233,7 +229,7 @@ export default class AdvancedProfile extends Component {
<
Description
term
=
"会员卡号"
>
32943898021309809423
<
/Description
>
<
Description
term
=
"身份证"
>
3321944288191034921
<
/Description
>
<
Description
term
=
"联系方式"
>
18112345678
<
/Description
>
<
Description
term
=
"联系地址"
>
曲丽丽
18100000000
浙江省杭州市西湖区黄姑山路工专路交叉路口
<
/Description
>
<
Description
term
=
"联系地址"
>
曲丽丽
18100000000
浙江省杭州市西湖区黄姑山路工专路交叉路口
<
/Description
>
<
/DescriptionList
>
<
DescriptionList
style
=
{{
marginBottom
:
24
}}
title
=
"信息组"
>
<
Description
term
=
"某某数据"
>
725
<
/Description
>
...
...
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