From aad74468ee63323bfb69def2e65cfbdd02d8c9ca Mon Sep 17 00:00:00 2001 From: 07akioni <07akioni2@gmail.com> Date: Thu, 26 Aug 2021 00:06:25 +0800 Subject: [PATCH] chore(tabs): docs format --- src/tabs/demos/enUS/index.demo-entry.md | 8 +++----- src/tabs/demos/zhCN/index.demo-entry.md | 10 ++++------ 2 files changed, 7 insertions(+), 11 deletions(-) diff --git a/src/tabs/demos/enUS/index.demo-entry.md b/src/tabs/demos/enUS/index.demo-entry.md index e0e8ee557..19d5e9749 100644 --- a/src/tabs/demos/enUS/index.demo-entry.md +++ b/src/tabs/demos/enUS/index.demo-entry.md @@ -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 | | ------- | ---------- | ------------------ | diff --git a/src/tabs/demos/zhCN/index.demo-entry.md b/src/tabs/demos/zhCN/index.demo-entry.md index 528ed7109..239a800af 100644 --- a/src/tabs/demos/zhCN/index.demo-entry.md +++ b/src/tabs/demos/zhCN/index.demo-entry.md @@ -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 | 名称 | 参数 | 说明 | | ------- | ---- | ------------------- |