奇怪需求,Dialog不做body遮罩导致多一级的遮罩会显示异常,就把Dialog里的MessageBox的关闭,又不影响其他的使用,故关闭后需要打开,终于在官网看到并尝试成功了,分享出来
this.$confirm('此操作将删除该多条数据, 是否继续?', '提示', {
confirmButtonText: '确定',
type: 'warning',
modal: false,
beforeClose: (action, instance, done) => {
instance.modal = true;
done();
},
}).then(() => {
this.$message.success('操作成功!');
}).catch(() => {
this.$message.info( '已取消删除');
});
版本2.15