element-ui Notification通知 添加按钮点击事件
const notify = that.$notify({
title: '标题',
dangerouslyUseHTMLString: true,
message: '<br/><strong>中国:</strong>' + '<br/><br/><span>点击</span>',
duration: 0
});
notify.$el.querySelector("span").onclick = () => {
console.log('点击事件')
notify.close()
}
以上是编程学习网小编为您介绍的“element-ui Notification通知 添加按钮点击事件”的全面内容,想了解更多关于 vuejs 内容,请继续关注编程基础学习网。