1. 官方文档
2. 添加点击事件,传参
handleClick() {
let telNo = "1111",
message = "22222",
_this = this; //函数作用域问题
this.$notify({
title: "通知消息",
position: "bottom-right",
dangerouslyUseHTMLString: true,
message: `
号码:${telNo}
`,duration: 0,
type: "warning",
onClick() {
_this.defineCallBack(message); //自定义回调,message为传的参数
}
});
},
//点击事件回调
defineCallBack(message) {
console.log(message);
},
3. 按一定时间顺序弹出消息通知
//按一定时间顺序弹出消息通知
notifyByOrder() {
let data = ["aaaa