test() {
this.$confirm('确认卡信息是否正确?', '提示', {
confirmButtonText: '是',
cancelButtonText: '否',
closeOnClickModal: false,
beforeClose(action, instance, done) {
if (action == "confirm") {
instance.$refs['confirm'].$el.onclick = function (e) {
e = e || window.event
console.log(e.detail, 'e');
if (e.detail == 0) {
done();
} else {
done();
}
}
} else {
done()
}
}
}).then(() => {
console.log('是');
}).catch(() => {
console.log('否');
})
},
vue elementUI 提示框弹框回车确认时间,Esc取消
最新推荐文章于 2024-08-13 18:21:41 发布