Skip to content

Commit f3f9ce7

Browse files
authored
fix(Table): use Equlas instead of Contains (#7648)
* doc: 增加资源文件 * fix(Table): use Equlas instead of Contains * chore: bump version 10.3.2-beta03
1 parent 2079ddb commit f3f9ce7

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5008,6 +5008,7 @@
50085008
"TablesSearchTitle": "Table Search"
50095009
},
50105010
"BootstrapBlazor.Server.Components.Samples.Table.TablesSelection": {
5011+
"TablesSelectionCountText": "Count:{0}",
50115012
"TablesSelectionDescription": "Set the table row state by setting <code>SelectedRows</code>, and set the highlight by selecting the style",
50125013
"TablesSelectionKeepInfo": "Keep State:",
50135014
"TablesSelectionKeepOffText": "No keep",

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5008,6 +5008,7 @@
50085008
"TablesSearchTitle": "Table 表格"
50095009
},
50105010
"BootstrapBlazor.Server.Components.Samples.Table.TablesSelection": {
5011+
"TablesSelectionCountText": "选中的行数:{0}",
50115012
"TablesSelectionDescription": "通过设置 <code>SelectedRows</code> 设置表格行状态,通过选中样式可以设置高亮",
50125013
"TablesSelectionKeepInfo": "保持选中行状态:",
50135014
"TablesSelectionKeepOffText": "不保持",

src/BootstrapBlazor/BootstrapBlazor.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk.Razor">
22

33
<PropertyGroup>
4-
<Version>10.3.2-beta02</Version>
4+
<Version>10.3.2-beta03</Version>
55
</PropertyGroup>
66

77
<ItemGroup>

src/BootstrapBlazor/Components/Table/Table.razor.Checkbox.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ protected CheckboxState HeaderCheckState()
105105
/// <param name="val"></param>
106106
protected virtual async Task OnHeaderCheck(CheckboxState state, TItem val)
107107
{
108-
SelectedRows.RemoveAll(Rows.Intersect(SelectedRows).Contains);
108+
var items = Rows.Intersect(SelectedRows);
109+
SelectedRows.RemoveAll(i => items.Any(item => Equals(item, i)));
109110
if (state == CheckboxState.Checked)
110111
{
111112
SelectedRows.AddRange(ShowRowCheckboxCallback == null ? Rows : Rows.Where(ShowRowCheckboxCallback));

0 commit comments

Comments
 (0)