Skip to content

Commit 7b33538

Browse files
authored
doc(Table): update TableToolbarTemplate parameter comments (#7666)
* feat(SelectTable): add TableToolbarTemplate parameter * chore: bump version 10.3.2 * refactor: 更正单词拼写错误 * refactor: 重构 Toolbar 模板注释信息 * doc: 更新注释信息 * revert: 更新 Select_Table 组件
1 parent cd23901 commit 7b33538

File tree

4 files changed

+27
-35
lines changed

4 files changed

+27
-35
lines changed

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-beta04</Version>
4+
<Version>10.3.2</Version>
55
</PropertyGroup>
66

77
<ItemGroup>

src/BootstrapBlazor/Components/Select/SelectTable.razor.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ private async Task OnClickRowCallback(TItem item)
360360
private async Task OnClearValue()
361361
{
362362
SelectedItems.Clear();
363-
await TriggerUpdateSelecedItems();
363+
await TriggerUpdateSelectedItems();
364364

365365
if (OnClearAsync != null)
366366
{
@@ -403,7 +403,7 @@ public async Task TriggerRemoveItem(int index)
403403
var item = SelectedItems[index];
404404
SelectedItems.Remove(item);
405405

406-
await TriggerUpdateSelecedItems();
406+
await TriggerUpdateSelectedItems();
407407
}
408408
}
409409

@@ -412,7 +412,7 @@ public async Task TriggerRemoveItem(int index)
412412
/// <para lang="en">Update <see cref="SelectedItems"/> parameter method, called by Javascript</para>
413413
/// </summary>
414414
[JSInvokable]
415-
public async Task TriggerUpdateSelecedItems()
415+
public async Task TriggerUpdateSelectedItems()
416416
{
417417
if (IsMultipleSelect)
418418
{

src/BootstrapBlazor/Components/Select/SelectTable.razor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export function init(id, invoke) {
4040
}
4141
},
4242
hideCallback: async () => {
43-
await invoke.invokeMethodAsync("TriggerUpdateSelecedItems");
43+
await invoke.invokeMethodAsync("TriggerUpdateSelectedItems");
4444
}
4545
});
4646

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

Lines changed: 22 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,6 @@ namespace BootstrapBlazor.Components;
99

1010
public partial class Table<TItem>
1111
{
12-
/// <summary>
13-
/// <para lang="zh">获得/设置 是否显示工具栏 默认 false 不显示</para>
14-
/// <para lang="en">Gets or sets Whether to show toolbar. Default false</para>
15-
/// </summary>
16-
[Parameter]
17-
public bool ShowToolbar { get; set; }
18-
19-
/// <summary>
20-
/// <para lang="zh">获得/设置 the 模板 of table toolbar. 默认为 null</para>
21-
/// <para lang="en">Gets or sets the template of table toolbar. Default is null</para>
22-
/// </summary>
23-
[Parameter]
24-
public RenderFragment? ToolbarTemplate { get; set; }
25-
2612
/// <summary>
2713
/// <para lang="zh">获得/设置 首次加载是否显示加载骨架屏 默认 false 不显示 使用 <see cref="ShowLoadingInFirstRender" /> 参数值</para>
2814
/// <para lang="en">Gets or sets Whether to show skeleton when first loading. Default false. Use <see cref="ShowLoadingInFirstRender" /> parameter value</para>
@@ -380,37 +366,43 @@ public Func<TItem, bool>? ShowDeleteButtonCallback
380366
public bool ShowToastAfterSaveOrDeleteModel { get; set; } = true;
381367

382368
/// <summary>
383-
/// <para lang="zh">获得/设置 表格 Toolbar 按钮模板</para>
384-
/// <para lang="en">Gets or sets Table Toolbar Button Template</para>
385-
/// <para lang="zh">表格工具栏左侧按钮模板,模板中内容出现在默认按钮前面</para>
386-
/// <para lang="en">Table toolbar left button template, content appears before default buttons</para>
369+
/// <para lang="zh">获得/设置 是否显示工具栏 默认 false 不显示</para>
370+
/// <para lang="en">Gets or sets Whether to show toolbar. Default false</para>
371+
/// </summary>
372+
[Parameter]
373+
public bool ShowToolbar { get; set; }
374+
375+
/// <summary>
376+
/// <para lang="zh">获得/设置 表格 Toolbar 工具栏模板</para>
377+
/// <para lang="en">Gets or sets the table toolbar template, content appears center of toolbar</para>
378+
/// </summary>
379+
[Parameter]
380+
public RenderFragment? ToolbarTemplate { get; set; }
381+
382+
/// <summary>
383+
/// <para lang="zh">获得/设置 表格 Toolbar 工具栏左侧按钮模板,模板中内容出现在默认按钮前面</para>
384+
/// <para lang="en">Gets or sets the table toolbar left-side button template, content appears before the default buttons</para>
387385
/// </summary>
388386
[Parameter]
389387
public RenderFragment? TableToolbarBeforeTemplate { get; set; }
390388

391389
/// <summary>
392-
/// <para lang="zh">获得/设置 表格 Toolbar 按钮模板</para>
393-
/// <para lang="en">Gets or sets Table Toolbar Button Template</para>
394-
/// <para lang="zh">表格工具栏左侧按钮模板,模板中内容出现在默认按钮后面</para>
395-
/// <para lang="en">Table toolbar left button template, content appears after default buttons</para>
390+
/// <para lang="zh">获得/设置 表格 Toolbar 工具栏左侧按钮模板,模板中内容出现在默认按钮后面</para>
391+
/// <para lang="en">Gets or sets the table toolbar left-side button template, content appears after the default buttons</para>
396392
/// </summary>
397393
[Parameter]
398394
public RenderFragment? TableToolbarTemplate { get; set; }
399395

400396
/// <summary>
401-
/// <para lang="zh">获得/设置 表格 Toolbar 按钮模板</para>
402-
/// <para lang="en">Gets or sets Table Toolbar Button Template</para>
403-
/// <para lang="zh">表格工具栏右侧按钮模板,模板中内容出现在默认按钮前面</para>
404-
/// <para lang="en">Table toolbar right button template, content appears before default buttons</para>
397+
/// <para lang="zh">获得/设置 表格 Toolbar 工具栏右侧按钮模板,模板中内容出现在默认按钮前面</para>
398+
/// <para lang="en">Gets or sets the table toolbar right-side button template, content appears before the default buttons</para>
405399
/// </summary>
406400
[Parameter]
407401
public RenderFragment? TableExtensionToolbarBeforeTemplate { get; set; }
408402

409403
/// <summary>
410-
/// <para lang="zh">获得/设置 表格 Toolbar 按钮模板</para>
411-
/// <para lang="en">Gets or sets Table Toolbar Button Template</para>
412-
/// <para lang="zh">表格工具栏右侧按钮模板,模板中内容出现在默认按钮后面</para>
413-
/// <para lang="en">Table toolbar right button template, content appears after default buttons</para>
404+
/// <para lang="zh">获得/设置 表格 Toolbar 工具栏右侧按钮模板,模板中内容出现在默认按钮后面</para>
405+
/// <para lang="en">Gets or sets the table toolbar right-side button template, content appears after the default buttons</para>
414406
/// </summary>
415407
[Parameter]
416408
public RenderFragment? TableExtensionToolbarTemplate { get; set; }

0 commit comments

Comments
 (0)