Skip to content
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

关于点击目录定位的问题 #191

Closed
Msg-Lbo opened this issue Dec 2, 2022 · 3 comments
Closed

关于点击目录定位的问题 #191

Msg-Lbo opened this issue Dec 2, 2022 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@Msg-Lbo
Copy link

Msg-Lbo commented Dec 2, 2022

image
因为导航栏使用fixed固定后,点击右侧目录跳转会居窗口的最顶部,从而被顶部导航栏挡住。
请问这个有什么办法解决吗

@imzbf
Copy link
Owner

imzbf commented Dec 3, 2022

目前建议将内容滚动放到一个html节点中,只在这个中滚动,同时将scrollElement设置为这个html节点。

后面会给目录组件添加一个合并计算标题滚动距离的属性,这不会太久。

@imzbf imzbf self-assigned this Dec 3, 2022
@imzbf imzbf added the enhancement New feature or request label Dec 3, 2022
@imzbf
Copy link
Owner

imzbf commented Dec 9, 2022

已在2.6.0的目录组件中新增了scrollElementOffsetTop属性

@imzbf imzbf closed this as completed Dec 9, 2022
@wsheeny
Copy link

wsheeny commented Dec 17, 2022

这个好,不用自己修改代码了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants