Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
钟摆人-Puppet゜
ant-design-pro
提交
d52f1718
A
ant-design-pro
项目概览
钟摆人-Puppet゜
/
ant-design-pro
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
ant-design-pro
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
d52f1718
编写于
6月 06, 2019
作者:
陈
陈帅
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: rm unused code
上级
50c0841c
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
2 addition
and
97 deletion
+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
未找到文件。
src/components/GlobalFooter/index.less
已删除
100644 → 0
浏览文件 @
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
已删除
100644 → 0
浏览文件 @
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
浏览文件 @
d52f1718
import
SelectLang
from
'
@/components/SelectLang
'
;
import
GlobalFooter
from
'
@/components/GlobalFooter
'
;
import
{
ConnectProps
,
ConnectState
}
from
'
@/models/connect
'
;
import
{
connect
}
from
'
dva
'
;
import
{
Icon
}
from
'
antd
'
;
import
React
from
'
react
'
;
import
DocumentTitle
from
'
react-document-title
'
;
import
{
formatMessage
}
from
'
umi-plugin-react/locale
'
;
import
Link
from
'
umi/link
'
;
import
logo
from
'
../assets/logo.svg
'
;
import
styles
from
'
./UserLayout.less
'
;
import
{
MenuDataItem
,
getPageTitle
,
getMenuData
}
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 蚂蚁金服体验技术部出品
</>
);
import
{
MenuDataItem
,
getPageTitle
,
getMenuData
,
DefaultFooter
}
from
'
@ant-design/pro-layout
'
;
export
interface
UserLayoutProps
extends
ConnectProps
{
breadcrumbNameMap
:
{
[
path
:
string
]:
MenuDataItem
};
...
...
@@ -79,7 +53,7 @@ const UserLayout: React.SFC<UserLayoutProps> = props => {
</
div
>
{
children
}
</
div
>
<
GlobalFooter
links
=
{
links
}
copyright
=
{
copyright
}
/>
<
DefaultFooter
/>
</
div
>
</
DocumentTitle
>
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录