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

[Bug Report] 编辑&预览模式下,a标签有问题 #750

Closed
3 tasks
q2316367743 opened this issue Apr 21, 2024 · 4 comments
Closed
3 tasks

[Bug Report] 编辑&预览模式下,a标签有问题 #750

q2316367743 opened this issue Apr 21, 2024 · 4 comments
Labels
🐞bug Something isn't working

Comments

@q2316367743
Copy link

Prerequisites

Describe the Bug

onClickPreview这个事件之间听到了纯预览模式的页面,但是编辑&预览中,预览没有收到事件。

主要的目的是,我使用vue开发,toc生成的目录直接使用hash,会导致路由变化

Reproduction Steps

No response

System Information

No response

Contributing

No, I don't plan to at this time.

@q2316367743 q2316367743 added the 🐞bug Something isn't working label Apr 21, 2024
@RSS1102 RSS1102 mentioned this issue Apr 22, 2024
3 tasks
@RSS1102
Copy link
Collaborator

RSS1102 commented Apr 22, 2024

能提供一个最小复现嘛?谢谢。

@q2316367743
Copy link
Author

能提供截图,其实就是有个配置,可以配置目录是使用hash定位还是使用事件,但是这个设置貌似只在纯预览的视图生效了

@sunsonliu
Copy link
Collaborator

toc生成的目录目前只能hash,倒是右侧滑目录是支持配置是否用hash的。
onClickPreview确实在双栏模式下失效(当时是设计如此)
我们看看怎么修复哈,大概会做成这样:

  • toc生成的目录也支持配置不用hash定位
  • 在双栏模式下也支持onClickPreview

@sunsonliu
Copy link
Collaborator

toc生成的目录目前只能hash,倒是右侧滑目录是支持配置是否用hash的。 onClickPreview确实在双栏模式下失效(当时是设计如此) 我们看看怎么修复哈,大概会做成这样:

  • toc生成的目录也支持配置不用hash定位
  • 在双栏模式下也支持onClickPreview

0cff250
已实现上述两个特性

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants