docs: add missing API docs for Modal, close: #6239

This commit is contained in:
Benjy Cui 2017-05-24 10:00:59 +08:00
parent d6da30573b
commit 977a5a1cc7
3 changed files with 3 additions and 0 deletions

View File

@ -36,6 +36,7 @@ export interface ModalProps {
maskTransitionName?: string;
transitionName?: string;
className?: string;
getContainer?: (instance: React.ReactInstance) => HTMLElement;
}
export interface ModalContext {

View File

@ -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

View File

@ -31,6 +31,7 @@ title: Modal
| style | 可用于设置浮层的样式,调整浮层位置等 | object | - |
| wrapClassName | 对话框外层容器的类名 | string | - |
| afterClose | Modal 完全关闭后的回调 | function | 无 |
| getContainer | 指定 Modal 挂载的 HTML 节点 | (instance): HTMLElement | () => document.body |
#### 清空旧数据