From ad71e663c88ff94523c2157d32a669c14e2b2a58 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Wed, 4 Feb 2026 21:03:46 +0800 Subject: [PATCH 1/3] =?UTF-8?q?doc(TableToolbarButton):=20=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E6=96=87=E6=A1=A3=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/Table/IToolbarComponent.cs | 1 + .../Components/Table/TableToolbarButton.cs | 6 +++--- .../Components/Table/TableToolbarComponent.cs | 2 +- .../Components/Table/TableToolbarPopConfirmButton.cs | 9 +++------ 4 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/BootstrapBlazor/Components/Table/IToolbarComponent.cs b/src/BootstrapBlazor/Components/Table/IToolbarComponent.cs index 5a3913bce19..405b020c08f 100644 --- a/src/BootstrapBlazor/Components/Table/IToolbarComponent.cs +++ b/src/BootstrapBlazor/Components/Table/IToolbarComponent.cs @@ -15,5 +15,6 @@ public interface IToolbarComponent /// 获得/设置 是否显示,默认为 true 显示 /// Gets or sets whether to display. Default is true /// + /// 可用于权限控制按钮是否显示 bool IsShow { get; set; } } diff --git a/src/BootstrapBlazor/Components/Table/TableToolbarButton.cs b/src/BootstrapBlazor/Components/Table/TableToolbarButton.cs index 72a7e80f064..e6905a46603 100644 --- a/src/BootstrapBlazor/Components/Table/TableToolbarButton.cs +++ b/src/BootstrapBlazor/Components/Table/TableToolbarButton.cs @@ -20,19 +20,19 @@ public class TableToolbarButton : ButtonBase, ITableToolbarButton public Func, Task>? OnClickCallback { get; set; } /// - /// + /// /// [Parameter] public bool IsEnableWhenSelectedOneRow { get; set; } /// - /// + /// /// [Parameter] public Func, bool>? IsDisabledCallback { get; set; } /// - /// + /// /// [Parameter] public bool IsShow { get; set; } = true; diff --git a/src/BootstrapBlazor/Components/Table/TableToolbarComponent.cs b/src/BootstrapBlazor/Components/Table/TableToolbarComponent.cs index 5b93bdf1490..f9756c19cb2 100644 --- a/src/BootstrapBlazor/Components/Table/TableToolbarComponent.cs +++ b/src/BootstrapBlazor/Components/Table/TableToolbarComponent.cs @@ -12,7 +12,7 @@ namespace BootstrapBlazor.Components; public class TableToolbarComponent : ComponentBase, IToolbarComponent, IDisposable { /// - /// + /// /// [Parameter] public bool IsShow { get; set; } = true; diff --git a/src/BootstrapBlazor/Components/Table/TableToolbarPopConfirmButton.cs b/src/BootstrapBlazor/Components/Table/TableToolbarPopConfirmButton.cs index c334afac87b..2b12f1743f2 100644 --- a/src/BootstrapBlazor/Components/Table/TableToolbarPopConfirmButton.cs +++ b/src/BootstrapBlazor/Components/Table/TableToolbarPopConfirmButton.cs @@ -22,22 +22,19 @@ public class TableToolbarPopConfirmButton : PopConfirmButtonBase, ITableT public Func, Task>? OnConfirmCallback { get; set; } /// - /// 获得/设置 是否显示,默认为 true 显示 - /// Gets or sets whether to display. Default is true + /// /// [Parameter] public bool IsShow { get; set; } = true; /// - /// 获得/设置 选中一行时启用按钮,默认为 false - /// Gets or sets whether to enable button when one row is selected. Default is false + /// /// [Parameter] public bool IsEnableWhenSelectedOneRow { get; set; } /// - /// 获得/设置 按钮是否被禁用的回调方法 - /// Gets or sets the callback method for button disabled state + /// /// [Parameter] public Func, bool>? IsDisabledCallback { get; set; } From c17b53712ee9afb500df8066e5d6baac583d23db Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Thu, 5 Feb 2026 15:36:16 +0800 Subject: [PATCH 2/3] =?UTF-8?q?refactor:=20=E6=9B=B4=E6=96=B0=E6=B3=A8?= =?UTF-8?q?=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/Table/InternalTableColumn.cs | 236 ------------------ 1 file changed, 236 deletions(-) diff --git a/src/BootstrapBlazor/Components/Table/InternalTableColumn.cs b/src/BootstrapBlazor/Components/Table/InternalTableColumn.cs index 51abf64582a..f78e5e71ace 100644 --- a/src/BootstrapBlazor/Components/Table/InternalTableColumn.cs +++ b/src/BootstrapBlazor/Components/Table/InternalTableColumn.cs @@ -27,363 +27,127 @@ class InternalTableColumn(string fieldName, Type fieldType, string? fieldText = public bool? TextEllipsis { get; set; } - /// - /// 获得/设置 是否不进行验证 默认为 false - /// Gets or sets whether不进行验证 Default is为 false - /// public bool SkipValidate { get; set; } - /// - /// - /// - /// public bool? Ignore { get; set; } - /// - /// - /// - /// public bool? Readonly { get; set; } - /// - /// - /// - /// public bool? IsReadonlyWhenAdd { get; set; } - /// - /// - /// - /// public bool? IsReadonlyWhenEdit { get; set; } - /// - /// - /// - /// public bool? Visible { get; set; } - /// - /// - /// - /// public bool? IsVisibleWhenAdd { get; set; } = true; - /// - /// - /// - /// public bool? IsVisibleWhenEdit { get; set; } = true; - /// - /// - /// - /// public bool? Required { get; set; } - /// - /// - /// - /// public bool? IsRequiredWhenAdd { get; set; } - /// - /// - /// - /// public bool? IsRequiredWhenEdit { get; set; } - /// - /// - /// - /// public string? RequiredErrorMessage { get; set; } - /// - /// - /// - /// public bool? ShowLabelTooltip { get; set; } - /// - /// - /// - /// public string? CssClass { get; set; } - /// - /// - /// - /// public BreakPoint ShownWithBreakPoint { get; set; } - /// - /// - /// - /// public RenderFragment? Template { get; set; } - /// - /// - /// - /// public RenderFragment? SearchTemplate { get; set; } - /// - /// - /// - /// public RenderFragment? FilterTemplate { get; set; } - /// - /// - /// - /// public RenderFragment? HeaderTemplate { get; set; } - /// - /// - /// - /// public RenderFragment? ToolboxTemplate { get; set; } - /// - /// - /// - /// public IFilter? Filter { get; set; } - /// - /// - /// - /// public string? FormatString { get; set; } - /// - /// - /// - /// public string? PlaceHolder { get; set; } - /// - /// - /// - /// public Func>? Formatter { get; set; } - /// - /// - /// - /// public Alignment? Align { get; set; } - /// - /// - /// - /// public bool? ShowTips { get; set; } - /// - /// - /// - /// public Func>? GetTooltipTextCallback { get; set; } - /// - /// - /// - /// public Type PropertyType { get; } = fieldType; - /// - /// - /// - /// [ExcludeFromCodeCoverage] public bool Editable { get; set; } = true; - /// - /// - /// - /// public string? Step { get; set; } - /// - /// - /// - /// public int Rows { get; set; } - /// - /// - /// - /// public int Cols { get; set; } - /// - /// - /// - /// [NotNull] public string? Text { get; set; } = fieldText; public RenderFragment? EditTemplate { get; set; } - /// - /// - /// - /// public Type? ComponentType { get; set; } - /// - /// - /// - /// public IEnumerable>? ComponentParameters { get; set; } - /// - /// - /// - /// public IEnumerable? Items { get; set; } - /// - /// - /// - /// public int Order { get; set; } - /// - /// - /// - /// public IEnumerable? Lookup { get; set; } - /// - /// - /// - /// public bool ShowSearchWhenSelect { get; set; } - /// - /// - /// - /// [Obsolete("已弃用,请删除;Deprecated, please delete")] [ExcludeFromCodeCoverage] public bool IsFixedSearchWhenSelect { get; set; } - /// - /// - /// - /// public bool IsPopover { get; set; } - /// - /// - /// - /// public StringComparison LookupStringComparison { get; set; } = StringComparison.OrdinalIgnoreCase; - /// - /// - /// - /// public string? LookupServiceKey { get; set; } - /// - /// - /// - /// public object? LookupServiceData { get; set; } - /// - /// - /// - /// public ILookupService? LookupService { get; set; } - /// - /// - /// - /// public Action? OnCellRender { get; set; } - /// - /// - /// - /// public List? ValidateRules { get; set; } - /// - /// - /// - /// public string? GroupName { get; set; } - /// - /// - /// - /// public int GroupOrder { get; set; } - /// - /// - /// - /// public bool? ShowCopyColumn { get; set; } - /// - /// - /// - /// public bool HeaderTextWrap { get; set; } - /// - /// - /// - /// public bool ShowHeaderTooltip { get; set; } - /// - /// - /// - /// public string? HeaderTextTooltip { get; set; } - /// - /// - /// - /// public bool HeaderTextEllipsis { get; set; } - /// - /// - /// - /// public bool IsMarkupString { get; set; } - /// - /// - /// - /// public string GetDisplayName() => Text; - /// - /// - /// - /// public string GetFieldName() => FieldName; - /// - /// - /// - /// public Func? CustomSearch { get; set; } - /// - /// - /// - /// public bool? IgnoreWhenExport { get; set; } } From 31e3bdbabf8c33ea45685b81f75c9d437e7de440 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Thu, 5 Feb 2026 15:42:31 +0800 Subject: [PATCH 3/3] =?UTF-8?q?doc:=20=E5=A2=9E=E5=8A=A0=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/Table/InternalTableColumn.cs | 207 ++++++++++++++++++ 1 file changed, 207 insertions(+) diff --git a/src/BootstrapBlazor/Components/Table/InternalTableColumn.cs b/src/BootstrapBlazor/Components/Table/InternalTableColumn.cs index f78e5e71ace..e20ced5d0f8 100644 --- a/src/BootstrapBlazor/Components/Table/InternalTableColumn.cs +++ b/src/BootstrapBlazor/Components/Table/InternalTableColumn.cs @@ -9,145 +9,352 @@ class InternalTableColumn(string fieldName, Type fieldType, string? fieldText = { private string FieldName { get; } = fieldName; + /// + /// + /// public bool? Sortable { get; set; } + /// + /// + /// public bool DefaultSort { get; set; } + /// + /// + /// public SortOrder DefaultSortOrder { get; set; } + /// + /// + /// public bool? Filterable { get; set; } + /// + /// + /// public bool? Searchable { get; set; } + /// + /// + /// public int? Width { get; set; } + /// + /// + /// public bool Fixed { get; set; } + /// + /// + /// public bool? TextWrap { get; set; } + /// + /// + /// public bool? TextEllipsis { get; set; } + /// + /// + /// public bool SkipValidate { get; set; } + /// + /// + /// public bool? Ignore { get; set; } + /// + /// + /// public bool? Readonly { get; set; } + /// + /// + /// public bool? IsReadonlyWhenAdd { get; set; } + /// + /// + /// public bool? IsReadonlyWhenEdit { get; set; } + /// + /// + /// public bool? Visible { get; set; } + /// + /// + /// public bool? IsVisibleWhenAdd { get; set; } = true; + /// + /// + /// public bool? IsVisibleWhenEdit { get; set; } = true; + /// + /// + /// public bool? Required { get; set; } + /// + /// + /// public bool? IsRequiredWhenAdd { get; set; } + /// + /// + /// public bool? IsRequiredWhenEdit { get; set; } + /// + /// + /// public string? RequiredErrorMessage { get; set; } + /// + /// + /// public bool? ShowLabelTooltip { get; set; } + /// + /// + /// public string? CssClass { get; set; } + /// + /// + /// public BreakPoint ShownWithBreakPoint { get; set; } + /// + /// + /// public RenderFragment? Template { get; set; } + /// + /// + /// public RenderFragment? SearchTemplate { get; set; } + /// + /// + /// public RenderFragment? FilterTemplate { get; set; } + /// + /// + /// public RenderFragment? HeaderTemplate { get; set; } + /// + /// + /// public RenderFragment? ToolboxTemplate { get; set; } + /// + /// + /// public IFilter? Filter { get; set; } + /// + /// + /// public string? FormatString { get; set; } + /// + /// + /// public string? PlaceHolder { get; set; } + /// + /// + /// public Func>? Formatter { get; set; } + /// + /// + /// public Alignment? Align { get; set; } + /// + /// + /// public bool? ShowTips { get; set; } + /// + /// + /// public Func>? GetTooltipTextCallback { get; set; } + /// + /// + /// public Type PropertyType { get; } = fieldType; + /// + /// + /// [ExcludeFromCodeCoverage] public bool Editable { get; set; } = true; + /// + /// + /// public string? Step { get; set; } + /// + /// + /// public int Rows { get; set; } + /// + /// + /// public int Cols { get; set; } + /// + /// + /// [NotNull] public string? Text { get; set; } = fieldText; + /// + /// + /// public RenderFragment? EditTemplate { get; set; } + /// + /// + /// public Type? ComponentType { get; set; } + /// + /// + /// public IEnumerable>? ComponentParameters { get; set; } + /// + /// + /// public IEnumerable? Items { get; set; } + /// + /// + /// public int Order { get; set; } + /// + /// + /// public IEnumerable? Lookup { get; set; } + /// + /// + /// public bool ShowSearchWhenSelect { get; set; } + /// + /// + /// [Obsolete("已弃用,请删除;Deprecated, please delete")] [ExcludeFromCodeCoverage] public bool IsFixedSearchWhenSelect { get; set; } + /// + /// + /// public bool IsPopover { get; set; } + /// + /// + /// public StringComparison LookupStringComparison { get; set; } = StringComparison.OrdinalIgnoreCase; + /// + /// + /// public string? LookupServiceKey { get; set; } + /// + /// + /// public object? LookupServiceData { get; set; } + /// + /// + /// public ILookupService? LookupService { get; set; } + /// + /// + /// public Action? OnCellRender { get; set; } + /// + /// + /// public List? ValidateRules { get; set; } + /// + /// + /// public string? GroupName { get; set; } + /// + /// + /// public int GroupOrder { get; set; } + /// + /// + /// public bool? ShowCopyColumn { get; set; } + /// + /// + /// public bool HeaderTextWrap { get; set; } + /// + /// + /// public bool ShowHeaderTooltip { get; set; } + /// + /// + /// public string? HeaderTextTooltip { get; set; } + /// + /// + /// public bool HeaderTextEllipsis { get; set; } + /// + /// + /// public bool IsMarkupString { get; set; } + /// + /// + /// public string GetDisplayName() => Text; + /// + /// + /// public string GetFieldName() => FieldName; + /// + /// + /// public Func? CustomSearch { get; set; } + /// + /// + /// public bool? IgnoreWhenExport { get; set; } }