
调用this.$notify方法的时候需要在关闭弹窗的时候执行一个回调事件,下面web建站小编给大家介绍一下onClose的运用方法!
具体代码如下:
this.$notify({
title: '你的标题',
dangerouslyUseHTMLString: true,
//允许调用html片段
message: '<ul>' + content + '</ul>',
//html标签
position: 'bottom-right',
//当前弹窗出现位置
duration: 0,
//不能自动关闭
onClose: () = >{ //关闭后回调事件
localStorage.setItem('flag', true)
}
})
Motion for Vue:一个轻量级且功能强大的Vue3动画库
el-table利用:row-style="rowClass"设置指定行变色
一款免费开源效果酷炫的 Vue / React 大屏数据展示组件库——DataV
标签: this.$notify, 回调事件
上面是“this.$notify如何新增关闭回调”的全面内容,想了解更多关于 vuejs 内容,请继续关注web建站教程。
当前网址:https://m.ipkd.cn/webs_3119.html
声明:本站提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请发送到邮箱:admin@ipkd.cn,我们会在看到邮件的第一时间内为您处理!

window.open相关关联参数介绍
半文鱼桌面
豆包MarsCode
推荐一款免费开源的Vue可拖拽组件——VueDraggablePlus