alibaba / alibaba/rax

[Feature]meet.dialog支持延时控制关闭

Open
#2,360 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
8k
Forks
611
PR merge metrics
No merged PRs in 30d

Description

背景
- 希望通过以下方式延时和拦截关闭
```
Dialog.show(
{
onOk:() => {
return new Promise((reslove, reject)=>{
setTimeout(reject, 2000)
})
}
}
)
```
- AntDesign和Fusion都有这个功能
- 场景是,用户点击确认的时候,我们会进行请求,只有结果通过时才会关闭弹窗

Contributor guide

Open the contributing guide

Research direction

Start by locating the meet.dialog implementation and tracing how Dialog.show handles the onOk callback. Compare the requested Promise behavior with the existing close flow and the AntDesign or Fusion behavior referenced in the issue; done means an asynchronous confirmation can prevent closing until its result allows it.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.