naive-ui/demo/documentation/components/popconfirm/enUS/index.demo-entry.md

29 lines
548 B
Markdown
Raw Normal View History

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`||
|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|`()`||