mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-18 03:14:07 +08:00
docs: add missing API docs for Modal, close: #6239
This commit is contained in:
parent
d6da30573b
commit
977a5a1cc7
@ -36,6 +36,7 @@ export interface ModalProps {
|
||||
maskTransitionName?: string;
|
||||
transitionName?: string;
|
||||
className?: string;
|
||||
getContainer?: (instance: React.ReactInstance) => HTMLElement;
|
||||
}
|
||||
|
||||
export interface ModalContext {
|
||||
|
@ -32,6 +32,7 @@ and so on.
|
||||
| style | Style of floating layer, typically used at least for adjusting the position. | object | - |
|
||||
| wrapClassName | The class name of the container of the modal dialog | string | - |
|
||||
| afterClose | Specify a function that will be called when modal is closed completely. | function | - |
|
||||
| getContainer | Return the mount node for Modal | (instance): HTMLElement | () => document.body |
|
||||
|
||||
#### Destroy on close
|
||||
|
||||
|
@ -31,6 +31,7 @@ title: Modal
|
||||
| style | 可用于设置浮层的样式,调整浮层位置等 | object | - |
|
||||
| wrapClassName | 对话框外层容器的类名 | string | - |
|
||||
| afterClose | Modal 完全关闭后的回调 | function | 无 |
|
||||
| getContainer | 指定 Modal 挂载的 HTML 节点 | (instance): HTMLElement | () => document.body |
|
||||
|
||||
#### 清空旧数据
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user