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
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
src/routes/Profile/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
React
,
{
Component
}
from
'
react
'
;
import
addEventListener
from
'
rc-util/lib/Dom/addEventListener
'
;
import
Debounce
from
'
lodash-decorators/debounce
'
;
import
debounce
from
'
lodash.debounce
'
;
import
{
connect
}
from
'
dva
'
;
import
{
connect
}
from
'
dva
'
;
import
{
Button
,
Menu
,
Dropdown
,
Icon
,
Row
,
Col
,
Steps
,
Card
,
Popover
,
Badge
,
Table
,
Tooltip
,
Divider
}
from
'
antd
'
;
import
{
Button
,
Menu
,
Dropdown
,
Icon
,
Row
,
Col
,
Steps
,
Card
,
Popover
,
Badge
,
Table
,
Tooltip
,
Divider
}
from
'
antd
'
;
import
classNames
from
'
classnames
'
;
import
classNames
from
'
classnames
'
;
...
@@ -93,7 +92,7 @@ const popoverContent = (
...
@@ -93,7 +92,7 @@ const popoverContent = (
<
span
className
=
{
styles
.
textSecondary
}
style
=
{{
float
:
'
right
'
}}
>
<
span
className
=
{
styles
.
textSecondary
}
style
=
{{
float
:
'
right
'
}}
>
<
Badge
status
=
"
default
"
text
=
{
<
span
style
=
{{
color
:
'
rgba(0, 0, 0, 0.45)
'
}}
>
未响应
<
/span>} /
>
<
Badge
status
=
"
default
"
text
=
{
<
span
style
=
{{
color
:
'
rgba(0, 0, 0, 0.45)
'
}}
>
未响应
<
/span>} /
>
<
/span
>
<
/span
>
<
p
className
=
{
styles
.
textSecondary
}
style
=
{{
marginTop
:
4
}}
>
耗时
:
2
小时25分钟
<
/p
>
<
p
className
=
{
styles
.
textSecondary
}
style
=
{{
marginTop
:
4
}}
>
耗时
:
2
小时25分钟
<
/p
>
<
/div
>
<
/div
>
);
);
...
@@ -156,21 +155,18 @@ export default class AdvancedProfile extends Component {
...
@@ -156,21 +155,18 @@ export default class AdvancedProfile extends Component {
});
});
this
.
setStepDirection
();
this
.
setStepDirection
();
this
.
resizeEvent
=
addEventListener
(
window
,
'
resize
'
,
debounce
(
this
.
setStepDirection
,
100
,
{
window
.
addEventListener
(
'
resize
'
,
this
.
setStepDirection
);
leading
:
false
,
}));
}
}
componentWillUnmount
()
{
componentWillUnmount
()
{
if
(
this
.
resizeEvent
)
{
window
.
removeEventListener
(
'
resize
'
,
this
.
setStepDirection
);
this
.
resizeEvent
.
remove
();
}
}
}
onOperationTabChange
=
(
key
)
=>
{
onOperationTabChange
=
(
key
)
=>
{
this
.
setState
({
operationkey
:
key
});
this
.
setState
({
operationkey
:
key
});
}
}
@
Debounce
(
200
)
setStepDirection
=
()
=>
{
setStepDirection
=
()
=>
{
const
{
stepDirection
}
=
this
.
state
;
const
{
stepDirection
}
=
this
.
state
;
const
w
=
getWindowWidth
();
const
w
=
getWindowWidth
();
...
@@ -233,7 +229,7 @@ export default class AdvancedProfile extends Component {
...
@@ -233,7 +229,7 @@ export default class AdvancedProfile extends Component {
<
Description
term
=
"
会员卡号
"
>
32943898021309809423
<
/Description
>
<
Description
term
=
"
会员卡号
"
>
32943898021309809423
<
/Description
>
<
Description
term
=
"
身份证
"
>
3321944288191034921
<
/Description
>
<
Description
term
=
"
身份证
"
>
3321944288191034921
<
/Description
>
<
Description
term
=
"
联系方式
"
>
18112345678
<
/Description
>
<
Description
term
=
"
联系方式
"
>
18112345678
<
/Description
>
<
Description
term
=
"
联系地址
"
>
曲丽丽
18100000000
浙江省杭州市西湖区黄姑山路工专路交叉路口
<
/Description
>
<
Description
term
=
"
联系地址
"
>
曲丽丽
18100000000
浙江省杭州市西湖区黄姑山路工专路交叉路口
<
/Description
>
<
/DescriptionList
>
<
/DescriptionList
>
<
DescriptionList
style
=
{{
marginBottom
:
24
}}
title
=
"
信息组
"
>
<
DescriptionList
style
=
{{
marginBottom
:
24
}}
title
=
"
信息组
"
>
<
Description
term
=
"
某某数据
"
>
725
<
/Description
>
<
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