ibufu / vue2-scrollspy

Scrollspy for Vue2
https://ibufu.github.io/vue2-scrollspy/
MIT License
135 stars 32 forks source link

scrollspy-menu component #9

Open Toilal opened 6 years ago

Toilal commented 6 years ago

You can see scrollspy in action with a multiple level menu in the component docs I just released : http://vue-tree.pragmasphere.com/#/docs.

You can have a look to docs source here, it showcase multiple directives with the data-scroll-spy-id trick.

I think there should be in this project a component that would automatically generate a hierarchical menu based on title tags of the content (h1/h2/h3/h4/h5/h6). It would really help maintaining the menu and the content synchronized ...