[Improvement] PullRefresh: support trigger loading animation (#684)

This commit is contained in:
neverland
2018-03-13 16:36:56 +08:00
committed by GitHub
parent c45cbb632f
commit 4006a86cec
3 changed files with 10 additions and 6 deletions

View File

@@ -76,10 +76,8 @@ export default create({
watch: {
value(val) {
if (!val) {
this.duration = this.animationDuration;
this.getStatus(0);
}
this.duration = this.animationDuration;
this.getStatus(val ? this.headHeight : 0, val);
}
},