<tap-navbar>
顶部导航栏组件。提供返回按钮、主标题、副标题以及右侧操作区域。
Example
Loading...
<tap-navbar .title=${"页面标题"} .back=${true}></tap-navbar> <tap-navbar
.title=${"主标题"}
.subtitle=${"副标题描述"}
.back=${true}></tap-navbar>
API
Shadow DOM; Extends GemElement
Instance Properties
| Property(Attribute) | Reactive | Type | Description |
|---|---|---|---|
title(title) |
Yes | string |
|
subtitle(subtitle) |
Yes | string |
|
back(back) |
Yes | boolean |
|
defaultBack(default-back) |
Yes | boolean |
|
transparent(transparent) |
Yes | boolean |
Set by <tap-page floatheader> while content is not scrolled |
backclick |
Emitter<null> |
Other
| Type | Value |
|---|---|
| Event | backclick |
| Slot | right, left |
| Part | title, subtitle |
