import React, { PureComponent } from 'react'; import moment from 'moment'; import { connect } from 'dva'; import { List, Card, Row, Col, Radio, Input, Progress, Button, Icon, Dropdown, Menu, Avatar, } from 'antd'; import PageHeaderLayout from '../../layouts/PageHeaderLayout'; import styles from './BasicList.less'; const RadioButton = Radio.Button; const RadioGroup = Radio.Group; const { Search } = Input; @connect(({ list, loading }) => ({ list, loading: loading.models.list, })) export default class BasicList extends PureComponent { componentDidMount() { this.props.dispatch({ type: 'list/fetch', payload: { count: 5, }, }); } render() { const { list: { list }, loading } = this.props; const Info = ({ title, value, bordered }) => (
{title}

{value}

{bordered && }
); const extraContent = (
全部 进行中 等待中 ({})} />
); const paginationProps = { showSizeChanger: true, showQuickJumper: true, pageSize: 5, total: 50, }; const ListContent = ({ data: { owner, createdAt, percent, status } }) => (
Owner

{owner}

开始时间

{moment(createdAt).format('YYYY-MM-DD HH:mm')}

); const menu = ( 编辑 删除 ); const MoreBtn = () => ( 更多 ); return (
( 编辑, ]}> } title={{item.title}} description={item.subDescription} /> )} />
); } }