0.1.0 • Published 4 years ago

vuepress-plugin-loading-overlay v0.1.0

Weekly downloads
9
License
MIT
Repository
-
Last release
4 years ago

vuepress-plugin-loading-overlay

Vuepress loading overlay plugin based on vue-loading-overlay

Overview

vuepress-plugin-loading-overlay

Installation

$ npm install --save-dev vuepress-plugin-loading-overlay

or

$ yarn add -D vuepress-plugin-loading-overlay

then add plugin to your vuepress config config.js

...
plugins: [
    ['vuepress-plugin-loading-overlay', {
        loader: 'spinner',
        timeout: 500,
    }],
]

Options

OptionTypeDefaultDescription
timeoutNumber250A number of millisecond that the loading indicator is displayed

You can pass the options of vue-loading-overlay as well.

OptionTypeDefaultDescription
activeBooleanfalseShow loading by default when true, use the .sync modifier to make it two-way binding
canCancelBooleanfalseAllow user to cancel by pressing ESC or clicking outside
onCancelFunction()=>{}Do something upon cancel, works in conjunction with can-cancel
isFullPageBooleantrueWhen false; limit loader to its container^
transitionStringfadeTransition name
colorString#000Customize the color of loading icon
heightNumber*Customize the height of loading icon
widthNumber*Customize the width of loading icon
loaderStringspinnerName of icon shape you want use as loader, spinner or dots or bars
backgroundColorString#fffCustomize the overlay background color
opacityNumber0.5Customize the overlay background opacity
zIndexNumber9999Customize the overlay z-index
enforceFocusBooleantrueForce focus on loader
lockScrollBooleanfalseFreeze the scrolling during full screen loader
blurString2pxValue for the CSS blur backdrop-filter. Set to null or an empty string to disable blurring

Testing

$ yarn add vue-loading-overlay

Add this plugin as CommonJS module

plugins: [
    [require('../vuepress-plugin-loading-overlay'), {}],
]

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

License

MIT

0.1.0

4 years ago