<tap-pat-result>
结果页,用于操作成功/失败、缺少权限等整页状态。按钮只发出事件,跳转或关闭由调用方处理。
Example
Loading...
<tap-pat-result
style=${"width: 100%; height: 400px"}
.status=${"success"}
.heading=${"支付成功"}
.description=${"订单已提交,将在 24 小时内发货。"}
.primary=${"查看订单"}
.secondary=${"返回首页"}></tap-pat-result> <tap-pat-result
style=${"width: 100%; height: 400px"}
.status=${"error"}
.heading=${"提交失败"}
.description=${"请检查网络连接后重试。"}
.primary=${"重试"}></tap-pat-result>
API
结果页,例如操作成功/失败、需要权限
按钮只发出事件,跳转或关闭由调用方处理
Extends GemElement
Instance Properties
| Property(Attribute) | Reactive | Type | Description |
|---|---|---|---|
status(status) |
Yes | ResultStatus |
Defaults to success |
heading(heading) |
Yes | string |
|
description(description) |
Yes | string |
|
primary(primary) |
Yes | string |
Label of the primary button, hidden when not set |
secondary(secondary) |
Yes | string |
Label of the secondary button, hidden when not set |
primaryclick |
Emitter<null> |
||
secondaryclick |
Emitter<null> |
Other
| Type | Value |
|---|---|
| Event | primaryclick, secondaryclick |
