import './Footer.scss'
import React, { Component } from 'react'
import PropTypes from 'prop-types'
import { Icon } from 'antd'
class Footer extends Component {
constructor(props) {
super(props)
}
static propTypes = {
footList: PropTypes.array
}
render () {
return (
{ this.props.footList.map(function(item,i){
return
}) }
Copyright © 2017
YMFF出品 @ YMFF
)
}
}
class FootItem extends Component {
constructor(props) {
super(props);
}
static propTypes = {
linkList: PropTypes.array,
title: PropTypes.string,
iconType: PropTypes.string
}
render () {
return (
{ this.props.title }
{ this.props.linkList.map(function(item,i){
return (
);
}) }
);
}
}
Footer.defaultProps = {
footList: [
{
title: 'GitHub',
iconType: 'github',
linkList: [
{
itemTitle: '源码仓库',
itemLink: 'http://www.baidu.com'
},
{
itemTitle: '源码仓库1',
itemLink: 'http://www.baidu.com'
},{
itemTitle: '源码仓库2',
itemLink: 'www.baidu.com'
}
]
},
{
title: '相关站点',
iconType: 'link',
linkList: [
{
itemTitle: '源码仓库',
itemLink: 'www.baidu.com'
},
{
itemTitle: '源码仓库1',
itemLink: 'www.baidu.com'
},{
itemTitle: '源码仓库2',
itemLink: 'www.baidu.com'
}
]
},
{
title: '社区',
iconType: 'customer-service',
linkList: [
{
itemTitle: '源码仓库',
itemLink: 'www.baidu.com'
},
{
itemTitle: '源码仓库1',
itemLink: 'www.baidu.com'
},{
itemTitle: '源码仓库2',
itemLink: 'www.baidu.com'
}
]
}
]
}
export default Footer