-
-
Notifications
You must be signed in to change notification settings - Fork 47.5k
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
Anchor 锚点组件 #3832
Comments
把整个添加 scroll 事件提出来就行了吧,,,,scrollLink是这样搞的。。。可供参考。。。。http://react-component.github.io/scroll-anim/examples/linkAsynchronous.html |
有道理。。 |
Anchor 有个 affix 属性。 |
还有个建义,,,anchor 在点击时把 scroll 去掉,用点击触发,不要用滚动触发选中,这样感觉有延时,体验不好,,点击滚动完后再添加回scroll。。。。 @RaoHai |
- close ant-design#3832 - 点击后给样式就行了, 不要把动画删掉
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread. |
环境:antd 2.4.2
问题:
由于各种原因(动态加载,iframe,图片加载等)使得 Anchor 初始化定位不太准确
建议方案:
希望 Anchor 组件能够提供一个可配置的参数(属性),能够让使用者自己控制初始化时候的定位时机。
The text was updated successfully, but these errors were encountered: