diff --git a/src/routes/List/BasicList.js b/src/routes/List/BasicList.js deleted file mode 100644 index fbad8af2e194be16bc865c43d7741cdbcf57ad1a..0000000000000000000000000000000000000000 --- a/src/routes/List/BasicList.js +++ /dev/null @@ -1,159 +0,0 @@ -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; - -const ListContent = ({ data: { owner, createdAt, percent, status } }) => ( -
-
- Owner -

{owner}

-
-
- 开始时间 -

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

-
-
- -
-
-); - -@connect(({ list, loading }) => ({ - list, - loading: loading.models.list, -})) -export default class BasicList extends PureComponent { - componentDidMount() { - const { dispatch } = 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 menu = ( - - - 编辑 - - - 删除 - - - ); - - const MoreBtn = () => ( - - - 更多 - - - ); - - return ( - -
- - - - - - - - - - - - - - - - - ( - 编辑, ]}> - } - title={{item.title}} - description={item.subDescription} - /> - - - )} - /> - -
-
- ); - } -}