docs(popconfirm): api table (#653)

* docs(popconfirm): 完善弹出确认组件的说明文档

* docs(popconfirm): 更新弹出确认组件的说明文档
This commit is contained in:
songjianet 2021-07-26 23:37:00 +08:00 committed by GitHub
parent 404f5eae60
commit 93ca7ccc1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 20 additions and 20 deletions

View File

@ -16,18 +16,18 @@ no-icon
| Name | Type | Default | Description |
| --- | --- | --- | --- |
| negative-text | `string` | `'Cancel'` | |
| positive-text | `string` | `'Confirm'` | |
| show-icon | `boolean` | `true` | |
| on-positive-click | `() => boolean \| Promise<boolean> \| any` | `undefined` | |
| on-negative-click | `() => boolean \| Promise<boolean> \| any` | `undefined` | |
| negative-text | `string` | `'Cancel'` | Cancel button text. |
| positive-text | `string` | `'Confirm'` | Confirm button text. |
| show-icon | `boolean` | `true` | Whether to show icon. |
| on-positive-click | `() => boolean \| Promise<boolean> \| any` | `undefined` | Callback of confirmation. |
| on-negative-click | `() => boolean \| Promise<boolean> \| any` | `undefined` | Callback of cancel. |
For more props, see [popover](popover#Props).
## Slots
| Name | Parameters | Description |
| ------- | ---------- | ----------- |
| action | `()` | |
| default | `()` | |
| icon | `()` | |
| Name | Parameters | Description |
| ------- | ---------- | ------------------- |
| action | `()` | Custom action. |
| default | `()` | Popconfirm content. |
| icon | `()` | Popconfirm icon. |

View File

@ -16,18 +16,18 @@ no-icon
| 名称 | 类型 | 默认值 | 说明 |
| --- | --- | --- | --- |
| negative-text | `string` | `'取消'` | |
| positive-text | `string` | `'确认'` | |
| show-icon | `boolean` | `true` | |
| on-positive-click | `() => boolean \| Promise<boolean> \| any` | `undefined` | |
| on-negative-click | `() => boolean \| Promise<boolean> \| any` | `undefined` | |
| negative-text | `string` | `'取消'` | 取消按钮文字 |
| positive-text | `string` | `'确认'` | 确定按钮文字 |
| show-icon | `boolean` | `true` | 是否显示图标 |
| on-positive-click | `() => boolean \| Promise<boolean> \| any` | `undefined` | 点击确定的回调函数 |
| on-negative-click | `() => boolean \| Promise<boolean> \| any` | `undefined` | 点击取消的回调函数 |
更多 props 请参考 [Popover](popover#Props).
## Slots
| 名称 | 参数 | 说明 |
| ------- | ---- | ---- |
| action | `()` | |
| default | `()` | |
| icon | `()` | |
| 名称 | 参数 | 说明 |
| ------- | ---- | -------------- |
| action | `()` | 自定义操作 |
| default | `()` | 弹出确认的内容 |
| icon | `()` | 弹出确认的图标 |