// 视频上的是旧版的新版要这样写,写在对象内。
this.
slider =
new
BScroll(
this.
$refs.
slider, {
scrollX:
true,
scrollY:
false,
momentum:
false,
snap: {
loop:
this.
loop,
threshold:
0.3,
speed:
400
},
click:
true
})