跳到主要内容
版本:0.9.0-beta.2

Interface: ITabsProps<T>

molecule.component.ITabsProps

TODO: Get rid of the generic and remove the ComponentProps

Type parameters

NameType
Tany

Hierarchy

Properties

activeTab

Optional activeTab: UniqueId

Defined in

src/components/tabs/index.tsx:33


className

Optional className: string

Defined in

src/components/tabs/index.tsx:21


closable

Optional closable: boolean

deprecated For now, we don't need to control the global closable

Defined in

src/components/tabs/index.tsx:27


data

Optional data: ITabProps<any, any>[]

Defined in

src/components/tabs/index.tsx:32


editable

Optional editable: boolean

deprecated For now, we don't need to control the global editable

Defined in

src/components/tabs/index.tsx:31


role

Optional role: string

Defined in

src/components/tabs/index.tsx:23


style

Optional style: CSSProperties

Defined in

src/components/tabs/index.tsx:22


type

Optional type: TabsType

Default is line

Defined in

src/components/tabs/index.tsx:37

Methods

onCloseTab

Optional onCloseTab(key): void

Parameters

NameType
keyUniqueId

Returns

void

Defined in

src/components/tabs/index.tsx:38


onContextMenu

Optional onContextMenu(e, tab): void

Parameters

NameType
eMouseEvent<Element, MouseEvent>
tabITabProps<any, any>

Returns

void

Defined in

src/components/tabs/index.tsx:39


onMoveTab

Optional onMoveTab(tabs): void

Parameters

NameType
tabsITabProps<any, any>[]

Returns

void

Defined in

src/components/tabs/index.tsx:40


onSelectTab

Optional onSelectTab(key): void

Parameters

NameType
keyUniqueId

Returns

void

Defined in

src/components/tabs/index.tsx:41