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
6670f9f8
Commit
6670f9f8
authored
Aug 29, 2017
by
afc163
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix footer
parent
c5d6923d
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
18 deletions
+24
-18
src/layouts/BasicLayout.js
src/layouts/BasicLayout.js
+15
-15
src/layouts/PageHeaderLayout.js
src/layouts/PageHeaderLayout.js
+3
-3
src/routes/Forms/AdvancedForm.js
src/routes/Forms/AdvancedForm.js
+1
-0
src/routes/Forms/style.less
src/routes/Forms/style.less
+5
-0
No files found.
src/layouts/BasicLayout.js
View file @
6670f9f8
...
...
@@ -229,9 +229,8 @@ class BasicLayout extends React.PureComponent {
<
/Dropdown
>
<
/div
>
<
/Header
>
<
Content
style
=
{{
margin
:
'
24px 24px 0
24px
'
,
height
:
'
100%
'
}}
>
<
Content
style
=
{{
margin
:
'
24px 24px 0
'
,
height
:
'
100%
'
}}
>
{
children
}
<
/Content
>
<
GlobalFooter
links
=
{[{
title
:
'
帮助
'
,
...
...
@@ -246,6 +245,7 @@ class BasicLayout extends React.PureComponent {
}]}
copyright
=
{
<
div
>
Copyright
<
Icon
type
=
"
copyright
"
/>
2017
蚂蚁金服体验技术部出品
<
/div>
}
/>
<
/Content
>
<
/Layout
>
<
/Layout
>
<
/DocumentTitle
>
...
...
src/layouts/PageHeaderLayout.js
View file @
6670f9f8
import
React
from
'
react
'
;
import
PageHeader
from
'
../components/PageHeader
'
;
export
default
({
children
,
...
restProps
})
=>
(
<
div
style
=
{{
margin
:
-
24
}
}
>
export
default
({
children
,
wrapperClassName
,
...
restProps
})
=>
(
<
div
style
=
{{
margin
:
'
-24px -24px 0
'
}}
className
=
{
wrapperClassName
}
>
<
PageHeader
{...
restProps
}
/
>
{
children
?
<
div
style
=
{{
margin
:
24
}}
>
{
children
}
<
/div> : null
}
{
children
?
<
div
style
=
{{
margin
:
'
24px 24px 0
'
}}
>
{
children
}
<
/div> : null
}
<
/div
>
);
src/routes/Forms/AdvancedForm.js
View file @
6670f9f8
...
...
@@ -97,6 +97,7 @@ function AdvancedForm({ form, dispatch, submitting }) {
<
PageHeaderLayout
title
=
"
高级表单
"
content
=
"
在后台页面中,大批量的数据修改和提交是很常见的情况。
"
wrapperClassName
=
{
styles
.
withFooterToolbar
}
>
<
Card
title
=
"
仓库管理
"
className
=
{
styles
.
card
}
bordered
=
{
false
}
>
<
Form
layout
=
"
vertical
"
hideRequiredMark
>
...
...
src/routes/Forms/style.less
View file @
6670f9f8
...
...
@@ -79,3 +79,8 @@
padding-bottom: 12.5px !important;
}
}
// custom footer for fixed footer toolbar
.withFooterToolbar + div {
padding-bottom: 64px;
}
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