-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
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
feat(scroll-duration): add animate effect to auto scroll #11
Conversation
feat: Terminal colors (FEMessage#10)
Deploy preview for log-viewer ready! Built with commit cd144d7 |
在 styleguide 上可能会丢失了 docs/get.js 需要处理一下。把请求写到 md 中? |
@@ -139,6 +147,42 @@ export default { | |||
return { | |||
props | |||
} | |||
}, | |||
setScrollTop(line) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好像函数名可以修改为: scrollTo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
好像算法需要修正:demo里,使用手机秒表计算,实际滚动时间粗略估计1.6秒。。。
Why
现状:自动滚动到底部是一瞬间到底,没有过渡过程。需要添加一个滚动过渡动画
How
通过每一帧设置scrollTop到特定值来达到滚动动画效果
Attention
目前存在性能问题,duration 实际时间比设置时间更长