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

自定义目录显示级别 #441

Closed
lnbiuc opened this issue Jan 26, 2024 · 1 comment
Closed

自定义目录显示级别 #441

lnbiuc opened this issue Jan 26, 2024 · 1 comment

Comments

@lnbiuc
Copy link

lnbiuc commented Jan 26, 2024

A great idea

希望可以配置目录显示级别,比如:level=[1,2],只通过12级标题生成目录。现在有什么办法可以实现只显示12极目录吗

@imzbf
Copy link
Owner

imzbf commented Jan 27, 2024

抱歉,这个支持不了,不过你可以不使用内置的目录,通过onGetCatalog来保存目录,然后使用类似element-plus中的锚点组件来展示目录

@imzbf imzbf closed this as completed Jan 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants