|
5 months ago | |
---|---|---|
.. | ||
README.en-US.md | 5 months ago | |
README.md | 5 months ago | |
props.d.ts | 5 months ago | |
props.js | 5 months ago | |
tab-bar.d.ts | 5 months ago | |
tab-bar.js | 5 months ago | |
tab-bar.json | 5 months ago | |
tab-bar.wxml | 5 months ago | |
tab-bar.wxss | 5 months ago | |
type.d.ts | 5 months ago | |
type.js | 5 months ago |
:: BASE_DOC ::
name | type | default | description | required
-- | -- | -- | -- | --
style | Object | - | CSS(Cascading Style Sheets) | N
custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N
bordered | Boolean | true | - | N
fixed | Boolean | true | - | N
safe-area-inset-bottom | Boolean | true | - | N
shape | String | normal | options: normal/round | N
split | Boolean | true | - | N
theme | String | normal | options: normal/tag | N
value | String / Number / Array | - | Typescript:string \| number \| Array<string \| number>
| N
default-value | String / Number / Array | undefined | uncontrolled property。Typescript:string \| number \| Array<string \| number>
| N
name | params | description
-- | -- | --
change | (value: string \| number)
| -
className | Description -- | -- t-class | -
name | type | default | description | required
-- | -- | -- | -- | --
style | Object | - | CSS(Cascading Style Sheets) | N
custom-style | Object | - | CSS(Cascading Style Sheets),used to set style on virtual component | N
badge-props | Object | - | Typescript:BadgeProps
,Badge API Documents。see more ts definition | N
icon | String / Object / Slot | - | see more ts definition | N
sub-tab-bar | Array | - | Typescript:SubTabBarItem[]
interface SubTabBarItem { value: string; label: string }
。see more ts definition | N
value | String / Number | - | - | N
The component provides the following CSS variables, which can be used to customize styles. Name | Default Value | Description -- | -- | -- --td-tab-bar-active-bg | @brand-color-light | - --td-tab-bar-active-color | @brand-color | - --td-tab-bar-bg-color | @bg-color-container | - --td-tab-bar-border-color | @border-color | - --td-tab-bar-color | @font-gray-1 | - --td-tab-bar-height | 80rpx | - --td-tab-bar-hover-bg-color | rgba(0, 0, 0, 0.05) | - --td-tab-bar-spread-border-color | @border-color | - --td-tab-bar-spread-shadow | @shadow-3 | - --td-tab-bar-border-color | @border-color | - --td-tab-bar-round-shadow | @shadow-3 | -