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(({ list, loading }) => ({ list, loading: loading.models.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 = (