import React, { Component } from 'react'; import { List, Icon, Tag } from 'antd'; import { connect } from 'dva'; import ArticleListContent from '../ArticleListContent'; import styles from './index.less'; import { ModalState } from '../../model'; import { ListItemDataType } from '../../data'; @connect(({ BLOCK_NAME_CAMEL_CASE }: { BLOCK_NAME_CAMEL_CASE: ModalState }) => ({ list: BLOCK_NAME_CAMEL_CASE.list, })) class Articles extends Component> { render() { const { list } = this.props; const IconText: React.SFC<{ type: string; text: React.ReactNode; }> = ({ type, text }) => ( {text} ); return ( size="large" className={styles.articleList} rowKey="id" itemLayout="vertical" dataSource={list} renderItem={item => ( , , , ]} > {item.title} } description={ Ant Design 设计语言 蚂蚁金服 } /> )} /> ); } } export default Articles;