mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
docs(popconfirm): api table (#653)
* docs(popconfirm): 完善弹出确认组件的说明文档 * docs(popconfirm): 更新弹出确认组件的说明文档
This commit is contained in:
parent
404f5eae60
commit
93ca7ccc1e
@ -16,18 +16,18 @@ no-icon
|
|||||||
|
|
||||||
| Name | Type | Default | Description |
|
| Name | Type | Default | Description |
|
||||||
| --- | --- | --- | --- |
|
| --- | --- | --- | --- |
|
||||||
| negative-text | `string` | `'Cancel'` | |
|
| negative-text | `string` | `'Cancel'` | Cancel button text. |
|
||||||
| positive-text | `string` | `'Confirm'` | |
|
| positive-text | `string` | `'Confirm'` | Confirm button text. |
|
||||||
| show-icon | `boolean` | `true` | |
|
| show-icon | `boolean` | `true` | Whether to show icon. |
|
||||||
| on-positive-click | `() => boolean \| Promise<boolean> \| any` | `undefined` | |
|
| on-positive-click | `() => boolean \| Promise<boolean> \| any` | `undefined` | Callback of confirmation. |
|
||||||
| on-negative-click | `() => boolean \| Promise<boolean> \| any` | `undefined` | |
|
| on-negative-click | `() => boolean \| Promise<boolean> \| any` | `undefined` | Callback of cancel. |
|
||||||
|
|
||||||
For more props, see [popover](popover#Props).
|
For more props, see [popover](popover#Props).
|
||||||
|
|
||||||
## Slots
|
## Slots
|
||||||
|
|
||||||
| Name | Parameters | Description |
|
| Name | Parameters | Description |
|
||||||
| ------- | ---------- | ----------- |
|
| ------- | ---------- | ------------------- |
|
||||||
| action | `()` | |
|
| action | `()` | Custom action. |
|
||||||
| default | `()` | |
|
| default | `()` | Popconfirm content. |
|
||||||
| icon | `()` | |
|
| icon | `()` | Popconfirm icon. |
|
||||||
|
@ -16,18 +16,18 @@ no-icon
|
|||||||
|
|
||||||
| 名称 | 类型 | 默认值 | 说明 |
|
| 名称 | 类型 | 默认值 | 说明 |
|
||||||
| --- | --- | --- | --- |
|
| --- | --- | --- | --- |
|
||||||
| negative-text | `string` | `'取消'` | |
|
| negative-text | `string` | `'取消'` | 取消按钮文字 |
|
||||||
| positive-text | `string` | `'确认'` | |
|
| positive-text | `string` | `'确认'` | 确定按钮文字 |
|
||||||
| show-icon | `boolean` | `true` | |
|
| show-icon | `boolean` | `true` | 是否显示图标 |
|
||||||
| on-positive-click | `() => boolean \| Promise<boolean> \| any` | `undefined` | |
|
| on-positive-click | `() => boolean \| Promise<boolean> \| any` | `undefined` | 点击确定的回调函数 |
|
||||||
| on-negative-click | `() => boolean \| Promise<boolean> \| any` | `undefined` | |
|
| on-negative-click | `() => boolean \| Promise<boolean> \| any` | `undefined` | 点击取消的回调函数 |
|
||||||
|
|
||||||
更多 props 请参考 [Popover](popover#Props).
|
更多 props 请参考 [Popover](popover#Props).
|
||||||
|
|
||||||
## Slots
|
## Slots
|
||||||
|
|
||||||
| 名称 | 参数 | 说明 |
|
| 名称 | 参数 | 说明 |
|
||||||
| ------- | ---- | ---- |
|
| ------- | ---- | -------------- |
|
||||||
| action | `()` | |
|
| action | `()` | 自定义操作 |
|
||||||
| default | `()` | |
|
| default | `()` | 弹出确认的内容 |
|
||||||
| icon | `()` | |
|
| icon | `()` | 弹出确认的图标 |
|
||||||
|
Loading…
Reference in New Issue
Block a user