vuepress-theme-vuescroll
v0.0.47
Published
Allow you to customize scrollbars in Vuepress
Downloads
20
Readme
Introduction
vuepress-theme-vuescroll is a
vuepress
themeplugin
that allow you customize scrollbars byvuescroll
in 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.js
in your.vuepress
folder 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!