File tree 1 file changed +5
-5
lines changed
src/packages/__VUE/infiniteloading
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,10 @@ export default create({
50
50
type: Number ,
51
51
default: 200
52
52
},
53
+ upperThreshold: {
54
+ type: Number ,
55
+ default: 40
56
+ },
53
57
pullIcon: {
54
58
type: String ,
55
59
default: ' https://img10.360buyimg.com/imagetools/jfs/t1/169863/6/4565/6306/60125948E7e92774e/40b3a0cf42852bcb.png'
@@ -171,11 +175,6 @@ export default create({
171
175
if (state .scrollTop == 0 && ! state .isTouching && props .isOpenRefresh ) {
172
176
state .y = event .touches [0 ].pageY ;
173
177
state .isTouching = true ;
174
- getParentElement (' refreshTop' )
175
- .boundingClientRect ((rect ) => {
176
- state .refreshMaxH = Math .floor (rect .height * 1 + 10 );
177
- })
178
- .exec ();
179
178
}
180
179
};
181
180
@@ -205,6 +204,7 @@ export default create({
205
204
};
206
205
207
206
onMounted (() => {
207
+ state .refreshMaxH = props .upperThreshold ;
208
208
setTimeout (() => {
209
209
getScrollHeight ();
210
210
}, 200 );
You can’t perform that action at this time.
0 commit comments