2018-03-22 08:19:02 +00:00
|
|
|
## API
|
|
|
|
|
|
|
|
| Param | Description | Type | Default value |
|
|
|
|
| ----- | ----------- | ---- | ------------- |
|
2018-03-22 10:29:53 +00:00
|
|
|
| cancelText | text of the Cancel button | string\|slot | `Cancel` |
|
|
|
|
| okText | text of the Confirm button | string\|slot | `Confirm` |
|
2018-03-22 08:19:02 +00:00
|
|
|
| okType | Button `type` of the Confirm button | string | `primary` |
|
|
|
|
| title | title of the confirmation box | string\|slot | - |
|
2018-09-05 13:28:54 +00:00
|
|
|
| icon | customize icon of confirmation | vNode\|slot | <Icon type="exclamation-circle" /> |
|
2018-03-22 08:19:02 +00:00
|
|
|
|
|
|
|
### events
|
|
|
|
| Events Name | Description | Arguments |
|
|
|
|
| --- | --- | --- |
|
|
|
|
| cancel | callback of cancel | function(e) | - |
|
|
|
|
| confirm | callback of confirmation | function(e) | - |
|
|
|
|
| visibleChange | Callback executed when visibility of the tooltip card is changed | function(visible) | - |
|
|
|
|
|
2018-08-04 09:52:11 +00:00
|
|
|
Consult [Tooltip's documentation](/ant-design-vue/components/tooltip/#API) to find more APIs.
|
2018-03-22 08:19:02 +00:00
|
|
|
|
|
|
|
## Note
|
|
|
|
|
|
|
|
Please ensure that the child node of `Popconfirm` accepts `mouseenter`, `mouseleave`, `focus`, `click` events.
|