import { StarTwoTone, LikeOutlined, MessageFilled } from '@ant-design/icons'; import { List, Tag } from 'antd'; import React from 'react'; import { connect } from 'dva'; import ArticleListContent from '../ArticleListContent'; import { ListItemDataType } from '../../data.d'; import { ModalState } from '../../model'; import styles from './index.less'; const Articles: React.FC> = props => { const { list } = props; const IconText: React.FC<{ icon: React.ReactNode; text: React.ReactNode; }> = ({ icon, text }) => ( {icon} {text} ); return ( size="large" className={styles.articleList} rowKey="id" itemLayout="vertical" dataSource={list} renderItem={item => ( } text={item.star} />, } text={item.like} />, } text={item.message} />, ]} > {item.title} } description={ Ant Design 设计语言 蚂蚁金服 } /> )} /> ); }; export default connect(({ BLOCK_NAME_CAMEL_CASE }: { BLOCK_NAME_CAMEL_CASE: ModalState }) => ({ list: BLOCK_NAME_CAMEL_CASE.list, }))(Articles);