From 13dc0de0f850e4746bc580b1f8c98e041c70cea1 Mon Sep 17 00:00:00 2001 From: sorrycc Date: Tue, 14 Aug 2018 12:29:37 +0800 Subject: [PATCH] Remove unused files --- src/routes/List/BasicList.js | 159 ----------------------------------- 1 file changed, 159 deletions(-) delete mode 100644 src/routes/List/BasicList.js diff --git a/src/routes/List/BasicList.js b/src/routes/List/BasicList.js deleted file mode 100644 index fbad8af2..00000000 --- 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} - /> - - - )} - /> - -
-
- ); - } -} -- GitLab