Skip to content

Commit dcffe6e

Browse files
李钿李钿
李钿
authored and
李钿
committed
版本升价1.0.7
1 parent 7c1e842 commit dcffe6e

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

README-cn.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ export class App extends Component{
9292
if(STATS.loading === this.state.action){
9393
return false
9494
}
95+
//无更多内容则不执行后面逻辑
96+
if(!this.state.hasMore){
97+
return;
98+
}
9599

96100
setTimeout(()=>{
97101
if(this.state.index === 0){

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ export class App extends Component{
8787
if(STATS.loading === this.state.action){
8888
return false
8989
}
90+
//无更多内容则不执行后面逻辑
91+
if(!this.state.hasMore){
92+
return;
93+
}
9094

9195
setTimeout(()=>{
9296
if(this.state.index === 0){

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-pullload",
3-
"version": "1.0.6",
3+
"version": "1.0.7",
44
"description": "React compopnent pull down refresh and pull up load more",
55
"main": "./lib/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)