Skip to content

Commit 793aabb

Browse files
committed
doc: 移除 IsFixedSearch 相关文档
1 parent cdd419b commit 793aabb

File tree

7 files changed

+4
-17
lines changed

7 files changed

+4
-17
lines changed

src/BootstrapBlazor.Server/Components/Samples/TreeViews.razor

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -160,12 +160,6 @@
160160
<TreeView Items="@SearchItems1" ShowSearch="true" OnSearchAsync="@OnSearchAsync"></TreeView>
161161
</DemoBlock>
162162

163-
<DemoBlock Title="@Localizer["TreeViewFixedSearchTitle"]"
164-
Introduction="@Localizer["TreeViewFixedSearchIntro"]"
165-
Name="IsFixedSearch">
166-
<TreeView Items="@SearchItems2" ShowSearch="true" OnSearchAsync="@OnSearchAsync" IsFixedSearch="true" style="height: 180px;"></TreeView>
167-
</DemoBlock>
168-
169163
<DemoBlock Title="@Localizer["TreeViewMaxSelectedCountTitle"]"
170164
Introduction="@Localizer["TreeViewMaxSelectedCountIntro"]"
171165
Name="MaxSelectedCount">

src/BootstrapBlazor.Server/Locales/en-US.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -694,8 +694,6 @@
694694
"TreeViewShowSkeletonButtonText": "Asynchronous loading",
695695
"TreeViewShowSearchTitle": "Show search",
696696
"TreeViewShowSearchIntro": "By setting <code>ShowSearch</code> to display the search bar, and using the <code>OnSearchAsync</code> callback method to set the data source to refresh the page",
697-
"TreeViewFixedSearchTitle": "Fixed search",
698-
"TreeViewFixedSearchIntro": "The search bar can be fixed by setting <code>IsFixedSearch=\"true\"</code>, and the search bar height can be set by the css variable <code>--bb-tree-search-height</code>",
699697
"TreeViewSetActiveTitle": "Set Active Node",
700698
"TreeViewSetActiveIntro": "Set the currently active node by calling the <code>SetActiveItem</code> method",
701699
"TreeViewSetActiveDisplayText": "Current Active Node",
@@ -3164,7 +3162,7 @@
31643162
"SelectsCustomTemplateTitle": "Custom option templates",
31653163
"SelectsCustomTemplateIntro": "By setting the <code>ItemTemplate</code> you can customize the option rendering style",
31663164
"SelectsShowSearchTitle": "Drop-down box with search box",
3167-
"SelectsShowSearchIntro": "Controls whether the search box is displayed by setting the <code>ShowSearch</code> property, which is not displayed by default <b>false</b>. Fixed the search bar by setting <code>IsFixedSearch</code>",
3165+
"SelectsShowSearchIntro": "Controls whether the search box is displayed by setting the <code>ShowSearch</code> property, which is not displayed by default <b>false</b>",
31683166
"SelectsConfirmSelectTitle": "Drop-down box with confirmation",
31693167
"SelectsConfirmSelectIntro": "Block changes to the current value by setting the <code>OnBeforeSelectedItemChange</code> delegate.",
31703168
"SelectsTimeZoneTitle": "Timezone",

