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 |
|
||||
| --- | --- | --- | --- |
|
||||
| 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 | `()` | |
|
||||
| ------- | ---------- | ------------------- |
|
||||
| action | `()` | Custom action. |
|
||||
| default | `()` | Popconfirm content. |
|
||||
| icon | `()` | Popconfirm icon. |
|
||||
|
@ -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 | `()` | 弹出确认的图标 |
|
||||
|
Loading…
Reference in New Issue
Block a user