1.3.0 • Published 3 years ago

bar-loading v1.3.0

Weekly downloads
88
License
MIT
Repository
github
Last release
3 years ago

bar-loading

vue bar loading, It's a loading component

vue2 license

Installation

# yarn
yarn add bar-loading

# npm
npm install bar-loading

Usage

import Vue from "vue";
import BarLoading from "bar-loading";

Vue.use(BarLoading);
this.$barLoading.show(options);

when complete

this.$barLoading.done();

or hidden directly

this.$barLoading.hide();

As directive

<div v-barLoading="options" class="wrapper"></div>

Or use the directives and components directly:

import Vue from "vue";
import { BarLoadingDirective, BarLoadingComponent } from "bar-loading";

Vue.directive("loading", BarLoadingDirective);

Options

PropertyDescriptiontypedefault
backgroundloading wrapper background-imageString""
iconloading content iconString""
textloading textString"正在加载中..."
visibleshow loadingBooleantrue
lockmake the wrapper no scrollBooleanfalse
showshow loading, only use in directiveBooleanfalse
progressContainerprogress container classArray[]
customClassloading wrapper classString''
1.3.0

3 years ago

1.2.1

3 years ago

1.2.0

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago