Closed ulivz closed 10 months ago
The top navbar of a complex website may be extremely complicated, this results in insufficient space for the top navbar, so we want to introduce an sidebar-embedded navbar, which can help us complete the "overall switching" ability in the Sidebar.
sidebar-embedded navbar
Introduce sidebarNav config:
sidebarNav
sidebarNav: [ { when: ["/guide/"], items: [ { text: "Guide", link: "/guide/getting-started.html" }, { text: "Migration", link: "/guide/migration.html" }, ], }, ],
Which will help us render:
Motivation
The top navbar of a complex website may be extremely complicated, this results in insufficient space for the top navbar, so we want to introduce an
sidebar-embedded navbar
, which can help us complete the "overall switching" ability in the Sidebar.Basic Example
Introduce
sidebarNav
config:Which will help us render: