diff --git a/src/BootstrapBlazor/Attributes/AutoGenerateColumnAttribute.cs b/src/BootstrapBlazor/Attributes/AutoGenerateColumnAttribute.cs
index 2772a7e8234..36c8969c93b 100644
--- a/src/BootstrapBlazor/Attributes/AutoGenerateColumnAttribute.cs
+++ b/src/BootstrapBlazor/Attributes/AutoGenerateColumnAttribute.cs
@@ -230,6 +230,11 @@ public class AutoGenerateColumnAttribute : AutoGenerateBaseAttribute, ITableColu
///
public bool ShowSearchWhenSelect { get; set; }
+ ///
+ ///
+ ///
+ public bool IsFixedSearchWhenSelect { get; set; }
+
///
///
///
diff --git a/src/BootstrapBlazor/BootstrapBlazor.csproj b/src/BootstrapBlazor/BootstrapBlazor.csproj
index 0fadf98642f..b795e294dd3 100644
--- a/src/BootstrapBlazor/BootstrapBlazor.csproj
+++ b/src/BootstrapBlazor/BootstrapBlazor.csproj
@@ -1,7 +1,7 @@
- 9.4.9-beta07
+ 9.4.9-beta08
diff --git a/src/BootstrapBlazor/Components/EditorForm/EditorItem.cs b/src/BootstrapBlazor/Components/EditorForm/EditorItem.cs
index 8e2859fbfd7..bc850244925 100644
--- a/src/BootstrapBlazor/Components/EditorForm/EditorItem.cs
+++ b/src/BootstrapBlazor/Components/EditorForm/EditorItem.cs
@@ -9,9 +9,8 @@
namespace BootstrapBlazor.Components;
///
-/// EditorItem 组件
+/// EditorItem component
///
-/// 用于 EditorForm 的 FieldItems 模板内
public class EditorItem : ComponentBase, IEditorItem
{
///
@@ -27,7 +26,7 @@ public class EditorItem : ComponentBase, IEditorItem
public EventCallback FieldChanged { get; set; }
///
- /// 获得/设置 绑定列类型
+ ///
///
[NotNull]
public Type? PropertyType { get; set; }
@@ -71,19 +70,19 @@ public class EditorItem : ComponentBase, IEditorItem
public string? RequiredErrorMessage { get; set; }
///
- /// 获得/设置 是否不进行验证 默认为 false
+ ///
///
[Parameter]
public bool SkipValidate { get; set; }
///
- /// 获得/设置 是否显示标签 Tooltip 多用于标签文字过长导致裁减时使用 默认 null
+ ///
///
[Parameter]
public bool? ShowLabelTooltip { get; set; }
///
- /// 获得/设置 表头显示文字
+ ///
///
[Parameter]
public string? Text { get; set; }
@@ -95,13 +94,13 @@ public class EditorItem : ComponentBase, IEditorItem
public string? Step { get; set; }
///
- /// 获得/设置 Textarea行数
+ ///
///
[Parameter]
public int Rows { get; set; }
///
- /// 获得/设置 编辑模板
+ ///
///
[Parameter]
public RenderFragment? EditTemplate { get; set; }
@@ -121,47 +120,53 @@ public class EditorItem : ComponentBase, IEditorItem
}
///
- /// 获得/设置 组件类型 默认为 null
+ ///
///
[Parameter]
public Type? ComponentType { get; set; }
///
- /// 获得/设置 组件自定义类型参数集合 默认为 null
+ ///
///
[Parameter]
public IEnumerable>? ComponentParameters { get; set; }
///
- /// 获得/设置 placeholder 文本 默认为 null
+ ///
///
[Parameter]
public string? PlaceHolder { get; set; }
///
- /// 获得/设置 显示顺序
+ ///
///
[Parameter]
public int Order { get; set; }
///
- /// 获得/设置 额外数据源一般用于下拉框或者 CheckboxList 这种需要额外配置数据源组件使用
+ ///
///
[Parameter]
public IEnumerable? Items { get; set; }
///
- /// 获得/设置 字典数据源 常用于外键自动转换为名称操作
+ ///
///
[Parameter]
public IEnumerable? Lookup { get; set; }
///
- /// 获得/设置 字段数据源下拉框是否显示搜索栏 默认 false 不显示
+ ///
///
[Parameter]
public bool ShowSearchWhenSelect { get; set; }
+ ///
+ ///
+ ///
+ [Parameter]
+ public bool IsFixedSearchWhenSelect { get; set; }
+
///
///
///
@@ -193,32 +198,28 @@ public class EditorItem : ComponentBase, IEditorItem
public ILookupService? LookupService { get; set; }
///
- /// 获得/设置 自定义验证集合
+ ///
///
[Parameter]
public List? ValidateRules { get; set; }
- ///
- /// 获得/设置 IEditorItem 集合实例
- ///
- /// EditorForm 组件级联传参下来的值
[CascadingParameter]
private List? EditorItems { get; set; }
///
- /// 获得/设置 当前属性分组
+ ///
///
[Parameter]
public string? GroupName { get; set; }
///
- /// 获得/设置 当前属性分组排序 默认 0
+ ///
///
[Parameter]
public int GroupOrder { get; set; }
///
- /// OnInitialized 方法
+ ///
///
protected override void OnInitialized()
{
@@ -235,13 +236,14 @@ protected override void OnInitialized()
}
private FieldIdentifier? _fieldIdentifier;
+
///
- /// 获取绑定字段显示名称方法
+ /// Gets the display name for the field.
///
public virtual string GetDisplayName() => Text ?? _fieldIdentifier?.GetDisplayName() ?? string.Empty;
///
- /// 获取绑定字段信息方法
+ /// Gets the field name for the field.
///
public string GetFieldName() => _fieldIdentifier?.FieldName ?? string.Empty;
}
diff --git a/src/BootstrapBlazor/Components/EditorForm/IEditorItem.cs b/src/BootstrapBlazor/Components/EditorForm/IEditorItem.cs
index 8c6d790b509..2ae1a00c138 100644
--- a/src/BootstrapBlazor/Components/EditorForm/IEditorItem.cs
+++ b/src/BootstrapBlazor/Components/EditorForm/IEditorItem.cs
@@ -86,6 +86,11 @@ public interface IEditorItem : ILookup
///
bool ShowSearchWhenSelect { get; set; }
+ ///
+ /// Gets or sets whether to allow fixed search box within dropdown. Default is false.
+ ///
+ bool IsFixedSearchWhenSelect { get; set; }
+
///
/// Gets or sets whether to use Popover to render the dropdown list. Default is false.
///
diff --git a/src/BootstrapBlazor/Components/Filters/LookupFilter.razor b/src/BootstrapBlazor/Components/Filters/LookupFilter.razor
index ade21e8e2ee..c4baa0705dc 100644
--- a/src/BootstrapBlazor/Components/Filters/LookupFilter.razor
+++ b/src/BootstrapBlazor/Components/Filters/LookupFilter.razor
@@ -5,10 +5,10 @@
{
if (IsHeaderRow)
{
-
+
}
else
{
-
+
}
}
diff --git a/src/BootstrapBlazor/Components/Filters/LookupFilter.razor.cs b/src/BootstrapBlazor/Components/Filters/LookupFilter.razor.cs
index be9fa4540a2..a18f8cd59af 100644
--- a/src/BootstrapBlazor/Components/Filters/LookupFilter.razor.cs
+++ b/src/BootstrapBlazor/Components/Filters/LookupFilter.razor.cs
@@ -58,6 +58,12 @@ public partial class LookupFilter : ILookup
[Parameter]
public bool IsShowSearch { get; set; }
+ ///
+ /// 获得 是否为 ShowSearch 呈现模式 默认为 false
+ ///
+ [Parameter]
+ public bool IsFixedSearch { get; set; }
+
[Inject]
[NotNull]
private IStringLocalizer? Localizer { get; set; }
diff --git a/src/BootstrapBlazor/Components/Filters/TableFilter.razor b/src/BootstrapBlazor/Components/Filters/TableFilter.razor
index fc355a662c4..53df8ddfa2e 100644
--- a/src/BootstrapBlazor/Components/Filters/TableFilter.razor
+++ b/src/BootstrapBlazor/Components/Filters/TableFilter.razor
@@ -46,7 +46,7 @@ else
}
else if (Column.IsLookup())
{
-
+
}
else
{
diff --git a/src/BootstrapBlazor/Components/Table/InternalTableColumn.cs b/src/BootstrapBlazor/Components/Table/InternalTableColumn.cs
index e5e574d86fe..27ec2dee2f3 100644
--- a/src/BootstrapBlazor/Components/Table/InternalTableColumn.cs
+++ b/src/BootstrapBlazor/Components/Table/InternalTableColumn.cs
@@ -5,12 +5,6 @@
namespace BootstrapBlazor.Components;
-///
-/// 构造函数
-///
-/// 字段名称
-/// 字段类型
-/// 显示文字
class InternalTableColumn(string fieldName, Type fieldType, string? fieldText = null) : ITableColumn
{
private string FieldName { get; } = fieldName;
@@ -94,22 +88,37 @@ class InternalTableColumn(string fieldName, Type fieldType, string? fieldText =
public string? RequiredErrorMessage { get; set; }
///
- /// 获得/设置 是否显示标签 Tooltip 多用于标签文字过长导致裁减时使用 默认 null
+ ///
///
public bool? ShowLabelTooltip { get; set; }
+ ///
+ ///
+ ///
public string? CssClass { get; set; }
+ ///
+ ///
+ ///
public BreakPoint ShownWithBreakPoint { get; set; }
+ ///
+ ///
+ ///
public RenderFragment