-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
activeMatch只生效于展开菜单内 #4163
Comments
此问题仍然未得到解决?我制作了一个示例网站来帮助理解此问题。 Is this issue still unresolved? I made a sample website to help understand this problem. |
nav: [
{ text: 'Home', link: '/' },
{
text: 'Examples',
activeMatch: '^/test',
items: [
{
text: 'test',
activeMatch: '^/test',
link: '/test/',
}
]
}
], |
CleanShot.2024-10-31.at.15.16.35.mp4 |
感谢你的帮助,但是我注意到无论在Examples的activematch输入任何内容,test被高亮时,Examples总是会高亮。我已经将代码同步到示例网站。 Thank you for your help, but I've noticed that whenever test is highlighted, Examples are always highlighted no matter what you type in the Examples' activematch. I have synced the code to the sample site.
|
因为原本的问题已经解决,我将关闭此issue并提交新问题。 Since the original issue has been resolved, I will close this issue and submit a new one. |
Describe the bug
效果图如下
侧边栏选中第一个条目时,activeMatch正常显示于展开菜单以及导航栏
选中第二个及以后的条目时,activeMatch正常显示于展开菜单,但是不显示于导航栏
Reproduction
个人测试
经过测试,此现象与ASCII字符无关,使用
/test/index.md
和/test/test.md
也会出现此现象源代码
nav
sidebar
Expected behavior
侧边栏选中任何条目时,activeMatch正常显示于展开菜单以及导航栏
System Info
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: