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 · 4 comments
Open
4 tasks done

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

liub1934 opened this issue Feb 2, 2025 · 4 comments

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

@zhou881117
Copy link

导航栏能不能固定啊,整个主题最重要的就是导航,建站的话,感觉导航更重要

@liub1934
Copy link
Author

导航栏能不能固定啊,整个主题最重要的就是导航,建站的话,感觉导航更重要

可能每个人诉求不太一样吧,我复制了原主体的导航栏复写了下实现了,我这边实际的需求是每个模块都有不同的菜单对应

@zhou881117
Copy link

导航栏能不能固定啊,整个主题最重要的就是导航,建站的话,感觉导航更重要

可能每个人诉求不太一样吧,我复制了原主体的导航栏复写了下实现了,我这边实际的需求是每个模块都有不同的菜单对应

是的,建站还得是bootstrap

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