Browse Source
docs: fix popconfirm doc (#23644)
* docs: fix popconfirm doc
* Update index.en-US.md
pull/23648/head
Tom Xu
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
4 additions and
0 deletions
-
components/popconfirm/index.en-US.md
-
components/popconfirm/index.zh-CN.md
|
|
@ -19,6 +19,8 @@ The difference with the `confirm` modal dialog is that it's more lightweight tha |
|
|
|
| cancelText | text of the Cancel button | string | `Cancel` | |
|
|
|
| okText | text of the Confirm button | string | `OK` | |
|
|
|
| okType | Button `type` of the Confirm button | string | `primary` | |
|
|
|
| okButtonProps | The ok button props | [ButtonProps](/components/button) | - | |
|
|
|
| cancelButtonProps | The cancel button props | [ButtonProps](/components/button) | - | |
|
|
|
| title | title of the confirmation box | string\|ReactNode\|() => ReactNode | - | |
|
|
|
| onCancel | callback of cancel | function(e) | - | |
|
|
|
| onConfirm | callback of confirmation | function(e) | - | |
|
|
|
|
|
@ -20,6 +20,8 @@ title: Popconfirm |
|
|
|
| cancelText | 取消按钮文字 | string | 取消 | |
|
|
|
| okText | 确认按钮文字 | string | 确定 | |
|
|
|
| okType | 确认按钮类型 | string | primary | |
|
|
|
| okButtonProps | ok 按钮 props | [ButtonProps](/components/button) | - | |
|
|
|
| cancelButtonProps | cancel 按钮 props | [ButtonProps](/components/button) | - | |
|
|
|
| title | 确认框的描述 | string\|ReactNode\|() => ReactNode | - | |
|
|
|
| onCancel | 点击取消的回调 | function(e) | - | |
|
|
|
| onConfirm | 点击确认的回调 | function(e) | - | |
|
|
|