tab 容器
仅支持最多一个<tab-bar>
和最多一个<tab-content>
支持通用属性
名称 | 类型 | 默认值 | 必填 | 描述 |
---|---|---|---|---|
index | <number> | 0 | 否 | 当前 active tab 索引 |
layout-type | <string> | linear-vertical | 否 | 指定 tab-bar 和 tab-content 的位置关系。取值范围 linear-vertical | linear-horizontal | stack |
支持通用样式
支持通用事件
名称 | 参数 | 描述 |
---|---|---|
change | {index: indexValue} | tabs 子组件 active 变化时触发 |
查看示例代码