ion-tab
Tab 组件是 tabs 的子组件。每个选项卡可以包含应用的顶级导航堆栈或单个视图。一个应用可以有多个选项卡,每个都有自己的独立导航。
备注
有关配置选项卡的更多详细信息,请参阅 tabs 文档。
属性
component
| 说明 | The component to display inside of the tab. |
| 属性 | component |
| 类型 | Function | HTMLElement | null | string | undefined |
| 默认值 | undefined |
tab
| 说明 | A tab id must be provided for each ion-tab. It's used internally to reference the selected tab or by the router to switch between them. |
| 属性 | tab |
| 类型 | string |
| 默认值 | undefined |
事件
该组件没有可用的事件。
方法
setActive
| 说明 | Set the active component for the tab |
| 签名 | setActive() => Promise<void> |
CSS Shadow Parts
该组件没有可用的 CSS 阴影部分。
CSS 自定义属性
该组件没有可用的 CSS 自定义属性。
插槽
该组件没有可用的插槽。