说明
用 FormGroup 组合筛选项,OnQuery / OnReset 交由页面处理。
常见能力:
- 条件栅格
- 查询/重置
- 自定义按钮
用法
<FilterBar Title="筛选条件" OnQuery="@Reload">
<Input Placeholder="订单编号" />
</FilterBar>
API 参数
| 参数 | 类型 | 默认值 | 说明 |
|---|---|---|---|
Actions |
RenderFragment |
null |
自定义按钮,为空时使用默认。 |
ChildContent |
RenderFragment |
null |
|
OnQuery |
EventCallback |
— | 事件 |
OnReset |
EventCallback |
— | 事件 |
QueryText |
string |
"查询" |
查询按钮文字。 |
ShowActions |
bool |
true |
是否显示默认的查询/重置按钮。 |
Title |
string |
null |
分组标题。 |
Visible |
bool |
true |
取得或设置组件是否可见,默认为false。 |
VisibleChanged |
EventCallback<bool> |
— | 事件 取得或设置组件可见性变化时的回调事件。 |
Class |
string |
null |
取得或设置组件的CSS类名,用于自定义样式。 |
Disabled |
bool |
false |
取得或设置组件是否禁用,默认为false。 |
Style |
string |
null |
取得或设置组件的内联样式,用于自定义样式。 |
所有组件均继承
BaseComponent,除上表参数外还支持Class、Style、Disabled、Visible。
扫码关注公众号
扫码加入 QQ 群