ant-design/components/modal/demo/hooks.md
二货爱吃白萝卜 b072d3a02c
feat: Modal hooks confirm function support await (#43470)
* docs: move demo to useModal

* docs: reorder

* chore: update ts def

* test: test case

* chore: fix compile
2023-07-11 09:58:25 +08:00

280 B

zh-CN

通过 Modal.useModal 创建支持读取 context 的 contextHolder。其中仅有 hooks 方法支持 Promise await 操作。

en-US

Use Modal.useModal to get contextHolder with context accessible issue. Only hooks method support Promise await operation.