2.0.1 • Published 2 years ago

vue-xd-message v2.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

vue-xd-message

a vue plugins about notice or toast

Build Setup

install the plugin on bash and the sass module support

npm install vue-xd-message --save-dev

register the plugins on the vue project in the entry file (main.js)

import message from 'vue-xd-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',
    conten:'hello vill-message'
});
this.$message({
    duration:2000,
    type:'error',
    message:'hello vill-message'
});
字段说明类型默认值
type可选值 success/error/info/warningString-
content必选值,提示信息String-
duration可选值Number3000ms
animation可选值,动画效果Stringfade=
icon可选值,前缀图片自定义String../assets/w1.png
hasClose可选值,是否有关闭按钮Stringfalse
2.0.1

2 years ago

2.0.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago