water_xcx/miniprogram_npm/tdesign-miniprogram/tab-bar/README.en-US.md

30 lines
1.2 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

:: BASE_DOC ::
## API
### TabBar Props
name | type | default | description | required
-- | -- | -- | -- | --
bordered | Boolean | true | \- | N
external-classes | Array | - | `['t-class']` | N
fixed | Boolean | true | \- | N
safe-area-inset-bottom | Boolean | true | \- | N
split | Boolean | true | \- | N
value | String / Number / Array | undefined | Typescript`string | number | Array<string | number>` | N
default-value | String / Number / Array | undefined | uncontrolled property。Typescript`string | number | Array<string | number>` | N
### TabBar Events
name | params | description
-- | -- | --
change | `(value: string | number)` | \-
### TabBarItem Props
name | type | default | description | required
-- | -- | -- | -- | --
badge-props | Object | - | Typescript`BadgeProps`[Badge API Documents](./badge?tab=api)。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/tab-bar/type.ts) | N
icon | String / Slot | - | \- | N
sub-tab-bar | Array | - | Typescript`SubTabBarItem[] ` `interface SubTabBarItem { value: string; label: string }`。[see more ts definition](https://github.com/Tencent/tdesign-miniprogram/tree/develop/src/tab-bar/type.ts) | N
value | String / Number | - | \- | N