SxStack (堆叠布局)
- Implemented
一维布局组件,用于排列子元素。遵循 Microsoft Fluent UI Blazor (Stack) 官方 v4.13.2 规格。
API
Parameters (参数)
| 状态 | 参数名 | 类型 | 默认值 | 描述 |
|---|---|---|---|---|
| [x] | AdditionalAttributes (继承) |
IEnumerable<KeyValuePair<string, object>>? |
null |
捕获不匹配的 HTML 属性。 |
| [x] | Class (继承) |
string? |
null |
自定义 CSS 类名。 |
| [x] | HorizontalAlignment |
HorizontalAlignment |
Start |
水平方向对齐方式。 |
| [x] | Id (继承) |
string? |
null |
组件的物理 Id。 |
| [x] | Orientation |
StackOrientation |
Horizontal |
堆叠方向:Horizontal, Vertical。 |
| [x] | Spacing |
int? |
null |
元素间的像素步长间距(对应官方 Spacing)。 |
| [x] | Style (继承) |
string? |
null |
自定义内联样式。 |
| [x] | VerticalAlignment |
VerticalAlignment |
Start |
垂直方向对齐方式。 |
| [x] | Wrap |
bool |
false |
是否允许自动换行。 |