Skip to content

mint-ui/mint-indicator

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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