# Tab

标签页,可设置在顶部或底部、显示标签页数量、选中标签页颜色及其回调事件等。

# 代码演示

# API

Option Description  Type Default Value
className tab 类名 String -
tabs tab 数据 ITabIcon[] {}
selectedIndex 受控状态被选中的 tab 序号(从0开始) Number 0
defaultTabIndex 默认选中的 tab 序号 Number 0
tabBarPosition TabBar 位置 'top' | 'bottom' 'top'
onChange change 回调事件 (index:number,e:event) => void -
maxCount 默认显示的 tab 数量 Number 4
animated 是否支持动画 Boolean true
activeColor 自定义被选中 tab 颜色 string -
onSubChange tab 弹出菜单子项选中回调事件 (item:IPoplistItem) => void -
拖拽移动|点击折叠