mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
chore(tabs): docs format
This commit is contained in:
parent
ca31314619
commit
aad74468ee
@ -15,7 +15,7 @@ addable
|
|||||||
line-debug
|
line-debug
|
||||||
```
|
```
|
||||||
|
|
||||||
## Props
|
## API
|
||||||
|
|
||||||
### Tabs Props
|
### Tabs Props
|
||||||
|
|
||||||
@ -35,7 +35,7 @@ line-debug
|
|||||||
| on-close | `(name: string \| number) => void` | `undefined` | Callback function triggered when close tag. |
|
| on-close | `(name: string \| number) => void` | `undefined` | Callback function triggered when close tag. |
|
||||||
| on-update:value | `(value: string \| number) => void` | `undefined` | Callback function triggered when the value changes. |
|
| on-update:value | `(value: string \| number) => void` | `undefined` | Callback function triggered when the value changes. |
|
||||||
|
|
||||||
### Tab Pane Props
|
### TabPane Props
|
||||||
|
|
||||||
| Name | Type | Default | Description |
|
| Name | Type | Default | Description |
|
||||||
| --- | --- | --- | --- |
|
| --- | --- | --- | --- |
|
||||||
@ -45,8 +45,6 @@ line-debug
|
|||||||
| tab | `string \| VNode \| () => VNodeChild` | `undefined` | Tab label. |
|
| tab | `string \| VNode \| () => VNodeChild` | `undefined` | Tab label. |
|
||||||
| name | `string \| number` | `undefined` | Required, the name of the tab. |
|
| name | `string \| number` | `undefined` | Required, the name of the tab. |
|
||||||
|
|
||||||
## Slots
|
|
||||||
|
|
||||||
### Tabs Slots
|
### Tabs Slots
|
||||||
|
|
||||||
| Name | Parameters | Description |
|
| Name | Parameters | Description |
|
||||||
@ -55,7 +53,7 @@ line-debug
|
|||||||
| prefix | `()` | Tabs prefix. |
|
| prefix | `()` | Tabs prefix. |
|
||||||
| suffix | `()` | Tabs suffix. |
|
| suffix | `()` | Tabs suffix. |
|
||||||
|
|
||||||
### Tab Pane Slots
|
### TabPane Slots
|
||||||
|
|
||||||
| Name | Parameters | Description |
|
| Name | Parameters | Description |
|
||||||
| ------- | ---------- | ------------------ |
|
| ------- | ---------- | ------------------ |
|
||||||
|
@ -16,7 +16,7 @@ line-debug
|
|||||||
style-inherit-debug
|
style-inherit-debug
|
||||||
```
|
```
|
||||||
|
|
||||||
## Props
|
## API
|
||||||
|
|
||||||
### Tabs Props
|
### Tabs Props
|
||||||
|
|
||||||
@ -36,7 +36,7 @@ style-inherit-debug
|
|||||||
| on-close | `(name: string \| number) => void` | `undefined` | 关闭标签的回调函数 |
|
| on-close | `(name: string \| number) => void` | `undefined` | 关闭标签的回调函数 |
|
||||||
| on-update:value | `(value: string \| number) => void` | `undefined` | 选中发生改变时的回调函数 |
|
| on-update:value | `(value: string \| number) => void` | `undefined` | 选中发生改变时的回调函数 |
|
||||||
|
|
||||||
### Tab Pane Props
|
### TabPane Props
|
||||||
|
|
||||||
| 名称 | 类型 | 默认值 | 说明 |
|
| 名称 | 类型 | 默认值 | 说明 |
|
||||||
| --- | --- | --- | --- |
|
| --- | --- | --- | --- |
|
||||||
@ -46,9 +46,7 @@ style-inherit-debug
|
|||||||
| tab | `string \| VNode \| () => VNodeChild` | `undefined` | 标签的 `tab` |
|
| tab | `string \| VNode \| () => VNodeChild` | `undefined` | 标签的 `tab` |
|
||||||
| name | `string \| number` | `undefined` | 必填,标签的名称 |
|
| name | `string \| number` | `undefined` | 必填,标签的名称 |
|
||||||
|
|
||||||
## Slots
|
### Tabs Slots
|
||||||
|
|
||||||
### Tabs
|
|
||||||
|
|
||||||
| 名称 | 参数 | 说明 |
|
| 名称 | 参数 | 说明 |
|
||||||
| ------- | ---- | ---------- |
|
| ------- | ---- | ---------- |
|
||||||
@ -56,7 +54,7 @@ style-inherit-debug
|
|||||||
| prefix | `()` | 标签的前缀 |
|
| prefix | `()` | 标签的前缀 |
|
||||||
| suffix | `()` | 标签的后缀 |
|
| suffix | `()` | 标签的后缀 |
|
||||||
|
|
||||||
### Tab Pane Slots
|
### TabPane Slots
|
||||||
|
|
||||||
| 名称 | 参数 | 说明 |
|
| 名称 | 参数 | 说明 |
|
||||||
| ------- | ---- | ------------------- |
|
| ------- | ---- | ------------------- |
|
||||||
|
Loading…
Reference in New Issue
Block a user