0.2.9 • Published 5 years ago
@mu-ui/mu-indicator v0.2.9
mu-indicator
indicator plugin for vue 2.x
Installation
yarn add @mu-ui/mu-indicator
Usage
import Indicator from '@mu-ui/mu-indicator'
Vue.use(Indicator)
this.$indicator.show('hello mu-ui')
this.$indicator.show({
type: 'dual-ring',
tip: 'hello mu-ui',
maskColor: 'rgba(0, 0, 0, 0.1)'
})
this.$indicator.hide()
Options
tip
Type: String
indicator tip content
type
Type: String Default: ring
loading icon. It has two types(ring|dual-ring) built-in.
color
Type: String Default: #fff
loading icon color & tip color
bgColor
Type: String Default: rgba(0, 0, 0, 0.7)
indicator background color
maskColor
Type: String Default: transparent
mask background color