跳到主要内容

eo-tab-list

<eo-tab-list>
Alias: <containers.tab-list>

通用 Tab 容器。

Examples​

Tabs​

Playground

Type & Disabled​

Playground

With Badge​

Playground

ActivePanel & Extra​

Playground

No Outline​

Playground

Panel Color​

Playground

Content Style​

Playground

Auto Play​

Playground

Fill Container​

Playground

Properties​

NameDescriptionTypeDefaultRequired
type

样式类型

TabType "default"
tabs

标签页列表

(TabItemProps | string)[]
activePanel

激活状态 tab 的 panel

string
contentStyle

内容样式

React.CSSProperties
outline

轮廓。默认情况下,使用阴影,8.2 下默认则为无轮廓。

该属性对 panel 类型无效(其始终无轮廓)。

TabsOutline "default"
autoPlay

是否开启标签内容自动轮播

boolean false
autoSpeed

轮播的时间间隔,单位 ms

number 3000
fillContainerboolean
textContent

文本内容

string

Slots​

NameDescription
extra

头部插槽

(default)

[panel] - Tab 页插槽

Events​

NameDescriptionEvent Detail
tab.select

选择 tab 时触发

string - panel

Type references​

TabItemProps​

NameDescriptionTypeDefaultRequired
typeTabType
textstring
panelstring✅
iconGeneralIconProps
disabledboolean
hiddenboolean
activeboolean
badgeConfBadgeProps
panelColorstring

TabType​

"default" | "panel" | "capsule" | "text"

TabsOutline​

"shadow" | "none" | "default"