SxSortableList (可排序列表)

  • Implemented

支持通过拖拽调整项顺序的交互式列表。遵循 Microsoft Fluent UI Blazor (SortableList) 官方 v4.13.2 规格。

API

Parameters (参数)

状态 参数名 类型 默认值 描述
[x] AdditionalAttributes (继承) IEnumerable<KeyValuePair<string, object>>? null 捕获不匹配的 HTML 属性。
[x] Class (继承) string? null 自定义 CSS 类名。
[x] Clone bool false 是否克隆被拖拽项(而非移动)。
[x] DropTarget bool false 是否仅作为放置目标。
[x] Group string? null 分组标识,允许在同名组之间跨列表拖拽。
[x] Handle bool false 是否必须通过特定拖拽柄触发排序。
[x] Id (继承) string? null 组件的物理 Id。
[x] Items IEnumerable<TItem>? null 数据源集合。
[x] ItemTemplate RenderFragment<TItem>? null 自定义单项渲染模版。
[x] Pull bool true 是否允许从该列表拉取项。
[x] Put bool true 是否允许向该列表放置项。
[x] Sort bool true 是否允许在列表内重排顺序。
[x] Style (继承) string? null 自定义内联样式。

Events (事件)

状态 事件名 类型 描述
[x] OnUpdate EventCallback<SortableListEventArgs<TItem>> 排序发生变动后触发。

参考设计 (References)