We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
你的是这样的 finishRefresh=(params)=>{ this._refreshc && this._refreshc.finishRefresh(params); this.lottieView.reset(); } 然而在运行这个函数的时候就执行this.lottieView.reset();的话 在动画显示上会不合理(因为数据获取往往都是很快的 也就是说this.lottieView.play()和this.lottieView.reset();的执行间隔 取决于你数据获取的间隔) 而且在header弹回顶部时是没动画的 这样的结果往往没有显示lottie 所以 以下的方式反而适合数据获取很快的情况 finishRefresh=()=>{ this._refreshc && this._refreshc.finishRefresh(()=>{ this.lottieView.reset(); }); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
你的是这样的
finishRefresh=(params)=>{
this._refreshc && this._refreshc.finishRefresh(params);
this.lottieView.reset();
}
然而在运行这个函数的时候就执行this.lottieView.reset();的话 在动画显示上会不合理(因为数据获取往往都是很快的 也就是说this.lottieView.play()和this.lottieView.reset();的执行间隔 取决于你数据获取的间隔) 而且在header弹回顶部时是没动画的 这样的结果往往没有显示lottie
所以 以下的方式反而适合数据获取很快的情况
finishRefresh=()=>{
this._refreshc && this._refreshc.finishRefresh(()=>{
this.lottieView.reset();
});
}
The text was updated successfully, but these errors were encountered: