arco-design / arco-design-vue

A Vue.js 3 UI Library based on Arco Design
https://arco.design/vue
MIT License
2.68k stars 522 forks source link

增加 Modal.confirm API with promise 接口 #3236

Open harvenzhang opened 1 month ago

harvenzhang commented 1 month ago

Basic Info

What are the similar cases of this feature

Modal.confirm({ content: '', title: '', onOk: ()=>{ } }) 目前已支持的这种写法 不支持promise,希望可以改一下

What problem does this feature solve?

能够像这样使用 Modal.confirm("content").then(res=>{

})

lin-97 commented 1 month ago

官方的写法的好的,你的不好,没啥卵用