You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
# Popconfirm
|
|
|
|
|
|
|
|
- category: Components
|
|
|
|
- chinese: 气泡确认框
|
|
|
|
- order: 15
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
点击元素,弹出气泡式的确认框。
|
|
|
|
|
|
|
|
## 何时使用
|
|
|
|
|
|
|
|
目标元素的操作需要用户进一步的确认时,在目标元素附近弹出浮层提示,询问用户。
|
|
|
|
|
|
|
|
和 `confirm` 弹出的全屏居中模态对话框相比,交互形式更轻量。
|
|
|
|
|
|
|
|
|
|
|
|
## API
|
|
|
|
|
|
|
|
| 参数 | 说明 | 类型 | 默认值 |
|
|
|
|
|-----------|------------------------------------------|---------------|--------|
|
|
|
|
| placement | 气泡框位置,可选 `top/left/right/bottom` | string | top |
|
|
|
|
| title | 确认框的描述 | string | 无 |
|
|
|
|
| onConfirm | 点击确认的回调 | function | 无 |
|
|
|
|
| onCancel | 卡片内容 | function | 无 |
|