You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
565 B
15 lines
565 B
(function(global,factory){
|
|
typeof define == 'function' && define(['better-scroll'],factory)
|
|
})(this,function(BScroll){
|
|
return {
|
|
install:function(Vue){
|
|
Vue.prototype.$scrollLoad = function(dom,loadFn){
|
|
var scroll = new BScroll(dom,{click:true,probeType:1,cancelable:false,deceleration:0.005,snapThreshold:0.01});
|
|
scroll.on('pullingUp',function(){
|
|
loadFn && loadFn(scroll.finishPullUp,scroll.refresh);
|
|
});
|
|
return scroll;
|
|
};
|
|
}
|
|
}
|
|
}); |