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
d52f1718
Commit
d52f1718
authored
Jun 06, 2019
by
ιεΈ
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: rm unused code
parent
50c0841c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
97 deletions
+2
-97
src/components/GlobalFooter/index.less
src/components/GlobalFooter/index.less
+0
-29
src/components/GlobalFooter/index.tsx
src/components/GlobalFooter/index.tsx
+0
-40
src/layouts/UserLayout.tsx
src/layouts/UserLayout.tsx
+2
-28
No files found.
src/components/GlobalFooter/index.less
deleted
100644 β 0
View file @
50c0841c
@import '~antd/es/style/themes/default.less';
.globalFooter {
margin: 48px 0 24px 0;
padding: 0 16px;
text-align: center;
.links {
margin-bottom: 8px;
a {
color: @text-color-secondary;
transition: all 0.3s;
&:not(:last-child) {
margin-right: 40px;
}
&:hover {
color: @text-color;
}
}
}
.copyright {
color: @text-color-secondary;
font-size: @font-size-base;
}
}
src/components/GlobalFooter/index.tsx
deleted
100644 β 0
View file @
50c0841c
import
React
from
'
react
'
;
import
classNames
from
'
classnames
'
;
import
styles
from
'
./index.less
'
;
export
interface
GlobalFooterProps
{
links
?:
Array
<
{
key
?:
string
;
title
:
React
.
ReactNode
;
href
:
string
;
blankTarget
?:
boolean
;
}
>
;
copyright
?:
React
.
ReactNode
;
style
?:
React
.
CSSProperties
;
className
?:
string
;
}
const
GlobalFooter
:
React
.
SFC
<
GlobalFooterProps
>
=
({
className
,
links
,
copyright
})
=>
{
const
clsString
=
classNames
(
styles
.
globalFooter
,
className
);
return
(
<
footer
className
=
{
clsString
}
>
{
links
&&
(
<
div
className
=
{
styles
.
links
}
>
{
links
.
map
(
link
=>
(
<
a
key
=
{
link
.
key
}
title
=
{
link
.
key
}
target
=
{
link
.
blankTarget
?
'
_blank
'
:
'
_self
'
}
href
=
{
link
.
href
}
>
{
link
.
title
}
</
a
>
))
}
</
div
>
)
}
{
copyright
&&
<
div
className
=
{
styles
.
copyright
}
>
{
copyright
}
</
div
>
}
</
footer
>
);
};
export
default
GlobalFooter
;
src/layouts/UserLayout.tsx
View file @
d52f1718
import
SelectLang
from
'
@/components/SelectLang
'
;
import
SelectLang
from
'
@/components/SelectLang
'
;
import
GlobalFooter
from
'
@/components/GlobalFooter
'
;
import
{
ConnectProps
,
ConnectState
}
from
'
@/models/connect
'
;
import
{
ConnectProps
,
ConnectState
}
from
'
@/models/connect
'
;
import
{
connect
}
from
'
dva
'
;
import
{
connect
}
from
'
dva
'
;
import
{
Icon
}
from
'
antd
'
;
import
React
from
'
react
'
;
import
React
from
'
react
'
;
import
DocumentTitle
from
'
react-document-title
'
;
import
DocumentTitle
from
'
react-document-title
'
;
import
{
formatMessage
}
from
'
umi-plugin-react/locale
'
;
import
{
formatMessage
}
from
'
umi-plugin-react/locale
'
;
import
Link
from
'
umi/link
'
;
import
Link
from
'
umi/link
'
;
import
logo
from
'
../assets/logo.svg
'
;
import
logo
from
'
../assets/logo.svg
'
;
import
styles
from
'
./UserLayout.less
'
;
import
styles
from
'
./UserLayout.less
'
;
import
{
MenuDataItem
,
getPageTitle
,
getMenuData
}
from
'
@ant-design/pro-layout
'
;
import
{
MenuDataItem
,
getPageTitle
,
getMenuData
,
DefaultFooter
}
from
'
@ant-design/pro-layout
'
;
const
links
=
[
{
key
:
'
help
'
,
title
:
formatMessage
({
id
:
'
layout.user.link.help
'
}),
href
:
''
,
},
{
key
:
'
privacy
'
,
title
:
formatMessage
({
id
:
'
layout.user.link.privacy
'
}),
href
:
''
,
},
{
key
:
'
terms
'
,
title
:
formatMessage
({
id
:
'
layout.user.link.terms
'
}),
href
:
''
,
},
];
const
copyright
=
(
<>
Copyright
<
Icon
type
=
"copyright"
/>
2019 θθιζδ½ιͺζζ―ι¨εΊε
</>
);
export
interface
UserLayoutProps
extends
ConnectProps
{
export
interface
UserLayoutProps
extends
ConnectProps
{
breadcrumbNameMap
:
{
[
path
:
string
]:
MenuDataItem
};
breadcrumbNameMap
:
{
[
path
:
string
]:
MenuDataItem
};
...
@@ -79,7 +53,7 @@ const UserLayout: React.SFC<UserLayoutProps> = props => {
...
@@ -79,7 +53,7 @@ const UserLayout: React.SFC<UserLayoutProps> = props => {
</
div
>
</
div
>
{
children
}
{
children
}
</
div
>
</
div
>
<
GlobalFooter
links
=
{
links
}
copyright
=
{
copyright
}
/>
<
DefaultFooter
/>
</
div
>
</
div
>
</
DocumentTitle
>
</
DocumentTitle
>
);
);
...
...
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