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/InternalTableColumn.cs b/src/BootstrapBlazor/Components/Table/InternalTableColumn.cs index 51abf64582a..e20ced5d0f8 100644 --- a/src/BootstrapBlazor/Components/Table/InternalTableColumn.cs +++ b/src/BootstrapBlazor/Components/Table/InternalTableColumn.cs @@ -9,381 +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; } /// - /// 获得/设置 是否不进行验证 默认为 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; } } 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; }