Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如这里的示例所示,您可以通过单击 V 形展开 NavLinkGroup。我想要相同的行为,但是当我单击标题时。我知道标题可以是按钮或链接,具体取决于提供的道具,但我假设如果您不提供标题的 url,它应该默认扩展组。
那么我该如何实现呢?