跳到主要内容
版本:1.x

Interface: ITabsProps

molecule.component.ITabsProps

TODO: Get rid of the ComponentProps in next version

Hierarchy

Properties

activeTab

Optional activeTab: UniqueId

Defined in

components/tabs/index.tsx:36


className

Optional className: string

Defined in

components/tabs/index.tsx:24


closable

Optional closable: boolean

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

Defined in

components/tabs/index.tsx:30


data

Optional data: ITabProps<any, any>[]

Defined in

components/tabs/index.tsx:35


editable

Optional editable: boolean

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

Defined in

components/tabs/index.tsx:34


role

Optional role: string

Defined in

components/tabs/index.tsx:26


style

Optional style: CSSProperties

Defined in

components/tabs/index.tsx:25


type

Optional type: TabsType

Default is line

Defined in

components/tabs/index.tsx:40

Methods

onCloseTab

Optional onCloseTab(key): void

Parameters

NameType
keyUniqueId

Returns

void

Defined in

components/tabs/index.tsx:41


onContextMenu

Optional onContextMenu(e, tab): void

Parameters

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

Returns

void

Defined in

components/tabs/index.tsx:42


onMoveTab

Optional onMoveTab(tabs): void

Parameters

NameType
tabsITabProps<any, any>[]

Returns

void

Defined in

components/tabs/index.tsx:43


onSelectTab

Optional onSelectTab(key): void

Parameters

NameType
keyUniqueId

Returns

void

Defined in

components/tabs/index.tsx:44