Vue-highlight setting method for routing navigation menu bar

亚连
Release: 2018-05-29 17:09:16
Original
1931 people have browsed it

Below I will share with you an article on how to set the highlight of the Vue-routing navigation menu bar. It has a good reference value and I hope it will be helpful to everyone.

As shown below:

By default, the routing navigation menu will automatically add router-link-exact-active to the current menu and router-link-active classes.

We can modify the class name of router-link-active through linkActiveClass.

Add the configuration item linkActiveClass: 'mui-active' in the routing rule configuration, through 'mui-active' from Define the control menu bar switching style

The above is what I compiled for everyone. I hope it will be helpful to everyone in the future.

Related articles:

Example of Ajax verification based on jQuery to verify whether the user name is available

Example of the enter trigger button event function implemented by jQuery

jQuery Cookie implements skin switching function

The above is the detailed content of Vue-highlight setting method for routing navigation menu bar. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn