import React, { PureComponent } from 'react'; import { connect } from 'dva'; import { Card, Avatar, Button, Icon, List } from 'antd'; import PageHeaderLayout from '../../layouts/PageHeaderLayout'; import styles from './CardList.less'; @connect(state => ({ list: state.list, })) export default class CardList extends PureComponent { componentDidMount() { this.props.dispatch({ type: 'list/fetch', payload: { count: 8, }, }); } render() { const { list: { list, loading } } = this.props; const content = (
); const extraContent = ({item.description}
)} />