说明
Type 决定图标与配色,Actions 放置返回或继续操作按钮。
常见能力:
- 五种状态
- 自定义图标
- 操作按钮区
- 补充内容
用法
<ResultPage Type="success" Title="提交成功"
Description="我们会在 1 个工作日内联系您">
<Actions><Button Kind="primary" Text="返回列表" OnClick="@GoHome" /></Actions>
</ResultPage>
API 参数
| 参数 | 类型 | 默认值 | 说明 |
|---|---|---|---|
Actions |
RenderFragment |
null |
底部操作按钮。 |
ChildContent |
RenderFragment |
null |
|
Description |
string |
null |
描述。 |
Icon |
string |
null |
自定义图标。 |
Title |
string |
"操作成功" |
主标题。 |
Type |
string |
"success" |
结果类型:success / danger(或别名 error)/ warning / info / empty。 |
Visible |
bool |
true |
取得或设置组件是否可见,默认为false。 |
VisibleChanged |
EventCallback<bool> |
— | 事件 取得或设置组件可见性变化时的回调事件。 |
Class |
string |
null |
取得或设置组件的CSS类名,用于自定义样式。 |
Disabled |
bool |
false |
取得或设置组件是否禁用,默认为false。 |
Style |
string |
null |
取得或设置组件的内联样式,用于自定义样式。 |
所有组件均继承
BaseComponent,除上表参数外还支持Class、Style、Disabled、Visible。
扫码关注公众号
扫码加入 QQ 群