0.0.2 • Published 4 years ago

vue-toc v0.0.2

Weekly downloads
12,036
License
MIT
Repository
github
Last release
4 years ago

vue-toc Build Status

Vue.js component that automatically generates a table of contents.

Install

$ npm install vue-toc

Register the component

import Vue from 'vue'
import VueToc from 'vue-toc'

Vue.component('vue-toc', VueToc)

Options

keydescriptiondefaultval
targetSpecify the location of the headingnoneString
h2ClassSpecify css class in table of contents(h2)toc-2String
h3ClassSpecify css class in table of contents(h3)toc-3String

※Please be sure to attach an ID to the h2 and h3 tags for in-page links