scrollList.js
512 Bytes
Component({
properties: {
hasMore: {
type: Boolean,
value: true,
},
isLoading: {
type: Boolean,
value: false,
},
listLength: {
type: Number,
value: 0,
},
},
data: {},
methods: {
onScrollToLower(e) {
if (this.data.hasMore && !this.data.isLoading) {
this.triggerEvent("onScrollToLower", e);
console.log("滚动到底部了sssss", e);
}
},
},
lifetimes: {
created() {},
attached() {},
ready() {},
moved() {},
detached() {},
},
observers: {},
});