vuepress-theme-vuescroll
v0.0.47
Published
Allow you to customize scrollbars in Vuepress
Readme
Introduction
vuepress-theme-vuescroll is a
vuepressthemepluginthat allow you customize scrollbars byvuescrollin Vuepress.
Who use this plugin ?
More... Welcome to tell me !
Usage
- Installation
npm i vuepress-theme-vuescroll -S- Config.js
To use a theme from an npm dependency, provide a theme option in .vuepress/config.js:
module.exports = {
theme: 'vuescroll'
};- Create an
enhanceApp.jsin your.vuepressfolder and write such code:
// enhanceApp.js
import { registry } from 'vuepress-theme-vuescroll';
export default ({ Vue, router, store }) => {
// Your options of most outside vuescroll.
let ops = {
bar: {
background: '#3eaf7c'
},
rail: {
gutterOfEnds: '60px'
},
scrollPanel: {
scrollingX: false
}
};
// THe version you would like to use.
// default: vuescroll(mix)
// options: slide, native
const mode = 'native';
// Tell vuescroll your option.
registry(ops, mode);
};- That's all, you can use vuescroll in your own App!
