<tap-banner>
横幅用于向用户传达重要信息,醒目且常用于系统级公告、警告或需要关注的关键信息。
Example
Loading...
<tap-banner
style=${"width: 100%"}
.closable=${true}
.status=${"positive"}
.action=${{"text":"View"}}> This is banner </tap-banner>
API
Shadow DOM; Extends GemElement
Instance Properties
| Property(Attribute) | Reactive | Type |
|---|---|---|
closable(closable) |
Yes | boolean |
status(status) |
Yes | Status |
action |
Yes | { text: string; handle: () => void } |
close |
Emitter<null> |
Other
| Type | Value |
|---|---|
| Event | close |
| Slot | unnamed |
