Skip to content

Commit

Permalink
版本升价1.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
李钿 authored and 李钿 committed Aug 15, 2017
1 parent 7c1e842 commit dcffe6e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README-cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ export class App extends Component{
if(STATS.loading === this.state.action){
return false
}
//无更多内容则不执行后面逻辑
if(!this.state.hasMore){
return;
}

setTimeout(()=>{
if(this.state.index === 0){
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ export class App extends Component{
if(STATS.loading === this.state.action){
return false
}
//无更多内容则不执行后面逻辑
if(!this.state.hasMore){
return;
}

setTimeout(()=>{
if(this.state.index === 0){
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-pullload",
"version": "1.0.6",
"version": "1.0.7",
"description": "React compopnent pull down refresh and pull up load more",
"main": "./lib/index.js",
"scripts": {
Expand Down

0 comments on commit dcffe6e

Please sign in to comment.