src/BootstrapBlazor.Server/Locales/zh-CN.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -694,8 +694,6 @@
694694
"TreeViewShowSkeletonButtonText": "异步加载",
695695
"TreeViewShowSearchTitle": "显示搜索栏",
696696
"TreeViewShowSearchIntro": "通过设置 <code>ShowSearch</code> 显示搜索栏,通过 <code>OnSearchAsync</code> 回调方法设置数据源刷新页面即可",
697-
"TreeViewFixedSearchTitle": "固定搜索栏",
698-
"TreeViewFixedSearchIntro": "通过设置 <code>IsFixedSearch=\"true\"</code> 固定搜索栏,可通过样式变量 <code>--bb-tree-search-height</code> 设定搜索栏高度",
699697
"TreeViewSetActiveTitle": "设置激活节点",
700698
"TreeViewSetActiveIntro": "通过调用 <code>SetActiveItem</code> 方法设置当前激活节点",
701699
"TreeViewSetActiveDisplayText": "当前激活节点",
@@ -3164,7 +3162,7 @@
31643162
"SelectsCustomTemplateTitle": "自定义选项模板",
31653163
"SelectsCustomTemplateIntro": "通过设置 <code>ItemTemplate</code> 可以自定义选项渲染样式",
31663164
"SelectsShowSearchTitle": "带搜索框的下拉框",
3167-
"SelectsShowSearchIntro": "通过设置 <code>ShowSearch</code> 属性控制是否显示搜索框,默认为 <b>false</b> 不显示搜索框;通过设置 <code>IsFixedSearch</code> 固定搜索栏",
3165+
"SelectsShowSearchIntro": "通过设置 <code>ShowSearch</code> 属性控制是否显示搜索框,默认为 <b>false</b> 不显示搜索框",
31683166
"SelectsConfirmSelectTitle": "带确认的下拉框",
31693167
"SelectsConfirmSelectIntro": "通过设置 <code>OnBeforeSelectedItemChange</code> 委托,阻止当前值的改变",
31703168
"SelectsTimeZoneTitle": "时区下拉框",

src/BootstrapBlazor/Components/Filters/LookupFilter.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
{
66
if (IsHeaderRow)
77
{
8-
<Select Items="@Items" StringComparison="LookupStringComparison" @bind-Value="@Value" OnSelectedItemChanged="_ => OnFilterValueChanged()" IsPopover="true" ShowSearch="IsShowSearch" IsFixedSearch="IsFixedSearch"></Select>
8+
<Select Items="@Items" StringComparison="LookupStringComparison" @bind-Value="@Value" OnSelectedItemChanged="_ => OnFilterValueChanged()" IsPopover="true" ShowSearch="IsShowSearch"></Select>
99
}
1010
else
1111
{
12-
<Select Items="@Items" StringComparison="LookupStringComparison" @bind-Value="@Value" ShowSearch="IsShowSearch" IsFixedSearch="IsFixedSearch" ></Select>
12+
<Select Items="@Items" StringComparison="LookupStringComparison" @bind-Value="@Value" ShowSearch="IsShowSearch"></Select>
1313
}
1414
}

src/BootstrapBlazor/Components/Select/SelectTree.razor

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
<TreeView TItem="TValue" Items="@Items" ShowIcon="ShowIcon"
2424
OnTreeItemClick="OnItemClick" ModelEqualityComparer="@ModelEqualityComparer"
2525
ShowSearch="ShowSearch" ShowResetSearchButton="ShowResetSearchButton"
26-
IsFixedSearch="IsFixedSearch"
2726
CustomKeyAttribute="@CustomKeyAttribute" OnExpandNodeAsync="@OnExpandNodeAsync" />
2827
</div>
2928
@if (!IsPopover)

test/UnitTest/Components/InternalTableColumnTest.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ public void InternalTableColumn_Ok()
6464
SetValue("Order", 1);
6565
SetValue("Lookup", new SelectedItem[] { new("test", "Test") });
6666
SetValue("ShowSearchWhenSelect", true);
67-
SetValue("IsFixedSearchWhenSelect", true);
6867
SetValue("IsPopover", true);
6968
SetValue("LookupStringComparison", StringComparison.Ordinal);
7069
SetValue("LookupServiceKey", "Test");

test/UnitTest/Components/TableTest.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5010,7 +5010,6 @@ public void TableColumn_Property()
50105010
builder.AddAttribute(31, "IsVisibleWhenAdd", false);
50115011
builder.AddAttribute(32, "IsVisibleWhenEdit", false);
50125012
builder.AddAttribute(33, "LookupService", new FooLookupService());
5013-
builder.AddAttribute(34, "IsFixedSearchWhenSelect", true);
50145013
builder.CloseComponent();
50155014
});
50165015
});

0 commit comments

Comments
 (0)