A mobile indicator plugin for vue.js
Switch branches/tags
Nothing to show
Clone or download
Latest commit 34b1a19 Oct 26, 2016
Permalink
Failed to load latest commit information.
example support vue 2.0 Oct 26, 2016
src support vue 2.0 Oct 26, 2016
.babelrc replace kb-spinner with mt-spinner (#9) May 28, 2016
.eslintrc edit package.json May 12, 2016
.gitignore add src & example May 6, 2016
.npmignore add src & example May 6, 2016
README.md add spinner (#6) May 24, 2016
cooking.conf.js support vue 2.0 Oct 26, 2016
cooking.example.conf.js support vue 2.0 Oct 26, 2016
package.json 2.0.0 Oct 26, 2016

README.md

Overview

vue-indicator is a mobile loading indicator plugin for vue.js.

Installation

First, install vue-indicator from npm:

$ npm install vue-indicator

Then use it:

// ES6 mudule
import Indicator from 'vue-indicator';

// CommonJS
const Indicator = require('vue-indicator').default;

Usage

Open an indicator:

Indicator.open();

Open an indicator with a string:

Indicator.open('Loading...');

Open an indicator with an object:

Indicator.open({ text:'Loading...', spinnerType: 'fading-circle' });

Then close it:

Indicator.close();

API

Option Description Value Default
text indicator text String
spinnerType spinner type 'snake', 'fading-circle', 'double-bounce', 'triple-bounce' 'snake'

License

MIT