import React, { PureComponent } from 'react'; import { List, Icon, Avatar, Tag } from 'antd'; import moment from 'moment'; import { connect } from 'dva'; import stylesArticles from '../../List/Articles.less'; import styles from './Articles.less'; @connect(({ list }) => ({ list, })) class Center extends PureComponent { render() { const { list: { list }, } = this.props; const IconText = ({ type, text }) => ( {text} ); const ListContent = ({ data: { content, updatedAt, avatar, owner, href } }) => (
{content}
{owner} 发布在 {href} {moment(updatedAt).format('YYYY-MM-DD HH:mm')}
); return ( ( , , , ]} > {item.title} } description={ Ant Design 设计语言 蚂蚁金服 } /> )} /> ); } } export default Center;