选项卡容器组件
- Source:
Members
(inner) props
- Source:
Properties:
Name | Type | Attributes | Default | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
tabs |
array |
<optional> |
选项卡数据数组, 项对象 {name,label,component, props} Properties
|
|||||||||||||||||||||
defaultActive |
string |
<optional> |
初始激活的选项卡名称 |
|||||||||||||||||||||
position |
string |
<optional> |
left
|
tab显示位置,可选 'left', 'right', 'top' |
||||||||||||||||||||
stretch |
boolean |
<optional> |
标签的宽度是否自撑开,对 position 为 top 有效 |
|||||||||||||||||||||
responsiveWidth |
number |
<optional> |
响应式的宽度,小于该值后变成position=top |
|||||||||||||||||||||
fixed |
boolean |
<optional> |
固定tabs,不随页面滚动,对 position 为 left 或 right 有效 |
|||||||||||||||||||||
card |
boolean |
<optional> |
开启卡片模式,仅对 position 为 top 有效 |
属性参数, 继承 MyContainer 的全部参数,如 fit、shadow、border
(inner) slots
- Source:
Properties:
Name | Type | Description |
---|---|---|
label |
string | 作用域插槽,定义选项卡的头部,参数 tab:选项卡项数据,index:选项卡索引 |
default |
string | 作用域插槽,定义选项卡内容,参数 tab:选项卡项数据 |
插槽
Events
change
- Source:
选项卡切换时触发
Parameters:
Name | Type | Description |
---|---|---|
name |
string | 选项卡名称 |
tab |
Object | 选项卡数据对象 |