0.1.9 • Published 5 years ago

amsg v0.1.9

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

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
0.1.9

5 years ago

0.1.8

5 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago