npm.io
1.0.7 • Published 7 years ago

vue-alert-message

Licence
ISC
Version
1.0.7
Deps
12
Size
36 kB
Vulns
2
Weekly
0

###this is a vue-alert-message

###install npm i vue-alert-message --save

###use you can use in your main.js of vue-project by

import Vue from 'vue';
import message from 'vue-alert-message';
Vue.use(message)

you can use in anywhere by

	this.$message(type, msg)
	@params type:类型(support: error, success, warning)
	@params msg: 信息
	example:
	this.$message('error', err);
	loading:
	const loading = this.$message('loading');
	close: loading.closeLoading(); 

Keywords