0.1.9 • Published 5 years ago
amsg v0.1.9
AMsg
Just make some toys.
Install from npm
npm i amsg
Usage
// import
import Vue from 'vue'
import AMsg from 'amsg'
Vue.use(AMsg)
// use
this.$aMsg('Login success')
this.$aMsg({
message: 'Login error',
type: 'error',
timeout: 5000
})
this.$aMsg.warning('pwd require')
this.$aMsg.loading({
message: 'loading',
align: 'left-top'
})
config
// use
Vue.use(AMsg, config)
// or
this.$aMsg(config)
config
- message string
- type string, default
success
- timeout int, default 1500
- color Array, color list
- align string, default
top