amirkian007 / vue-awesome-sidebar

A Modern and Fast sidebar Menu component for vue(3x) capable with vue-router.
https://amirkian007.github.io/vasmenu/
MIT License
52 stars 14 forks source link

Providing an options that indicates whether open a non-leaf node. #3

Closed zsh2401 closed 1 year ago

zsh2401 commented 1 year ago

Just like what the title described, I suggest that there should be an option that enables developer to prevent vas from opening path when user clicked a menu item, which has children, with an aim to just expand it.

amirkian007 commented 1 year ago

@zsh2401 you mean like adding a disable option to menu item ? which locks the menu item and adds disable styles ?

zsh2401 commented 1 year ago

When I expanding a menu that has children, I wish that it will not navigate to some one of child of that menu.

zsh2401 commented 1 year ago

The solution is not passing herf to non-leaf node.