diff --git a/src/BootstrapBlazor.Server/Components/Samples/MultiSelects.razor b/src/BootstrapBlazor.Server/Components/Samples/MultiSelects.razor index 2bc1eb30808..1d29957a846 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/MultiSelects.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/MultiSelects.razor @@ -117,12 +117,6 @@ private enum MultiSelectEnumFoo

@((MarkupString)Localizer["MultiSelectSearchDescription"].Value)

-
- - - - -
@@ -135,12 +129,12 @@ private enum MultiSelectEnumFoo
+ ShowSearch="true" IsClearable="_isClearable" OnSearchTextChanged="@OnSearch">
+ ShowSearch="true" IsClearable="_isClearable">
@@ -313,12 +307,6 @@ private enum MultiSelectEnumFoo
-
- - - - -
@@ -339,7 +327,7 @@ private enum MultiSelectEnumFoo
+ IsClearable="_isClearable">
@@ -352,7 +340,7 @@ private enum MultiSelectEnumFoo
+ IsClearable="_isClearable">
diff --git a/src/BootstrapBlazor.Server/Components/Samples/MultiSelects.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/MultiSelects.razor.cs index 20bf1a380cb..487e9f396d8 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/MultiSelects.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/MultiSelects.razor.cs @@ -120,8 +120,6 @@ private enum MultiSelectEnumFoo private IEnumerable VirtualItems => Foos.Select(i => new SelectedItem(i.Name!, i.Name!)).ToList(); private string? _editString; - - private bool _isFixedSearch = true; private bool _isClearable = true; private bool _showToolbar = true; private bool _showSearch = true; @@ -382,14 +380,6 @@ private AttributeItem[] GetAttributes() => DefaultValue = "false" }, new() - { - Name = "IsFixedSearch", - Description = Localizer["MultiSelectsAttribute_IsFixedSearch"], - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - }, - new() { Name = "ShowToolbar", Description = Localizer["MultiSelectsAttribute_ShowToolbar"], diff --git a/src/BootstrapBlazor.Server/Components/Samples/Selects.razor b/src/BootstrapBlazor.Server/Components/Samples/Selects.razor index 8bc1b2cfefc..b54eedfce0a 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Selects.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Selects.razor @@ -323,23 +323,17 @@
-
- - - - -
@@ -440,12 +434,6 @@ -
- - - - -
@@ -459,7 +447,7 @@
+ ShowSearch="_showSearch" IsClearable="_isClearable">
@@ -470,7 +458,7 @@
+ ShowSearch="_showSearch" IsClearable="_isClearable">
diff --git a/src/BootstrapBlazor.Server/Components/Samples/Selects.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Selects.razor.cs index 883a8afe457..808f941bf71 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Selects.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Selects.razor.cs @@ -41,16 +41,10 @@ public sealed partial class Selects [NotNull] private IStringLocalizer? LocalizerFoo { get; set; } - private bool _showSearch; - + private bool _showSearch = true; private bool _showPopoverSearch = true; - - private bool _isShowSearchClearable; - - private bool _isFixedSearch; - - private bool _isClearable; - + private bool _isShowSearchClearable = true; + private bool _isClearable = true; private string? _fooName; private readonly List _enumValueDemoItems = [ @@ -359,14 +353,6 @@ private AttributeItem[] GetAttributes() => DefaultValue = "false" }, new() - { - Name = "IsFixedSearch", - Description = Localizer["SelectsIsFixedSearch"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "false" - }, - new() { Name = "IsDisabled", Description = Localizer["SelectsIsDisabled"], diff --git a/src/BootstrapBlazor.Server/Locales/en-US.json b/src/BootstrapBlazor.Server/Locales/en-US.json index 2ae4a679936..92f21500fce 100644 --- a/src/BootstrapBlazor.Server/Locales/en-US.json +++ b/src/BootstrapBlazor.Server/Locales/en-US.json @@ -3028,8 +3028,7 @@ "MultiSelectVirtualizeTitle": "Virtualize", "MultiSelectVirtualizeIntro": "Set IsVirtualize to true enable virtual scroll for large data", "MultiSelectVirtualizeDescription": "Component virtual scrolling supports two ways of providing data through Items or OnQueryAsync callback methods", - "MultiSelectsAttribute_ShowSearch": "Whether to display the search box", - "MultiSelectsAttribute_IsFixedSearch": "Whether fixed the search box" + "MultiSelectsAttribute_ShowSearch": "Whether to display the search box" }, "BootstrapBlazor.Server.Components.Samples.Radios": { "RadiosTitle": "Radio", @@ -3205,8 +3204,7 @@ "SelectsGenericDesc": "

Please refer to Design Ideas to understand this feature. In this example, by selecting the drop-down box option, the value obtained is the Foo instance, and the value displayed in the text box on the right is the Address value of the Foo attribute

In this example, the ValueEqualityComparer and CustomKeyAttribute parameters are not set, and the [Key] tag of the Id attribute of Foo is used for equality judgment

", "SelectsOnInputChangedCallback": "Callback method for converting input text into corresponding Value in edit mode", "TextConvertToValueCallback": "Callback method when input text changes in edit mode", - "SelectsIsEditable": "Whether editable", - "SelectsIsFixedSearch": "Whether fixed the search box" + "SelectsIsEditable": "Whether editable" }, "BootstrapBlazor.Server.Components.Samples.Sliders": { "SlidersTitle": "Slider", diff --git a/src/BootstrapBlazor.Server/Locales/zh-CN.json b/src/BootstrapBlazor.Server/Locales/zh-CN.json index 53de4fbb5ea..8eba1837aa8 100644 --- a/src/BootstrapBlazor.Server/Locales/zh-CN.json +++ b/src/BootstrapBlazor.Server/Locales/zh-CN.json @@ -3028,8 +3028,7 @@ "MultiSelectVirtualizeTitle": "虚拟滚动", "MultiSelectVirtualizeIntro": "通过设置 IsVirtualize 参数开启组件虚拟功能特性", "MultiSelectVirtualizeDescription": "组件虚拟滚动支持两种形式通过 Items 或者 OnQueryAsync 回调方法提供数据", - "MultiSelectsAttribute_ShowSearch": "是否显示搜索框", - "MultiSelectsAttribute_IsFixedSearch": "是否固定搜索栏" + "MultiSelectsAttribute_ShowSearch": "是否显示搜索框" }, "BootstrapBlazor.Server.Components.Samples.Radios": { "RadiosTitle": "Radio 单选框", @@ -3205,8 +3204,7 @@ "SelectsGenericDesc": "

请参考 设计思路 理解此功能。本例中通过选择下拉框选项,得到的值为 Foo 实例,右侧文本框内显示值为 Foo 属性 Address

本例中未设置 ValueEqualityComparer 以及 CustomKeyAttribute 参数,使用 Foo 属性 Id[Key] 标签进行相等判定

", "SelectsOnInputChangedCallback": "编辑模式下输入文本转换为对应 Value 回调方法", "TextConvertToValueCallback": "编辑模式下输入文本变化时回调方法", - "SelectsIsEditable": "是否可编辑", - "SelectsIsFixedSearch": "是否固定搜索栏" + "SelectsIsEditable": "是否可编辑" }, "BootstrapBlazor.Server.Components.Samples.Sliders": { "SlidersTitle": "Slider 滑块", diff --git a/src/BootstrapBlazor/Attributes/AutoGenerateColumnAttribute.cs b/src/BootstrapBlazor/Attributes/AutoGenerateColumnAttribute.cs index 36c8969c93b..e8a5e8b216d 100644 --- a/src/BootstrapBlazor/Attributes/AutoGenerateColumnAttribute.cs +++ b/src/BootstrapBlazor/Attributes/AutoGenerateColumnAttribute.cs @@ -233,6 +233,8 @@ public class AutoGenerateColumnAttribute : AutoGenerateBaseAttribute, ITableColu /// /// /// + [Obsolete("已弃用,请删除;Deprecated, please delete")] + [ExcludeFromCodeCoverage] public bool IsFixedSearchWhenSelect { get; set; } /// diff --git a/src/BootstrapBlazor/Components/EditorForm/EditorItem.cs b/src/BootstrapBlazor/Components/EditorForm/EditorItem.cs index bc850244925..86a2e4c14a8 100644 --- a/src/BootstrapBlazor/Components/EditorForm/EditorItem.cs +++ b/src/BootstrapBlazor/Components/EditorForm/EditorItem.cs @@ -165,6 +165,8 @@ public class EditorItem : ComponentBase, IEditorItem /// /// [Parameter] + [Obsolete("已弃用,请删除;Deprecated, please delete")] + [ExcludeFromCodeCoverage] public bool IsFixedSearchWhenSelect { get; set; } /// diff --git a/src/BootstrapBlazor/Components/EditorForm/IEditorItem.cs b/src/BootstrapBlazor/Components/EditorForm/IEditorItem.cs index 2ae1a00c138..1bd2474d51d 100644 --- a/src/BootstrapBlazor/Components/EditorForm/IEditorItem.cs +++ b/src/BootstrapBlazor/Components/EditorForm/IEditorItem.cs @@ -89,6 +89,8 @@ public interface IEditorItem : ILookup /// /// Gets or sets whether to allow fixed search box within dropdown. Default is false. /// + [Obsolete("已弃用,请删除;Deprecated, please delete")] + [ExcludeFromCodeCoverage] bool IsFixedSearchWhenSelect { get; set; } /// diff --git a/src/BootstrapBlazor/Components/Filters/LookupFilter.razor.cs b/src/BootstrapBlazor/Components/Filters/LookupFilter.razor.cs index a18f8cd59af..c378a3e2f86 100644 --- a/src/BootstrapBlazor/Components/Filters/LookupFilter.razor.cs +++ b/src/BootstrapBlazor/Components/Filters/LookupFilter.razor.cs @@ -62,6 +62,8 @@ public partial class LookupFilter : ILookup /// 获得 是否为 ShowSearch 呈现模式 默认为 false /// [Parameter] + [ExcludeFromCodeCoverage] + [Obsolete("已弃用,请删除;Deprecated, please delete")] public bool IsFixedSearch { get; set; } [Inject] diff --git a/src/BootstrapBlazor/Components/Filters/TableFilter.razor b/src/BootstrapBlazor/Components/Filters/TableFilter.razor index 53df8ddfa2e..ec94e845dbf 100644 --- a/src/BootstrapBlazor/Components/Filters/TableFilter.razor +++ b/src/BootstrapBlazor/Components/Filters/TableFilter.razor @@ -46,7 +46,9 @@ else } else if (Column.IsLookup()) { - + } else { diff --git a/src/BootstrapBlazor/Components/Select/MultiSelect.razor b/src/BootstrapBlazor/Components/Select/MultiSelect.razor index dc4736af2bf..4777bdd8a2f 100644 --- a/src/BootstrapBlazor/Components/Select/MultiSelect.razor +++ b/src/BootstrapBlazor/Components/Select/MultiSelect.razor @@ -53,7 +53,7 @@ { } -
+
@if (ShowSearch) {
[Parameter] + [Obsolete("已弃用,请删除;Deprecated, please delete")] + [ExcludeFromCodeCoverage] public bool IsFixedSearch { get; set; } /// diff --git a/src/BootstrapBlazor/Components/SelectGeneric/SelectGeneric.razor b/src/BootstrapBlazor/Components/SelectGeneric/SelectGeneric.razor index 74842d3a496..8b30ab99f01 100644 --- a/src/BootstrapBlazor/Components/SelectGeneric/SelectGeneric.razor +++ b/src/BootstrapBlazor/Components/SelectGeneric/SelectGeneric.razor @@ -30,7 +30,7 @@ { } -
+