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
63fcc3d9
Commit
63fcc3d9
authored
May 14, 2018
by
jim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ugly fix #1409
parent
e15226a3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
.gitignore
.gitignore
+1
-0
src/components/PageHeader/index.js
src/components/PageHeader/index.js
+5
-3
src/routes/Forms/StepForm/index.js
src/routes/Forms/StepForm/index.js
+2
-1
No files found.
.gitignore
View file @
63fcc3d9
...
...
@@ -21,3 +21,4 @@ yarn.lock
package-lock.json
*bak
jsconfig.json
.vscode/settings.json
src/components/PageHeader/index.js
View file @
63fcc3d9
...
...
@@ -34,10 +34,12 @@ export default class PageHeader extends PureComponent {
componentDidMount
()
{
this
.
getBreadcrumbDom
();
}
componentWillReceiveProps
()
{
this
.
getBreadcrumbDom
();
}
componentDidUpdate
(
preProps
)
{
if
(
preProps
.
tabActiveKey
!==
this
.
props
.
tabActiveKey
)
{
this
.
getBreadcrumbDom
();
}
}
onChange
=
key
=>
{
if
(
this
.
props
.
onTabChange
)
{
this
.
props
.
onTabChange
(
key
);
...
...
src/routes/Forms/StepForm/index.js
View file @
63fcc3d9
...
...
@@ -25,10 +25,11 @@ export default class StepForm extends PureComponent {
}
}
render
()
{
const
{
match
,
routerData
}
=
this
.
props
;
const
{
match
,
routerData
,
location
}
=
this
.
props
;
return
(
<
PageHeaderLayout
title
=
"
分步表单
"
tabActiveKey
=
{
location
.
pathname
}
content
=
"
将一个冗长或用户不熟悉的表单任务分成多个步骤,指导用户完成。
"
>
<
Card
bordered
=
{
false
}
>
...
...
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