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.

29 lines
1.4 KiB

---
category: Components
chinese: 气泡确认框
type: Views
english: Popconfirm
---
点击元素,弹出气泡式的确认框。
10 years ago
## 何时使用
10 years ago
目标元素的操作需要用户进一步的确认时,在目标元素附近弹出浮层提示,询问用户。
10 years ago
`confirm` 弹出的全屏居中模态对话框相比,交互形式更轻量。
10 years ago
## API
10 years ago
| 参数 | 说明 | 类型 | 默认值 |
|-----------|------------------------------------------|---------------|--------|
9 years ago
| placement | 气泡框位置,可选 `top/left/right/bottom` `topLeft/topRight/bottomLeft/bottomRight` `leftTop/leftBottom/rightTop/rightBottom` | string | top |
9 years ago
| title | 确认框的描述 | React.Element | 无 |
| onConfirm | 点击确认的回调 | function | 无 |
9 years ago
| onCancel | 点击取消的回调 | function | 无 |
| onVisibleChange | 显示隐藏的回调 | function(visible) | 无 |
| okText | 确认按钮文字 | String | 确定 |
| cancelText| 取消按钮文字 | String | 取消 |
| openClassName | 气泡框展现时触发器添加的类名,可用于打开浮层时高亮触发器 | string | ant-popover-open |