2019-10-21 15:37:41 +08:00
|
|
|
# Popconfirm
|
2020-01-30 20:10:03 +08:00
|
|
|
A confirm, poped.
|
2020-10-22 20:35:12 +08:00
|
|
|
|
2020-01-30 20:10:03 +08:00
|
|
|
## Demos
|
2019-10-21 15:37:41 +08:00
|
|
|
```demo
|
|
|
|
basic
|
|
|
|
custom-action
|
|
|
|
custom-icon
|
|
|
|
event
|
|
|
|
no-icon
|
2020-01-30 20:10:03 +08:00
|
|
|
```
|
2020-10-22 20:35:12 +08:00
|
|
|
|
2020-01-30 20:10:03 +08:00
|
|
|
## Props
|
|
|
|
|Name|Type|Default|Description|
|
|
|
|
|-|-|-|-|
|
|
|
|
|negative-text|`string`|`'Cancel'`||
|
2020-01-31 22:36:22 +08:00
|
|
|
|positive-text|`string`|`'Confirm'`||
|
2020-01-30 20:10:03 +08:00
|
|
|
|show-icon|`boolean`|`true`||
|
2020-10-23 13:39:38 +08:00
|
|
|
|on-positive-click|`() => boolean \| Promise<boolean> \| any`|`undefined`||
|
|
|
|
|on-negative-click|`() => boolean \| Promise<boolean> \| any`|`undefined`||
|
2020-01-30 20:10:03 +08:00
|
|
|
|
|
|
|
For more props, see [popover](n-popover#Props).
|
|
|
|
|
|
|
|
## Slots
|
|
|
|
|Name|Parameters|Description|
|
|
|
|
|-|-|-|
|
|
|
|
|action|`()`||
|
2020-10-22 20:35:12 +08:00
|
|
|
|default|`()`||
|
|
|
|
|icon|`()`||
|