tabs-page-title
<data-view.tabs-page-title>构件 tabs-page-title
Examples
Basic
TabList
Properties
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
tabList | 标签,如果没有就不展示标签 | TabsItem[] | - | |
activeKey | 标签高亮显示,默认第一个 | string | - | |
textContent | 文本内容 | string |
Slots
| Name | Description |
|---|---|
| (default) | 标题 |
start | 顶部左边插槽 |
end | 顶部右边插槽 |
| (default) | [key] - 标签对应的key的插槽 |
Events
| Name | Description | Event Detail |
|---|---|---|
tab.change | 切换 | string - `string` |
Type references
TabsItem
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
key | 唯一标识,对应 slot 名称 | string | ✅ | |
text | 标签名称 | string | ✅ |