Skip to content

Commit

Permalink
docs(TabBar): optimize version information
Browse files Browse the repository at this point in the history
  • Loading branch information
Layouwen committed Aug 7, 2024
1 parent 1cdce48 commit 9f4fed3
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion src/components/tab-bar/demos/demo1.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useState } from 'react'
import { Badge, TabBar, Toast } from 'antd-mobile'
import { Badge, TabBar } from 'antd-mobile'
import { DemoBlock } from 'demos'
import {
AppOutline,
Expand Down
12 changes: 6 additions & 6 deletions src/components/tab-bar/index.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ Useful for switching between different pages.

### Props

| Name | Description | Type | Default |
| --- | --- | --- | --- |
| badge | Badge,the same as [Badge](/components/badge) `content` prop | `React.ReactNode \| typeof Badge.dot` | - |
| icon | Icon | `ReactNode \| ((active: boolean) => ReactNode)` | - |
| Name | Description | Type | Default | Version |
| --- | --- | --- | --- | --- |
| badge | Badge,the same as [Badge](/components/badge) `content` prop | `React.ReactNode \| typeof Badge.dot` | - | |
| icon | Icon | `ReactNode \| ((active: boolean) => ReactNode)` | - | |
| key | Corresponding to `activeKey` | `string` | - |
| title | Title | `ReactNode \| ((active: boolean) => ReactNode)` | - |
| onClick | Callback when click item | `(key: string) => void` | - |
| title | Title | `ReactNode \| ((active: boolean) => ReactNode)` | - | |
| onClick | Callback when click item | `() => void` | - | 5.38.0 |

## FAQ

Expand Down
14 changes: 7 additions & 7 deletions src/components/tab-bar/index.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@

### 属性

| 属性 | 说明 | 类型 | 默认值 |
| --- | --- | --- | --- |
| badge | 徽标,同 [Badge](/zh/components/badge)`content` 属性 | `React.ReactNode \| typeof Badge.dot` | - |
| icon | 图标 | `ReactNode \| ((active: boolean) => ReactNode)` | - |
| key | 对应 `activeKey` | `string` | - |
| title | 标题 | `ReactNode \| ((active: boolean) => ReactNode)` | - |
| onClick | 点击事件的回调 | `(key: string) => void` | - |
| 属性 | 说明 | 类型 | 默认值 | 版本 |
| --- | --- | --- | --- | --- |
| badge | 徽标,同 [Badge](/zh/components/badge)`content` 属性 | `React.ReactNode \| typeof Badge.dot` | - | |
| icon | 图标 | `ReactNode \| ((active: boolean) => ReactNode)` | - | |
| key | 对应 `activeKey` | `string` | - | |
| title | 标题 | `ReactNode \| ((active: boolean) => ReactNode)` | - | |
| onClick | 点击事件的回调 | `() => void` | - | 5.38.0 |

## FAQ

Expand Down

0 comments on commit 9f4fed3

Please sign in to comment.