mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-01 04:48:55 +08:00
update okType and cancelType for api docs
This commit is contained in:
parent
f2b987aaa9
commit
c712d072eb
@ -27,7 +27,9 @@ and so on.
|
|||||||
| width | Width of a modal dialog | string\|number | 520 |
|
| 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 |
|
| 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 |
|
| okText | Text of the OK button | string | OK |
|
||||||
|
| okType | type of the confirmation button | string | primary |
|
||||||
| cancelText | Text of the Cancel button | string | Cancel |
|
| 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 |
|
| 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 | - |
|
| 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 | - |
|
| 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 |
|
| width | Width of dialog | string\|number | 416 |
|
||||||
| iconType | Type of Icon component | string | question-circle |
|
| iconType | Type of Icon component | string | question-circle |
|
||||||
| okText | Text of OK button | string | OK |
|
| okText | Text of OK button | string | OK |
|
||||||
|
| okType | type of the confirmation button | string | primary |
|
||||||
| cancelText | Text of cancel button | string | Cancel |
|
| 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` |
|
| 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.
|
All the `Modal.method`s will return a reference, and then we can close the popup by the reference.
|
||||||
|
@ -26,7 +26,9 @@ title: Modal
|
|||||||
| width | 宽度 | string\|number | 520 |
|
| width | 宽度 | string\|number | 520 |
|
||||||
| footer | 底部内容,当不需要默认底部按钮时,可以设为 `footer={null}` | string\|ReactNode | 确定取消按钮 |
|
| footer | 底部内容,当不需要默认底部按钮时,可以设为 `footer={null}` | string\|ReactNode | 确定取消按钮 |
|
||||||
| okText | 确认按钮文字 | string | 确定 |
|
| okText | 确认按钮文字 | string | 确定 |
|
||||||
|
| okType | 确认按钮类型 | string | primary |
|
||||||
| cancelText | 取消按钮文字 | string | 取消 |
|
| cancelText | 取消按钮文字 | string | 取消 |
|
||||||
|
| cancelType | 取消按钮类型 | string | 无 |
|
||||||
| maskClosable | 点击蒙层是否允许关闭 | boolean | true |
|
| maskClosable | 点击蒙层是否允许关闭 | boolean | true |
|
||||||
| style | 可用于设置浮层的样式,调整浮层位置等 | object | - |
|
| style | 可用于设置浮层的样式,调整浮层位置等 | object | - |
|
||||||
| wrapClassName | 对话框外层容器的类名 | string | - |
|
| wrapClassName | 对话框外层容器的类名 | string | - |
|
||||||
@ -69,7 +71,9 @@ title: Modal
|
|||||||
| width | 宽度 | string\|number | 416 |
|
| width | 宽度 | string\|number | 416 |
|
||||||
| iconType | 图标 Icon 类型 | string | question-circle |
|
| iconType | 图标 Icon 类型 | string | question-circle |
|
||||||
| okText | 确认按钮文字 | string | 确定 |
|
| okText | 确认按钮文字 | string | 确定 |
|
||||||
|
| okType | 确认按钮类型 | string | primary |
|
||||||
| cancelText | 取消按钮文字 | string | 取消 |
|
| cancelText | 取消按钮文字 | string | 取消 |
|
||||||
|
| cancelType | 取消按钮类型 | string | 无 |
|
||||||
| maskClosable | 点击蒙层是否允许关闭 | Boolean | `false` |
|
| maskClosable | 点击蒙层是否允许关闭 | Boolean | `false` |
|
||||||
|
|
||||||
以上函数调用后,会返回一个引用,可以通过该引用关闭弹窗。
|
以上函数调用后,会返回一个引用,可以通过该引用关闭弹窗。
|
||||||
|
Loading…
Reference in New Issue
Block a user