Add max level option
This commit is contained in:
parent
e789fb2b18
commit
eba21726d7
11 changed files with 201 additions and 17 deletions
|
|
@ -20,6 +20,8 @@ function scrollActiveSidebar () {
|
|||
|
||||
if (bcr.top < 10 && bcr.bottom > 10) {
|
||||
const li = nav[node.id]
|
||||
|
||||
if (!li) return
|
||||
if (li === active) return
|
||||
if (active) active.setAttribute('class', '')
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue