diff --git a/.gitignore b/.gitignore index d30f40e..dbbcb2b 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,4 @@ npm-debug.log* yarn-debug.log* yarn-error.log* +.idea diff --git a/README.md b/README.md index eaa7344..db63ed6 100644 --- a/README.md +++ b/README.md @@ -32,9 +32,9 @@ react-cnode/ │ | | |—— db.js * localstorage操作 | | -   |   |__ index.js           * 别的工具函数 + | |__ index.js * 别的工具函数 + │ │ - │ │——constants/ * 一些常量(其实没怎么用) │ │ diff --git a/src/components/List/index.js b/src/components/List/index.js index 7712b61..7627327 100644 --- a/src/components/List/index.js +++ b/src/components/List/index.js @@ -1,16 +1,11 @@ import React from 'react' import { ListView, RefreshControl } from 'antd-mobile'; -import Loading from '../Loading'; import PropTypes from 'prop-types'; const MyBody = (props) => (
{props.children}
); -const Footer = () => ( - -); - class List extends React.Component { static propTypes = { disableRefresh: PropTypes.bool, @@ -118,7 +113,7 @@ class List extends React.Component { } render () { - const { loading, refreshing, disableRefresh, disableLoadMore, useBodyScroll, ListItem, data, height } = this.props; + const { refreshing, disableRefresh, disableLoadMore, useBodyScroll, ListItem, data, height } = this.props; const { dataSource } = this.state; if (useBodyScroll) { return ( @@ -129,7 +124,7 @@ class List extends React.Component { pageSize={10} useBodyScroll renderRow={(rowData, sIndex, rIndex) => } - renderFooter={() => loading ?