pskordilakis / vuepress-plugin-tabs

Vuepress plugin - markdown custom container to display content in tabs
MIT License
57 stars 2 forks source link

Add `tabsAttributes` to plugin options #12

Closed starkwang closed 4 years ago

starkwang commented 4 years ago

This change is to add tabsAttributes to global plugin option. It would be useful when we want to config the default tabs attributes globally.

For example:

// .vuepress/config.js
module.exports = {
    plugins: [
        [
            'vuepress-plugin-tabs',
            {
                tabsAttributes: {
                    options: {
                        useUrlFragment: false
                    }
                }
            }
        ]
    ]
}

Then all the <tabs> components will have :options="{useUrlFragment: false}" attribute by default.