element ui官方的文档是不是有问题啊?Dialog 对话框

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 - 离问题结束还有 170天23小时41分33秒
反对 0举报 0 收藏 0

我来回答

回答2