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

TOC 功能新增 #15

Closed
zapzqc opened this issue Oct 24, 2020 · 2 comments
Closed

TOC 功能新增 #15

zapzqc opened this issue Oct 24, 2020 · 2 comments
Labels
feature:view Feature request relating to view components

Comments

@zapzqc
Copy link

zapzqc commented Oct 24, 2020

现在的toc三级以后的无法展开了...最好是能够看到所有层级,哪怕规定最多6级也可以。

还有就是能否加一个默认toc展开的选项,这样看起来会方便些。

@ppoffice ppoffice added the feature:view Feature request relating to view components label Oct 24, 2020
@ppoffice
Copy link
Owner

ppoffice commented Nov 1, 2020

@zapzqc 在你的ToC配置中添加如下行:

     -
         # Where should the widget be placed, left sidebar or right sidebar
         position: left
         type: toc
         # Whether to show the index of each heading
         index: true
+        # Whether to collapse sub-headings when they are out-of-view
+        collapsed: true # 设置为false时强制展开所有标题
+        # Maximum level of headings to show (1-6)
+        depth: 3 # 最多展示的标题级数(1-6)

@zapzqc
Copy link
Author

zapzqc commented Nov 1, 2020

@zapzqc 在你的ToC配置中添加如下行:

     -
         # Where should the widget be placed, left sidebar or right sidebar
         position: left
         type: toc
         # Whether to show the index of each heading
         index: true
+        # Whether to collapse sub-headings when they are out-of-view
+        collapsed: true # 设置为false时强制展开所有标题
+        # Maximum level of headings to show (1-6)
+        depth: 3 # 最多展示的标题级数(1-6)

第一时间更新,没问题了,感谢~~

@zapzqc zapzqc closed this as completed Nov 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature:view Feature request relating to view components
Projects
None yet
Development

No branches or pull requests

2 participants