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

Nav支持下多导航栏?和Sidebar类似的。 #4535

Open
4 tasks done
liub1934 opened this issue Feb 2, 2025 · 1 comment
Open
4 tasks done

Nav支持下多导航栏?和Sidebar类似的。 #4535

liub1934 opened this issue Feb 2, 2025 · 1 comment

Comments

@liub1934
Copy link

liub1934 commented Feb 2, 2025

Is your feature request related to a problem? Please describe.

侧边栏配置支持多侧边栏配置,希望导航栏也支持下

export default {
  themeConfig: {
    sidebar: {
      // 当用户位于 `guide` 目录时,会显示此侧边栏
      '/guide/': [
        {
          text: 'Guide',
          items: [
            { text: 'Index', link: '/guide/' },
            { text: 'One', link: '/guide/one' },
            { text: 'Two', link: '/guide/two' }
          ]
        }
      ],

      // 当用户位于 `config` 目录时,会显示此侧边栏
      '/config/': [
        {
          text: 'Config',
          items: [
            { text: 'Index', link: '/config/' },
            { text: 'Three', link: '/config/three' },
            { text: 'Four', link: '/config/four' }
          ]
        }
      ]
    }
  }
}

Describe the solution you'd like

和sidebar类似实现方式

Describe alternatives you've considered

No response

Additional context

No response

Validations

@liub1934
Copy link
Author

liub1934 commented Feb 2, 2025

有相同的诉求 #1008

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

1 participant