Skip to content

Commit 19b195f

Browse files
苏子刚苏子刚
authored andcommitted
u
1 parent 4aabae0 commit 19b195f

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

src/packages/scroller/vertical-scroll.vue

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,20 +56,18 @@ export default {
5656
type: Number,
5757
default: 100
5858
},
59-
propstime: {
59+
propsTime: {
6060
type:Number,
61-
default:3000
61+
default: 3000
6262
}
6363
},
6464
watch: {
6565
'isLoading': function(status) {
6666
if (!status && this.realMove === 0) {
67-
clearTimeout(this.outTimer);
68-
this.outTimer = setTimeout(()=>{
69-
clearTimeout(this.timer);
70-
this.setTransform(this.realMove, 'end', 0);
71-
},this.propstime)
72-
67+
clearTimeout(this.timer);
68+
this.timer = setTimeout(() => {
69+
this.setTransform(this.realMove, 'end', 0);
70+
}, this.propsTime);
7371
}
7472
},
7573
'isUnMore': function() {
@@ -91,8 +89,7 @@ export default {
9189
realMove: 0,
9290
isShowLoadMore: false,
9391
listMinHeightStyle: 'auto',
94-
isFirstPull: true,
95-
outTimer:null
92+
isFirstPull: true
9693
}
9794
},
9895

0 commit comments

Comments
 (0)