vill-message
v1.1.0
Published
a vue plugin about messgae
Downloads
22
Maintainers
Readme
vill-message
a vue plugins about notice or toast
Build Setup
install the plugin on bash and the sass module support
npm install vill-message --save-dev
npm install sass-loader node-sass vue-style-loader --save-dev
register the plugins on the vue project in the entry file (main.js)
import message from 'vill-message'
Vue.use(message);
on the vue template file ,you can use it by
this.$message.success("hello vill-message");
this.$message.error("hello vill-message");
this.$message.warning("hello vill-message");
this.$message.info("hello vill-message");
on the vue template file ,you can also use it by
this.$message({
duration:2000,
type:'success',
message:'hello vill-message'
});
this.$message({
duration:2000,
type:'error',
message:'hello vill-message'
});