chore(tabs): docs format

This commit is contained in:
07akioni 2021-08-26 00:06:25 +08:00
parent ca31314619
commit aad74468ee
2 changed files with 7 additions and 11 deletions

View File

@ -15,7 +15,7 @@ addable
line-debug
```
## Props
## API
### Tabs Props
@ -35,7 +35,7 @@ line-debug
| 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. |
### Tab Pane Props
### TabPane Props
| Name | Type | Default | Description |
| --- | --- | --- | --- |
@ -45,8 +45,6 @@ line-debug
| tab | `string \| VNode \| () => VNodeChild` | `undefined` | Tab label. |
| name | `string \| number` | `undefined` | Required, the name of the tab. |
## Slots
### Tabs Slots
| Name | Parameters | Description |
@ -55,7 +53,7 @@ line-debug
| prefix | `()` | Tabs prefix. |
| suffix | `()` | Tabs suffix. |
### Tab Pane Slots
### TabPane Slots
| Name | Parameters | Description |
| ------- | ---------- | ------------------ |

View File

@ -16,7 +16,7 @@ line-debug
style-inherit-debug
```
## Props
## API
### Tabs Props
@ -36,7 +36,7 @@ style-inherit-debug
| on-close | `(name: 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` |
| name | `string \| number` | `undefined` | 必填,标签的名称 |
## Slots
### Tabs
### Tabs Slots
| 名称 | 参数 | 说明 |
| ------- | ---- | ---------- |
@ -56,7 +54,7 @@ style-inherit-debug
| prefix | `()` | 标签的前缀 |
| suffix | `()` | 标签的后缀 |
### Tab Pane Slots
### TabPane Slots
| 名称 | 参数 | 说明 |
| ------- | ---- | ------------------- |