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(state => ({ list: state.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 }) => (
{value}
{bordered && }{owner}
{moment(createdAt).format('YYYY-MM-DD hh:mm')}