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.
ant-design-vue/components/popconfirm/index.zh-CN.md

22 lines
697 B

7 years ago
## API
| 参数 | 说明 | 类型 | 默认值 |
| --- | --- | --- | --- |
| cancelText | 取消按钮文字 | string | 取消 |
| okText | 确认按钮文字 | string | 确定 |
7 years ago
| okType | 确认按钮类型 | string | primary |
| title | 确认框的描述 | string\|slot | 无 |
7 years ago
### 事件
| 事件名称 | 说明 | 回调参数 |
| --- | --- | --- |
| cancel | 点击取消的回调 | function(e) |
| confirm | 点击确认的回调 | function(e) |
| visibleChange | 显示隐藏的回调 | function(visible) |
7 years ago
更多属性请参考 [Tooltip](#/cn/components/tooltip/#API)。
7 years ago
## 注意
请确保 `Popconfirm` 的子元素能接受 `mouseenter`、`mouseleave`、`focus`、`click` 事件。