import React, { PureComponent } from 'react'; import { connect } from 'dva'; import { Card, Button, Icon, List } from 'antd'; import PageHeaderLayout from '../../layouts/PageHeaderLayout'; import Ellipsis from '../../components/Ellipsis'; 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 = (