由一个主操作按钮和一个触发下拉菜单的次按钮组成的复合组件。遵循 Microsoft Fluent UI Blazor (SplitButton) 官方 v4.13.2 规格。
API
Parameters (参数)
| 状态 |
参数名 |
类型 |
默认值 |
描述 |
| [x] |
AdditionalAttributes (继承) |
IEnumerable<KeyValuePair<string, object>>? |
null |
捕获不匹配的 HTML 属性。 |
| [x] |
Appearance |
ButtonAppearance |
Neutral |
视觉风格:Neutral, Accent, Outline, Lightweight, Stealth。 |
| [x] |
Class (继承) |
string? |
null |
自定义 CSS 类名。 |
| [x] |
Disabled (继承) |
bool |
false |
是否禁用交互。 |
| [x] |
Id (继承) |
string? |
null |
组件的物理 Id。 |
| [x] |
Open |
bool |
false |
控制下拉菜单的打开/关闭状态。 |
| [x] |
Style (继承) |
string? |
null |
自定义内联样式。 |
| [x] |
Text |
string |
"" |
主按钮显示的文字。 |
| [x] |
Title (继承) |
string? |
null |
HTML title 属性。 |
Events (事件)
| 状态 |
事件名 |
类型 |
描述 |
| [x] |
OnClick |
EventCallback<MouseEventArgs> |
点击主按钮时触发。 |
参考设计 (References)