# mint-indicator **Repository Path**: clattanoia/mint-indicator ## Basic Information - **Project Name**: mint-indicator - **Description**: indicator组件,提示用户正在加载,自带modal - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2017-04-21 - **Last Updated**: 2024-12-06 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Overview vue-indicator is a mobile loading indicator plugin for vue.js. # Installation First, install `vue-indicator` from npm: ```bash $ npm install vue-indicator ``` Then use it: ```Javascript // ES6 mudule import Indicator from 'vue-indicator'; // CommonJS const Indicator = require('vue-indicator').default; ``` # Usage Open an indicator: ```Javascript Indicator.open(); ``` Open an indicator with a string: ```Javascript Indicator.open('Loading...'); ``` Open an indicator with an object: ```Javascript Indicator.open({ text:'Loading...', spinnerType: 'fading-circle' }); ``` Then close it: ```Javascript Indicator.close(); ``` # API | Option | Description | Value | Default | |-------------|----------------|-------------------------------------------------------------|---------| | text | indicator text | String | | | spinnerType | spinner type | 'snake', 'fading-circle', 'double-bounce', 'triple-bounce' | 'snake' | # License MIT