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 vuescroll options of most outside element.
let ops = {
bar: {
background: '#3eaf7c'
},
rail: {
gutterOfEnds: '60px'
},
scrollPanel: {
scrollingX: false
}
};
registry({ Vue, router, store }, ops);
};
- That's all, you can use vuescroll in your own App!