NG-ZORRO / ng-zorro-antd

Angular UI Component Library based on Ant Design
https://ng.ant.design
MIT License
8.87k stars 3.94k forks source link

请求添加,气泡确认框在弹出以后,鼠标点击页面别的位置不消失的api #6090

Open hai4606626 opened 3 years ago

hai4606626 commented 3 years ago

What problem does this feature solve?

在弹出确认提示框后,需要一直看提示框的文字,但这时有可能鼠标误触页面别的位置,这时提示框就关闭了,想要除了点击弹出框上的取消和确定才让弹出框关闭。点击确定后异步关闭气泡确认框,例如提交表单。

What does the proposed API look like?

可以是一个属性,也可以一系列方法,Ant Design of React上面有这样的事例。

zorro-bot[bot] commented 3 years ago

Translation of this issue:

Request addition, bubble confirmation box After pop-up, the mouse click on the page, the page does not disappear.

What proBLEES THIS Feature SOLVE?

After the confirmation prompt is pop-up, you need to look at the text of the prompt box, but there is a possibility that the mouse is misunderstood, and the prompt is turned off, you want to click the cancellation and determination of the pop-up box. Box is closed. Click OK to close the bubble confirmation box asynchronous, such as submitting the form.

What does The proposed API Look Like?

It can be an attribute or a series of methods, and there is such an example on the Ant Design of React.

wzhudev commented 3 years ago

@hai4606626 可以提供一下那个例子的链接吗

hai4606626 commented 3 years ago

https://stackblitz.com/edit/ng-zorro-antd-ivy-cnbqni 我想要一种效果,就是弹出的气泡确认框的时候,点击页面的其他位置气泡确认框不消失,点击取消的时候框消失,点击确认的时候提交方法。现在一点击页面的其他位置气泡框就隐藏了。类似的功能 Ant Design - React上面有https://ant.design/components/popconfirm-cn/#components-popconfirm-demo-async

@ hai4606626可以提供一下那个例子的链接吗