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
parent
commit
90a12fa3d0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      components/popconfirm/index.en-US.md
  2. 2
      components/popconfirm/index.zh-CN.md

2
components/popconfirm/index.en-US.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) | - |

2
components/popconfirm/index.zh-CN.md

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

Loading…
Cancel
Save