this.refreshing = true;
setTimeout(() => {
this.lists = [1, 2, 3, 4, 5];
this.refreshing = false;
}, 2000);
},
onpullingdown(event) {
modal.toast({
message: “刚开始下拉…”,
duration: 1
});
}
}
};
由于weex进行了迭代,上面的可能跑不起来了!请看下面:
- 使用weex-ui实现项目可用列表
<refresh class=“loading” @refresh=“onrefresh” :display=“refreshing ? ‘show’ : ‘hide’”>
<loading class=“loading” @loading=“onloading” :display=“loadinging ? ‘show’ : ‘hide’”>