Skip to content

Commit f6f227f

Browse files
committed
fix options for better-scroll changes
1 parent a93b1ff commit f6f227f

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/components/index-list/index-list.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<cube-scroll
44
ref="indexList"
55
:listen-scroll="listenScroll"
6-
:probe-type="probeType"
6+
:options="options"
77
:data="data"
88
@scroll="scroll">
99
<div class="cube-index-list-content" ref="content">
@@ -72,11 +72,13 @@
7272
return {
7373
currentIndex: 0,
7474
scrollY: -1,
75-
diff: -1
75+
diff: -1,
76+
options: {
77+
probeType: 3
78+
}
7679
}
7780
},
7881
created() {
79-
this.probeType = 3
8082
this.listenScroll = true
8183
this.listHeight = []
8284
this.touch = {}

src/components/scroll/scroll.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
const EVENT_PULLING_UP = 'pulling-up'
6060
6161
const DEFAULT_OPTIONS = {
62+
observeDOM: true,
6263
click: true,
6364
probeType: 1,
6465
scrollbar: false,

0 commit comments

Comments
 (0)