Skip to content

Commit

Permalink
docs(ui/tabs): fix tabs document err
Browse files Browse the repository at this point in the history
  • Loading branch information
qytayh committed Mar 21, 2023
1 parent 3630fea commit 3a20b0f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 24 deletions.
24 changes: 12 additions & 12 deletions packages/varlet-ui/src/tabs/docs/en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,22 +273,22 @@ const active = ref(0)

#### Tabs Props

| Prop | Description | Type | Default |
|--------------------|------------------------------------------------------------------------------|-----------|--------------|
| `v-model:active` | The `active` tab identifier matches `name` first, followed by `index` | _string_ | `index` |
| `layout-direction` | The layout direction of the tabs, optional value of `horizontal` `vertical` | _string_ | `horizontal` |
| `item-direction` | The layout direction of the tab, optional value of `horizontal` `vertical` | _string_ | `horizontal` |
| Prop | Description | Type | Default |
|--------------------|------------------------------------------------------------------------------|----------|--------------|
| `v-model:active` | The `active` tab identifier matches `name` first, followed by `index` | _string_ | `index` |
| `layout-direction` | The layout direction of the tabs, optional value of `horizontal` `vertical` | _string_ | `horizontal` |
| `item-direction` | The layout direction of the tab, optional value of `horizontal` `vertical` | _string_ | `horizontal` |
| `fixed-bottom` | Whether fixed to the bottom of the window, can be used for bottom navigation | _boolean_ | `false` |
| `color` | The background color of the tabs | _string_ | `#fff` |
| `active-color` | The primary color that the tab is activates | _string_ | `#2979ff` |
| `inactive-color` | The primary color that the tab is not activated | _string_ | `#646566` |
| `disabled-color` | The primary color that the tab is disabled | _string_ | `#e0e0e0` |
| `indicator-color` | The tab activates the color of the indicator | _string_ | `#2979ff` |
| `indicator-size` | Tab activates the size of the indicator | _string \ | number_ | `2px` |
| `color` | The background color of the tabs | _string_ | `#fff` |
| `active-color` | The primary color that the tab is activates | _string_ | `#2979ff` |
| `inactive-color` | The primary color that the tab is not activated | _string_ | `#646566` |
| `disabled-color` | The primary color that the tab is disabled | _string_ | `#e0e0e0` |
| `indicator-color` | The tab activates the color of the indicator | _string_ | `#2979ff` |
| `indicator-size` | Tab activates the size of the indicator | _string \| number_ | `2px` |
| `elevation` | Whether to enable shadows | _boolean_ | `false` |
| `sticky` | Whether to enable sticky layouts | _boolean_ | `false` |
| `sticky-css-mode` | Whether to enable sticky layouts native css sticky mode | _boolean_ | `false` |
| `sticky-z-index` | Sticky layouts z-index | _number_ | `10` |
| `sticky-z-index` | Sticky layouts z-index | _number_ | `10` |
| `safe-area` | Whether to enable bottom safe area adaptation | _boolean_ | `false` |
| `offset-top` | Distance offset top | _string \| number_ | `0` |

Expand Down
24 changes: 12 additions & 12 deletions packages/varlet-ui/src/tabs/docs/zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -273,22 +273,22 @@ const active = ref(0)

#### Tabs Props

| 参数 | 说明 | 类型 | 默认值 |
|--------------------|----------------------------------------|-----------|--------------|
| `v-model:active` | 激活的选项卡标识, 优先匹配 name,其次是 index | _string_ | `default` |
| `layout-direction` | 选项卡组的布局方向,可选值为 `horizontal` `vertical` | _string_ | `horizontal` |
| `item-direction` | 选项卡的布局方向,可选值为 `horizontal` `vertical` | _string_ | `horizontal` |
| 参数 | 说明 | 类型 | 默认值 |
|--------------------|----------------------------------------|----------|--------------|
| `v-model:active` | 激活的选项卡标识, 优先匹配 name,其次是 index | _string_ | `default` |
| `layout-direction` | 选项卡组的布局方向,可选值为 `horizontal` `vertical` | _string_ | `horizontal` |
| `item-direction` | 选项卡的布局方向,可选值为 `horizontal` `vertical` | _string_ | `horizontal` |
| `fixed-bottom` | 是否固定在窗口底部, 可用做底部导航 | _boolean_ | `false` |
| `color` | 选项卡的背景颜色 | _string_ | `#fff` |
| `active-color` | 选项卡激活的主要颜色 | _string_ | `#2979ff` |
| `inactive-color` | 选项卡未激活的主要颜色 | _string_ | `#646566` |
| `disabled-color` | 选项卡禁用时的主要颜色 | _string_ | `#e0e0e0` |
| `indicator-color` | 选项卡激活指示器的颜色 | _string_ | `#2979ff` |
| `indicator-size` | 选项卡激活指示器的尺寸 | _string \ | number_ | `2px` |
| `color` | 选项卡的背景颜色 | _string_ | `#fff` |
| `active-color` | 选项卡激活的主要颜色 | _string_ | `#2979ff` |
| `inactive-color` | 选项卡未激活的主要颜色 | _string_ | `#646566` |
| `disabled-color` | 选项卡禁用时的主要颜色 | _string_ | `#e0e0e0` |
| `indicator-color` | 选项卡激活指示器的颜色 | _string_ | `#2979ff` |
| `indicator-size` | 选项卡激活指示器的尺寸 | _string \| number_ | `2px` |
| `elevation` | 是否启用阴影 | _boolean_ | `false` |
| `sticky` | 是否启用粘性布局 | _boolean_ | `false` |
| `sticky-css-mode` | 是否启用粘性布局的原生 css sticky 模式 | _boolean_ | `false` |
| `sticky-z-index` | 粘性布局的层级 | _number_ | `10` |
| `sticky-z-index` | 粘性布局的层级 | _number_ | `10` |
| `safe-area` | 是否开启底部安全区适配 | _boolean_ | `false` |
| `offset-top` | 吸顶距离 | _string \| number_ | `0` |

Expand Down

0 comments on commit 3a20b0f

Please sign in to comment.