Dialog 对话框
里面的下划线不识别:methods: { handleClose(done) { this.$confirm('确认关闭?') .then(\_ => { done(); }) .catch(\_ => {}); } }
把下划线改成括号()就正常了
`methods: {
handleClose(done) { this.$confirm('确认关闭?') .then(() => { done();
})
.catch(() => {});
}
}`
https://element.eleme.cn/#/zh-CN/component/dialog#attributes
待解决
悬赏分:30
- 离问题结束还有
点赞 0反对 0举报 0
收藏 0
分享 5
