diff --git a/src/components/tab-bar/demos/demo1.tsx b/src/components/tab-bar/demos/demo1.tsx index a36ecf2d99..b638da8205 100644 --- a/src/components/tab-bar/demos/demo1.tsx +++ b/src/components/tab-bar/demos/demo1.tsx @@ -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, diff --git a/src/components/tab-bar/index.en.md b/src/components/tab-bar/index.en.md index 3f2fe36238..2df1dbc374 100644 --- a/src/components/tab-bar/index.en.md +++ b/src/components/tab-bar/index.en.md @@ -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 diff --git a/src/components/tab-bar/index.zh.md b/src/components/tab-bar/index.zh.md index 08f1b9b5ec..5c739cc73b 100644 --- a/src/components/tab-bar/index.zh.md +++ b/src/components/tab-bar/index.zh.md @@ -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