Imui
Components
AlertAlignButtonCheckboxCheckbox GroupConfirmDatepickerDialogDropdownFormIconInputMenuMessageMonthpickerPagePickerPopconfirmRadioStatusboxTabProps & MethodsBasic UsageNo DestroyTab TypesTab ScenesActiveOnActiveOnBeforeActiveTableUploadValidator
Home introReadmeRelease

Tab

Props & Methods

prefixCls
string
"im-tab"
active
string
"0"
onTabClick
func
function() { }
onActive
func
function() { }
onBeforeActive
func
function() { }
tabType
'bottom' │ 'border' │ 'top' │ 'fit'
'bottom'
tabScene
'center' │ 'bookmark' │ 'banner'
[Empty string]
shouldDestroy
bool
true
style
object
className
string

Basic Usage

No Destroy

Panel 1

Panel 2

Panel 3

Tab Types

Panel 1: The tabType is 'bottom'

Panel 1: The tabType is 'top'

Panel 1: The tabType is 'fit'

Panel 1: The tabType is 'border'

Tab Scenes

Panel 1: The tabScene is 'center'

Panel 1: The tabScene is 'bookmark'

Panel 1: The tabScene is 'banner'

Active

OnActive

选中了第 -1 项,上一次选中是 2

OnBeforeActive

选中了第 -1 项,上一次选中的是 2