update okType and cancelType for api docs

This commit is contained in:
Eden Wang 2017-07-16 17:42:39 +08:00 committed by 乐仪
parent f2b987aaa9
commit c712d072eb
2 changed files with 8 additions and 0 deletions

View File

@ -27,7 +27,9 @@ and so on.
| width | Width of a modal dialog | string\|number | 520 |
| footer | Footer content, set as `footer={null}` when you don't need default buttons | string\|ReactNode | OK and cancel button |
| okText | Text of the OK button | string | OK |
| okType | type of the confirmation button | string | primary |
| cancelText | Text of the Cancel button | string | Cancel |
| cancelType| type of the confirmation button | string | none |
| maskClosable | Determine whether to close the modal dialog when clicked mask of it. | boolean | true |
| 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 | - |
@ -71,7 +73,9 @@ The properties of the object are follows:
| width | Width of dialog | string\|number | 416 |
| iconType | Type of Icon component | string | question-circle |
| okText | Text of OK button | string | OK |
| okType | type of the confirmation button | string | primary |
| cancelText | Text of cancel button | string | Cancel |
| cancelType| type of the confirmation button | string | none |
| maskClosable | Determine whether to close the modal dialog when clicked mask of it. | Boolean | `false` |
All the `Modal.method`s will return a reference, and then we can close the popup by the reference.

View File

@ -26,7 +26,9 @@ title: Modal
| width | 宽度 | string\|number | 520 |
| footer | 底部内容,当不需要默认底部按钮时,可以设为 `footer={null}` | string\|ReactNode | 确定取消按钮 |
| okText | 确认按钮文字 | string | 确定 |
| okType | 确认按钮类型 | string | primary |
| cancelText | 取消按钮文字 | string | 取消 |
| cancelType | 取消按钮类型 | string | 无 |
| maskClosable | 点击蒙层是否允许关闭 | boolean | true |
| style | 可用于设置浮层的样式,调整浮层位置等 | object | - |
| wrapClassName | 对话框外层容器的类名 | string | - |
@ -69,7 +71,9 @@ title: Modal
| width | 宽度 | string\|number | 416 |
| iconType | 图标 Icon 类型 | string | question-circle |
| okText | 确认按钮文字 | string | 确定 |
| okType | 确认按钮类型 | string | primary |
| cancelText | 取消按钮文字 | string | 取消 |
| cancelType | 取消按钮类型 | string | 无 |
| maskClosable | 点击蒙层是否允许关闭 | Boolean | `false` |
以上函数调用后,会返回一个引用,可以通过该引用关闭弹窗。