diff --git a/src/BootstrapBlazor.Server/Components/App.razor b/src/BootstrapBlazor.Server/Components/App.razor index 8eb51d6eb06..eb9678bd1af 100644 --- a/src/BootstrapBlazor.Server/Components/App.razor +++ b/src/BootstrapBlazor.Server/Components/App.razor @@ -1,4 +1,4 @@ -@inject IWebHostEnvironment Env +@inject IWebHostEnvironment Env @inject IStringLocalizer Localizer @inject IOptions WebsiteOption @@ -20,6 +20,8 @@ + + diff --git a/src/BootstrapBlazor/Attributes/AutoGenerateBaseAttribute.cs b/src/BootstrapBlazor/Attributes/AutoGenerateBaseAttribute.cs index e3a21d311ba..6dd6f3df8ba 100644 --- a/src/BootstrapBlazor/Attributes/AutoGenerateBaseAttribute.cs +++ b/src/BootstrapBlazor/Attributes/AutoGenerateBaseAttribute.cs @@ -12,76 +12,76 @@ namespace BootstrapBlazor.Components; public abstract class AutoGenerateBaseAttribute : Attribute { /// - /// 获得/设置 当前列是否可编辑。默认为 true。当设置为 false 时,自动编辑 UI 不会生成此列。 - /// Gets or sets whether the current column is editable. Default is true. When set to false, the auto-generated edit UI will not generate this column. + /// 获得/设置 当前列是否可编辑。默认为 true。当设置为 false 时,自动编辑 UI 不会生成此列 + /// Gets or sets whether the current column is editable. Default is true. When set to false, the auto-generated edit UI will not generate this column /// [Obsolete("Deprecated. If it is editable, use the Readonly parameter. If it is visible, use the Ignore parameter.")] [ExcludeFromCodeCoverage] public bool Editable { get; set; } = true; /// - /// 获得/设置 当前列是否渲染。默认为 false。当设置为 true 时,UI 不会生成此列。 - /// Gets or sets whether the current column is rendered. Default is false. When set to true, the UI will not generate this column. + /// 获得/设置 当前列是否渲染。默认为 false。当设置为 true 时,UI 不会生成此列 + /// Gets or sets whether the current column is rendered. Default is false. When set to true, the UI will not generate this column /// public bool Ignore { get; set; } /// - /// 获得/设置 当前编辑项是否只读。默认为 false。 - /// Gets or sets whether the current edit item is read-only. Default is false. + /// 获得/设置 当前编辑项是否只读。默认为 false + /// Gets or sets whether the current edit item is read-only. Default is false /// public bool Readonly { get; set; } /// - /// 获得/设置 当前编辑项是否可见。默认为 true。 - /// Gets or sets whether the current edit item is visible. Default is true. + /// 获得/设置 当前编辑项是否可见。默认为 true + /// Gets or sets whether the current edit item is visible. Default is true /// public bool Visible { get; set; } = true; /// - /// 获得/设置 是否允许排序。默认为 false。 - /// Gets or sets whether sorting is allowed. Default is false. + /// 获得/设置 是否允许排序。默认为 false + /// Gets or sets whether sorting is allowed. Default is false /// public bool Sortable { get; set; } /// - /// 获得/设置 是否允许数据筛选。默认为 false。 - /// Gets or sets whether data filtering is allowed. Default is false. + /// 获得/设置 是否允许数据筛选。默认为 false + /// Gets or sets whether data filtering is allowed. Default is false /// public bool Filterable { get; set; } /// - /// 获得/设置 此列是否参与搜索。默认为 false。 - /// Gets or sets whether the column participates in search. Default is false. + /// 获得/设置 此列是否参与搜索。默认为 false + /// Gets or sets whether the column participates in search. Default is false /// public bool Searchable { get; set; } /// - /// 获得/设置 此列是否允许文本换行。默认为 false。 - /// Gets or sets whether text wrapping is allowed in this column. Default is false. + /// 获得/设置 此列是否允许文本换行。默认为 false + /// Gets or sets whether text wrapping is allowed in this column. Default is false /// public bool TextWrap { get; set; } /// - /// 获得/设置 此列文本溢出时是否显示省略号。默认为 false。 - /// Gets or sets whether text overflow is ellipsis in this column. Default is false. + /// 获得/设置 此列文本溢出时是否显示省略号。默认为 false + /// Gets or sets whether text overflow is ellipsis in this column. Default is false /// public bool TextEllipsis { get; set; } /// - /// 获得/设置 文本对齐方式。默认为 Alignment.None。 - /// Gets or sets the text alignment. Default is Alignment.None. + /// 获得/设置 文本对齐方式。默认为 Alignment.None + /// Gets or sets the text alignment. Default is Alignment.None /// public Alignment Align { get; set; } /// - /// 获得/设置 鼠标悬停时是否显示提示信息。默认为 false。 - /// Gets or sets whether to show tooltips on mouse hover. Default is false. + /// 获得/设置 鼠标悬停时是否显示提示信息。默认为 false + /// Gets or sets whether to show tooltips on mouse hover. Default is false /// public bool ShowTips { get; set; } /// - /// 获得/设置 列是否可以被复制。默认为 false。 - /// Gets or sets whether the column can be copied. Default is false. + /// 获得/设置 列是否可以被复制。默认为 false + /// Gets or sets whether the column can be copied. Default is false /// public bool ShowCopyColumn { get; set; } } diff --git a/src/BootstrapBlazor/Attributes/AutoGenerateColumnAttribute.cs b/src/BootstrapBlazor/Attributes/AutoGenerateColumnAttribute.cs index b21ef5ee3ff..4428b3c9560 100644 --- a/src/BootstrapBlazor/Attributes/AutoGenerateColumnAttribute.cs +++ b/src/BootstrapBlazor/Attributes/AutoGenerateColumnAttribute.cs @@ -35,8 +35,8 @@ public class AutoGenerateColumnAttribute : AutoGenerateBaseAttribute, ITableColu public bool SkipValidate { get; set; } /// - /// 获得/设置 新建时此列是否只读。默认值为 null,使用 值。 - /// Gets or sets whether the column is read-only when adding a new item. Default is null, using the value. + /// 获得/设置 新建时此列是否只读。默认值为 null,使用 + /// Gets or sets whether the column is read-only when adding a new item. Default is null, using the value /// public bool IsReadonlyWhenAdd { get; set; } @@ -47,8 +47,8 @@ public class AutoGenerateColumnAttribute : AutoGenerateBaseAttribute, ITableColu } /// - /// 获得/设置 编辑时此列是否只读。默认值为 null,使用 值。 - /// Gets or sets whether the column is read-only when editing an item. Default is null, using the value. + /// 获得/设置 编辑时此列是否只读。默认值为 null,使用 + /// Gets or sets whether the column is read-only when editing an item. Default is null, using the value /// public bool IsReadonlyWhenEdit { get; set; } @@ -59,8 +59,8 @@ public class AutoGenerateColumnAttribute : AutoGenerateBaseAttribute, ITableColu } /// - /// 获得/设置 新建时此列是否可见。默认值为 null,使用 值。 - /// Gets or sets whether the column is visible when adding a new item. Default is null, using the value. + /// 获得/设置 新建时此列是否可见。默认值为 null,使用 + /// Gets or sets whether the column is visible when adding a new item. Default is null, using the value /// public bool IsVisibleWhenAdd { get; set; } = true; @@ -71,8 +71,8 @@ public class AutoGenerateColumnAttribute : AutoGenerateBaseAttribute, ITableColu } /// - /// 获得/设置 编辑时此列是否可见。默认值为 null,使用 值。 - /// Gets or sets whether the column is visible when editing an item. Default is null, using the value. + /// 获得/设置 编辑时此列是否可见。默认值为 null,使用 + /// Gets or sets whether the column is visible when editing an item. Default is null, using the value /// public bool IsVisibleWhenEdit { get; set; } = true; @@ -96,8 +96,8 @@ public class AutoGenerateColumnAttribute : AutoGenerateBaseAttribute, ITableColu public string? RequiredErrorMessage { get; set; } /// - /// 获得/设置 是否显示标签工具提示。通常用于标签文本过长被截断时。默认为 false。 - /// Gets or sets whether to show label tooltip. Mostly used when the label text is too long and gets truncated. Default is false. + /// 获得/设置 是否显示标签工具提示。通常用于标签文本过长被截断时。默认为 false + /// Gets or sets whether to show label tooltip. Mostly used when the label text is too long and gets truncated. Default is false /// public bool ShowLabelTooltip { get; set; } @@ -108,16 +108,16 @@ public class AutoGenerateColumnAttribute : AutoGenerateBaseAttribute, ITableColu } /// - /// 获得/设置 默认排序顺序。默认为 SortOrder.Unset。 - /// Gets or sets the default sort order. Default is SortOrder.Unset. + /// 获得/设置 默认排序顺序。默认为 SortOrder.Unset + /// Gets or sets the default sort order. Default is SortOrder.Unset /// public SortOrder DefaultSortOrder { get; set; } IEnumerable? IEditorItem.Items { get; set; } /// - /// 获得/设置 列宽。 - /// Gets or sets the column width. + /// 获得/设置 列宽 + /// Gets or sets the column width /// public int Width { get; set; } diff --git a/src/BootstrapBlazor/Attributes/BootstrapModuleAutoLoaderAttribute.cs b/src/BootstrapBlazor/Attributes/BootstrapModuleAutoLoaderAttribute.cs index d52fedca741..e591fd0f21c 100644 --- a/src/BootstrapBlazor/Attributes/BootstrapModuleAutoLoaderAttribute.cs +++ b/src/BootstrapBlazor/Attributes/BootstrapModuleAutoLoaderAttribute.cs @@ -13,8 +13,8 @@ namespace BootstrapBlazor.Components; class BootstrapModuleAutoLoaderAttribute(string? path = null) : JSModuleAutoLoaderAttribute(path) { /// - /// 获得/设置 模块名称。自动使用 modules 文件夹中的脚本。 - /// Gets or sets the module name. Automatically uses scripts from the modules folder. + /// 获得/设置 模块名称。自动使用 modules 文件夹中的脚本 + /// Gets or sets the module name. Automatically uses scripts from the modules folder /// public string? ModuleName { get; set; } } diff --git a/src/BootstrapBlazor/Attributes/JSModuleAutoLoaderAttribute.cs b/src/BootstrapBlazor/Attributes/JSModuleAutoLoaderAttribute.cs index 9d9d1907b3a..419d2b734e7 100644 --- a/src/BootstrapBlazor/Attributes/JSModuleAutoLoaderAttribute.cs +++ b/src/BootstrapBlazor/Attributes/JSModuleAutoLoaderAttribute.cs @@ -20,20 +20,20 @@ public class JSModuleAutoLoaderAttribute(string? path = null) : Attribute public string? Path { get; } = path; /// - /// 表示对 JavaScript 对象的引用。默认值为 false。 - /// Represents a reference to a JavaScript object. Default value is false. + /// 表示对 JavaScript 对象的引用。默认值为 false + /// Represents a reference to a JavaScript object. Default value is false /// public bool JSObjectReference { get; set; } /// - /// 获得/设置 是否自动调用 init。默认值为 true。 - /// Gets or sets whether to automatically invoke init. Default is true. + /// 获得/设置 是否自动调用 init。默认值为 true + /// Gets or sets whether to automatically invoke init. Default is true /// public bool AutoInvokeInit { get; set; } = true; /// - /// 获得/设置 是否自动调用 dispose。默认值为 true。 - /// Gets or sets whether to automatically invoke dispose. Default is true. + /// 获得/设置 是否自动调用 dispose。默认值为 true + /// Gets or sets whether to automatically invoke dispose. Default is true /// public bool AutoInvokeDispose { get; set; } = true; } diff --git a/src/BootstrapBlazor/Attributes/PlaceHolderAttribute.cs b/src/BootstrapBlazor/Attributes/PlaceHolderAttribute.cs index b7db0ca6e59..67ef4f98f95 100644 --- a/src/BootstrapBlazor/Attributes/PlaceHolderAttribute.cs +++ b/src/BootstrapBlazor/Attributes/PlaceHolderAttribute.cs @@ -6,16 +6,16 @@ namespace BootstrapBlazor.Components; /// -/// PlaceHolderAttribute 类,用于定义属性的占位符。 -/// PlaceHolderAttribute class used to define a placeholder for a property. +/// PlaceHolderAttribute 类,用于定义属性的占位符 +/// PlaceHolderAttribute class used to define a placeholder for a property /// -/// 占位符文本The placeholder text. +/// 占位符文本The placeholder text [AttributeUsage(AttributeTargets.Property)] public class PlaceHolderAttribute(string placeholder) : Attribute { /// /// 获得 占位符文本 - /// Gets the placeholder text. + /// Gets the placeholder text /// public string Text => placeholder; } diff --git a/src/BootstrapBlazor/Attributes/TabItemOptionAttribute.cs b/src/BootstrapBlazor/Attributes/TabItemOptionAttribute.cs index 9e379f456ed..6576798fb59 100644 --- a/src/BootstrapBlazor/Attributes/TabItemOptionAttribute.cs +++ b/src/BootstrapBlazor/Attributes/TabItemOptionAttribute.cs @@ -14,19 +14,19 @@ public class TabItemOptionAttribute : Attribute { /// /// 获得/设置 TabItem 文本 - /// Gets or sets the text of the tab item. + /// Gets or sets the text of the tab item /// public string? Text { get; set; } /// - /// 获得/设置 当前 TabItem 是否可关闭。默认值为 true。 - /// Gets or sets whether the current TabItem is closable. Default is true. + /// 获得/设置 当前 TabItem 是否可关闭。默认值为 true + /// Gets or sets whether the current TabItem is closable. Default is true /// public bool Closable { get; set; } = true; /// /// 获得/设置 图标字符串 - /// Gets or sets the icon string. + /// Gets or sets the icon string /// public string? Icon { get; set; } } diff --git a/src/BootstrapBlazor/Attributes/TableMetadataForAttribute.cs b/src/BootstrapBlazor/Attributes/TableMetadataForAttribute.cs index a077e75115a..f48595cb2f2 100644 --- a/src/BootstrapBlazor/Attributes/TableMetadataForAttribute.cs +++ b/src/BootstrapBlazor/Attributes/TableMetadataForAttribute.cs @@ -7,12 +7,12 @@ namespace BootstrapBlazor.Components; /// /// 定义目标数据类型的 UI 生成元数据组 -/// 通常模型类型位于与 Blazor 组件 UI 层不同的层。 -/// 在这种情况下,使用 为 Table 组件定义元数据类型。 +/// 通常模型类型位于与 Blazor 组件 UI 层不同的层 +/// 在这种情况下,使用 为 Table 组件定义元数据类型 /// 然后使用 注册元数据类型 /// Define a group of UI generation metadata for target data type -/// Usually model types are at different layer to the blazor component UI layer. -/// In this case, use to define a metadata type for Table component. +/// Usually model types are at different layer to the blazor component UI layer +/// In this case, use to define a metadata type for Table component /// Then register metadata type with /// /// @@ -42,9 +42,9 @@ namespace BootstrapBlazor.Components; /// public string? Name2 { get; set; } /// } /// -/// 在使用元数据之前,需要注册元数据类型。 +/// 在使用元数据之前,需要注册元数据类型 /// 在程序集中注册元数据类型 -/// before using the metadata, it needs to register the metadata types. +/// before using the metadata, it needs to register the metadata types /// register metadata types in assembly /// /// TableMetadataTypeService.RegisterMetadataTypes(typeof(Pig).Assembly); diff --git a/src/BootstrapBlazor/Components/AutoComplete/AutoComplete.razor.cs b/src/BootstrapBlazor/Components/AutoComplete/AutoComplete.razor.cs index 4da01883f23..4a7c813ec11 100644 --- a/src/BootstrapBlazor/Components/AutoComplete/AutoComplete.razor.cs +++ b/src/BootstrapBlazor/Components/AutoComplete/AutoComplete.razor.cs @@ -105,7 +105,7 @@ public partial class AutoComplete /// /// 获得 清除图标样式 - /// Gets the clear icon class string. + /// Gets the clear icon class string /// private string? ClearClassString => CssBuilder.Default("clear-icon") .AddClass($"text-{Color.ToDescriptionString()}", Color != Color.None) @@ -176,7 +176,7 @@ protected override async Task OnAfterRenderAsync(bool firstRender) /// /// 获得 是否显示清除按钮 - /// Gets whether show the clear button. + /// Gets whether show the clear button /// private bool GetClearable() => IsClearable && !IsDisabled; diff --git a/src/BootstrapBlazor/Components/AutoComplete/PopoverCompleteBase.cs b/src/BootstrapBlazor/Components/AutoComplete/PopoverCompleteBase.cs index 3afea6eb77b..94454c5cdb3 100644 --- a/src/BootstrapBlazor/Components/AutoComplete/PopoverCompleteBase.cs +++ b/src/BootstrapBlazor/Components/AutoComplete/PopoverCompleteBase.cs @@ -102,14 +102,14 @@ public abstract class PopoverCompleteBase : BootstrapInputBase, /// /// 获得/设置 选择组件是否可清除 默认为 false - /// Gets or sets whether the select component is clearable. Default is false. + /// Gets or sets whether the select component is clearable. Default is false /// [Parameter] public bool IsClearable { get; set; } /// /// 获得/设置 右侧清除图标 默认为 fa-solid fa-angle-up - /// Gets or sets the right-side clear icon. Default is fa-solid fa-angle-up. + /// Gets or sets the right-side clear icon. Default is fa-solid fa-angle-up /// [Parameter] [NotNull] diff --git a/src/BootstrapBlazor/Components/AutoFill/AutoFill.razor.cs b/src/BootstrapBlazor/Components/AutoFill/AutoFill.razor.cs index 171f13523c3..6bc03ee8d5c 100644 --- a/src/BootstrapBlazor/Components/AutoFill/AutoFill.razor.cs +++ b/src/BootstrapBlazor/Components/AutoFill/AutoFill.razor.cs @@ -18,7 +18,7 @@ public partial class AutoFill { /// /// 获得/设置 组件数据集合 - /// Gets or sets the collection of items for the component. + /// Gets or sets the collection of items for the component /// [Parameter] [NotNull] @@ -26,7 +26,7 @@ public partial class AutoFill /// /// 获得/设置 匹配数据时显示的数量 默认为 null - /// Gets or sets the number of items to display when matching data. Default is null. + /// Gets or sets the number of items to display when matching data. Default is null /// [Parameter] [NotNull] @@ -34,28 +34,28 @@ public partial class AutoFill /// /// 获得/设置 是否开启模糊搜索 默认为 false - /// Gets or sets whether to enable fuzzy search. Default is false. + /// Gets or sets whether to enable fuzzy search. Default is false /// [Parameter] public bool IsLikeMatch { get; set; } /// /// 获得/设置 匹配时是否忽略大小写 默认为 true - /// Gets or sets whether to ignore case when matching. Default is true. + /// Gets or sets whether to ignore case when matching. Default is true /// [Parameter] public bool IgnoreCase { get; set; } = true; /// /// 获得/设置 获得焦点时是否展开下拉候选菜单 默认为 true - /// Gets or sets whether to expand the dropdown candidate menu when focused. Default is true. + /// Gets or sets whether to expand the dropdown candidate menu when focused. Default is true /// [Parameter] public bool ShowDropdownListOnFocus { get; set; } = true; /// /// 获得/设置 获取显示文本方法 默认为使用 ToString 方法 - /// Gets or sets the method to get the display text from the model. Default is to use the ToString override method. + /// Gets or sets the method to get the display text from the model. Default is to use the ToString override method /// [Parameter] [NotNull] @@ -63,35 +63,35 @@ public partial class AutoFill /// /// 获得/设置 图标 - /// Gets or sets the icon. + /// Gets or sets the icon /// [Parameter] public string? Icon { get; set; } /// /// 获得/设置 加载图标 - /// Gets or sets the loading icon. + /// Gets or sets the loading icon /// [Parameter] public string? LoadingIcon { get; set; } /// /// 获得/设置 自定义集合过滤规则 - /// Gets or sets the custom collection filtering rules. + /// Gets or sets the custom collection filtering rules /// [Parameter] public Func>>? OnCustomFilter { get; set; } /// /// 获得/设置 是否显示无匹配数据选项 默认为 true - /// Gets or sets whether to show the no matching data option. Default is true. + /// Gets or sets whether to show the no matching data option. Default is true /// [Parameter] public bool ShowNoDataTip { get; set; } = true; /// /// 获得/设置 候选项模板 默认为 null - /// Gets or sets the candidate item template. Default is null. + /// Gets or sets the candidate item template. Default is null /// [Parameter] [Obsolete("已弃用,请使用 ItemTemplate 代替;Deprecated please use ItemTemplate parameter")] @@ -100,36 +100,36 @@ public partial class AutoFill /// /// 获得/设置 是否开启虚拟滚动 默认为 false - /// Gets or sets whether virtual scrolling is enabled. Default is false. + /// Gets or sets whether virtual scrolling is enabled. Default is false /// [Parameter] public bool IsVirtualize { get; set; } /// /// 获得/设置 虚拟滚动行高 默认为 50f - /// Gets or sets the row height for virtual scrolling. Default is 50f. + /// Gets or sets the row height for virtual scrolling. Default is 50f /// /// /// 为 true 时生效 - /// Effective when is set to true. + /// Effective when is set to true /// [Parameter] public float RowHeight { get; set; } = 50f; /// /// 获得/设置 虚拟滚动预加载行数 默认为 3 - /// Gets or sets the overscan count for virtual scrolling. Default is 3. + /// Gets or sets the overscan count for virtual scrolling. Default is 3 /// /// /// 为 true 时生效 - /// Effective when is set to true. + /// Effective when is set to true /// [Parameter] public int OverscanCount { get; set; } = 3; /// /// 获得/设置 虚拟滚动加载回调方法 - /// Gets or sets the callback method for loading virtualized items. + /// Gets or sets the callback method for loading virtualized items /// [Parameter] [NotNull] @@ -137,7 +137,7 @@ public partial class AutoFill /// /// 获得/设置 点击清除按钮回调方法 默认为 null - /// Gets or sets the callback method when the clear button is clicked. Default is null. + /// Gets or sets the callback method when the clear button is clicked. Default is null /// [Parameter] public Func? OnClearAsync { get; set; } @@ -171,7 +171,7 @@ public partial class AutoFill /// /// 获得 组件样式 - /// Gets the component style. + /// Gets the component style /// private string? ClassString => CssBuilder.Default("auto-complete auto-fill") .AddClass("is-clearable", IsClearable) @@ -179,7 +179,7 @@ public partial class AutoFill /// /// 获得 清除图标样式 - /// Gets the clear icon class string. + /// Gets the clear icon class string /// private string? ClearClassString => CssBuilder.Default("clear-icon") .AddClass($"text-{Color.ToDescriptionString()}", Color != Color.None) @@ -253,15 +253,15 @@ public void TriggerChange(string v) /// /// 获得 是否显示清除按钮 - /// Gets whether show the clear button. + /// Gets whether show the clear button /// private bool GetClearable() => IsClearable && !IsDisabled && IsNullable(); /// /// 点击候选项目时回调方法 - /// Callback method when a candidate item is clicked. + /// Callback method when a candidate item is clicked /// - /// 点击项的值The value of the clicked item. + /// 点击项的值The value of the clicked item private async Task OnClickItem(TValue val) { CurrentValue = val; @@ -300,9 +300,9 @@ private async ValueTask> LoadItems(ItemsProviderRequ /// /// 触发过滤方法 - /// Triggers the filter method. + /// Triggers the filter method /// - /// 过滤值The value to filter by. + /// 过滤值The value to filter by [JSInvokable] public async Task TriggerFilter(string val) { diff --git a/src/BootstrapBlazor/Components/Badge/Badge.razor.cs b/src/BootstrapBlazor/Components/Badge/Badge.razor.cs index 87d2ce8278c..b46f939d070 100644 --- a/src/BootstrapBlazor/Components/Badge/Badge.razor.cs +++ b/src/BootstrapBlazor/Components/Badge/Badge.razor.cs @@ -19,14 +19,14 @@ public partial class Badge /// /// 获得/设置 徽章颜色 默认为 - /// Gets or sets the color of the badge. Default is . + /// Gets or sets the color of the badge. Default is /// [Parameter] public Color Color { get; set; } = Color.Primary; /// /// 获得/设置 徽章是否显示为胶囊形式 默认为 false - /// Gets or sets whether the badge should be displayed as a pill (rounded) or not. Default is false. + /// Gets or sets whether the badge should be displayed as a pill (rounded) or not. Default is false /// /// [Parameter] @@ -34,7 +34,7 @@ public partial class Badge /// /// 获得/设置 子组件内容 默认为 false - /// Gets or sets the child content of the component. Default is false. + /// Gets or sets the child content of the component. Default is false /// [Parameter] public RenderFragment? ChildContent { get; set; } diff --git a/src/BootstrapBlazor/Components/BaseComponents/BootstrapModuleComponentBase.cs b/src/BootstrapBlazor/Components/BaseComponents/BootstrapModuleComponentBase.cs index 3776bd5200e..fc5b4a2c8f4 100644 --- a/src/BootstrapBlazor/Components/BaseComponents/BootstrapModuleComponentBase.cs +++ b/src/BootstrapBlazor/Components/BaseComponents/BootstrapModuleComponentBase.cs @@ -198,8 +198,8 @@ protected async Task InvokeVoidAsync(string identifier, CancellationToken cancel } /// - /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously. - /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously. + /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously + /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously /// /// protected virtual async ValueTask DisposeAsync(bool disposing) diff --git a/src/BootstrapBlazor/Components/BootstrapBlazorRootOutlet/BootstrapBlazorRootContent.cs b/src/BootstrapBlazor/Components/BootstrapBlazorRootOutlet/BootstrapBlazorRootContent.cs index e4c411dddbd..377911e78df 100644 --- a/src/BootstrapBlazor/Components/BootstrapBlazorRootOutlet/BootstrapBlazorRootContent.cs +++ b/src/BootstrapBlazor/Components/BootstrapBlazorRootOutlet/BootstrapBlazorRootContent.cs @@ -14,20 +14,20 @@ public class BootstrapBlazorRootContent : IComponent, IDisposable private object? _registeredIdentifier; /// - /// 获得/设置 the ID that determines which 实例 will render the 内容 of this 实例. - /// Gets or sets the ID that determines which instance will render the content of this instance. + /// 获得/设置 the ID that determines which 实例 will render the 内容 of this 实例 + /// Gets or sets the ID that determines which instance will render the content of this instance /// [Parameter] public string? RootName { get; set; } /// - /// 获得/设置 the ID that determines which 实例 will render the 内容 of this 实例. - /// Gets or sets the ID that determines which instance will render the content of this instance. + /// 获得/设置 the ID that determines which 实例 will render the 内容 of this 实例 + /// Gets or sets the ID that determines which instance will render the content of this instance /// [Parameter] public object? RootId { get; set; } /// - /// 获得/设置 the 内容. - /// Gets or sets the content. + /// 获得/设置 the 内容 + /// Gets or sets the content /// [Parameter] public RenderFragment? ChildContent { get; set; } diff --git a/src/BootstrapBlazor/Components/BootstrapBlazorRootOutlet/BootstrapBlazorRootOutlet.cs b/src/BootstrapBlazor/Components/BootstrapBlazorRootOutlet/BootstrapBlazorRootOutlet.cs index 09ada8d031f..0ebb3007d96 100644 --- a/src/BootstrapBlazor/Components/BootstrapBlazorRootOutlet/BootstrapBlazorRootOutlet.cs +++ b/src/BootstrapBlazor/Components/BootstrapBlazorRootOutlet/BootstrapBlazorRootOutlet.cs @@ -19,7 +19,7 @@ public class BootstrapBlazorRootOutlet : IComponent, IDisposable /// /// 获得可用于订阅所有 实例的默认标识符 - /// Gets the default identifier that can be used to subscribe to all instances. + /// Gets the default identifier that can be used to subscribe to all instances /// public static readonly object DefaultIdentifier = new(); @@ -28,14 +28,14 @@ public class BootstrapBlazorRootOutlet : IComponent, IDisposable /// /// 获得/设置确定哪些 实例将为此实例提供内容的 ID - /// Gets or sets the ID that determines which instances will provide content to this instance. + /// Gets or sets the ID that determines which instances will provide content to this instance /// [Parameter] public string? RootName { get; set; } /// /// 获得/设置确定哪些 实例将为此实例提供内容的 ID - /// Gets or sets the ID that determines which instances will provide content to this instance. + /// Gets or sets the ID that determines which instances will provide content to this instance /// [Parameter] public object? RootId { get; set; } diff --git a/src/BootstrapBlazor/Components/Button/PopConfirmButtonBase.cs b/src/BootstrapBlazor/Components/Button/PopConfirmButtonBase.cs index 60a678f8b05..e5d28996539 100644 --- a/src/BootstrapBlazor/Components/Button/PopConfirmButtonBase.cs +++ b/src/BootstrapBlazor/Components/Button/PopConfirmButtonBase.cs @@ -194,8 +194,8 @@ protected override void OnParametersSet() protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id, Interop, nameof(TriggerCloseCallback)); /// - /// Trigger OnClose event 回调. - /// Trigger OnClose event callback. + /// Trigger OnClose event 回调 + /// Trigger OnClose event callback /// [JSInvokable] public async Task TriggerCloseCallback() diff --git a/src/BootstrapBlazor/Components/Cascader/Cascader.razor.cs b/src/BootstrapBlazor/Components/Cascader/Cascader.razor.cs index a868f9beef0..b1059bf824e 100644 --- a/src/BootstrapBlazor/Components/Cascader/Cascader.razor.cs +++ b/src/BootstrapBlazor/Components/Cascader/Cascader.razor.cs @@ -40,8 +40,8 @@ public partial class Cascader public Color Color { get; set; } = Color.None; /// - /// 获得/设置 组件 PlaceHolder 文字 默认为 请选择 ... - /// Gets or sets the component PlaceHolder text. Default is Please select ... + /// 获得/设置 组件 PlaceHolder 文字 默认为 请选择 .. + /// Gets or sets the component PlaceHolder text. Default is Please select .. /// [Parameter] public string? PlaceHolder { get; set; } diff --git a/src/BootstrapBlazor/Components/Clipboard/ClipboardItem.cs b/src/BootstrapBlazor/Components/Clipboard/ClipboardItem.cs index e487d971850..504b7b1c4dd 100644 --- a/src/BootstrapBlazor/Components/Clipboard/ClipboardItem.cs +++ b/src/BootstrapBlazor/Components/Clipboard/ClipboardItem.cs @@ -6,14 +6,14 @@ namespace BootstrapBlazor.Components; /// -/// Represents an item on the clipboard with associated 数据 and meta数据. -/// Represents an item on the clipboard with associated data and metadata. +/// Represents an item on the clipboard with associated 数据 and meta数据 +/// Represents an item on the clipboard with associated data and metadata /// public class ClipboardItem { /// - /// 获得/设置 the Internet Media Type (MIME 类型) of the 内容 stored in the clipboard item. - /// Gets or sets the Internet Media Type (MIME type) of the content stored in the clipboard item. + /// 获得/设置 the Internet Media Type (MIME 类型) of the 内容 stored in the clipboard item + /// Gets or sets the Internet Media Type (MIME type) of the content stored in the clipboard item /// /// /// The MIME type is used to specify the nature and format of the data stored in the clipboard. @@ -22,8 +22,8 @@ public class ClipboardItem public string? MimeType { get; set; } /// - /// 获得/设置 the raw 数据 of the clipboard item. - /// Gets or sets the raw data of the clipboard item. + /// 获得/设置 the raw 数据 of the clipboard item + /// Gets or sets the raw data of the clipboard item /// /// /// The data is stored as a byte array, allowing for any binary or text content @@ -32,8 +32,8 @@ public class ClipboardItem public byte[]? Data { get; set; } /// - /// Retrieves a text representation of the clipboard item if the MIME 类型 indicates text 内容. - /// Retrieves a text representation of the clipboard item if the MIME type indicates text content. + /// Retrieves a text representation of the clipboard item if the MIME 类型 indicates text 内容 + /// Retrieves a text representation of the clipboard item if the MIME type indicates text content /// /// /// A string containing the text representation of the data if the MIME type starts with "text/", diff --git a/src/BootstrapBlazor/Components/ContextMenu/ContextMenu.razor.cs b/src/BootstrapBlazor/Components/ContextMenu/ContextMenu.razor.cs index 68d8f975610..fcfdc42bfd0 100644 --- a/src/BootstrapBlazor/Components/ContextMenu/ContextMenu.razor.cs +++ b/src/BootstrapBlazor/Components/ContextMenu/ContextMenu.razor.cs @@ -9,27 +9,27 @@ namespace BootstrapBlazor.Components; /// /// ContextMenu 组件 -/// A component that represents a context menu. +/// A component that represents a context menu /// public partial class ContextMenu { /// /// 获得/设置 是否显示阴影 默认 - /// Flags whether to show a shadow around the context menu. Default is . + /// Flags whether to show a shadow around the context menu. Default is /// [Parameter] public bool ShowShadow { get; set; } = true; /// /// 获得/设置 弹出前回调方法 默认 null - /// Defines the callback that is executed before showing the context menu. Default is . + /// Defines the callback that is executed before showing the context menu. Default is /// [Parameter] public Func? OnBeforeShowCallback { get; set; } /// /// 获得/设置 子组件 - /// The that represents the child content. + /// The that represents the child content /// [Parameter] public RenderFragment? ChildContent { get; set; } @@ -87,19 +87,19 @@ protected override async Task OnAfterRenderAsync(bool firstRender) /// /// 弹出 ContextMenu - /// Shows the . + /// Shows the /// /// /// 鼠标事件参数 - /// The that invoked this event. + /// The that invoked this event /// /// /// 上下文项 - /// Context that is associated with the clicked . + /// Context that is associated with the clicked /// /// /// 异步任务 - /// An asynchronous instance of a . + /// An asynchronous instance of a /// internal async Task Show(MouseEventArgs args, object? contextItem) { @@ -122,7 +122,7 @@ private async Task OnClickItem(ContextMenuItem item) /// /// 增加 ContextMenuItem 方法 - /// Adds an to the menu. + /// Adds an to the menu /// /// /// 要添加的项 @@ -132,7 +132,7 @@ private async Task OnClickItem(ContextMenuItem item) /// /// 移除 ContextMenuItem 方法 - /// Removes an from the menu. + /// Removes an from the menu /// /// /// 要移除的项 diff --git a/src/BootstrapBlazor/Components/ContextMenu/ContextMenuDivider.cs b/src/BootstrapBlazor/Components/ContextMenu/ContextMenuDivider.cs index 51bc0479556..0aec3acb720 100644 --- a/src/BootstrapBlazor/Components/ContextMenu/ContextMenuDivider.cs +++ b/src/BootstrapBlazor/Components/ContextMenu/ContextMenuDivider.cs @@ -9,7 +9,7 @@ namespace BootstrapBlazor.Components; /// /// ContextMenuDivider 组件 -/// A component that defines a menu item as a divider in a context menu. +/// A component that defines a menu item as a divider in a context menu /// public class ContextMenuDivider : Divider, IContextMenuItem, IDisposable { @@ -36,7 +36,7 @@ protected override void BuildRenderTree(RenderTreeBuilder builder) { } /// /// 释放资源方法 - /// Method to release resources. + /// Method to release resources /// /// protected virtual void Dispose(bool disposing) diff --git a/src/BootstrapBlazor/Components/ContextMenu/ContextMenuItem.cs b/src/BootstrapBlazor/Components/ContextMenu/ContextMenuItem.cs index 4120eb3655d..98caf264315 100644 --- a/src/BootstrapBlazor/Components/ContextMenu/ContextMenuItem.cs +++ b/src/BootstrapBlazor/Components/ContextMenu/ContextMenuItem.cs @@ -7,13 +7,13 @@ namespace BootstrapBlazor.Components; /// /// ContextMenuItem 类 -/// A type that represents a menu item in a . +/// A type that represents a menu item in a /// public class ContextMenuItem : ComponentBase, IContextMenuItem, IDisposable { /// /// 获得/设置 显示文本 - /// The text to display. + /// The text to display /// [Parameter] public string? Text { get; set; } @@ -32,21 +32,21 @@ public class ContextMenuItem : ComponentBase, IContextMenuItem, IDisposable /// /// 获得/设置 是否被禁用 默认 false 优先级低于 - /// Flags whether the item is disabled. Default is . It has a lower priority than . + /// Flags whether the item is disabled. Default is . It has a lower priority than /// [Parameter] public bool Disabled { get; set; } /// /// 获得/设置 是否被禁用回调方法 默认 null 优先级高于 - /// Defines the callback to determine if the item is disabled. Default is . It has a higher priority than . + /// Defines the callback to determine if the item is disabled. Default is . It has a higher priority than /// [Parameter] public Func? OnDisabledCallback { get; set; } /// /// 获得/设置 点击回调方法 默认 null - /// Defines the click callback. Default is . + /// Defines the click callback. Default is /// [Parameter] public Func? OnClick { get; set; } @@ -67,7 +67,7 @@ protected override void OnInitialized() /// /// 释放资源方法 - /// Method to release resources. + /// Method to release resources /// /// 是否释放托管资源Whether to release managed resources protected virtual void Dispose(bool disposing) diff --git a/src/BootstrapBlazor/Components/ContextMenu/ContextMenuTrigger.cs b/src/BootstrapBlazor/Components/ContextMenu/ContextMenuTrigger.cs index cba9d26aa1f..a44e9648732 100644 --- a/src/BootstrapBlazor/Components/ContextMenu/ContextMenuTrigger.cs +++ b/src/BootstrapBlazor/Components/ContextMenu/ContextMenuTrigger.cs @@ -10,7 +10,7 @@ namespace BootstrapBlazor.Components; /// /// ContextMenuTrigger 组件 -/// A component that defines a trigger that shows a . +/// A component that defines a trigger that shows a /// public class ContextMenuTrigger : BootstrapComponentBase { @@ -22,14 +22,14 @@ public class ContextMenuTrigger : BootstrapComponentBase /// /// 获得/设置 包裹组件 TagName 默认为 div - /// The HTML tag name to use for the trigger. Default is <div>. + /// The HTML tag name to use for the trigger. Default is <div> /// [Parameter] public string WrapperTag { get; set; } = "div"; /// /// 获得/设置 上下文数据 - /// Gets or sets the context data. + /// Gets or sets the context data /// [Parameter] public object? ContextItem { get; set; } @@ -39,8 +39,8 @@ public class ContextMenuTrigger : BootstrapComponentBase private ContextMenuZone? ContextMenuZone { get; set; } /// - /// 触摸事件触发菜单的超时时间(毫秒)。默认值为 毫秒。必须大于 0。 - /// The timeout duration for touch events to trigger the context menu (in milliseconds). Default is milliseconds. Must be greater than 0. + /// 触摸事件触发菜单的超时时间(毫秒)。默认值为 毫秒。必须大于 0 + /// The timeout duration for touch events to trigger the context menu (in milliseconds). Default is milliseconds. Must be greater than 0 /// [Parameter] public int? OnTouchDelay { get; set; } @@ -80,20 +80,20 @@ protected override void BuildRenderTree(RenderTreeBuilder builder) /// /// 点击 ContextMenu 菜单项时触发 - /// Triggered when a context menu item is clicked. + /// Triggered when a context menu item is clicked /// [DynamicDependency(DynamicallyAccessedMemberTypes.PublicMethods, typeof(MouseEventArgs))] public Task OnContextMenu(MouseEventArgs args) => ContextMenuZone.OnContextMenu(args, ContextItem); /// /// 是否触摸 - /// Indicates whether a touch event is started. + /// Indicates whether a touch event is started /// public bool IsTouchStarted { get; private set; } /// /// 触摸定时器工作指示 - /// Indicates whether the touch timer is working. + /// Indicates whether the touch timer is working /// private bool IsBusy { get; set; } diff --git a/src/BootstrapBlazor/Components/ContextMenu/ContextMenuZone.razor.cs b/src/BootstrapBlazor/Components/ContextMenu/ContextMenuZone.razor.cs index bdf0f983457..b1a8b5d53a8 100644 --- a/src/BootstrapBlazor/Components/ContextMenu/ContextMenuZone.razor.cs +++ b/src/BootstrapBlazor/Components/ContextMenu/ContextMenuZone.razor.cs @@ -9,7 +9,7 @@ namespace BootstrapBlazor.Components; /// /// ContextMenuZone 组件 -/// The ContextMenuZone defines the area in the DOM where the context menu can be displayed. +/// The ContextMenuZone defines the area in the DOM where the context menu can be displayed /// public partial class ContextMenuZone { @@ -42,7 +42,7 @@ internal async Task OnContextMenu(MouseEventArgs args, object? contextItem) /// /// ContextMenu 组件调用 - /// Registers a with this zone. + /// Registers a with this zone /// /// /// 要注册的 ContextMenu 组件 diff --git a/src/BootstrapBlazor/Components/ContextMenu/IContextMenuItem.cs b/src/BootstrapBlazor/Components/ContextMenu/IContextMenuItem.cs index f686bc051c3..8f1af1f40ea 100644 --- a/src/BootstrapBlazor/Components/ContextMenu/IContextMenuItem.cs +++ b/src/BootstrapBlazor/Components/ContextMenu/IContextMenuItem.cs @@ -7,7 +7,7 @@ namespace BootstrapBlazor.Components; /// /// IContextMenuItem 接口 -/// The interface for a menu item in a context menu. +/// The interface for a menu item in a context menu /// public interface IContextMenuItem { diff --git a/src/BootstrapBlazor/Components/CountUp/CountUpOption.cs b/src/BootstrapBlazor/Components/CountUp/CountUpOption.cs index a697615e89b..4503d8f984c 100644 --- a/src/BootstrapBlazor/Components/CountUp/CountUpOption.cs +++ b/src/BootstrapBlazor/Components/CountUp/CountUpOption.cs @@ -57,8 +57,8 @@ public class CountUpOption public string Separator { get; set; } = ","; /// - /// 小数点符号 默认 点 . - /// Decimal point symbol, Default is dot . + /// 小数点符号 默认 点 + /// Decimal point symbol, Default is dot /// public string Decimal { get; set; } = "."; diff --git a/src/BootstrapBlazor/Components/DateTimeRange/DateTimeRange.razor.cs b/src/BootstrapBlazor/Components/DateTimeRange/DateTimeRange.razor.cs index 4a3a1244c8e..4e2987c719d 100644 --- a/src/BootstrapBlazor/Components/DateTimeRange/DateTimeRange.razor.cs +++ b/src/BootstrapBlazor/Components/DateTimeRange/DateTimeRange.razor.cs @@ -108,15 +108,15 @@ private string? EndValueString public bool AutoCloseClickSideBar { get; set; } /// - /// 获得/设置 是否 to automatically close the popup after a date range is selected. 默认为 false. - /// Gets or sets whether to automatically close the popup after a date range is selected. Default is false. + /// 获得/设置 是否 to automatically close the popup after a date range is selected. 默认为 false + /// Gets or sets whether to automatically close the popup after a date range is selected. Default is false /// [Parameter] public bool AutoClose { get; set; } /// - /// 获得/设置 是否 show the selected value. 默认为 false. - /// Gets or sets whether show the selected value. Default is false. + /// 获得/设置 是否 show the selected value. 默认为 false + /// Gets or sets whether show the selected value. Default is false /// [Parameter] public bool ShowSelectedValue { get; set; } @@ -295,8 +295,8 @@ public bool AllowNull public bool ShowHolidays { get; set; } /// - /// 获得/设置 the date value changed event 回调. - /// Gets or sets the date value changed event callback. + /// 获得/设置 the date value changed event 回调 + /// Gets or sets the date value changed event callback /// [Parameter] public Func? OnDateClick { get; set; } diff --git a/src/BootstrapBlazor/Components/Display/DisplayBase.cs b/src/BootstrapBlazor/Components/Display/DisplayBase.cs index 0ab218fedb9..9bbc9a865f1 100644 --- a/src/BootstrapBlazor/Components/Display/DisplayBase.cs +++ b/src/BootstrapBlazor/Components/Display/DisplayBase.cs @@ -21,8 +21,8 @@ public abstract class DisplayBase : BootstrapModuleComponentBase protected bool IsShowLabel { get; set; } /// - /// 获得绑定值的 - /// Gets the for the bound value. + /// 获得绑定值的 + /// Gets the for the bound value /// protected FieldIdentifier? FieldIdentifier { get; set; } @@ -40,8 +40,8 @@ public abstract class DisplayBase : BootstrapModuleComponentBase protected Type? ValueType { get; set; } /// - /// 获得/设置 输入组件的值,支持双向绑定。 - /// Gets or sets the value of the input. This should be used with two-way binding. + /// 获得/设置 输入组件的值,支持双向绑定 + /// Gets or sets the value of the input. This should be used with two-way binding /// /// /// @bind-Value="model.PropertyName" @@ -51,15 +51,15 @@ public abstract class DisplayBase : BootstrapModuleComponentBase public TValue? Value { get; set; } /// - /// 获得/设置 用于更新绑定值的回调。 - /// Gets or sets a callback that updates the bound value. + /// 获得/设置 用于更新绑定值的回调 + /// Gets or sets a callback that updates the bound value /// [Parameter] public EventCallback ValueChanged { get; set; } /// - /// 获得/设置 标识绑定值的表达式。 - /// Gets or sets an expression that identifies the bound value. + /// 获得/设置 标识绑定值的表达式 + /// Gets or sets an expression that identifies the bound value /// [Parameter] public Expression>? ValueExpression { get; set; } diff --git a/src/BootstrapBlazor/Components/EditorForm/IEditorItem.cs b/src/BootstrapBlazor/Components/EditorForm/IEditorItem.cs index 62e3c9de79b..9f0057bd98a 100644 --- a/src/BootstrapBlazor/Components/EditorForm/IEditorItem.cs +++ b/src/BootstrapBlazor/Components/EditorForm/IEditorItem.cs @@ -12,161 +12,161 @@ namespace BootstrapBlazor.Components; public interface IEditorItem : ILookup { /// - /// 获得 绑定列的类型。 - /// Gets the type of the bound column. + /// 获得 绑定列的类型 + /// Gets the type of the bound column /// Type PropertyType { get; } /// - /// 获得/设置 是否可编辑,默认为 true。 - /// Gets or sets whether the current edit item is editable. Default is true. + /// 获得/设置 是否可编辑,默认为 true + /// Gets or sets whether the current edit item is editable. Default is true /// [Obsolete("Deprecated. Use the Visible parameter. IsVisibleWhenAdd should be used when creating a new one, and IsVisibleWhenEdit should be used when editing. Use the Readonly parameter for read-only. IsReadonlyWhenAdd should be used when creating a new one, and IsReadonlyWhenEdit should be used when editing.")] bool Editable { get; set; } /// - /// 获得/设置 是否为只读,默认为 false。 - /// Gets or sets whether the current edit item is read-only. Default is false. + /// 获得/设置 是否为只读,默认为 false + /// Gets or sets whether the current edit item is read-only. Default is false /// bool? Readonly { get; set; } /// - /// 获得/设置 是否忽略当前编辑项,默认为 false,设置为 true 时 UI 不生成此列。 - /// Gets or sets whether the current edit item is ignored. Default is false. When true, the UI will not generate this column. + /// 获得/设置 是否忽略当前编辑项,默认为 false,设置为 true 时 UI 不生成此列 + /// Gets or sets whether the current edit item is ignored. Default is false. When true, the UI will not generate this column /// bool? Ignore { get; set; } /// - /// 获得/设置 是否跳过校验,默认为 false。 - /// Gets or sets whether to skip validation. Default is false. + /// 获得/设置 是否跳过校验,默认为 false + /// Gets or sets whether to skip validation. Default is false /// bool SkipValidate { get; set; } /// - /// 获得/设置 表头显示文本。 - /// Gets or sets the header display text. + /// 获得/设置 表头显示文本 + /// Gets or sets the header display text /// string? Text { get; set; } /// - /// 获得/设置 是否显示标签提示,常用于标签文本过长被截断时,默认为 null。 - /// Gets or sets whether to show the label tooltip, usually when the label text is too long and truncated. Default is null. + /// 获得/设置 是否显示标签提示,常用于标签文本过长被截断时,默认为 null + /// Gets or sets whether to show the label tooltip, usually when the label text is too long and truncated. Default is null /// bool? ShowLabelTooltip { get; set; } /// - /// 获得/设置 占位符文本,默认为 null。 - /// Gets or sets the placeholder text. Default is null. + /// 获得/设置 占位符文本,默认为 null + /// Gets or sets the placeholder text. Default is null /// string? PlaceHolder { get; set; } /// - /// 获得/设置 附加数据源,通常用于 Select 或 CheckboxList 等需要额外配置的组件。 - /// Gets or sets the additional data source, generally used for components like Select or CheckboxList that require additional configuration. + /// 获得/设置 附加数据源,通常用于 Select 或 CheckboxList 等需要额外配置的组件 + /// Gets or sets the additional data source, generally used for components like Select or CheckboxList that require additional configuration /// IEnumerable? Items { get; set; } /// - /// 获得/设置 步长,默认为 null,设置为 "any" 时忽略校验。 - /// Gets or sets the step. Default is null. When set to "any", validation is ignored. + /// 获得/设置 步长,默认为 null,设置为 "any" 时忽略校验 + /// Gets or sets the step. Default is null. When set to "any", validation is ignored /// string? Step { get; set; } /// - /// 获得/设置 Textarea 的行数,默认为 0。 - /// Gets or sets the number of rows for a Textarea. Default is 0. + /// 获得/设置 Textarea 的行数,默认为 0 + /// Gets or sets the number of rows for a Textarea. Default is 0 /// int Rows { get; set; } /// - /// 获得/设置 字段的列跨度,默认为 0。 - /// Gets or sets the field column span. Default is 0. + /// 获得/设置 字段的列跨度,默认为 0 + /// Gets or sets the field column span. Default is 0 /// int Cols { get; set; } /// - /// 获得/设置 编辑模板。 - /// Gets or sets the edit template. + /// 获得/设置 编辑模板 + /// Gets or sets the edit template /// RenderFragment? EditTemplate { get; set; } /// - /// 获得/设置 组件类型,默认为 null。 - /// Gets or sets the component type. Default is null. + /// 获得/设置 组件类型,默认为 null + /// Gets or sets the component type. Default is null /// Type? ComponentType { get; set; } /// - /// 获得/设置 自定义组件参数,默认为 null。 - /// Gets or sets the custom component parameters. Default is null. + /// 获得/设置 自定义组件参数,默认为 null + /// Gets or sets the custom component parameters. Default is null /// IEnumerable>? ComponentParameters { get; set; } /// - /// 获得/设置 是否在下拉列表中显示搜索框,默认为 false。 - /// Gets or sets whether to show the search bar in the dropdown list. Default is false. + /// 获得/设置 是否在下拉列表中显示搜索框,默认为 false + /// Gets or sets whether to show the search bar in the dropdown list. Default is false /// bool ShowSearchWhenSelect { get; set; } /// - /// 获得/设置 是否在下拉中使用固定搜索框,默认为 false。 - /// Gets or sets whether to allow a fixed search box within the dropdown. Default is false. + /// 获得/设置 是否在下拉中使用固定搜索框,默认为 false + /// Gets or sets whether to allow a fixed search box within the dropdown. Default is false /// [Obsolete("已弃用,请删除;Deprecated, please delete")] [ExcludeFromCodeCoverage] bool IsFixedSearchWhenSelect { get; set; } /// - /// 获得/设置 是否使用 Popover 渲染下拉列表,默认为 false。 - /// Gets or sets whether to use Popover to render the dropdown list. Default is false. + /// 获得/设置 是否使用 Popover 渲染下拉列表,默认为 false + /// Gets or sets whether to use Popover to render the dropdown list. Default is false /// bool IsPopover { get; set; } /// - /// 获得/设置 自定义验证规则。 - /// Gets or sets the custom validation rules. + /// 获得/设置 自定义验证规则 + /// Gets or sets the custom validation rules /// List? ValidateRules { get; set; } /// - /// 获得 绑定字段的显示名称。 - /// Gets the display name of the bound field. + /// 获得 绑定字段的显示名称 + /// Gets the display name of the bound field /// string GetDisplayName(); /// - /// 获得 绑定字段的字段名。 - /// Gets the field name of the bound field. + /// 获得 绑定字段的字段名 + /// Gets the field name of the bound field /// string GetFieldName(); /// - /// 获得/设置 顺序号。 - /// Gets or sets the order number. + /// 获得/设置 顺序号 + /// Gets or sets the order number /// int Order { get; set; } /// - /// 获得/设置 当前属性的分组名称。 - /// Gets or sets the group name of the current property. + /// 获得/设置 当前属性的分组名称 + /// Gets or sets the group name of the current property /// string? GroupName { get; set; } /// - /// 获得/设置 当前属性的分组顺序,默认为 0。 - /// Gets or sets the group order of the current property. Default is 0. + /// 获得/设置 当前属性的分组顺序,默认为 0 + /// Gets or sets the group order of the current property. Default is 0 /// int GroupOrder { get; set; } /// - /// 获得/设置 是否为必填项,默认为 null。 - /// Gets or sets whether the field is required. Default is null. + /// 获得/设置 是否为必填项,默认为 null + /// Gets or sets whether the field is required. Default is null /// bool? Required { get; set; } /// - /// 获得/设置 必填项缺失时的错误消息,默认为 null。 - /// Gets or sets the error message when the required field is missing. Default is null. + /// 获得/设置 必填项缺失时的错误消息,默认为 null + /// Gets or sets the error message when the required field is missing. Default is null /// string? RequiredErrorMessage { get; set; } } diff --git a/src/BootstrapBlazor/Components/ErrorLogger/ErrorRender.cs b/src/BootstrapBlazor/Components/ErrorLogger/ErrorRender.cs index 7d91305b8c4..c0e7337bcd2 100644 --- a/src/BootstrapBlazor/Components/ErrorLogger/ErrorRender.cs +++ b/src/BootstrapBlazor/Components/ErrorLogger/ErrorRender.cs @@ -27,8 +27,6 @@ void IComponent.Attach(RenderHandle renderHandle) /// /// /// - /// - /// public Task SetParametersAsync(ParameterView parameters) { _ex = parameters.GetValueOrDefault("Exception"); diff --git a/src/BootstrapBlazor/Components/FileIcon/FileIcon.razor.cs b/src/BootstrapBlazor/Components/FileIcon/FileIcon.razor.cs index e1850309ca2..672c1c13ec4 100644 --- a/src/BootstrapBlazor/Components/FileIcon/FileIcon.razor.cs +++ b/src/BootstrapBlazor/Components/FileIcon/FileIcon.razor.cs @@ -36,15 +36,15 @@ public partial class FileIcon public RenderFragment? BackgroundTemplate { get; set; } /// - /// 获得/设置 图标类型背景色 默认 Color.Primary - /// Gets or sets Icon Background Color Default Color.Primary + /// 获得/设置 图标类型背景色 默认 + /// Gets or sets Icon Background Color Default /// [Parameter] public Color IconColor { get; set; } = Color.Primary; /// - /// 获得/设置 图标大小 默认 Color.None - /// Gets or sets Icon Size Default Size.None + /// 获得/设置 图标大小 默认 + /// Gets or sets Icon Size Default /// [Parameter] public Size Size { get; set; } diff --git a/src/BootstrapBlazor/Components/Filters/BoolFilter.razor.cs b/src/BootstrapBlazor/Components/Filters/BoolFilter.razor.cs index c7cf70b54c7..aefcfb005c8 100644 --- a/src/BootstrapBlazor/Components/Filters/BoolFilter.razor.cs +++ b/src/BootstrapBlazor/Components/Filters/BoolFilter.razor.cs @@ -6,14 +6,14 @@ namespace BootstrapBlazor.Components; /// -/// BoolFilter component is used for boolean value filtering in table column. -/// BoolFilter component is used for boolean value filtering in table column. +/// BoolFilter 组件用于表格列的布尔值过滤 +/// BoolFilter component is used for boolean value filtering in table column /// public partial class BoolFilter { /// - /// 获得/设置 the filter candidate items. It is recommended to use static 数据 to avoid performance loss. - /// Gets or sets the filter candidate items. It is recommended to use static data to avoid performance loss. + /// 获得/设置过滤候选项,建议使用静态数据以避免性能损失 + /// Gets or sets the filter candidate items. It is recommended to use static data to avoid performance loss /// [Parameter] public IEnumerable? Items { get; set; } diff --git a/src/BootstrapBlazor/Components/Filters/DateTimeFilter.razor.cs b/src/BootstrapBlazor/Components/Filters/DateTimeFilter.razor.cs index 3cfc02fb295..740b5dd7fb2 100644 --- a/src/BootstrapBlazor/Components/Filters/DateTimeFilter.razor.cs +++ b/src/BootstrapBlazor/Components/Filters/DateTimeFilter.razor.cs @@ -6,7 +6,7 @@ namespace BootstrapBlazor.Components; /// -/// DateTime filter component +/// DateTime 过滤组件 /// DateTime filter component /// public partial class DateTimeFilter @@ -21,8 +21,8 @@ public partial class DateTimeFilter .Build(); /// - /// 获得/设置 the filter candidate items. It is recommended to use static 数据 to avoid performance loss. - /// Gets or sets the filter candidate items. It is recommended to use static data to avoid performance loss. + /// 获得/设置过滤候选项,建议使用静态数据以避免性能损失 + /// Gets or sets the filter candidate items. It is recommended to use static data to avoid performance loss /// [Parameter] public IEnumerable? Items { get; set; } diff --git a/src/BootstrapBlazor/Components/Filters/EnumFilter.razor.cs b/src/BootstrapBlazor/Components/Filters/EnumFilter.razor.cs index abe0c39f16b..0ee95f9e122 100644 --- a/src/BootstrapBlazor/Components/Filters/EnumFilter.razor.cs +++ b/src/BootstrapBlazor/Components/Filters/EnumFilter.razor.cs @@ -6,29 +6,25 @@ namespace BootstrapBlazor.Components; /// -/// Enum filter component +/// 枚举过滤组件 /// Enum filter component /// public partial class EnumFilter { - /// - /// 内部使用 - /// Internal use - /// [NotNull] private Type? EnumType { get; set; } /// /// 获得/设置 相关枚举类型 - /// Gets or sets Related Enum Type + /// Gets or sets related enum type /// [Parameter] [NotNull] public Type? Type { get; set; } /// - /// 获得/设置 the filter candidate items. It is recommended to use static 数据 to avoid performance loss. - /// Gets or sets the filter candidate items. It is recommended to use static data to avoid performance loss. + /// 获得/设置 过滤候选项,建议使用静态数据以避免性能损失 + /// Gets or sets the filter candidate items. It is recommended to use static data to avoid performance loss /// [Parameter] public IEnumerable? Items { get; set; } diff --git a/src/BootstrapBlazor/Components/Filters/FilterBase.cs b/src/BootstrapBlazor/Components/Filters/FilterBase.cs index d5c73631db1..1400d52c8f1 100644 --- a/src/BootstrapBlazor/Components/Filters/FilterBase.cs +++ b/src/BootstrapBlazor/Components/Filters/FilterBase.cs @@ -9,57 +9,57 @@ namespace BootstrapBlazor.Components; /// /// 过滤器基类 -/// Filter Base Class +/// Filter base class /// public abstract class FilterBase : BootstrapModuleComponentBase, IFilterAction { /// /// 获得/设置 实例 - /// Gets or sets Instance + /// Gets or sets the instance /// [Inject] [NotNull] protected IStringLocalizer? Localizer { get; set; } /// - /// 获得/设置 相关 Field 字段名称 - /// Gets or sets Related Field Name + /// 获得/设置 相关字段名称 + /// Gets or sets related field name /// [Parameter] [NotNull] public string? FieldKey { get; set; } /// - /// 获得/设置 是否为 HeaderRow 模式 默认 false - /// Gets or sets Whether is HeaderRow Mode Default false + /// 获得/设置 是否为表头行模式,默认值为 false + /// Gets or sets whether header row mode is enabled. Default is false /// [Parameter] public bool IsHeaderRow { get; set; } /// /// 获得/设置 条件数量 - /// Gets or sets Condition Count + /// Gets or sets condition count /// [Parameter] public int Count { get; set; } /// /// 获得/设置 所属 TableFilter 实例 - /// Gets or sets Belonging TableFilter Instance + /// Gets or sets the TableFilter instance /// [CascadingParameter, NotNull] protected TableColumnFilter? TableColumnFilter { get; set; } /// - /// 获得/设置 the 实例 from cascading parameter. - /// Gets or sets the instance from cascading parameter. + /// 获得/设置 从级联参数获取的 实例 + /// Gets or sets the instance from cascading parameter /// [CascadingParameter] protected FilterContext? FilterContext { get; set; } /// /// 获得/设置 多个条件逻辑关系符号 - /// Gets or sets Logical Operator for Multiple Conditions + /// Gets or sets the logical operator for multiple conditions /// protected FilterLogic Logic { get; set; } diff --git a/src/BootstrapBlazor/Components/Filters/FilterContext.cs b/src/BootstrapBlazor/Components/Filters/FilterContext.cs index 6a2f5f1aab0..744f23834e1 100644 --- a/src/BootstrapBlazor/Components/Filters/FilterContext.cs +++ b/src/BootstrapBlazor/Components/Filters/FilterContext.cs @@ -6,26 +6,26 @@ namespace BootstrapBlazor.Components; /// -/// FilterContext class +/// FilterContext 类 /// FilterContext class /// public class FilterContext { /// - /// 获得/设置 是否 the filter is header row. 默认为 false. - /// Gets or sets whether the filter is header row. Default is false. + /// 获得/设置 是否为表头行 默认为 false + /// Gets or sets whether the filter is header row. Default is false /// public bool IsHeaderRow { get; set; } /// - /// 获得/设置 the column field key. 默认为 null. - /// Gets or sets the column field key. Default is null. + /// 获得/设置 列字段键 默认为 null + /// Gets or sets the column field key. Default is null /// public string? FieldKey { get; set; } /// - /// 获得/设置 the filter counter. 默认为 0. - /// Gets or sets the filter counter. Default is 0. + /// 获得/设置 过滤计数 默认为 0 + /// Gets or sets the filter counter. Default is 0 /// public int Count { get; set; } } diff --git a/src/BootstrapBlazor/Components/Filters/FilterKeyValueAction.cs b/src/BootstrapBlazor/Components/Filters/FilterKeyValueAction.cs index ded7b29b830..d02959d5625 100644 --- a/src/BootstrapBlazor/Components/Filters/FilterKeyValueAction.cs +++ b/src/BootstrapBlazor/Components/Filters/FilterKeyValueAction.cs @@ -15,34 +15,34 @@ namespace BootstrapBlazor.Components; public class FilterKeyValueAction { /// - /// 获得/设置 Filter 项字段名称 - /// Gets or sets Filter Item Field Name + /// 获得/设置 过滤项字段名称 + /// Gets or sets Filter item field name /// public string? FieldKey { get; set; } /// - /// 获得/设置 Filter 项字段值 - /// Gets or sets Filter Item Field Value + /// 获得/设置 过滤项字段值 + /// Gets or sets Filter item field value /// public object? FieldValue { get; set; } /// - /// 获得/设置 Filter 项与其他 Filter 逻辑关系 - /// Gets or sets Logical Relationship between Filter Item and other Filters + /// 获得/设置 过滤项与其他过滤条件逻辑关系 + /// Gets or sets logical relationship between filter item and other filters /// [JsonConverter(typeof(JsonStringEnumConverter))] public FilterLogic FilterLogic { get; set; } /// - /// 获得/设置 Filter 条件行为 - /// Gets or sets Filter Condition Behavior + /// 获得/设置 过滤条件行为 + /// Gets or sets Filter condition behavior /// [JsonConverter(typeof(JsonStringEnumConverter))] public FilterAction FilterAction { get; set; } /// /// 获得/设置 子过滤条件集合 - /// Gets or sets Child Filter Condition Collection + /// Gets or sets child filter condition collection /// public List Filters { get; set; } = []; } diff --git a/src/BootstrapBlazor/Components/Filters/FilterLogicItem.razor.cs b/src/BootstrapBlazor/Components/Filters/FilterLogicItem.razor.cs index c7902474585..6f11b1e2865 100644 --- a/src/BootstrapBlazor/Components/Filters/FilterLogicItem.razor.cs +++ b/src/BootstrapBlazor/Components/Filters/FilterLogicItem.razor.cs @@ -9,7 +9,7 @@ namespace BootstrapBlazor.Components; /// /// FilterLogicItem 组件用于选择过滤条件的逻辑运算符 -/// FilterLogicItem Component used to select logical operator for filter conditions +/// FilterLogicItem component used to select logical operator for filter conditions /// public partial class FilterLogicItem { diff --git a/src/BootstrapBlazor/Components/Filters/FilterProvider.razor.cs b/src/BootstrapBlazor/Components/Filters/FilterProvider.razor.cs index 373a116d40b..74ce7e4f906 100644 --- a/src/BootstrapBlazor/Components/Filters/FilterProvider.razor.cs +++ b/src/BootstrapBlazor/Components/Filters/FilterProvider.razor.cs @@ -8,14 +8,14 @@ namespace BootstrapBlazor.Components; /// -/// FilterProvider component +/// FilterProvider 组件 /// FilterProvider component /// public partial class FilterProvider { /// /// 获得/设置 重置按钮文本 - /// Gets or sets Reset Button Text + /// Gets or sets reset button text /// [Parameter] [NotNull] @@ -23,7 +23,7 @@ public partial class FilterProvider /// /// 获得/设置 过滤按钮文本 - /// Gets or sets Filter Button Text + /// Gets or sets filter button text /// [Parameter] [NotNull] @@ -31,42 +31,42 @@ public partial class FilterProvider /// /// 获得/设置 增加过滤条件图标 - /// Gets or sets Add Filter Condition Icon + /// Gets or sets add filter condition icon /// [Parameter] public string? PlusIcon { get; set; } /// /// 获得/设置 减少过滤条件图标 - /// Gets or sets Remove Filter Condition Icon + /// Gets or sets remove filter condition icon /// [Parameter] public string? MinusIcon { get; set; } /// - /// 获得/设置 是否 show the more 按钮. 默认为 false. - /// Gets or sets whether show the more button. Default is false. + /// 获得/设置 是否显示更多按钮 默认为 false + /// Gets or sets whether to show the more button. Default is false /// [Parameter] public bool ShowMoreButton { get; set; } /// - /// 获得/设置 the filter title. 默认为 null. - /// Gets or sets the filter title. Default is null. + /// 获得/设置 过滤标题 默认为 null + /// Gets or sets the filter title. Default is null /// [Parameter] public string? Title { get; set; } /// - /// 获得/设置 the child 内容. 默认为 null. - /// Gets or sets the child content. Default is null. + /// 获得/设置 子内容 默认为 null + /// Gets or sets the child content. Default is null /// [Parameter] public RenderFragment? ChildContent { get; set; } /// - /// 获得/设置 the 实例 from cascading parameter. - /// Gets or sets the instance from cascading parameter. + /// 获得/设置 级联参数实例 + /// Gets or sets the cascading parameter instance /// [CascadingParameter] protected TableColumnFilter? TableColumnFilter { get; set; } @@ -80,20 +80,20 @@ public partial class FilterProvider private IIconTheme? IconTheme { get; set; } /// - /// 获得/设置 the filter counter. 默认为 0. - /// Gets or sets the filter counter. Default is 0. + /// 获得/设置 过滤计数 默认为 0 + /// Gets or sets the filter counter. Default is 0 /// protected int Count { get; set; } /// - /// 获得/设置 the column field key. 默认为 null. - /// Gets or sets the column field key. Default is null. + /// 获得/设置 列字段键 默认为 null + /// Gets or sets the column field key. Default is null /// protected string? FieldKey { get; set; } /// - /// 获得/设置 是否 the filter is header row. 默认为 false. - /// Gets or sets whether the filter is header row. Default is false. + /// 获得/设置 是否为表头行 默认为 false + /// Gets or sets whether the filter is header row. Default is false /// protected bool IsHeaderRow { get; set; } @@ -115,10 +115,6 @@ protected override void OnParametersSet() IsHeaderRow = TableColumnFilter.IsHeaderRow(); } - /// - /// 点击重置按钮时回调此方法 - /// Callback this method when clicking reset button - /// private async Task OnClickReset() { Count = 0; @@ -131,7 +127,7 @@ private async Task OnClickReset() /// /// 点击确认时回调此方法 - /// Callback this method when clicking confirm + /// Callback this method when clicking confirm button /// protected async Task OnClickConfirm() { @@ -141,10 +137,6 @@ protected async Task OnClickConfirm() } } - /// - /// 点击增加按钮时回调此方法 - /// Callback this method when clicking add button - /// private void OnClickPlus() { if (Count == 0) @@ -153,10 +145,6 @@ private void OnClickPlus() } } - /// - /// 点击减少按钮时回调此方法 - /// Callback this method when clicking remove button - /// private void OnClickMinus() { if (Count == 1) diff --git a/src/BootstrapBlazor/Components/Filters/IFilter.cs b/src/BootstrapBlazor/Components/Filters/IFilter.cs index 0ad4a804b1a..c7c7bbda66d 100644 --- a/src/BootstrapBlazor/Components/Filters/IFilter.cs +++ b/src/BootstrapBlazor/Components/Filters/IFilter.cs @@ -7,13 +7,13 @@ namespace BootstrapBlazor.Components; /// /// 过滤器接口 -/// Filter Interface +/// Filter interface /// public interface IFilter { /// - /// 获得/设置 本过滤器相关 IFilterAction 实例 - /// Gets or sets Related IFilterAction Instance of this Filter + /// 获得/设置 本过滤器相关 实例 + /// Gets or sets the related instance of this filter /// [NotNull] IFilterAction? FilterAction { get; set; } diff --git a/src/BootstrapBlazor/Components/Filters/IFilterAction.cs b/src/BootstrapBlazor/Components/Filters/IFilterAction.cs index 2cae2913a77..8a5aabc3c22 100644 --- a/src/BootstrapBlazor/Components/Filters/IFilterAction.cs +++ b/src/BootstrapBlazor/Components/Filters/IFilterAction.cs @@ -7,25 +7,25 @@ namespace BootstrapBlazor.Components; /// /// IFilterAction 接口 -/// IFilterAction Interface +/// IFilterAction interface /// public interface IFilterAction { /// - /// 重置过滤条件方法 - /// Reset Filter Conditions Method + /// 重置过滤条件 + /// Resets filter conditions /// void Reset(); /// - /// 获得 IFilter 实例中的过滤条件集合 - /// Get Filter Condition Collection in IFilter Instance + /// 获得 过滤条件集合 + /// Gets filter condition collection /// FilterKeyValueAction GetFilterConditions(); /// - /// Override existing filter conditions - /// Override existing filter conditions + /// 设置现有过滤条件 + /// Sets existing filter conditions /// Task SetFilterConditionsAsync(FilterKeyValueAction conditions); } diff --git a/src/BootstrapBlazor/Components/Filters/MultiFilter.razor.cs b/src/BootstrapBlazor/Components/Filters/MultiFilter.razor.cs index 74ba1ab90d5..f2fa989f01a 100644 --- a/src/BootstrapBlazor/Components/Filters/MultiFilter.razor.cs +++ b/src/BootstrapBlazor/Components/Filters/MultiFilter.razor.cs @@ -7,55 +7,55 @@ namespace BootstrapBlazor.Components; /// /// 多选过滤器组件 -/// Multi-Select Filter Component +/// Multi-select filter component /// public partial class MultiFilter { /// - /// 获得/设置 搜索栏占位符 默认 nul 使用资源文件中值 - /// Gets or sets Search Placeholder Default null Use Resource File Value + /// 获得/设置 搜索栏占位符 默认 null 使用资源文件值 + /// Gets or sets search placeholder. Default is null and uses resource value /// [Parameter] public string? SearchPlaceHolderText { get; set; } /// - /// 获得/设置 全选按钮文本 默认 nul 使用资源文件中值 - /// Gets or sets Select All Button Text Default null Use Resource File Value + /// 获得/设置 全选按钮文本 默认 null 使用资源文件值 + /// Gets or sets select all button text. Default is null and uses resource value /// [Parameter] public string? SelectAllText { get; set; } /// /// 获得/设置 是否显示搜索栏 默认 true - /// Gets or sets Whether to Show Search Bar Default true + /// Gets or sets whether to show search bar. Default is true /// [Parameter] public bool ShowSearch { get; set; } = true; /// - /// 获得 过滤项集合回调方法 适合动态给定数据源 - /// Get Filter Items Callback Method Suitable for Dynamic Data Source + /// 获得/设置 过滤项集合回调方法 适合动态数据源 + /// Gets or sets the callback to provide filter items, suitable for dynamic data sources /// [Parameter] public Func>>? OnGetItemsAsync { get; set; } /// - /// 获得 是否每次弹窗时均调用 回调方法,多用于动态填装过滤条件 - /// Get Whether to Call Callback Method Every Time Popup, Mostly Used for Dynamic Filling Filter Conditions + /// 获得/设置 是否每次弹窗均调用 多用于动态过滤条件 + /// Gets or sets whether to call each popup for dynamic filter conditions /// [Parameter] public bool AlwaysTriggerGetItems { get; set; } /// /// 获得/设置 Loading 模板 - /// Gets or sets Loading Template + /// Gets or sets loading template /// [Parameter] public RenderFragment? LoadingTemplate { get; set; } /// - /// 获得/设置 the string comparison option used for filtering operations. 默认为 - /// Gets or sets the string comparison option used for filtering operations. Default is + /// 获得/设置 字符串比较选项 默认为 + /// Gets or sets the string comparison option. Default is /// [Parameter] public StringComparison StringComparison { get; set; } = StringComparison.OrdinalIgnoreCase; @@ -65,8 +65,8 @@ public partial class MultiFilter private List? _items; /// - /// 获得/设置 the filter candidate items. It is recommended to use static 数据 to avoid performance loss. - /// Gets or sets the filter candidate items. It is recommended to use static data to avoid performance loss. + /// 获得/设置 过滤候选项集合 建议使用静态数据以避免性能损耗 + /// Gets or sets the filter candidate items. It is recommended to use static data to avoid performance loss /// [Parameter] public IEnumerable? Items { get; set; } @@ -187,11 +187,6 @@ private Task OnStateChanged(CheckboxState state, bool val) return Task.CompletedTask; } - /// - /// 过滤内容搜索 - /// Filter Content Search - /// - /// private Task OnSearchValueChanged(string? val) { _searchText = val; diff --git a/src/BootstrapBlazor/Components/Filters/MultiSelectFilter.razor.cs b/src/BootstrapBlazor/Components/Filters/MultiSelectFilter.razor.cs index be906c88ca3..3ea08827348 100644 --- a/src/BootstrapBlazor/Components/Filters/MultiSelectFilter.razor.cs +++ b/src/BootstrapBlazor/Components/Filters/MultiSelectFilter.razor.cs @@ -7,7 +7,7 @@ namespace BootstrapBlazor.Components; /// /// 多项选择下拉框过滤组件 -/// Multi-Select Dropdown Filter Component +/// Multi-select dropdown filter component /// public partial class MultiSelectFilter { @@ -19,8 +19,8 @@ public partial class MultiSelectFilter private FilterAction _action1 = FilterAction.Equal; /// - /// 获得/设置 the filter items. - /// Gets or sets the filter items. + /// 获得/设置 过滤项集合 + /// Gets or sets the filter items /// [Parameter] public List? Items { get; set; } diff --git a/src/BootstrapBlazor/Components/Filters/MultipleFilterBase.cs b/src/BootstrapBlazor/Components/Filters/MultipleFilterBase.cs index 5385dafb0c6..de42a7ca333 100644 --- a/src/BootstrapBlazor/Components/Filters/MultipleFilterBase.cs +++ b/src/BootstrapBlazor/Components/Filters/MultipleFilterBase.cs @@ -6,7 +6,7 @@ namespace BootstrapBlazor.Components; /// -/// Multiple filter base class +/// 多重过滤器基类 /// Multiple filter base class /// [Obsolete("Deprecated. Please use FilterBase class. 已弃用 请使用 FilterBase 类")] diff --git a/src/BootstrapBlazor/Components/Filters/NotSupportFilter.razor.cs b/src/BootstrapBlazor/Components/Filters/NotSupportFilter.razor.cs index 8611782cdb4..35e17bcbd98 100644 --- a/src/BootstrapBlazor/Components/Filters/NotSupportFilter.razor.cs +++ b/src/BootstrapBlazor/Components/Filters/NotSupportFilter.razor.cs @@ -6,14 +6,14 @@ namespace BootstrapBlazor.Components; /// -/// NotSupportFilter component +/// NotSupportFilter 组件 /// NotSupportFilter component /// public partial class NotSupportFilter { /// /// 获得/设置 不支持过滤类型提示信息 默认 null 读取资源文件内容 - /// Gets or sets Not Supported Filter Type Message Default null Read Resource File Content + /// Gets or sets not supported filter type message. Default is null and reads resource content /// [Parameter] [NotNull] diff --git a/src/BootstrapBlazor/Components/Filters/NumberFilter.razor.cs b/src/BootstrapBlazor/Components/Filters/NumberFilter.razor.cs index 8a49b35143b..f84f596f1d1 100644 --- a/src/BootstrapBlazor/Components/Filters/NumberFilter.razor.cs +++ b/src/BootstrapBlazor/Components/Filters/NumberFilter.razor.cs @@ -6,7 +6,7 @@ namespace BootstrapBlazor.Components; /// -/// NumberFilter component +/// NumberFilter 组件 /// NumberFilter component /// public partial class NumberFilter @@ -22,15 +22,14 @@ public partial class NumberFilter .Build(); /// - /// 获得/设置 the filter candidate items. It is recommended to use static 数据 to avoid performance loss. - /// Gets or sets the filter candidate items. It is recommended to use static data to avoid performance loss. + /// 获得/设置 过滤候选项集合 建议使用静态数据以避免性能损耗 + /// Gets or sets the filter candidate items. It is recommended to use static data to avoid performance loss /// [Parameter] public IEnumerable? Items { get; set; } /// - /// - /// + /// /// protected override void OnParametersSet() { @@ -49,8 +48,7 @@ protected override void OnParametersSet() } /// - /// - /// + /// /// public override void Reset() { @@ -64,8 +62,7 @@ public override void Reset() } /// - /// - /// + /// /// public override FilterKeyValueAction GetFilterConditions() { @@ -94,8 +91,7 @@ public override FilterKeyValueAction GetFilterConditions() } /// - /// - /// + /// /// public override async Task SetFilterConditionsAsync(FilterKeyValueAction filter) { diff --git a/src/BootstrapBlazor/Components/Filters/SearchFilterAction.cs b/src/BootstrapBlazor/Components/Filters/SearchFilterAction.cs index 17c5a566fec..cfdf1967814 100644 --- a/src/BootstrapBlazor/Components/Filters/SearchFilterAction.cs +++ b/src/BootstrapBlazor/Components/Filters/SearchFilterAction.cs @@ -6,8 +6,8 @@ namespace BootstrapBlazor.Components; /// -/// IFilterAction 类默认实现类 -/// Default Implementation Class of IFilterAction +/// IFilterAction 默认实现类 +/// Default implementation class of IFilterAction /// /// /// @@ -16,25 +16,25 @@ public class SearchFilterAction(string name, object? value, FilterAction action { /// /// 获得/设置 过滤条件名称 - /// Gets or sets Filter Condition Name + /// Gets or sets filter condition name /// public string Name { get; set; } = name; /// /// 获得/设置 过滤条件值 - /// Gets or sets Filter Condition Value + /// Gets or sets filter condition value /// public object? Value { get; set; } = value; /// /// 获得/设置 过滤条件关系运算符 - /// Gets or sets Filter Condition Relation Operator + /// Gets or sets filter condition relation operator /// public FilterAction Action { get; set; } = action; /// /// 重置过滤条件方法 - /// Reset Filter Conditions Method + /// Resets filter conditions /// public void Reset() { @@ -43,7 +43,7 @@ public void Reset() /// /// 设置过滤条件方法 - /// Set Filter Conditions Method + /// Sets filter conditions /// /// public Task SetFilterConditionsAsync(FilterKeyValueAction filter) @@ -57,8 +57,8 @@ public Task SetFilterConditionsAsync(FilterKeyValueAction filter) } /// - /// 获取所有过滤条件集合 - /// Get All Filter Conditions Collection + /// 获得 所有过滤条件集合 + /// Gets all filter conditions /// public virtual FilterKeyValueAction GetFilterConditions() => new() { diff --git a/src/BootstrapBlazor/Components/Filters/SerializeFilterAction.cs b/src/BootstrapBlazor/Components/Filters/SerializeFilterAction.cs index a42a07d6510..8a8183cff48 100644 --- a/src/BootstrapBlazor/Components/Filters/SerializeFilterAction.cs +++ b/src/BootstrapBlazor/Components/Filters/SerializeFilterAction.cs @@ -6,20 +6,20 @@ namespace BootstrapBlazor.Components; /// -/// 序列化过滤条件类为 序列化使用 -/// Serialize Filter Condition Class for Serialization +/// 序列化过滤条件类用于 序列化 +/// Serialize filter condition class for serialization /// public sealed class SerializeFilterAction : IFilterAction { /// /// 获得/设置 过滤条件集合 - /// Gets or sets Filter Condition Collection + /// Gets or sets filter condition collection /// public FilterKeyValueAction? Filter { get; set; } /// /// 重置过滤条件方法 - /// Reset Filter Conditions Method + /// Resets filter conditions /// public void Reset() { @@ -28,7 +28,7 @@ public void Reset() /// /// 设置过滤条件方法 - /// Set Filter Conditions Method + /// Sets filter conditions /// /// public Task SetFilterConditionsAsync(FilterKeyValueAction filter) @@ -38,8 +38,8 @@ public Task SetFilterConditionsAsync(FilterKeyValueAction filter) } /// - /// 获取所有过滤条件集合 - /// Get All Filter Conditions Collection + /// 获得 所有过滤条件集合 + /// Gets all filter conditions /// public FilterKeyValueAction GetFilterConditions() => Filter ?? new(); } diff --git a/src/BootstrapBlazor/Components/Filters/StringFilter.razor.cs b/src/BootstrapBlazor/Components/Filters/StringFilter.razor.cs index 30f60f61d89..f4ff992c9d1 100644 --- a/src/BootstrapBlazor/Components/Filters/StringFilter.razor.cs +++ b/src/BootstrapBlazor/Components/Filters/StringFilter.razor.cs @@ -6,14 +6,14 @@ namespace BootstrapBlazor.Components; /// -/// StringFilter component +/// StringFilter 组件 /// StringFilter component /// public partial class StringFilter { /// - /// 获得/设置 the filter candidate items. It is recommended to use static 数据 to avoid performance loss. - /// Gets or sets the filter candidate items. It is recommended to use static data to avoid performance loss. + /// 获得/设置 过滤候选项集合 建议使用静态数据以避免性能损耗 + /// Gets or sets the filter candidate items. It is recommended to use static data to avoid performance loss /// [Parameter] public IEnumerable? Items { get; set; } @@ -28,8 +28,7 @@ public partial class StringFilter .Build(); /// - /// - /// + /// /// protected override void OnInitialized() { @@ -39,8 +38,7 @@ protected override void OnInitialized() } /// - /// - /// + /// /// protected override void OnParametersSet() { @@ -56,8 +54,7 @@ protected override void OnParametersSet() } /// - /// - /// + /// /// public override void Reset() { @@ -71,8 +68,7 @@ public override void Reset() } /// - /// - /// + /// /// public override FilterKeyValueAction GetFilterConditions() { @@ -101,8 +97,7 @@ public override FilterKeyValueAction GetFilterConditions() } /// - /// - /// + /// /// public override async Task SetFilterConditionsAsync(FilterKeyValueAction filter) { diff --git a/src/BootstrapBlazor/Components/Filters/TableColumnFilter.razor.cs b/src/BootstrapBlazor/Components/Filters/TableColumnFilter.razor.cs index 58bbafa0e4e..833fc263768 100644 --- a/src/BootstrapBlazor/Components/Filters/TableColumnFilter.razor.cs +++ b/src/BootstrapBlazor/Components/Filters/TableColumnFilter.razor.cs @@ -3,33 +3,31 @@ // See the LICENSE file in the project root for more information. // Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone -using Microsoft.Extensions.Localization; - namespace BootstrapBlazor.Components; /// -/// TableFilter component -/// TableFilter component +/// TableColumnFilter 组件 +/// TableColumnFilter component /// public partial class TableColumnFilter : IFilter { /// - /// 获得/设置 是否 active - /// Gets or sets Whether is active + /// 获得/设置 是否激活 + /// Gets or sets whether active /// [Parameter] public bool IsActive { get; set; } /// /// 获得/设置 过滤图标 - /// Gets or sets Filter Icon + /// Gets or sets filter icon /// [Parameter] public string? Icon { get; set; } /// - /// 获得/设置 不支持过滤类型提示信息 默认 null 读取资源文件内容 - /// Gets or sets Not Supported Filter Type Message Default null Read Resource File Content + /// 获得/设置 不支持过滤类型提示信息 默认 null 从资源读取 + /// Gets or sets not supported filter type message. Default is null and read from resource /// [Parameter] [ExcludeFromCodeCoverage] @@ -37,54 +35,45 @@ public partial class TableColumnFilter : IFilter public string? NotSupportedMessage { get => NotSupportedColumnFilterMessage; set => NotSupportedColumnFilterMessage = value; } /// - /// 获得/设置 不支持过滤类型提示信息 默认 null 读取资源文件内容 - /// Gets or sets Not Supported Filter Type Message Default null Read Resource File Content + /// 获得/设置 不支持过滤类型提示信息 默认 null 从资源读取 + /// Gets or sets not supported filter type message. Default is null and read from resource /// [Parameter] public string? NotSupportedColumnFilterMessage { get; set; } /// - /// 获得 相关联 ITableColumn 实例 - /// Get Related ITableColumn Instance + /// 获得/设置 关联的 实例 + /// Gets or sets the related instance /// [Parameter] [NotNull] public ITableColumn? Column { get; set; } /// - /// 获得/设置 是否为 HeaderRow 模式 默认 false - /// Gets or sets Whether is HeaderRow Mode Default false + /// 获得/设置 是否为表头行模式 默认 false + /// Gets or sets whether header row mode is enabled. Default is false /// [Parameter] public bool IsHeaderRow { get; set; } /// - /// 获得/设置 ITable 实例 - /// Gets or sets ITable Instance + /// 获得/设置 实例 + /// Gets or sets the instance /// [Parameter] [NotNull] public ITable? Table { get; set; } - /// - /// 获得 过滤小图标样式 - /// Get Filter Small Icon Style - /// private string? FilterClassString => CssBuilder.Default(Icon) .AddClass("active", IsActive) .Build(); - /// - /// 获得 样式 - /// Get Style - /// private string? ClassString => CssBuilder.Default("filter-icon") .AddClassFromAttributes(AdditionalAttributes) .Build(); /// - /// 获得/设置 过滤条件 IFilterAction 接口 - /// Gets or sets Filter Condition IFilterAction Interface + /// /// [NotNull] public IFilterAction? FilterAction { get; set; } @@ -114,8 +103,8 @@ protected override async Task InvokeInitAsync() } /// - /// Reset filter method - /// Reset filter method + /// 重置过滤方法 + /// Resets filter /// public async Task Reset() { @@ -124,8 +113,8 @@ public async Task Reset() } /// - /// Filter method - /// Filter method + /// 执行过滤方法 + /// Executes filter /// public async Task OnFilterAsync() { diff --git a/src/BootstrapBlazor/Components/IFrame/IFrame.razor.cs b/src/BootstrapBlazor/Components/IFrame/IFrame.razor.cs index 89c2fce0d02..4fcb88a0e0b 100644 --- a/src/BootstrapBlazor/Components/IFrame/IFrame.razor.cs +++ b/src/BootstrapBlazor/Components/IFrame/IFrame.razor.cs @@ -33,8 +33,8 @@ public partial class IFrame public Func? OnPostDataAsync { get; set; } /// - /// 获得/设置 Callback method after the page is loaded. - /// Gets or sets Callback method after the page is loaded. + /// 获得/设置 Callback method after the page is loaded + /// Gets or sets Callback method after the page is loaded /// [Parameter] public Func? OnReadyAsync { get; set; } diff --git a/src/BootstrapBlazor/Components/Icon/BootstrapBlazorIcon.razor.cs b/src/BootstrapBlazor/Components/Icon/BootstrapBlazorIcon.razor.cs index f063e7e9c9c..19a1d56b34e 100644 --- a/src/BootstrapBlazor/Components/Icon/BootstrapBlazorIcon.razor.cs +++ b/src/BootstrapBlazor/Components/Icon/BootstrapBlazorIcon.razor.cs @@ -17,7 +17,7 @@ public partial class BootstrapBlazorIcon /// /// /// 如果是字库图标应该是样式名称如 fa-solid fa-home 如果是 svg sprites 应该为 Id - /// If it is a font icon, it should be a style name such as fa-solid fa-home. If it is svg sprites, it should be the Id. + /// If it is a font icon, it should be a style name such as fa-solid fa-home. If it is svg sprites, it should be the Id /// [Parameter] [NotNull] diff --git a/src/BootstrapBlazor/Components/ImageViewer/ImageViewer.razor.cs b/src/BootstrapBlazor/Components/ImageViewer/ImageViewer.razor.cs index db302b24545..fba1e2a71e3 100644 --- a/src/BootstrapBlazor/Components/ImageViewer/ImageViewer.razor.cs +++ b/src/BootstrapBlazor/Components/ImageViewer/ImageViewer.razor.cs @@ -131,7 +131,7 @@ public partial class ImageViewer /// /// /// 不可见时不加载图片,当图片即将可见时才开始加载图片 - /// Images are not loaded when not visible, and start loading when they are about to become visible. + /// Images are not loaded when not visible, and start loading when they are about to become visible /// [Parameter] public bool IsIntersectionObserver { get; set; } diff --git a/src/BootstrapBlazor/Components/Input/BootstrapInputGroupLabel.cs b/src/BootstrapBlazor/Components/Input/BootstrapInputGroupLabel.cs index bf45cd2d01a..68dac620a62 100644 --- a/src/BootstrapBlazor/Components/Input/BootstrapInputGroupLabel.cs +++ b/src/BootstrapBlazor/Components/Input/BootstrapInputGroupLabel.cs @@ -50,8 +50,8 @@ public sealed class BootstrapInputGroupLabel : DisplayBase public bool ShowRequiredMark { get; set; } /// - /// 获得/设置 the child 内容. 默认为 null. - /// Gets or sets the child content. Default is null. + /// 获得/设置 the child 内容. 默认为 null + /// Gets or sets the child content. Default is null /// [Parameter] public RenderFragment? ChildContent { get; set; } diff --git a/src/BootstrapBlazor/Components/Input/OtpInput.razor.cs b/src/BootstrapBlazor/Components/Input/OtpInput.razor.cs index a171f171f75..7521cc14540 100644 --- a/src/BootstrapBlazor/Components/Input/OtpInput.razor.cs +++ b/src/BootstrapBlazor/Components/Input/OtpInput.razor.cs @@ -13,29 +13,29 @@ namespace BootstrapBlazor.Components; public partial class OtpInput { /// - /// 获得/设置 the length of the OTP input. 默认为 6. - /// Gets or sets the length of the OTP input. Default is 6. + /// 获得/设置 the length of the OTP input. 默认为 6 + /// Gets or sets the length of the OTP input. Default is 6 /// [Parameter] public int Digits { get; set; } = 6; /// - /// 获得/设置 是否 the OTP input is readonly. 默认为 false. - /// Gets or sets whether the OTP input is readonly. Default is false. + /// 获得/设置 是否 the OTP input is readonly. 默认为 false + /// Gets or sets whether the OTP input is readonly. Default is false /// [Parameter] public bool IsReadonly { get; set; } /// - /// 获得/设置 the value 类型 of the OTP input. 默认为 . - /// Gets or sets the value type of the OTP input. Default is . + /// 获得/设置 the value 类型 of the OTP input. 默认为 + /// Gets or sets the value type of the OTP input. Default is /// [Parameter] public OtpInputType Type { get; set; } /// - /// 获得/设置 the placeholder of the OTP input. 默认为 null. - /// Gets or sets the placeholder of the OTP input. Default is null. + /// 获得/设置 the placeholder of the OTP input. 默认为 null + /// Gets or sets the placeholder of the OTP input. Default is null /// [Parameter] public string? PlaceHolder { get; set; } @@ -103,8 +103,8 @@ protected override void OnParametersSet() } /// - /// Trigger value changed event 回调. Trigger by JavaScript. - /// Trigger value changed event callback. Trigger by JavaScript. + /// Trigger value changed event 回调. Trigger by JavaScript + /// Trigger value changed event callback. Trigger by JavaScript /// /// [JSInvokable] diff --git a/src/BootstrapBlazor/Components/InputNumber/BootstrapInputNumber.razor.cs b/src/BootstrapBlazor/Components/InputNumber/BootstrapInputNumber.razor.cs index e3ba7810b1f..de399f1bba6 100644 --- a/src/BootstrapBlazor/Components/InputNumber/BootstrapInputNumber.razor.cs +++ b/src/BootstrapBlazor/Components/InputNumber/BootstrapInputNumber.razor.cs @@ -9,8 +9,8 @@ namespace BootstrapBlazor.Components; /// -/// An input component for editing numeric values. Supported numeric 类型s are , , , , , . -/// An input component for editing numeric values. Supported numeric types are , , , , , . +/// An input component for editing numeric values. Supported numeric 类型s are , , , , , +/// An input component for editing numeric values. Supported numeric types are , , , , , /// public partial class BootstrapInputNumber { @@ -166,8 +166,8 @@ protected override void OnAfterRender(bool firstRender) protected override string? FormatParsingErrorMessage() => string.Format(CultureInfo.InvariantCulture, ParsingErrorMessage, DisplayText); /// - /// Formats the value as a string. Derived classes can override this to determine the formatting used for . - /// Formats the value as a string. Derived classes can override this to determine the formatting used for . + /// Formats the value as a string. Derived classes can override this to determine the formatting used for + /// Formats the value as a string. Derived classes can override this to determine the formatting used for /// /// The value to format. /// A string representation of the value. diff --git a/src/BootstrapBlazor/Components/InputNumber/BootstrapInputNumberBase.cs b/src/BootstrapBlazor/Components/InputNumber/BootstrapInputNumberBase.cs index a2226189519..ab6d61cc47a 100644 --- a/src/BootstrapBlazor/Components/InputNumber/BootstrapInputNumberBase.cs +++ b/src/BootstrapBlazor/Components/InputNumber/BootstrapInputNumberBase.cs @@ -12,8 +12,7 @@ namespace BootstrapBlazor.Components; public class BootstrapInputNumberBase : BootstrapInputEventBase { /// - /// SetParametersAsync 方法 - /// SetParametersAsync Method + /// /// /// public override Task SetParametersAsync(ParameterView parameters) diff --git a/src/BootstrapBlazor/Components/IntersectionObserver/IntersectionObserver.razor.cs b/src/BootstrapBlazor/Components/IntersectionObserver/IntersectionObserver.razor.cs index 161371086b9..12c52deae3c 100644 --- a/src/BootstrapBlazor/Components/IntersectionObserver/IntersectionObserver.razor.cs +++ b/src/BootstrapBlazor/Components/IntersectionObserver/IntersectionObserver.razor.cs @@ -21,15 +21,15 @@ public partial class IntersectionObserver public bool UseElementViewport { get; set; } = true; /// - /// Margin around the root. Can have values similar to the CSS margin 属性, e.g. "10px 20px 30px 40px" (top, right, bottom, left). values can be percentages. This set of values serves to grow or shrink each side of the root element's bounding box before computing intersections. 默认s to all zeros. - /// Margin around the root. Can have values similar to the CSS margin property, e.g. "10px 20px 30px 40px" (top, right, bottom, left). The values can be percentages. This set of values serves to grow or shrink each side of the root element's bounding box before computing intersections. Defaults to all zeros. + /// Margin around the root. Can have values similar to the CSS margin 属性, e.g. "10px 20px 30px 40px" (top, right, bottom, left). values can be percentages. This set of values serves to grow or shrink each side of the root element's bounding box before computing intersections. 默认s to all zeros + /// Margin around the root. Can have values similar to the CSS margin property, e.g. "10px 20px 30px 40px" (top, right, bottom, left). The values can be percentages. This set of values serves to grow or shrink each side of the root element's bounding box before computing intersections. Defaults to all zeros /// [Parameter] public string? RootMargin { get; set; } /// - /// Either a single number or an array of numbers which indicate at what percentage of the target's visibility the observer's 回调 should be executed. If you only want to detect when visibility passes the 50% mark, you can use a value of 0.5. If you want the 回调 to run every time visibility passes another 25%, you would specify the array [0, 0.25, 0.5, 0.75, 1]. default is 0 (meaning as soon as even one pixel is visible, the 回调 will be run). A value of 1.0 means that the threshold isn't considered passed until every pixel is visible. - /// Either a single number or an array of numbers which indicate at what percentage of the target's visibility the observer's callback should be executed. If you only want to detect when visibility passes the 50% mark, you can use a value of 0.5. If you want the callback to run every time visibility passes another 25%, you would specify the array [0, 0.25, 0.5, 0.75, 1]. The default is 0 (meaning as soon as even one pixel is visible, the callback will be run). A value of 1.0 means that the threshold isn't considered passed until every pixel is visible. + /// Either a single number or an array of numbers which indicate at what percentage of the target's visibility the observer's 回调 should be executed. If you only want to detect when visibility passes the 50% mark, you can use a value of 0.5. If you want the 回调 to run every time visibility passes another 25%, you would specify the array [0, 0.25, 0.5, 0.75, 1]. default is 0 (meaning as soon as even one pixel is visible, the 回调 will be run). A value of 1.0 means that the threshold isn't considered passed until every pixel is visible + /// Either a single number or an array of numbers which indicate at what percentage of the target's visibility the observer's callback should be executed. If you only want to detect when visibility passes the 50% mark, you can use a value of 0.5. If you want the callback to run every time visibility passes another 25%, you would specify the array [0, 0.25, 0.5, 0.75, 1]. The default is 0 (meaning as soon as even one pixel is visible, the callback will be run). A value of 1.0 means that the threshold isn't considered passed until every pixel is visible /// [Parameter] public string? Threshold { get; set; } diff --git a/src/BootstrapBlazor/Components/Layout/Layout.razor.cs b/src/BootstrapBlazor/Components/Layout/Layout.razor.cs index 9bcc240e0f0..525286a0eba 100644 --- a/src/BootstrapBlazor/Components/Layout/Layout.razor.cs +++ b/src/BootstrapBlazor/Components/Layout/Layout.razor.cs @@ -27,71 +27,71 @@ public partial class Layout : ITabHeader public Func? OnTabHeaderTextLocalizer { get; set; } /// - /// 获得/设置 the tab 样式. 默认为 . - /// Gets or sets the tab style. Default is . + /// 获得/设置 the tab 样式. 默认为 + /// Gets or sets the tab style. Default is /// [Parameter] public TabStyle TabStyle { get; set; } /// - /// 获得/设置 是否 show the toolbar. 默认为 false. - /// Gets or sets whether show the toolbar. Default is false. + /// 获得/设置 是否 show the toolbar. 默认为 false + /// Gets or sets whether show the toolbar. Default is false /// [Parameter] public bool ShowToolbar { get; set; } /// - /// 获得/设置 the 模板 of the toolbar 按钮. 默认为 null. - /// Gets or sets the template of the toolbar button. Default is null. + /// 获得/设置 the 模板 of the toolbar 按钮. 默认为 null + /// Gets or sets the template of the toolbar button. Default is null /// [Parameter] public RenderFragment? ToolbarTemplate { get; set; } /// - /// 获得/设置 是否 show the full screen 按钮. 默认为 true. - /// Gets or sets whether show the full screen button. Default is true. + /// 获得/设置 是否 show the full screen 按钮. 默认为 true + /// Gets or sets whether show the full screen button. Default is true /// [Parameter] public bool ShowFullscreenToolbarButton { get; set; } = true; /// - /// 获得/设置 the full screen toolbar 按钮 图标 string. 默认为 null. - /// Gets or sets the full screen toolbar button icon string. Default is null. + /// 获得/设置 the full screen toolbar 按钮 图标 string. 默认为 null + /// Gets or sets the full screen toolbar button icon string. Default is null /// [Parameter] public string? FullscreenToolbarButtonIcon { get; set; } /// - /// 获得/设置 the full screen toolbar 按钮 tooltip string. 默认为 null. - /// Gets or sets the full screen toolbar button tooltip string. Default is null. + /// 获得/设置 the full screen toolbar 按钮 tooltip string. 默认为 null + /// Gets or sets the full screen toolbar button tooltip string. Default is null /// [Parameter] public string? FullscreenToolbarTooltipText { get; set; } /// - /// 获得/设置 是否 show the full screen 按钮. 默认为 true. - /// Gets or sets whether show the full screen button. Default is true. + /// 获得/设置 是否 show the full screen 按钮. 默认为 true + /// Gets or sets whether show the full screen button. Default is true /// [Parameter] public bool ShowRefreshToolbarButton { get; set; } = true; /// - /// 获得/设置 the refresh toolbar 按钮 图标 string. 默认为 null. - /// Gets or sets the refresh toolbar button icon string. Default is null. + /// 获得/设置 the refresh toolbar 按钮 图标 string. 默认为 null + /// Gets or sets the refresh toolbar button icon string. Default is null /// [Parameter] public string? RefreshToolbarButtonIcon { get; set; } /// - /// 获得/设置 the refresh toolbar 按钮 tooltip string. 默认为 null. - /// Gets or sets the refresh toolbar button tooltip string. Default is null. + /// 获得/设置 the refresh toolbar 按钮 tooltip string. 默认为 null + /// Gets or sets the refresh toolbar button tooltip string. Default is null /// [Parameter] public string? RefreshToolbarTooltipText { get; set; } /// - /// 获得/设置 the refresh toolbar 按钮 click event 回调. 默认为 null. - /// Gets or sets the refresh toolbar button click event callback. Default is null. + /// 获得/设置 the refresh toolbar 按钮 click event 回调. 默认为 null + /// Gets or sets the refresh toolbar button click event callback. Default is null /// [Parameter] public Func? OnToolbarRefreshCallback { get; set; } @@ -375,64 +375,64 @@ public partial class Layout : ITabHeader public string NotAuthorizeUrl { get; set; } = "/Account/Login"; /// - /// 获得/设置 是否 enable tab context menu. 默认为 false. - /// Gets or sets whether enable tab context menu. Default is false. + /// 获得/设置 是否 enable tab context menu. 默认为 false + /// Gets or sets whether enable tab context menu. Default is false /// [Parameter] public bool ShowTabContextMenu { get; set; } /// - /// 获得/设置 the 模板 of before tab context menu. 默认为 null. - /// Gets or sets the template of before tab context menu. Default is null. + /// 获得/设置 the 模板 of before tab context menu. 默认为 null + /// Gets or sets the template of before tab context menu. Default is null /// [Parameter] public RenderFragment? BeforeTabContextMenuTemplate { get; set; } /// - /// 获得/设置 the 模板 of tab context menu. 默认为 null. - /// Gets or sets the template of tab context menu. Default is null. + /// 获得/设置 the 模板 of tab context menu. 默认为 null + /// Gets or sets the template of tab context menu. Default is null /// [Parameter] public RenderFragment? TabContextMenuTemplate { get; set; } /// - /// 获得/设置 the 图标 of tab item context menu refresh 按钮. 默认为 null. - /// Gets or sets the icon of tab item context menu refresh button. Default is null. + /// 获得/设置 the 图标 of tab item context menu refresh 按钮. 默认为 null + /// Gets or sets the icon of tab item context menu refresh button. Default is null /// [Parameter] public string? TabContextMenuRefreshIcon { get; set; } /// - /// 获得/设置 the 图标 of tab item context menu close 按钮. 默认为 null. - /// Gets or sets the icon of tab item context menu close button. Default is null. + /// 获得/设置 the 图标 of tab item context menu close 按钮. 默认为 null + /// Gets or sets the icon of tab item context menu close button. Default is null /// [Parameter] public string? TabContextMenuCloseIcon { get; set; } /// - /// 获得/设置 the 图标 of tab item context menu close other 按钮. 默认为 null. - /// Gets or sets the icon of tab item context menu close other button. Default is null. + /// 获得/设置 the 图标 of tab item context menu close other 按钮. 默认为 null + /// Gets or sets the icon of tab item context menu close other button. Default is null /// [Parameter] public string? TabContextMenuCloseOtherIcon { get; set; } /// - /// 获得/设置 the 图标 of tab item context menu close all 按钮. 默认为 null. - /// Gets or sets the icon of tab item context menu close all button. Default is null. + /// 获得/设置 the 图标 of tab item context menu close all 按钮. 默认为 null + /// Gets or sets the icon of tab item context menu close all button. Default is null /// [Parameter] public string? TabContextMenuCloseAllIcon { get; set; } /// - /// 获得/设置 before popup context menu 回调. 默认为 null. - /// Gets or sets before popup context menu callback. Default is null. + /// 获得/设置 before popup context menu 回调. 默认为 null + /// Gets or sets before popup context menu callback. Default is null /// [Parameter] public Func>? OnBeforeShowContextMenu { get; set; } /// - /// 获得/设置 是否 show the tab in header. 默认为 false. - /// Gets or sets whether show the tab in header. Default is false. + /// 获得/设置 是否 show the tab in header. 默认为 false + /// Gets or sets whether show the tab in header. Default is false /// [Parameter] public bool ShowTabInHeader { get; set; } @@ -520,8 +520,8 @@ public partial class Layout : ITabHeader public IEnumerable? ExcludeUrls { get; set; } /// - /// 获得/设置 Gets or sets a collection of additional assemblies that should be searched for components that can match URIs. - /// Gets or sets Gets or sets a collection of additional assemblies that should be searched for components that can match URIs. + /// 获得/设置 Gets or sets a collection of additional assemblies that should be searched for components that can match URIs + /// Gets or sets Gets or sets a collection of additional assemblies that should be searched for components that can match URIs /// [Parameter] public IEnumerable? AdditionalAssemblies { get; set; } @@ -549,28 +549,28 @@ public partial class Layout : ITabHeader /// /// 获得/设置 是否开启全局异常捕获 默认 null 使用 设置值 - /// Gets or sets Whether to enable global exception capture. Default null. Use value. + /// Gets or sets Whether to enable global exception capture. Default null. Use value /// [Parameter] public bool? EnableErrorLogger { get; set; } /// /// 获得/设置 是否记录异常到 默认 null 使用 设置值 - /// Gets or sets Whether to log exceptions to . Default null. Use value. + /// Gets or sets Whether to log exceptions to . Default null. Use value /// [Parameter] public bool? EnableErrorLoggerILogger { get; set; } /// /// 获得/设置 是否显示 Error 提示弹窗 默认 null 使用 设置值 - /// Gets or sets Whether to show Error Toast. Default null. Use value. + /// Gets or sets Whether to show Error Toast. Default null. Use value /// [Parameter] public bool? ShowErrorLoggerToast { get; set; } /// /// 获得/设置 错误日志 弹窗标题 默认 null - /// Gets or sets Error Logger Title. Default null. + /// Gets or sets Error Logger Title. Default null /// [Parameter] public string? ErrorLoggerToastTitle { get; set; } diff --git a/src/BootstrapBlazor/Components/Layout/LayoutHeader.cs b/src/BootstrapBlazor/Components/Layout/LayoutHeader.cs index 77ce7565501..347fd391da9 100644 --- a/src/BootstrapBlazor/Components/Layout/LayoutHeader.cs +++ b/src/BootstrapBlazor/Components/Layout/LayoutHeader.cs @@ -24,8 +24,8 @@ Task IComponent.SetParametersAsync(ParameterView parameters) } /// - /// render tab header method. - /// render tab header method. + /// render tab header method + /// render tab header method /// public void Render(RenderFragment renderFragment) { diff --git a/src/BootstrapBlazor/Components/ListView/ListView.razor.cs b/src/BootstrapBlazor/Components/ListView/ListView.razor.cs index 6c822937192..89ea47eeda8 100644 --- a/src/BootstrapBlazor/Components/ListView/ListView.razor.cs +++ b/src/BootstrapBlazor/Components/ListView/ListView.razor.cs @@ -151,7 +151,7 @@ public partial class ListView : BootstrapComponentBase /// /// 获得/设置 组件高度 默认 null 未设置高度 如:50% 100px 10rem 10vh 等 - /// Gets or sets Component height. Default null. Not set. e.g. 50% 100px 10rem 10vh etc. + /// Gets or sets Component height. Default null. Not set. e.g. 50% 100px 10rem 10vh etc /// [Parameter] public string? Height { get; set; } diff --git a/src/BootstrapBlazor/Components/Logout/Logout.razor.cs b/src/BootstrapBlazor/Components/Logout/Logout.razor.cs index d656b093751..13a79520f59 100644 --- a/src/BootstrapBlazor/Components/Logout/Logout.razor.cs +++ b/src/BootstrapBlazor/Components/Logout/Logout.razor.cs @@ -81,8 +81,8 @@ public partial class Logout public RenderFragment? LinkTemplate { get; set; } /// - /// 获得/设置 the avatar border radius. 默认为 null. - /// Gets or sets the avatar border radius. Default is null. + /// 获得/设置 the avatar border radius. 默认为 null + /// Gets or sets the avatar border radius. Default is null /// [Parameter] public string? AvatarRadius { get; set; } diff --git a/src/BootstrapBlazor/Components/Menu/MenuLink.razor.cs b/src/BootstrapBlazor/Components/Menu/MenuLink.razor.cs index 5bd4859625a..ca1d8fbbd33 100644 --- a/src/BootstrapBlazor/Components/Menu/MenuLink.razor.cs +++ b/src/BootstrapBlazor/Components/Menu/MenuLink.razor.cs @@ -3,7 +3,6 @@ // See the LICENSE file in the project root for more information. // Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone -using Microsoft.AspNetCore.Components.Routing; using Microsoft.Extensions.Localization; namespace BootstrapBlazor.Components; @@ -67,8 +66,7 @@ public sealed partial class MenuLink : null; /// - /// SetParametersAsync 方法 - /// SetParametersAsync Method + /// /// /// public override Task SetParametersAsync(ParameterView parameters) diff --git a/src/BootstrapBlazor/Components/Menu/SubMenu.razor.cs b/src/BootstrapBlazor/Components/Menu/SubMenu.razor.cs index c623abf9c4a..bceb9b83800 100644 --- a/src/BootstrapBlazor/Components/Menu/SubMenu.razor.cs +++ b/src/BootstrapBlazor/Components/Menu/SubMenu.razor.cs @@ -78,8 +78,7 @@ public sealed partial class SubMenu .Build(); /// - /// SetParametersAsync 方法 - /// SetParametersAsync Method + /// /// /// public override Task SetParametersAsync(ParameterView parameters) diff --git a/src/BootstrapBlazor/Components/Menu/TopMenu.razor.cs b/src/BootstrapBlazor/Components/Menu/TopMenu.razor.cs index 26208203de4..d321ebaae10 100644 --- a/src/BootstrapBlazor/Components/Menu/TopMenu.razor.cs +++ b/src/BootstrapBlazor/Components/Menu/TopMenu.razor.cs @@ -68,8 +68,7 @@ public partial class TopMenu private IIconTheme? IconTheme { get; set; } /// - /// SetParametersAsync 方法 - /// SetParametersAsync Method + /// /// /// public override Task SetParametersAsync(ParameterView parameters) diff --git a/src/BootstrapBlazor/Components/Modal/ModalDialog.razor.cs b/src/BootstrapBlazor/Components/Modal/ModalDialog.razor.cs index 113dc9e1649..e426c2c6d94 100644 --- a/src/BootstrapBlazor/Components/Modal/ModalDialog.razor.cs +++ b/src/BootstrapBlazor/Components/Modal/ModalDialog.razor.cs @@ -237,8 +237,8 @@ public partial class ModalDialog public RenderFragment? FooterTemplate { get; set; } /// - /// 获得/设置 the footer 内容 模板. 默认为 null. - /// Gets or sets the footer content template. Default is null. + /// 获得/设置 the footer 内容 模板. 默认为 null + /// Gets or sets the footer content template. Default is null /// [Parameter] public RenderFragment? FooterContentTemplate { get; set; } diff --git a/src/BootstrapBlazor/Components/Reconnector/ReconnectorContent.razor.cs b/src/BootstrapBlazor/Components/Reconnector/ReconnectorContent.razor.cs index f7fb632a50e..9b966d50559 100644 --- a/src/BootstrapBlazor/Components/Reconnector/ReconnectorContent.razor.cs +++ b/src/BootstrapBlazor/Components/Reconnector/ReconnectorContent.razor.cs @@ -51,8 +51,7 @@ public partial class ReconnectorContent private IReconnectorProvider? Provider { get; set; } /// - /// SetParametersAsync 方法 - /// SetParametersAsync Method + /// /// /// public override Task SetParametersAsync(ParameterView parameters) diff --git a/src/BootstrapBlazor/Components/Select/MultiSelect.razor.cs b/src/BootstrapBlazor/Components/Select/MultiSelect.razor.cs index 663ecc0c3fb..ff69865d2fe 100644 --- a/src/BootstrapBlazor/Components/Select/MultiSelect.razor.cs +++ b/src/BootstrapBlazor/Components/Select/MultiSelect.razor.cs @@ -123,8 +123,8 @@ public partial class MultiSelect public Func, Task>? OnSelectedItemsChanged { get; set; } /// - /// 获得/设置 the default virtualize items text. - /// Gets or sets the default virtualize items text. + /// 获得/设置 the default virtualize items text + /// Gets or sets the default virtualize items text /// [Parameter] public string? DefaultVirtualizeItemText { get; set; } diff --git a/src/BootstrapBlazor/Components/Select/Select.razor.cs b/src/BootstrapBlazor/Components/Select/Select.razor.cs index c5f2697756d..e1bcf429ddb 100644 --- a/src/BootstrapBlazor/Components/Select/Select.razor.cs +++ b/src/BootstrapBlazor/Components/Select/Select.razor.cs @@ -315,8 +315,8 @@ private bool TryParseSelectItem(string value, [MaybeNullWhen(false)] out TValue }); /// - /// Trigger event 回调方法. called by JavaScript. - /// Trigger event callback method. called by JavaScript. + /// Trigger event 回调方法. called by JavaScript + /// Trigger event callback method. called by JavaScript /// [JSInvokable] public async Task TriggerCollapsed() @@ -349,8 +349,8 @@ protected override List GetRowsByItems() } /// - /// Confirms the selected item. - /// Confirms the selected item. + /// Confirms the selected item + /// Confirms the selected item /// /// The index of the selected item. [JSInvokable] diff --git a/src/BootstrapBlazor/Components/Select/SelectBase.cs b/src/BootstrapBlazor/Components/Select/SelectBase.cs index 145d031d9cd..29e51555f40 100644 --- a/src/BootstrapBlazor/Components/Select/SelectBase.cs +++ b/src/BootstrapBlazor/Components/Select/SelectBase.cs @@ -14,49 +14,49 @@ public abstract class SelectBase : PopoverSelectBase { /// /// 获得/设置 颜色,默认值为 (无颜色) - /// Gets or sets the color. The default is (no color). + /// Gets or sets the color. The default is (no color) /// [Parameter] public Color Color { get; set; } /// /// 获得/设置 是否显示搜索框,默认值为 false - /// Gets or sets a value indicating whether to show the search box. The default is false. + /// Gets or sets a value indicating whether to show the search box. The default is false /// [Parameter] public bool ShowSearch { get; set; } /// /// 获得/设置 搜索图标 - /// Gets or sets the search icon. + /// Gets or sets the search icon /// [Parameter] public string? SearchIcon { get; set; } /// /// 获得/设置 搜索加载图标 - /// Gets or sets the search loading icon. + /// Gets or sets the search loading icon /// [Parameter] public string? SearchLoadingIcon { get; set; } /// /// 获得/设置 搜索文本 - /// Gets or sets the search text. + /// Gets or sets the search text /// [NotNull] protected string? SearchText { get; set; } /// /// 获得/设置 未找到搜索结果时显示的文本 - /// Gets or sets the text to display when no search results are found. + /// Gets or sets the text to display when no search results are found /// [Parameter] public string? NoSearchDataText { get; set; } /// /// 获得/设置 下拉图标,默认值为 "fa-solid fa-angle-up" - /// Gets or sets the dropdown icon. The default is "fa-solid fa-angle-up". + /// Gets or sets the dropdown icon. The default is "fa-solid fa-angle-up" /// [Parameter] [NotNull] @@ -64,35 +64,35 @@ public abstract class SelectBase : PopoverSelectBase /// /// 获得/设置 内容是否为 ,默认值为 false - /// Gets or sets a value indicating whether the content is a . The default is false. + /// Gets or sets a value indicating whether the content is a . The default is false /// [Parameter] public bool IsMarkupString { get; set; } /// /// 获得/设置 字符串比较规则,默认值为 - /// Gets or sets the string comparison rule. The default is . + /// Gets or sets the string comparison rule. The default is /// [Parameter] public StringComparison StringComparison { get; set; } = StringComparison.OrdinalIgnoreCase; /// /// 获得/设置 分组项模板 - /// Gets or sets the group item template. + /// Gets or sets the group item template /// [Parameter] public RenderFragment? GroupItemTemplate { get; set; } /// /// 获得/设置 滚动行为,默认值为 - /// Gets or sets the scroll behavior. The default is . + /// Gets or sets the scroll behavior. The default is /// [Parameter] public ScrollIntoViewBehavior ScrollIntoViewBehavior { get; set; } = ScrollIntoViewBehavior.Smooth; /// /// 获得/设置 服务实例 - /// Gets or sets the service instance. + /// Gets or sets the service instance /// [Inject] [NotNull] @@ -100,21 +100,21 @@ public abstract class SelectBase : PopoverSelectBase /// /// 获得/设置 placeholder 文本 - /// Gets or sets the placeholder text. + /// Gets or sets the placeholder text /// [Parameter] public string? PlaceHolder { get; set; } /// /// 获得/设置 是否启用虚拟滚动,默认值为 false - /// Gets or sets whether virtual scrolling is enabled. Default is false. + /// Gets or sets whether virtual scrolling is enabled. Default is false /// [Parameter] public bool IsVirtualize { get; set; } /// /// 获得/设置 虚拟滚动的行高度,默认值为 33 - /// Gets or sets the row height for virtual scrolling. Default is 33. + /// Gets or sets the row height for virtual scrolling. Default is 33 /// /// Effective when is set to true. [Parameter] @@ -122,7 +122,7 @@ public abstract class SelectBase : PopoverSelectBase /// /// 获得/设置 虚拟滚动的超量显示数量,默认值为 4 - /// Gets or sets the overscan count for virtual scrolling. Default is 4. + /// Gets or sets the overscan count for virtual scrolling. Default is 4 /// /// Effective when is set to true. [Parameter] @@ -130,14 +130,14 @@ public abstract class SelectBase : PopoverSelectBase /// /// 获得/设置 当清除按钮被点击时的回调方法,默认值为 null - /// Gets or sets the callback method when the clear button is clicked. Default is null. + /// Gets or sets the callback method when the clear button is clicked. Default is null /// [Parameter] public Func? OnClearAsync { get; set; } /// /// 获得/设置 右侧清除图标,默认值为 fa-solid fa-angle-up - /// Gets or sets the right-side clear icon. Default is fa-solid fa-angle-up. + /// Gets or sets the right-side clear icon. Default is fa-solid fa-angle-up /// [Parameter] [NotNull] @@ -145,14 +145,14 @@ public abstract class SelectBase : PopoverSelectBase /// /// 获得/设置 选择组件是否可以清除,默认值为 false - /// Gets or sets whether the select component is clearable. Default is false. + /// Gets or sets whether the select component is clearable. Default is false /// [Parameter] public bool IsClearable { get; set; } /// /// 获得 搜索图标的字符串,默认值为 "图标 search-图标" 类 - /// Gets the search icon string with default "icon search-icon" class. + /// Gets the search icon string with default "icon search-icon" class /// protected string? SearchIconString => CssBuilder.Default("icon search-icon") .AddClass(SearchIcon) @@ -160,7 +160,7 @@ public abstract class SelectBase : PopoverSelectBase /// /// 获得 自定义类的字符串 - /// Gets the custom class string. + /// Gets the custom class string /// protected override string? CustomClassString => CssBuilder.Default() .AddClass("select", IsPopover) @@ -169,7 +169,7 @@ public abstract class SelectBase : PopoverSelectBase /// /// 获得 附加类的字符串 - /// Gets the append class string. + /// Gets the append class string /// protected string? AppendClassString => CssBuilder.Default("form-select-append") .AddClass($"text-{Color.ToDescriptionString()}", Color != Color.None && !IsDisabled && !IsValid.HasValue) @@ -179,7 +179,7 @@ public abstract class SelectBase : PopoverSelectBase /// /// 获得 清除图标的类的字符串 - /// Gets the clear icon class string. + /// Gets the clear icon class string /// protected string? ClearClassString => CssBuilder.Default("clear-icon") .AddClass($"text-{Color.ToDescriptionString()}", Color != Color.None) @@ -189,7 +189,7 @@ public abstract class SelectBase : PopoverSelectBase /// /// 获得 搜索加载图标的类的字符串 - /// Gets the SearchLoadingIcon icon class string. + /// Gets the SearchLoadingIcon icon class string /// protected string? SearchLoadingIconString => CssBuilder.Default("icon searching-icon") .AddClass(SearchLoadingIcon) @@ -208,14 +208,14 @@ protected override void OnParametersSet() /// /// 显示下拉菜单 - /// Shows the dropdown. + /// Shows the dropdown /// /// A representing the asynchronous operation. public Task Show() => InvokeVoidAsync("show", Id); /// /// 隐藏下拉菜单 - /// Hides the dropdown. + /// Hides the dropdown /// /// A representing the asynchronous operation. public Task Hide() => InvokeVoidAsync("hide", Id); @@ -224,19 +224,19 @@ protected override void OnParametersSet() /// /// 获得 是否显示清除按钮 - /// Gets whether show the clear button. + /// Gets whether show the clear button /// protected bool GetClearable() => IsClearable && !IsDisabled && IsNullable(); /// /// 清除搜索文本 - /// Clears the search text. + /// Clears the search text /// public void ClearSearchText() => SearchText = null; /// /// 清除选中的值 - /// Clears the selected value. + /// Clears the selected value /// protected virtual async Task OnClearValue() { diff --git a/src/BootstrapBlazor/Components/Select/SelectOption.cs b/src/BootstrapBlazor/Components/Select/SelectOption.cs index 06704fbe933..5640651ebc0 100644 --- a/src/BootstrapBlazor/Components/Select/SelectOption.cs +++ b/src/BootstrapBlazor/Components/Select/SelectOption.cs @@ -60,8 +60,8 @@ protected override void OnInitialized() } /// - /// Converts the current 实例 to a . - /// Converts the current instance to a . + /// Converts the current 实例 to a + /// Converts the current instance to a /// private SelectedItem ToSelectedItem() => new() { diff --git a/src/BootstrapBlazor/Components/Select/SelectTree.razor.cs b/src/BootstrapBlazor/Components/Select/SelectTree.razor.cs index 0c3d317485d..a7354a8b3b4 100644 --- a/src/BootstrapBlazor/Components/Select/SelectTree.razor.cs +++ b/src/BootstrapBlazor/Components/Select/SelectTree.razor.cs @@ -47,7 +47,7 @@ public partial class SelectTree : IModelEqualityComparer /// /// 获得/设置 禁用时是否可以展开或折叠节点,默认为 false - /// Gets or sets whether nodes can be expanded or collapsed when the component is disabled. Default is false. + /// Gets or sets whether nodes can be expanded or collapsed when the component is disabled. Default is false /// [Parameter] public bool CanExpandWhenDisabled { get; set; } = false; diff --git a/src/BootstrapBlazor/Components/Select/SimpleSelectBase.cs b/src/BootstrapBlazor/Components/Select/SimpleSelectBase.cs index e07f2a9bd99..7d15a928d8f 100644 --- a/src/BootstrapBlazor/Components/Select/SimpleSelectBase.cs +++ b/src/BootstrapBlazor/Components/Select/SimpleSelectBase.cs @@ -23,13 +23,13 @@ public abstract class SimpleSelectBase : SelectBase /// /// 获得/设置 最后选中的值字符串 - /// Gets or sets the last selected value string. + /// Gets or sets the last selected value string /// protected string _lastSelectedValueString = string.Empty; /// /// 获得/设置 项目集合 - /// Gets or sets the items. + /// Gets or sets the items /// [Parameter] [NotNull] @@ -37,7 +37,7 @@ public abstract class SimpleSelectBase : SelectBase /// /// 获得/设置 加载虚拟化项目的回调方法 - /// Gets or sets the callback method for loading virtualized items. + /// Gets or sets the callback method for loading virtualized items /// [Parameter] [NotNull] @@ -45,34 +45,34 @@ public abstract class SimpleSelectBase : SelectBase /// /// 获得/设置 搜索文本改变时的回调方法 - /// Gets or sets the callback method when the search text changes. + /// Gets or sets the callback method when the search text changes /// [Parameter] public Func>? OnSearchTextChanged { get; set; } /// /// 获得/设置 选择组件是否可编辑,默认为 false - /// Gets or sets whether the select component is editable. Default is false. + /// Gets or sets whether the select component is editable. Default is false /// [Parameter] public bool IsEditable { get; set; } /// /// 获得/设置 项目模板 - /// Gets or sets the item template. + /// Gets or sets the item template /// [Parameter] public RenderFragment? ItemTemplate { get; set; } /// /// 获得/设置 选中项目缓存 - /// Gets or sets the selected items cache. + /// Gets or sets the selected items cache /// protected List? _itemsCache; /// /// 获得 下拉菜单行数据 - /// Gets the dropdown menu rows. + /// Gets the dropdown menu rows /// protected List Rows { @@ -85,7 +85,7 @@ protected List Rows /// /// 获得 按项目筛选的行数据 - /// Gets the rows by Items. + /// Gets the rows by Items /// protected abstract List GetRowsByItems(); @@ -97,7 +97,7 @@ private List GetRowsBySearch() /// /// 按搜索文本筛选项目 - /// Filter the items by search text. + /// Filter the items by search text /// /// protected IEnumerable FilterBySearchText(IEnumerable source) => string.IsNullOrEmpty(SearchText) @@ -106,7 +106,7 @@ protected IEnumerable FilterBySearchText(IEnumerable /// /// 触发搜索回调方法 - /// Triggers the search callback method. + /// Triggers the search callback method /// /// The search text. [JSInvokable] @@ -120,7 +120,7 @@ public async Task TriggerOnSearch(string searchText) /// /// 刷新虚拟化组件 - /// Refreshes the virtualize component. + /// Refreshes the virtualize component /// protected async Task RefreshVirtualizeElement() { @@ -132,7 +132,7 @@ protected async Task RefreshVirtualizeElement() /// /// 清除选中值 - /// Clears the selected value. + /// Clears the selected value /// protected override async Task OnClearValue() { diff --git a/src/BootstrapBlazor/Components/Split/SplitterResizedEventArgs.cs b/src/BootstrapBlazor/Components/Split/SplitterResizedEventArgs.cs index 642a2c3cad2..710b2008196 100644 --- a/src/BootstrapBlazor/Components/Split/SplitterResizedEventArgs.cs +++ b/src/BootstrapBlazor/Components/Split/SplitterResizedEventArgs.cs @@ -12,8 +12,8 @@ namespace BootstrapBlazor.Components; public class SplitterResizedEventArgs(string left) { /// - /// 获得 the size of panel 1 (top/left) after a resize operation. - /// Gets the size of panel 1 (top/left) after a resize operation. + /// 获得 the size of panel 1 (top/left) after a resize operation + /// Gets the size of panel 1 (top/left) after a resize operation /// public string FirstPanelSize => left; diff --git a/src/BootstrapBlazor/Components/Tab/BootstrapBlazorAuthorizeView.cs b/src/BootstrapBlazor/Components/Tab/BootstrapBlazorAuthorizeView.cs index 5e7c4c9b00c..c37a0462ea1 100644 --- a/src/BootstrapBlazor/Components/Tab/BootstrapBlazorAuthorizeView.cs +++ b/src/BootstrapBlazor/Components/Tab/BootstrapBlazorAuthorizeView.cs @@ -18,7 +18,7 @@ public class BootstrapBlazorAuthorizeView : ComponentBase { /// /// 获得/设置 与路由关联的类型,默认为 null - /// Gets or sets the type associated with the route. Default is null. + /// Gets or sets the type associated with the route. Default is null /// [Parameter] [NotNull] @@ -26,21 +26,21 @@ public class BootstrapBlazorAuthorizeView : ComponentBase /// /// 获得/设置 与路由关联的参数,默认为 null - /// Gets or sets the parameters associated with the route. Default is null. + /// Gets or sets the parameters associated with the route. Default is null /// [Parameter] public IReadOnlyDictionary? Parameters { get; set; } /// /// 获得/设置 用户未授权时显示的模板,默认为 null - /// Gets or sets the template to display when the user is not authorized. Default is null. + /// Gets or sets the template to display when the user is not authorized. Default is null /// [Parameter] public RenderFragment? NotAuthorized { get; set; } /// /// 获得/设置 访问控制的资源,默认为 null - /// Gets or sets the resource to which access is being controlled. Default is null. + /// Gets or sets the resource to which access is being controlled. Default is null /// [Parameter] public object? Resource { get; set; } diff --git a/src/BootstrapBlazor/Components/Tab/Route/RouteTableFactory.cs b/src/BootstrapBlazor/Components/Tab/Route/RouteTableFactory.cs index 7293a61905f..3230895d01b 100644 --- a/src/BootstrapBlazor/Components/Tab/Route/RouteTableFactory.cs +++ b/src/BootstrapBlazor/Components/Tab/Route/RouteTableFactory.cs @@ -9,8 +9,8 @@ namespace Microsoft.AspNetCore.Components.Routing; /// -/// Resolves components for an application. -/// Resolves components for an application. +/// Resolves components for an application +/// Resolves components for an application /// [ExcludeFromCodeCoverage] internal static class RouteTableFactory @@ -146,8 +146,8 @@ private static HashSet GetParameterNames(RouteTemplate routeTemplate) } /// - /// Route precedence algorithm. We collect all the routes and sort them from most specific to less specific. specificity of a route is given by the specificity of its segments and the position of those segments in the route. * A literal segment is more specific than a parameter segment. * A parameter segment with more constraints is more specific than one with fewer constraints * Segment earlier in the route are evaluated before segments later in the route. For example: /Literal is more specific than /Parameter /Route/With/{parameter} is more specific than /{multiple}/With/{parameters} /Product/{id:int} is more specific than /Product/{id} Routes can be ambiguous if: They are composed of literals and those literals have the same values (case insensitive) They are composed of a mix of literals and parameters, in the same relative order and the literals have the same values. For example: * /literal and /Literal /{parameter}/literal and /{something}/literal /{parameter:constraint}/literal and /{something:constraint}/literal To calculate the precedence we sort the list of routes as follows: * Shorter routes go first. * A literal wins over a parameter in precedence. * For literals with different values (case insensitive) we choose the lexical order * For parameters with different numbers of constraints, the one with more wins If we get to the end of the comparison routing we've detected an ambiguous pair of routes. - /// Route precedence algorithm. We collect all the routes and sort them from most specific to less specific. The specificity of a route is given by the specificity of its segments and the position of those segments in the route. * A literal segment is more specific than a parameter segment. * A parameter segment with more constraints is more specific than one with fewer constraints * Segment earlier in the route are evaluated before segments later in the route. For example: /Literal is more specific than /Parameter /Route/With/{parameter} is more specific than /{multiple}/With/{parameters} /Product/{id:int} is more specific than /Product/{id} Routes can be ambiguous if: They are composed of literals and those literals have the same values (case insensitive) They are composed of a mix of literals and parameters, in the same relative order and the literals have the same values. For example: * /literal and /Literal /{parameter}/literal and /{something}/literal /{parameter:constraint}/literal and /{something:constraint}/literal To calculate the precedence we sort the list of routes as follows: * Shorter routes go first. * A literal wins over a parameter in precedence. * For literals with different values (case insensitive) we choose the lexical order * For parameters with different numbers of constraints, the one with more wins If we get to the end of the comparison routing we've detected an ambiguous pair of routes. + /// Route precedence algorithm. We collect all the routes and sort them from most specific to less specific. specificity of a route is given by the specificity of its segments and the position of those segments in the route. * A literal segment is more specific than a parameter segment. * A parameter segment with more constraints is more specific than one with fewer constraints * Segment earlier in the route are evaluated before segments later in the route. For example: /Literal is more specific than /Parameter /Route/With/{parameter} is more specific than /{multiple}/With/{parameters} /Product/{id:int} is more specific than /Product/{id} Routes can be ambiguous if: They are composed of literals and those literals have the same values (case insensitive) They are composed of a mix of literals and parameters, in the same relative order and the literals have the same values. For example: * /literal and /Literal /{parameter}/literal and /{something}/literal /{parameter:constraint}/literal and /{something:constraint}/literal To calculate the precedence we sort the list of routes as follows: * Shorter routes go first. * A literal wins over a parameter in precedence. * For literals with different values (case insensitive) we choose the lexical order * For parameters with different numbers of constraints, the one with more wins If we get to the end of the comparison routing we've detected an ambiguous pair of routes + /// Route precedence algorithm. We collect all the routes and sort them from most specific to less specific. The specificity of a route is given by the specificity of its segments and the position of those segments in the route. * A literal segment is more specific than a parameter segment. * A parameter segment with more constraints is more specific than one with fewer constraints * Segment earlier in the route are evaluated before segments later in the route. For example: /Literal is more specific than /Parameter /Route/With/{parameter} is more specific than /{multiple}/With/{parameters} /Product/{id:int} is more specific than /Product/{id} Routes can be ambiguous if: They are composed of literals and those literals have the same values (case insensitive) They are composed of a mix of literals and parameters, in the same relative order and the literals have the same values. For example: * /literal and /Literal /{parameter}/literal and /{something}/literal /{parameter:constraint}/literal and /{something:constraint}/literal To calculate the precedence we sort the list of routes as follows: * Shorter routes go first. * A literal wins over a parameter in precedence. * For literals with different values (case insensitive) we choose the lexical order * For parameters with different numbers of constraints, the one with more wins If we get to the end of the comparison routing we've detected an ambiguous pair of routes /// internal static int RouteComparison(RouteEntry x, RouteEntry y) { diff --git a/src/BootstrapBlazor/Components/Tab/Route/UrlValueConstraint.cs b/src/BootstrapBlazor/Components/Tab/Route/UrlValueConstraint.cs index 7c2d4a220a1..4be2f83d011 100644 --- a/src/BootstrapBlazor/Components/Tab/Route/UrlValueConstraint.cs +++ b/src/BootstrapBlazor/Components/Tab/Route/UrlValueConstraint.cs @@ -9,8 +9,8 @@ namespace Microsoft.AspNetCore.Components.Routing; /// -/// Shared logic for parsing tokens from route values and querystring values. -/// Shared logic for parsing tokens from route values and querystring values. +/// Shared logic for parsing tokens from route values and querystring values +/// Shared logic for parsing tokens from route values and querystring values /// [ExcludeFromCodeCoverage] internal abstract class UrlValueConstraint diff --git a/src/BootstrapBlazor/Components/Tab/Tab.razor.cs b/src/BootstrapBlazor/Components/Tab/Tab.razor.cs index 5a9b4b07f13..ad0a3bb3798 100644 --- a/src/BootstrapBlazor/Components/Tab/Tab.razor.cs +++ b/src/BootstrapBlazor/Components/Tab/Tab.razor.cs @@ -66,34 +66,34 @@ public partial class Tab /// /// 获得/设置 是否排除的链接,默认为 false - /// Gets or sets the excluded link. Default is false. + /// Gets or sets the excluded link. Default is false /// private bool Excluded { get; set; } /// /// 获得/设置 是否为卡片样式,默认为 false - /// Gets or sets whether card style. Default is false. + /// Gets or sets whether card style. Default is false /// [Parameter] public bool IsCard { get; set; } /// /// 获得/设置 是否为边框卡片样式,默认为 false - /// Gets or sets whether border card style. Default is false. + /// Gets or sets whether border card style. Default is false /// [Parameter] public bool IsBorderCard { get; set; } /// /// 获得/设置 是否仅渲染活动标签,默认为 false - /// Gets or sets whether to render only active tab. Default is false. + /// Gets or sets whether to render only active tab. Default is false /// [Parameter] public bool IsOnlyRenderActiveTab { get; set; } /// /// 获得/设置 是否懒加载 TabItem,首次不渲染,默认为 false - /// Gets or sets lazy load TabItem. Default is false. + /// Gets or sets lazy load TabItem. Default is false /// [Parameter] public bool IsLazyLoadTabItem { get; set; } @@ -107,35 +107,35 @@ public partial class Tab /// /// 获得/设置 组件高度,默认值为 0 自动高度 - /// Gets or sets component height. Default is 0 (auto). + /// Gets or sets component height. Default is 0 (auto) /// [Parameter] public int Height { get; set; } /// /// 获得/设置 组件标签显示位置,默认显示在 Top - /// Gets or sets placement. Default is Top. + /// Gets or sets placement. Default is Top /// [Parameter] public Placement Placement { get; set; } = Placement.Top; /// /// 获得/设置 是否显示关闭按钮,默认为 false - /// Gets or sets whether to show close button. Default is false. + /// Gets or sets whether to show close button. Default is false /// [Parameter] public bool ShowClose { get; set; } /// /// 获得/设置 是否显示全屏按钮,默认为 false - /// Gets or sets whether to show full screen button. Default is false. + /// Gets or sets whether to show full screen button. Default is false /// [Parameter] public bool ShowFullScreen { get; set; } /// /// 获得/设置 是否在右键菜单上显示全屏按钮,默认为 true - /// Gets or sets whether to show the full screen button on context menu. Default is true. + /// Gets or sets whether to show the full screen button on context menu. Default is true /// [Parameter] public bool ShowContextMenuFullScreen { get; set; } = true; @@ -153,35 +153,35 @@ public partial class Tab /// /// 获得/设置 是否显示扩展功能按钮,默认为 false - /// Gets or sets whether to show extend buttons. Default is false. + /// Gets or sets whether to show extend buttons. Default is false /// [Parameter] public bool ShowExtendButtons { get; set; } /// /// 获得/设置 是否显示前后导航按钮,默认为 true - /// Gets or sets whether to show navigation buttons. Default is true. + /// Gets or sets whether to show navigation buttons. Default is true /// [Parameter] public bool ShowNavigatorButtons { get; set; } = true; /// /// 获得/设置 是否自动重置标签项索引,默认为 true - /// Gets or sets whether to auto reset tab item index. Default is true. + /// Gets or sets whether to auto reset tab item index. Default is true /// [Parameter] public bool IsLoopSwitchTabItem { get; set; } = true; /// /// 获得/设置 是否显示活动标签栏,默认为 true - /// Gets or sets whether to show active bar. Default is true. + /// Gets or sets whether to show active bar. Default is true /// [Parameter] public bool ShowActiveBar { get; set; } = true; /// /// 获得/设置 点击 TabItem 时是否自动导航,默认为 false - /// Gets or sets whether to navigate when clicking TabItem. Default is false. + /// Gets or sets whether to navigate when clicking TabItem. Default is false /// [Parameter] public bool ClickTabToNavigation { get; set; } @@ -195,21 +195,21 @@ public partial class Tab /// /// 获得/设置 未授权模板,默认 null (NET6.0/7.0 有效) - /// Gets or sets NotAuthorized template. Default is null (Valid for NET6.0/7.0). + /// Gets or sets NotAuthorized template. Default is null (Valid for NET6.0/7.0) /// [Parameter] public RenderFragment? NotAuthorized { get; set; } /// /// 获得/设置 未找到模板,默认 null (NET6.0/7.0 有效) - /// Gets or sets NotFound template. Default is null (Valid for NET6.0/7.0). + /// Gets or sets NotFound template. Default is null (Valid for NET6.0/7.0) /// [Parameter] public RenderFragment? NotFound { get; set; } /// /// 获得/设置 未找到标签文本,默认 null (NET6.0/7.0 有效) - /// Gets or sets NotFound tab text. Default is null (Valid for NET6.0/7.0). + /// Gets or sets NotFound tab text. Default is null (Valid for NET6.0/7.0) /// [Parameter] public string? NotFoundTabText { get; set; } @@ -230,14 +230,14 @@ public partial class Tab /// /// 获得/设置 排除地址,支持通配符 - /// Gets or sets exclude URLs. Support wildcard. + /// Gets or sets exclude URLs. Support wildcard /// [Parameter] public IEnumerable? ExcludeUrls { get; set; } /// /// 获得/设置 默认标签页,关闭所有标签页时自动打开此地址,默认 null - /// Gets or sets default URL. Open this url when all tabs closed. Default is null. + /// Gets or sets default URL. Open this url when all tabs closed. Default is null /// [Parameter] public string? DefaultUrl { get; set; } @@ -272,28 +272,28 @@ public partial class Tab /// /// 获得/设置 按钮模板,默认 null - /// Gets or sets button template. Default is null. + /// Gets or sets button template. Default is null /// [Parameter] public RenderFragment? ButtonTemplate { get; set; } /// /// 获得/设置 工具栏按钮的模板,默认为 null - /// Gets or sets the template of the toolbar button. Default is null. + /// Gets or sets the template of the toolbar button. Default is null /// [Parameter] public RenderFragment? ToolbarTemplate { get; set; } /// /// 获得/设置 导航器前置模板,默认 null (在向前移动标签页按钮前) - /// Gets or sets before navigator template. Default is null (before previous button). + /// Gets or sets before navigator template. Default is null (before previous button) /// [Parameter] public RenderFragment? BeforeNavigatorTemplate { get; set; } /// /// 获得/设置 导航器后置模板,默认 null (在向后移动标签页按钮前) - /// Gets or sets after navigator template. Default is null (before next button). + /// Gets or sets after navigator template. Default is null (before next button) /// [Parameter] public RenderFragment? AfterNavigatorTemplate { get; set; } @@ -328,18 +328,18 @@ public partial class Tab /// /// 获得/设置 导航菜单集合,默认 null - /// Gets or sets menus. Default is null. + /// Gets or sets menus. Default is null /// /// /// 使用自定义布局时,需要 Tab 导航标签显示为菜单项时设置,已内置 Layout.Menus 默认 null - /// Used for custom layout to show menus in Tab navigation. Built-in Layout.Menus. Default is null. + /// Used for custom layout to show menus in Tab navigation. Built-in Layout.Menus. Default is null /// [Parameter] public IEnumerable? Menus { get; set; } /// /// 获得/设置 是否允许拖放标题栏更改栏位顺序,默认为 false - /// Gets or sets whether to allow drag tab header to change order. Default is false. + /// Gets or sets whether to allow drag tab header to change order. Default is false /// [Parameter] public bool AllowDrag { get; set; } @@ -353,182 +353,182 @@ public partial class Tab /// /// 获得/设置 标签页样式,默认为 TabStyle.Default - /// Gets or sets the tab style. Default is TabStyle.Default. + /// Gets or sets the tab style. Default is TabStyle.Default /// [Parameter] public TabStyle TabStyle { get; set; } /// /// 获得/设置 是否显示工具栏,默认为 false - /// Gets or sets whether to show the toolbar. Default is false. + /// Gets or sets whether to show the toolbar. Default is false /// [Parameter] public bool ShowToolbar { get; set; } /// /// 获得/设置 是否显示全屏按钮,默认为 true - /// Gets or sets whether to show the full screen button. Default is true. + /// Gets or sets whether to show the full screen button. Default is true /// [Parameter] public bool ShowFullscreenToolbarButton { get; set; } = true; /// /// 获得/设置 全屏工具栏按钮图标字符串,默认为 null - /// Gets or sets the full screen toolbar button icon string. Default is null. + /// Gets or sets the full screen toolbar button icon string. Default is null /// [Parameter] public string? FullscreenToolbarButtonIcon { get; set; } /// /// 获得/设置 全屏工具栏按钮提示字符串,默认为 null - /// Gets or sets the full screen toolbar button tooltip string. Default is null. + /// Gets or sets the full screen toolbar button tooltip string. Default is null /// [Parameter] public string? FullscreenToolbarTooltipText { get; set; } /// /// 获得/设置 是否显示刷新按钮,默认为 true - /// Gets or sets whether to show the refresh button. Default is true. + /// Gets or sets whether to show the refresh button. Default is true /// [Parameter] public bool ShowRefreshToolbarButton { get; set; } = true; /// /// 获得/设置 刷新工具栏按钮图标字符串,默认为 null - /// Gets or sets the refresh toolbar button icon string. Default is null. + /// Gets or sets the refresh toolbar button icon string. Default is null /// [Parameter] public string? RefreshToolbarButtonIcon { get; set; } /// /// 获得/设置 刷新工具栏按钮提示字符串,默认为 null - /// Gets or sets the refresh toolbar button tooltip string. Default is null. + /// Gets or sets the refresh toolbar button tooltip string. Default is null /// [Parameter] public string? RefreshToolbarTooltipText { get; set; } /// /// 获得/设置 刷新工具栏按钮单击事件回调,默认为 null - /// Gets or sets the refresh toolbar button click event callback. Default is null. + /// Gets or sets the refresh toolbar button click event callback. Default is null /// [Parameter] public Func? OnToolbarRefreshCallback { get; set; } /// /// 获得/设置 上一个标签导航链接提示文本,默认为 null - /// Gets or sets the previous tab navigation link tooltip text. Default is null. + /// Gets or sets the previous tab navigation link tooltip text. Default is null /// [Parameter] public string? PrevTabNavLinkTooltipText { get; set; } /// /// 获得/设置 下一个标签导航链接提示文本,默认为 null - /// Gets or sets the next tab navigation link tooltip text. Default is null. + /// Gets or sets the next tab navigation link tooltip text. Default is null /// [Parameter] public string? NextTabNavLinkTooltipText { get; set; } /// /// 获得/设置 关闭标签导航链接提示文本,默认为 null - /// Gets or sets the close tab navigation link tooltip text. Default is null. + /// Gets or sets the close tab navigation link tooltip text. Default is null /// [Parameter] public string? CloseTabNavLinkTooltipText { get; set; } /// /// 获得/设置 是否启用标签页右键菜单,默认为 false - /// Gets or sets whether to enable tab context menu. Default is false. + /// Gets or sets whether to enable tab context menu. Default is false /// [Parameter] public bool ShowContextMenu { get; set; } /// /// 获得/设置 右键菜单前置模板,默认为 null - /// Gets or sets the template of before context menu. Default is null. + /// Gets or sets the template of before context menu. Default is null /// [Parameter] public RenderFragment? BeforeContextMenuTemplate { get; set; } /// /// 获得/设置 右键菜单模板,默认为 null - /// Gets or sets the template of context menu. Default is null. + /// Gets or sets the template of context menu. Default is null /// [Parameter] public RenderFragment? ContextMenuTemplate { get; set; } /// /// 获得/设置 标签项右键菜单刷新按钮的图标,默认为 null - /// Gets or sets the icon of tab item context menu refresh button. Default is null. + /// Gets or sets the icon of tab item context menu refresh button. Default is null /// [Parameter] public string? ContextMenuRefreshIcon { get; set; } /// /// 获得/设置 标签项右键菜单关闭按钮的图标,默认为 null - /// Gets or sets the icon of tab item context menu close button. Default is null. + /// Gets or sets the icon of tab item context menu close button. Default is null /// [Parameter] public string? ContextMenuCloseIcon { get; set; } /// /// 获得/设置 标签项右键菜单关闭其他按钮的图标,默认为 null - /// Gets or sets the icon of tab item context menu close other button. Default is null. + /// Gets or sets the icon of tab item context menu close other button. Default is null /// [Parameter] public string? ContextMenuCloseOtherIcon { get; set; } /// /// 获得/设置 标签项右键菜单关闭全部按钮的图标,默认为 null - /// Gets or sets the icon of tab item context menu close all button. Default is null. + /// Gets or sets the icon of tab item context menu close all button. Default is null /// [Parameter] public string? ContextMenuCloseAllIcon { get; set; } /// /// 获得/设置 标签项右键菜单全屏按钮的图标,默认为 null - /// Gets or sets the icon of tab item context menu full screen button. Default is null. + /// Gets or sets the icon of tab item context menu full screen button. Default is null /// [Parameter] public string? ContextMenuFullScreenIcon { get; set; } /// /// 获得/设置 显示右键菜单前回调,默认为 null - /// Gets or sets before popup context menu callback. Default is null. + /// Gets or sets before popup context menu callback. Default is null /// [Parameter] public Func>? OnBeforeShowContextMenu { get; set; } /// /// 获得/设置 ITabHeader 实例,默认为 null - /// Gets or sets the ITabHeader instance. Default is null. + /// Gets or sets the ITabHeader instance. Default is null /// [Parameter] public ITabHeader? TabHeader { get; set; } /// /// 获得/设置 是否开启全局异常捕获,默认 null 读取配置文件 BootstrapBlazorOptions.EnableErrorLogger 值 - /// Gets or sets whether to enable global error logger. Default is null (Read from BootstrapBlazorOptions.EnableErrorLogger). + /// Gets or sets whether to enable global error logger. Default is null (Read from BootstrapBlazorOptions.EnableErrorLogger) /// [Parameter] public bool? EnableErrorLogger { get; set; } /// /// 获得/设置 是否记录异常到 ILogger,默认 null 使用 BootstrapBlazorOptions.EnableErrorLoggerILogger 设置值 - /// Gets or sets whether to log error to ILogger. Default is null (Use BootstrapBlazorOptions.EnableErrorLoggerILogger). + /// Gets or sets whether to log error to ILogger. Default is null (Use BootstrapBlazorOptions.EnableErrorLoggerILogger) /// [Parameter] public bool? EnableErrorLoggerILogger { get; set; } /// /// 获得/设置 是否显示 Error 提示弹窗,默认 null 使用 BootstrapBlazorOptions.ShowErrorLoggerToast 设置值 - /// Gets or sets whether to show error toast. Default is null (Use BootstrapBlazorOptions.ShowErrorLoggerToast). + /// Gets or sets whether to show error toast. Default is null (Use BootstrapBlazorOptions.ShowErrorLoggerToast) /// [Parameter] public bool? ShowErrorLoggerToast { get; set; } /// /// 获得/设置 错误日志 Toast 弹窗标题,默认 null - /// Gets or sets error logger Toast title. Default is null. + /// Gets or sets error logger Toast title. Default is null /// [Parameter] public string? ErrorLoggerToastTitle { get; set; } @@ -1318,8 +1318,8 @@ private RenderFragment RenderTabItems() => builder => }; /// - /// 设置 the 实例. - /// Sets the instance. + /// 设置 the 实例 + /// Sets the instance /// /// public void SetTabHeader(ITabHeader tabHeader) => TabHeader = tabHeader; diff --git a/src/BootstrapBlazor/Components/Tab/TabItem.cs b/src/BootstrapBlazor/Components/Tab/TabItem.cs index e7d8761ae24..dc0f2a865ca 100644 --- a/src/BootstrapBlazor/Components/Tab/TabItem.cs +++ b/src/BootstrapBlazor/Components/Tab/TabItem.cs @@ -13,21 +13,21 @@ public class TabItem : IdComponentBase { /// /// 获得/设置 标签项文本,默认为 null - /// Gets or sets the text. Default is null. + /// Gets or sets the text. Default is null /// [Parameter] public string? Text { get; set; } /// /// 获得/设置 TabItem 头部模板,默认为 null - /// Gets or sets the TabItem Header template. Default is null. + /// Gets or sets the TabItem Header template. Default is null /// [Parameter] public RenderFragment? HeaderTemplate { get; set; } /// /// 获得/设置 请求 URL,默认为 null - /// Gets or sets the request URL. Default is null. + /// Gets or sets the request URL. Default is null /// [Parameter] [NotNull] @@ -35,56 +35,56 @@ public class TabItem : IdComponentBase /// /// 获得/设置 当前状态是否为活跃,默认为 false - /// Gets or sets whether the current state is active. Default is false. + /// Gets or sets whether the current state is active. Default is false /// [Parameter] public bool IsActive { get; set; } /// /// 获得/设置 当前状态是否被禁用,默认为 false - /// Gets or sets whether the current state is disabled. Default is false. + /// Gets or sets whether the current state is disabled. Default is false /// [Parameter] public bool IsDisabled { get; set; } /// /// 获得/设置 当前 TabItem 是否可关闭,默认为 true - /// Gets or sets whether the current TabItem is closable. Default is true. + /// Gets or sets whether the current TabItem is closable. Default is true /// [Parameter] public bool Closable { get; set; } = true; /// /// 获得/设置 当前 TabItem 是否始终被加载,此参数用于设置 Tab.IsLazyLoadTabItem,默认为 false - /// Gets or sets whether the current TabItem is always loaded. This parameter is used to set Tab.IsLazyLoadTabItem. Default is false. + /// Gets or sets whether the current TabItem is always loaded. This parameter is used to set Tab.IsLazyLoadTabItem. Default is false /// [Parameter] public bool AlwaysLoad { get; set; } /// /// 获得/设置 自定义 CSS 类,默认为 null - /// Gets or sets the custom CSS class. Default is null. + /// Gets or sets the custom CSS class. Default is null /// [Parameter] public string? CssClass { get; set; } /// /// 获得/设置 图标字符串,默认为 null - /// Gets or sets the icon string. Default is null. + /// Gets or sets the icon string. Default is null /// [Parameter] public string? Icon { get; set; } /// /// 获得/设置 是否显示全屏按钮,默认为 true - /// Gets or sets whether to show the full screen button. Default is true. + /// Gets or sets whether to show the full screen button. Default is true /// [Parameter] public bool ShowFullScreen { get; set; } = true; /// /// 获得/设置 组件内容,默认为 null - /// Gets or sets the component content. Default is null. + /// Gets or sets the component content. Default is null /// [Parameter] public RenderFragment? ChildContent { get; set; } diff --git a/src/BootstrapBlazor/Components/Tab/TabLink.razor.cs b/src/BootstrapBlazor/Components/Tab/TabLink.razor.cs index 47f45fea31d..7aea08bd78e 100644 --- a/src/BootstrapBlazor/Components/Tab/TabLink.razor.cs +++ b/src/BootstrapBlazor/Components/Tab/TabLink.razor.cs @@ -13,35 +13,35 @@ public sealed partial class TabLink { /// /// 获得/设置 链接的文本,默认为 null - /// Gets or sets the text of the link. Default is null. + /// Gets or sets the text of the link. Default is null /// [Parameter] public string? Text { get; set; } /// /// 获得/设置 链接的 URL,默认为 null - /// Gets or sets the URL of the link. Default is null. + /// Gets or sets the URL of the link. Default is null /// [Parameter] public string? Url { get; set; } /// /// 获得/设置 链接的图标,默认为 null - /// Gets or sets the icon of the link. Default is null. + /// Gets or sets the icon of the link. Default is null /// [Parameter] public string? Icon { get; set; } /// /// 获得/设置 标签项是否可关闭的值,默认为 true - /// Gets or sets a value indicating whether the tab item is closable. Default is true. + /// Gets or sets a value indicating whether the tab item is closable. Default is true /// [Parameter] public bool Closable { get; set; } = true; /// /// 获得/设置 链接被单击时的回调方法,默认为 null - /// Gets or sets the callback method when the link is clicked. Default is null. + /// Gets or sets the callback method when the link is clicked. Default is null /// [Parameter] public Func? OnClick { get; set; } @@ -52,7 +52,7 @@ public sealed partial class TabLink /// /// 获得/设置 组件的内容,默认为 null - /// Gets or sets the content of the component. Default is null. + /// Gets or sets the content of the component. Default is null /// [Parameter] public RenderFragment? ChildContent { get; set; } diff --git a/src/BootstrapBlazor/Components/Tab/TabToolbarButton.razor.cs b/src/BootstrapBlazor/Components/Tab/TabToolbarButton.razor.cs index 968c5bee372..93ec2cbf42a 100644 --- a/src/BootstrapBlazor/Components/Tab/TabToolbarButton.razor.cs +++ b/src/BootstrapBlazor/Components/Tab/TabToolbarButton.razor.cs @@ -13,21 +13,21 @@ public partial class TabToolbarButton { /// /// 获得/设置 按钮图标,默认为 null - /// Gets or sets the button icon string. Default is null. + /// Gets or sets the button icon string. Default is null /// [Parameter] public string? Icon { get; set; } /// /// 获得/设置 按钮单击事件处理程序,默认为 null - /// Gets or sets the button click event handler. Default is null. + /// Gets or sets the button click event handler. Default is null /// [Parameter] public Func? OnClickAsync { get; set; } /// /// 获得/设置 提示文本,默认为 null - /// Gets or sets the tooltip text. Default is null. + /// Gets or sets the tooltip text. Default is null /// [Parameter] public string? TooltipText { get; set; } diff --git a/src/BootstrapBlazor/Components/Table/ITableCellButton.cs b/src/BootstrapBlazor/Components/Table/ITableCellButton.cs index 7f066ceee67..f179fa631f3 100644 --- a/src/BootstrapBlazor/Components/Table/ITableCellButton.cs +++ b/src/BootstrapBlazor/Components/Table/ITableCellButton.cs @@ -13,13 +13,13 @@ public interface ITableCellButton : ITableCellComponent { /// /// 获得/设置 点击按钮是否选中正行,默认为 true 选中 - /// Gets or sets whether to select current row when button clicked. Default is true. + /// Gets or sets whether to select current row when button clicked. Default is true /// bool AutoSelectedRowWhenClick { get; set; } /// /// 获得/设置 点击按钮是否重新渲染 Table 组件,默认为 false 不重新渲染,设置 true 时会调用 Table 的 QueryAsync(int?) 方法,触发 OnQueryAsync 回调 - /// Gets or sets whether to re-render Table component when button clicked. Default is false. When set to true, it calls Table.QueryAsync(int?) method and triggers OnQueryAsync callback. + /// Gets or sets whether to re-render Table component when button clicked. Default is false. When set to true, it calls Table.QueryAsync(int?) method and triggers OnQueryAsync callback /// bool AutoRenderTableWhenClick { get; set; } } diff --git a/src/BootstrapBlazor/Components/Table/ITableColumn.cs b/src/BootstrapBlazor/Components/Table/ITableColumn.cs index ea16ccd07da..03a8995be1d 100644 --- a/src/BootstrapBlazor/Components/Table/ITableColumn.cs +++ b/src/BootstrapBlazor/Components/Table/ITableColumn.cs @@ -13,229 +13,229 @@ public interface ITableColumn : IEditorItem { /// /// 获得/设置 导出时是否忽略当前项,默认为 false - /// Gets or sets whether to ignore current item when exporting. Default is false. + /// Gets or sets whether to ignore current item when exporting. Default is false /// bool? IgnoreWhenExport { get; set; } /// /// 获得/设置 是否允许排序,默认为 null - /// Gets or sets whether sorting is allowed. Default is null. + /// Gets or sets whether sorting is allowed. Default is null /// bool? Sortable { get; set; } /// /// 获得/设置 是否为默认排序列,默认为 false - /// Gets or sets whether it is the default sort column. Default is false. + /// Gets or sets whether it is the default sort column. Default is false /// bool DefaultSort { get; set; } /// /// 获得/设置 默认排序顺序,默认为 SortOrder.Unset - /// Gets or sets the default sort order. Default is SortOrder.Unset. + /// Gets or sets the default sort order. Default is SortOrder.Unset /// SortOrder DefaultSortOrder { get; set; } /// /// 获得/设置 是否允许数据过滤,默认为 null - /// Gets or sets whether data filtering is allowed. Default is null. + /// Gets or sets whether data filtering is allowed. Default is null /// bool? Filterable { get; set; } /// /// 获得/设置 是否允许在搜索中参与,默认为 null - /// Gets or sets whether the column participates in search. Default is null. + /// Gets or sets whether the column participates in search. Default is null /// bool? Searchable { get; set; } /// /// 获得/设置 列宽 - /// Gets or sets the column width. + /// Gets or sets the column width /// int? Width { get; set; } /// /// 获得/设置 是否列固定,默认为 false - /// Gets or sets whether the column is fixed. Default is false. + /// Gets or sets whether the column is fixed. Default is false /// bool Fixed { get; set; } /// /// 获得/设置 是否允许此列中文本换行,默认为 null - /// Gets or sets whether text wrapping is allowed in this column. Default is null. + /// Gets or sets whether text wrapping is allowed in this column. Default is null /// bool? TextWrap { get; set; } /// /// 获得/设置 是否此列中文本溢出省略号,默认为 null - /// Gets or sets whether text overflow is ellipsis in this column. Default is null. + /// Gets or sets whether text overflow is ellipsis in this column. Default is null /// bool? TextEllipsis { get; set; } /// /// 获得/设置 是否允许表头文本换行,默认为 false - /// Gets or sets whether the header text is allowed to wrap. Default is false. + /// Gets or sets whether the header text is allowed to wrap. Default is false /// bool HeaderTextWrap { get; set; } /// /// 获得/设置 是否显示表头提示,默认为 false,可配合 HeaderTextEllipsis 使用,当 HeaderTextWrap 为 true 时此参数无效 - /// Gets or sets whether the header shows a tooltip. Default is false. Can be used with HeaderTextEllipsis. This parameter is not effective when HeaderTextWrap is true. + /// Gets or sets whether the header shows a tooltip. Default is false. Can be used with HeaderTextEllipsis. This parameter is not effective when HeaderTextWrap is true /// bool ShowHeaderTooltip { get; set; } /// /// 获得/设置 表头提示内容 - /// Gets or sets the header tooltip content. + /// Gets or sets the header tooltip content /// string? HeaderTextTooltip { get; set; } /// /// 获得/设置 是否表头文本溢出时省略,默认为 false,可配合 HeaderTextTooltip 使用,当 HeaderTextWrap 为 true 时此参数无效 - /// Gets or sets whether the header text is truncated when overflowing. Default is false. Can be used with HeaderTextTooltip. This parameter is not effective when HeaderTextWrap is true. + /// Gets or sets whether the header text is truncated when overflowing. Default is false. Can be used with HeaderTextTooltip. This parameter is not effective when HeaderTextWrap is true /// bool HeaderTextEllipsis { get; set; } /// /// 获得/设置 列 td 的自定义 CSS 类,默认为 null - /// Gets or sets the custom CSS class for the column td. Default is null. + /// Gets or sets the custom CSS class for the column td. Default is null /// string? CssClass { get; set; } /// /// 获得/设置 显示列的断点,默认为 BreakPoint.None - /// Gets or sets the breakpoint at which the column is shown. Default is BreakPoint.None. + /// Gets or sets the breakpoint at which the column is shown. Default is BreakPoint.None /// BreakPoint ShownWithBreakPoint { get; set; } /// /// 获得/设置 是否可以复制列,默认为 null - /// Gets or sets whether the column can be copied. Default is null. + /// Gets or sets whether the column can be copied. Default is null /// bool? ShowCopyColumn { get; set; } /// /// 获得/设置 显示模板 - /// Gets or sets the display template. + /// Gets or sets the display template /// RenderFragment? Template { get; set; } /// /// 获得/设置 搜索模板 - /// Gets or sets the search template. + /// Gets or sets the search template /// RenderFragment? SearchTemplate { get; set; } /// /// 获得/设置 过滤模板 - /// Gets or sets the filter template. + /// Gets or sets the filter template /// RenderFragment? FilterTemplate { get; set; } /// /// 获得/设置 表头模板 - /// Gets or sets the header template. + /// Gets or sets the header template /// RenderFragment? HeaderTemplate { get; set; } /// /// 获得/设置 工具栏模板,默认为 null - /// Gets or sets the toolbox template. Default is null. + /// Gets or sets the toolbox template. Default is null /// RenderFragment? ToolboxTemplate { get; set; } /// /// 获得/设置 列过滤器 - /// Gets or sets the column filter. + /// Gets or sets the column filter /// IFilter? Filter { get; set; } /// /// 获得/设置 格式字符串,例如日期类型的 "yyyy-MM-dd" - /// Gets or sets the format string, such as "yyyy-MM-dd" for date types. + /// Gets or sets the format string, such as "yyyy-MM-dd" for date types /// string? FormatString { get; set; } /// /// 获得/设置 列格式回调委托 - /// Gets or sets the column format callback delegate. + /// Gets or sets the column format callback delegate /// Func>? Formatter { get; set; } /// /// 获得/设置 文本对齐方式,默认为 null,使用 Alignment.None - /// Gets or sets the text alignment. Default is null, using Alignment.None. + /// Gets or sets the text alignment. Default is null, using Alignment.None /// Alignment? Align { get; set; } /// /// 获得/设置 鼠标悬停时是否显示提示,默认为 null,使用 false 值 - /// Gets or sets whether to show tooltips on mouse hover. Default is null, using false value. + /// Gets or sets whether to show tooltips on mouse hover. Default is null, using false value /// bool? ShowTips { get; set; } /// /// 获得/设置 自定义提示内容回调委托,默认为 null,使用当前值 - /// Gets or sets the custom tooltip content callback delegate. Default is null, using the current value. + /// Gets or sets the custom tooltip content callback delegate. Default is null, using the current value /// Func>? GetTooltipTextCallback { get; set; } /// /// 获得/设置 单元格渲染回调方法 - /// Gets or sets the cell render callback method. + /// Gets or sets the cell render callback method /// Action? OnCellRender { get; set; } /// /// 获得/设置 列是否为 MarkupString,默认为 false - /// Gets or sets whether the column is a MarkupString. Default is false. + /// Gets or sets whether the column is a MarkupString. Default is false /// bool IsMarkupString { get; set; } /// /// 获得/设置 添加新项时列是否必需,默认为 null - /// Gets or sets whether the column is required when adding a new item. Default is null. + /// Gets or sets whether the column is required when adding a new item. Default is null /// bool? IsRequiredWhenAdd { get; set; } /// /// 获得/设置 编辑项时列是否必需,默认为 null - /// Gets or sets whether the column is required when editing an item. Default is null. + /// Gets or sets whether the column is required when editing an item. Default is null /// bool? IsRequiredWhenEdit { get; set; } /// /// 获得/设置 添加新项时列是否为只读,默认为 null,使用 IEditorItem.Readonly 值 - /// Gets or sets whether the column is read-only when adding a new item. Default is null, using the value. + /// Gets or sets whether the column is read-only when adding a new item. Default is null, using the value /// bool? IsReadonlyWhenAdd { get; set; } /// /// 获得/设置 编辑项时列是否为只读,默认为 null,使用 IEditorItem.Readonly 值 - /// Gets or sets whether the column is read-only when editing an item. Default is null, using the value. + /// Gets or sets whether the column is read-only when editing an item. Default is null, using the value /// bool? IsReadonlyWhenEdit { get; set; } /// /// 获得/设置 当前编辑项是否可见,默认为 null,使用 true 值 - /// Gets or sets whether the current edit item is visible. Default is null, using true value. + /// Gets or sets whether the current edit item is visible. Default is null, using true value /// bool? Visible { get; set; } /// /// 获得/设置 添加新项时列是否可见,默认为 null,使用 Visible 值 - /// Gets or sets whether the column is visible when adding a new item. Default is null, using the value. + /// Gets or sets whether the column is visible when adding a new item. Default is null, using the value /// bool? IsVisibleWhenAdd { get; set; } /// /// 获得/设置 编辑项时列是否可见,默认为 null,使用 Visible 值 - /// Gets or sets whether the column is visible when editing an item. Default is null, using the value. + /// Gets or sets whether the column is visible when editing an item. Default is null, using the value /// bool? IsVisibleWhenEdit { get; set; } /// /// 获得/设置 自定义搜索逻辑 - /// Gets or sets the custom search logic. + /// Gets or sets the custom search logic /// Func? CustomSearch { get; set; } } diff --git a/src/BootstrapBlazor/Components/Table/ITableEditDialogOption.cs b/src/BootstrapBlazor/Components/Table/ITableEditDialogOption.cs index ff317c71ebe..956545c58d6 100644 --- a/src/BootstrapBlazor/Components/Table/ITableEditDialogOption.cs +++ b/src/BootstrapBlazor/Components/Table/ITableEditDialogOption.cs @@ -15,13 +15,13 @@ public interface ITableEditDialogOption { /// /// 获得/设置 组件是否采用 Tracking 模式对编辑项进行直接更新,默认为 false - /// Gets or sets whether to use Tracking mode to directly update edited items. Default is false. + /// Gets or sets whether to use Tracking mode to directly update edited items. Default is false /// bool IsTracking { get; set; } /// /// 获得/设置 是否显示标签,默认为 true - /// Gets or sets whether to display label. Default is true. + /// Gets or sets whether to display label. Default is true /// bool ShowLabel { get; set; } @@ -33,31 +33,31 @@ public interface ITableEditDialogOption /// /// 获得/设置 每行显示组件数量,默认为 null - /// Gets or sets the number of components displayed per row. Default is null. + /// Gets or sets the number of components displayed per row. Default is null /// int? ItemsPerRow { get; set; } /// /// 获得/设置 设置行内组件布局格式,默认为 Row 布局 - /// Gets or sets the layout format of inline components. Default is Row layout. + /// Gets or sets the layout format of inline components. Default is Row layout /// RowType RowType { get; set; } /// /// 获得/设置 在 RowType Inline 模式下标签对齐方式,默认为 None(等效于 Left 左对齐) - /// Gets or sets the label alignment in RowType Inline mode. Default is None (equivalent to Left). + /// Gets or sets the label alignment in RowType Inline mode. Default is None (equivalent to Left) /// Alignment LabelAlign { get; set; } /// /// 获得/设置 查询时是否显示正在加载中动画,默认为 false - /// Gets or sets whether to display loading animation when querying. Default is false. + /// Gets or sets whether to display loading animation when querying. Default is false /// bool ShowLoading { get; set; } /// /// 获得/设置 未分组编辑项布局位置,默认为 false 在尾部 - /// Gets or sets the layout position of ungrouped edit items. Default is false (at the end). + /// Gets or sets the layout position of ungrouped edit items. Default is false (at the end) /// bool ShowUnsetGroupItemsOnTop { get; set; } @@ -69,7 +69,7 @@ public interface ITableEditDialogOption /// /// 获得/设置 是否禁用表单内回车自动提交功能,默认为 null 未设置 - /// Gets or sets whether to disable auto submit form by Enter key. Default is null. + /// Gets or sets whether to disable auto submit form by Enter key. Default is null /// bool? DisableAutoSubmitFormByEnter { get; set; } @@ -81,7 +81,7 @@ public interface ITableEditDialogOption /// /// 获得/设置 保存按钮图标 默认 null 使用当前主题图标 - /// Gets or sets save button icon. Default is null, using the current theme icon. + /// Gets or sets save button icon. Default is null, using the current theme icon /// string? SaveButtonIcon { get; set; } @@ -93,7 +93,7 @@ public interface ITableEditDialogOption /// /// 获得/设置 关闭按钮图标 默认 null 使用当前主题图标 - /// Gets or sets close button icon. Default is null, using the current theme icon. + /// Gets or sets close button icon. Default is null, using the current theme icon /// string? CloseButtonIcon { get; set; } diff --git a/src/BootstrapBlazor/Components/Table/ITableToolbarButton.cs b/src/BootstrapBlazor/Components/Table/ITableToolbarButton.cs index cdda4388ab7..a7da8528076 100644 --- a/src/BootstrapBlazor/Components/Table/ITableToolbarButton.cs +++ b/src/BootstrapBlazor/Components/Table/ITableToolbarButton.cs @@ -13,7 +13,7 @@ public interface ITableToolbarButton : IToolbarComponent { /// /// 获得/设置 选中一行时启用按钮,默认为 false - /// Gets or sets whether to enable button when one row is selected. Default is false. + /// Gets or sets whether to enable button when one row is selected. Default is false /// bool IsEnableWhenSelectedOneRow { get; set; } diff --git a/src/BootstrapBlazor/Components/Table/IToolbarComponent.cs b/src/BootstrapBlazor/Components/Table/IToolbarComponent.cs index b86a8c83b6c..5a3913bce19 100644 --- a/src/BootstrapBlazor/Components/Table/IToolbarComponent.cs +++ b/src/BootstrapBlazor/Components/Table/IToolbarComponent.cs @@ -13,7 +13,7 @@ public interface IToolbarComponent { /// /// 获得/设置 是否显示,默认为 true 显示 - /// Gets or sets whether to display. Default is true. + /// Gets or sets whether to display. Default is true /// bool IsShow { get; set; } } diff --git a/src/BootstrapBlazor/Components/Table/Table.razor.Toolbar.cs b/src/BootstrapBlazor/Components/Table/Table.razor.Toolbar.cs index 576d06e5e7f..cc3f3275cc5 100644 --- a/src/BootstrapBlazor/Components/Table/Table.razor.Toolbar.cs +++ b/src/BootstrapBlazor/Components/Table/Table.razor.Toolbar.cs @@ -17,8 +17,8 @@ public partial class Table public bool ShowToolbar { get; set; } /// - /// 获得/设置 the 模板 of table toolbar. 默认为 null. - /// Gets or sets the template of table toolbar. Default is null. + /// 获得/设置 the 模板 of table toolbar. 默认为 null + /// Gets or sets the template of table toolbar. Default is null /// [Parameter] public RenderFragment? ToolbarTemplate { get; set; } @@ -1306,8 +1306,8 @@ private Task ExportExcelAsync() => ExecuteExportAsync(() => OnExportAsync != nul : TableExport.ExportExcelAsync(Rows, GetExportColumns())); /// - /// 获得 the export column 集合. - /// Gets the export column collection. + /// 获得 the export column 集合 + /// Gets the export column collection /// public List GetExportColumns() => [.. GetVisibleColumns().Where(i => i.IgnoreWhenExport is not true)]; diff --git a/src/BootstrapBlazor/Components/Table/Table.razor.cs b/src/BootstrapBlazor/Components/Table/Table.razor.cs index efbd5db87ee..ad05dabf395 100644 --- a/src/BootstrapBlazor/Components/Table/Table.razor.cs +++ b/src/BootstrapBlazor/Components/Table/Table.razor.cs @@ -18,8 +18,8 @@ namespace BootstrapBlazor.Components; public partial class Table : ITable, IModelEqualityComparer where TItem : class { /// - /// 获得/设置 a value indicating 是否 automatic search functionality is enabled. 默认 value is false. - /// Gets or sets a value indicating whether automatic search functionality is enabled. Default value is false. + /// 获得/设置 a value indicating 是否 automatic search functionality is enabled. 默认 value is false + /// Gets or sets a value indicating whether automatic search functionality is enabled. Default value is false /// [Parameter] public bool AutoSearchOnInput { get; set; } @@ -467,8 +467,8 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( public float RowHeight { get; set; } = 38f; /// - /// 获得/设置 the overscan count for virtual scrolling. 默认为 10. - /// Gets or sets the overscan count for virtual scrolling. Default is 10. + /// 获得/设置 the overscan count for virtual scrolling. 默认为 10 + /// Gets or sets the overscan count for virtual scrolling. Default is 10 /// /// Effective when is set to . [Parameter] diff --git a/src/BootstrapBlazor/Components/Table/TableCellArgs.cs b/src/BootstrapBlazor/Components/Table/TableCellArgs.cs index 240819dd79b..ffe64624b4e 100644 --- a/src/BootstrapBlazor/Components/Table/TableCellArgs.cs +++ b/src/BootstrapBlazor/Components/Table/TableCellArgs.cs @@ -27,13 +27,13 @@ public class TableCellArgs /// /// 获得/设置 合并单元格数量,默认为 0 - /// Gets or sets colspan count. Default is 0. + /// Gets or sets colspan count. Default is 0 /// public int Colspan { get; set; } /// /// 获得/设置 当前单元格样式,默认 null - /// Gets or sets current cell CSS class. Default is null. + /// Gets or sets current cell CSS class. Default is null /// public string? Class { get; set; } diff --git a/src/BootstrapBlazor/Components/Table/TableCellButton.cs b/src/BootstrapBlazor/Components/Table/TableCellButton.cs index 9f1bb4a75f9..85c0981b121 100644 --- a/src/BootstrapBlazor/Components/Table/TableCellButton.cs +++ b/src/BootstrapBlazor/Components/Table/TableCellButton.cs @@ -33,7 +33,7 @@ public class TableCellButton : ButtonBase, ITableCellButton /// /// 获得/设置 是否显示,默认为 true 显示 - /// Gets or sets whether to display. Default is true. + /// Gets or sets whether to display. Default is true /// /// 一般是通过 context 进行业务判断是否需要显示功能按钮 [Parameter] diff --git a/src/BootstrapBlazor/Components/Table/TableCellComponent.cs b/src/BootstrapBlazor/Components/Table/TableCellComponent.cs index b3c52c4b8a3..7f4d493a698 100644 --- a/src/BootstrapBlazor/Components/Table/TableCellComponent.cs +++ b/src/BootstrapBlazor/Components/Table/TableCellComponent.cs @@ -27,7 +27,7 @@ public class TableCellComponent : ComponentBase, ITableCellComponent, IDisposabl /// /// 获得/设置 是否显示,默认为 true 显示 - /// Gets or sets whether to display. Default is true. + /// Gets or sets whether to display. Default is true /// /// 一般是通过 context 进行业务判断是否需要显示功能按钮 [Parameter] diff --git a/src/BootstrapBlazor/Components/Table/TableCellPopConfirmButton.cs b/src/BootstrapBlazor/Components/Table/TableCellPopConfirmButton.cs index c9cadfc0885..31106dca73c 100644 --- a/src/BootstrapBlazor/Components/Table/TableCellPopConfirmButton.cs +++ b/src/BootstrapBlazor/Components/Table/TableCellPopConfirmButton.cs @@ -39,7 +39,7 @@ public class TableCellPopConfirmButton : PopConfirmButtonBase, ITableCellButton /// /// 获得/设置 是否显示本按钮,默认为 true 显示 - /// Gets or sets whether to display this button. Default is true. + /// Gets or sets whether to display this button. Default is true /// /// 一般是通过 context 进行业务判断是否需要显示功能按钮 [Parameter] diff --git a/src/BootstrapBlazor/Components/Table/TableEditDrawerOption.cs b/src/BootstrapBlazor/Components/Table/TableEditDrawerOption.cs index 1e6c370b5d8..9880d3c5898 100644 --- a/src/BootstrapBlazor/Components/Table/TableEditDrawerOption.cs +++ b/src/BootstrapBlazor/Components/Table/TableEditDrawerOption.cs @@ -24,13 +24,13 @@ public TableEditDrawerOption() /// /// 获得/设置 组件是否采用 Tracking 模式对编辑项进行直接更新,默认为 false - /// Gets or sets whether to use Tracking mode to directly update edited items. Default is false. + /// Gets or sets whether to use Tracking mode to directly update edited items. Default is false /// public bool IsTracking { get; set; } /// /// 获得/设置 是否显示标签,默认为 true - /// Gets or sets whether to display label. Default is true. + /// Gets or sets whether to display label. Default is true /// public bool ShowLabel { get; set; } @@ -42,31 +42,31 @@ public TableEditDrawerOption() /// /// 获得/设置 每行显示组件数量,默认为 null - /// Gets or sets the number of components displayed per row. Default is null. + /// Gets or sets the number of components displayed per row. Default is null /// public int? ItemsPerRow { get; set; } /// /// 获得/设置 设置行内组件布局格式,默认为 Row 布局 - /// Gets or sets the layout format of inline components. Default is Row layout. + /// Gets or sets the layout format of inline components. Default is Row layout /// public RowType RowType { get; set; } /// /// 获得/设置 在 RowType Inline 模式下标签对齐方式,默认为 None(等效于 Left 左对齐) - /// Gets or sets the label alignment in RowType Inline mode. Default is None (equivalent to Left). + /// Gets or sets the label alignment in RowType Inline mode. Default is None (equivalent to Left) /// public Alignment LabelAlign { get; set; } /// /// 获得/设置 查询时是否显示正在加载中动画,默认为 false - /// Gets or sets whether to display loading animation when querying. Default is false. + /// Gets or sets whether to display loading animation when querying. Default is false /// public bool ShowLoading { get; set; } /// /// 获得/设置 未分组编辑项布局位置,默认为 false 在尾部 - /// Gets or sets the layout position of ungrouped edit items. Default is false (at the end). + /// Gets or sets the layout position of ungrouped edit items. Default is false (at the end) /// public bool ShowUnsetGroupItemsOnTop { get; set; } @@ -78,13 +78,13 @@ public TableEditDrawerOption() /// /// 获得/设置 是否禁用表单内回车自动提交功能,默认为 null 未设置 - /// Gets or sets whether to disable auto submit form by Enter key. Default is null. + /// Gets or sets whether to disable auto submit form by Enter key. Default is null /// public bool? DisableAutoSubmitFormByEnter { get; set; } /// /// 获得/设置 关闭按钮图标,默认为 null 使用当前主题图标 - /// Gets or sets close button icon. Default is null (use current theme icon). + /// Gets or sets close button icon. Default is null (use current theme icon) /// public string? CloseButtonIcon { get; set; } @@ -96,7 +96,7 @@ public TableEditDrawerOption() /// /// 获得/设置 保存按钮图标,默认为 null 使用当前主题图标 - /// Gets or sets save button icon. Default is null (use current theme icon). + /// Gets or sets save button icon. Default is null (use current theme icon) /// public string? SaveButtonIcon { get; set; } diff --git a/src/BootstrapBlazor/Components/Table/TableFooterCell.razor.cs b/src/BootstrapBlazor/Components/Table/TableFooterCell.razor.cs index b2e74de7f49..9283f1b688a 100644 --- a/src/BootstrapBlazor/Components/Table/TableFooterCell.razor.cs +++ b/src/BootstrapBlazor/Components/Table/TableFooterCell.razor.cs @@ -30,7 +30,7 @@ public partial class TableFooterCell /// /// 获得/设置 文字对齐方式,默认为 Alignment.None - /// Gets or sets text alignment. Default is Alignment.None. + /// Gets or sets text alignment. Default is Alignment.None /// [Parameter] public Alignment Align { get; set; } @@ -51,7 +51,7 @@ public partial class TableFooterCell /// /// 获得/设置 聚合方法枚举,默认 Sum - /// Gets or sets aggregate method enumeration. Default is Sum. + /// Gets or sets aggregate method enumeration. Default is Sum /// [Parameter] public AggregateType Aggregate { get; set; } @@ -65,14 +65,14 @@ public partial class TableFooterCell /// /// 获得/设置 统计列名称,默认为 null 不参与统计仅作为显示单元格 - /// Gets or sets aggregate column field name. Default is null (not included in statistics, just for display). + /// Gets or sets aggregate column field name. Default is null (not included in statistics, just for display) /// [Parameter] public string? Field { get; set; } /// /// 获得/设置 colspan 值,默认 null 自己手动设置值 - /// Gets or sets colspan value. Default is null (set manually). + /// Gets or sets colspan value. Default is null (set manually) /// [Parameter] public Func? ColspanCallback { get; set; } @@ -88,7 +88,7 @@ public partial class TableFooterCell /// /// 获得/设置 显示节点阈值,默认值 BreakPoint.None 未设置 - /// Gets or sets display breakpoint threshold. Default is BreakPoint.None (not set). + /// Gets or sets display breakpoint threshold. Default is BreakPoint.None (not set) /// [Parameter] public BreakPoint ShownWithBreakPoint { get; set; } diff --git a/src/BootstrapBlazor/Components/Table/TableSortItem.cs b/src/BootstrapBlazor/Components/Table/TableSortItem.cs index ebab5209200..47bfd309cbd 100644 --- a/src/BootstrapBlazor/Components/Table/TableSortItem.cs +++ b/src/BootstrapBlazor/Components/Table/TableSortItem.cs @@ -13,13 +13,13 @@ public class TableSortItem { /// /// 获得/设置 排序字段名称,默认为空字符串 - /// Gets or sets the sort field name. Default value is empty string. + /// Gets or sets the sort field name. Default value is empty string /// public string SortName { get; set; } = string.Empty; /// /// 获得/设置 排序顺序,默认为 SortOrder.Unset - /// Gets or sets the sort order. Default value is SortOrder.Unset. + /// Gets or sets the sort order. Default value is SortOrder.Unset /// public SortOrder SortOrder { get; set; } diff --git a/src/BootstrapBlazor/Components/Table/TableToolbar.razor.cs b/src/BootstrapBlazor/Components/Table/TableToolbar.razor.cs index a5c1bd9eafb..f7f82fc9811 100644 --- a/src/BootstrapBlazor/Components/Table/TableToolbar.razor.cs +++ b/src/BootstrapBlazor/Components/Table/TableToolbar.razor.cs @@ -37,14 +37,14 @@ public partial class TableToolbar : ComponentBase /// /// 获得/设置 是否自动收缩工具栏按钮,默认 true - /// Gets or sets whether to auto collapse toolbar buttons. Default is true. + /// Gets or sets whether to auto collapse toolbar buttons. Default is true /// [Parameter] public bool IsAutoCollapsedToolbarButton { get; set; } = true; /// /// 获得/设置 工具栏按钮收缩后是否继承原先按钮的颜色样式,默认 false - /// Gets or sets whether to inherit button color style when toolbar buttons collapsed. Default is false. + /// Gets or sets whether to inherit button color style when toolbar buttons collapsed. Default is false /// [Parameter] public bool ShowColorWhenToolbarButtonsCollapsed { get; set; } diff --git a/src/BootstrapBlazor/Components/Table/TableToolbarComponent.cs b/src/BootstrapBlazor/Components/Table/TableToolbarComponent.cs index 8c97df00570..5b93bdf1490 100644 --- a/src/BootstrapBlazor/Components/Table/TableToolbarComponent.cs +++ b/src/BootstrapBlazor/Components/Table/TableToolbarComponent.cs @@ -43,7 +43,7 @@ protected override void OnInitialized() /// /// 释放资源方法 - /// Method to release resources. + /// Method to release resources /// /// protected virtual void Dispose(bool disposing) diff --git a/src/BootstrapBlazor/Components/Table/TableToolbarPopConfirmButton.cs b/src/BootstrapBlazor/Components/Table/TableToolbarPopConfirmButton.cs index 879be6d5334..c334afac87b 100644 --- a/src/BootstrapBlazor/Components/Table/TableToolbarPopConfirmButton.cs +++ b/src/BootstrapBlazor/Components/Table/TableToolbarPopConfirmButton.cs @@ -23,14 +23,14 @@ public class TableToolbarPopConfirmButton : PopConfirmButtonBase, ITableT /// /// 获得/设置 是否显示,默认为 true 显示 - /// Gets or sets whether to display. Default is 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. + /// Gets or sets whether to enable button when one row is selected. Default is false /// [Parameter] public bool IsEnableWhenSelectedOneRow { get; set; } diff --git a/src/BootstrapBlazor/Components/Textarea/Textarea.razor.cs b/src/BootstrapBlazor/Components/Textarea/Textarea.razor.cs index 5a5c6239924..a5dca64efe6 100644 --- a/src/BootstrapBlazor/Components/Textarea/Textarea.razor.cs +++ b/src/BootstrapBlazor/Components/Textarea/Textarea.razor.cs @@ -31,14 +31,14 @@ public partial class Textarea /// /// 获得/设置 是否自动滚动,默认为 false - /// Gets or sets whether auto-scroll is enabled. Default is false. + /// Gets or sets whether auto-scroll is enabled. Default is false /// [Parameter] public bool IsAutoScroll { get; set; } /// /// 获得/设置 是否 Shift + Enter 替代默认 Enter 键行为,默认为 false - /// Gets or sets whether Shift + Enter replaces the default Enter key behavior. Default is false. + /// Gets or sets whether Shift + Enter replaces the default Enter key behavior. Default is false /// [Parameter] public bool UseShiftEnter { get; set; } diff --git a/src/BootstrapBlazor/Components/ThemeProvider/ThemeProvider.razor.cs b/src/BootstrapBlazor/Components/ThemeProvider/ThemeProvider.razor.cs index 20ee4ee5ae6..62f7fc7d889 100644 --- a/src/BootstrapBlazor/Components/ThemeProvider/ThemeProvider.razor.cs +++ b/src/BootstrapBlazor/Components/ThemeProvider/ThemeProvider.razor.cs @@ -15,63 +15,63 @@ public partial class ThemeProvider { /// /// 获得/设置 自动模式图标,默认 null - /// Gets or sets the auto mode icon. Default is null. + /// Gets or sets the auto mode icon. Default is null /// [Parameter] public string? AutoModeIcon { get; set; } /// /// 获得/设置 自动模式文本,默认 null 未设置使用本地化资源 - /// Gets or sets the auto mode text. Default is null (uses localized resource). + /// Gets or sets the auto mode text. Default is null (uses localized resource) /// [Parameter] public string? AutoModeText { get; set; } /// /// 获得/设置 暗黑模式图标,默认 null - /// Gets or sets the dark mode icon. Default is null. + /// Gets or sets the dark mode icon. Default is null /// [Parameter] public string? DarkModeIcon { get; set; } /// /// 获得/设置 暗黑模式文本,默认 null 未设置使用本地化资源 - /// Gets or sets the dark mode text. Default is null (uses localized resource). + /// Gets or sets the dark mode text. Default is null (uses localized resource) /// [Parameter] public string? DarkModeText { get; set; } /// /// 获得/设置 明亮模式图标,默认 null - /// Gets or sets the light mode icon. Default is null. + /// Gets or sets the light mode icon. Default is null /// [Parameter] public string? LightModeIcon { get; set; } /// /// 获得/设置 明亮模式文本,默认 null 未设置使用本地化资源 - /// Gets or sets the light mode text. Default is null (uses localized resource). + /// Gets or sets the light mode text. Default is null (uses localized resource) /// [Parameter] public string? LightModeText { get; set; } /// /// 获得/设置 当前选中模式图标,默认 null - /// Gets or sets the active mode icon. Default is null. + /// Gets or sets the active mode icon. Default is null /// [Parameter] public string? ActiveIcon { get; set; } /// /// 获得/设置 下拉框是否显示阴影效果,默认 true - /// Gets or sets whether the dropdown shows shadow. Default is true. + /// Gets or sets whether the dropdown shows shadow. Default is true /// [Parameter] public bool ShowShadow { get; set; } = true; /// /// 获得/设置 下拉框对齐方式,默认 Right - /// Gets or sets the dropdown alignment. Default is Right. + /// Gets or sets the dropdown alignment. Default is Right /// [Parameter] public Alignment Alignment { get; set; } = Alignment.Right; diff --git a/src/BootstrapBlazor/Components/TimePicker/TimePicker.razor.cs b/src/BootstrapBlazor/Components/TimePicker/TimePicker.razor.cs index 333658e748e..d658bc4f3e9 100644 --- a/src/BootstrapBlazor/Components/TimePicker/TimePicker.razor.cs +++ b/src/BootstrapBlazor/Components/TimePicker/TimePicker.razor.cs @@ -31,7 +31,7 @@ public partial class TimePicker /// /// 获得/设置 是否显示秒,默认为 true - /// Gets or sets whether to display seconds. Default is true. + /// Gets or sets whether to display seconds. Default is true /// [Parameter] [NotNull] diff --git a/src/BootstrapBlazor/Components/Timeline/Timeline.razor.cs b/src/BootstrapBlazor/Components/Timeline/Timeline.razor.cs index d8e31250ae3..364fa4a1b71 100644 --- a/src/BootstrapBlazor/Components/Timeline/Timeline.razor.cs +++ b/src/BootstrapBlazor/Components/Timeline/Timeline.razor.cs @@ -38,14 +38,14 @@ public partial class Timeline /// /// 获得/设置 是否左右交替出现,默认 false - /// Gets or sets whether items alternate left and right. Default is false. + /// Gets or sets whether items alternate left and right. Default is false /// [Parameter] public bool IsAlternate { get; set; } /// /// 获得/设置 内容是否出现在时间线左侧,默认为 false - /// Gets or sets whether content appears on the left side of the timeline. Default is false. + /// Gets or sets whether content appears on the left side of the timeline. Default is false /// [Parameter] public bool IsLeft { get; set; } diff --git a/src/BootstrapBlazor/Components/Timer/Timer.razor.cs b/src/BootstrapBlazor/Components/Timer/Timer.razor.cs index 12bd558046a..fa20dd7b854 100644 --- a/src/BootstrapBlazor/Components/Timer/Timer.razor.cs +++ b/src/BootstrapBlazor/Components/Timer/Timer.razor.cs @@ -71,7 +71,7 @@ public partial class Timer /// /// 获得/设置 进度条宽度,默认为 6 - /// Gets or sets the progress bar width. Default is 6. + /// Gets or sets the progress bar width. Default is 6 /// [Parameter] public override int StrokeWidth { get; set; } = 6; diff --git a/src/BootstrapBlazor/Components/Toast/ToastOption.cs b/src/BootstrapBlazor/Components/Toast/ToastOption.cs index 1feafd98b18..8c8ce1de3b7 100644 --- a/src/BootstrapBlazor/Components/Toast/ToastOption.cs +++ b/src/BootstrapBlazor/Components/Toast/ToastOption.cs @@ -61,37 +61,37 @@ public class ToastOption : PopupOptionBase /// /// 获得/设置 是否显示关闭按钮,默认 true - /// Gets or sets whether to show the close button. Default is true. + /// Gets or sets whether to show the close button. Default is true /// public bool ShowClose { get; set; } = true; /// /// 获得/设置 是否显示 Header,默认 true - /// Gets or sets whether to show the header. Default is true. + /// Gets or sets whether to show the header. Default is true /// public bool ShowHeader { get; set; } = true; /// /// 获得/设置 是否阻止重复消息,默认 false - /// Gets or sets whether to prevent duplicate messages. Default is false. + /// Gets or sets whether to prevent duplicate messages. Default is false /// public bool PreventDuplicates { get; set; } /// /// 获得/设置 Header 模板,默认为 null - /// Gets or sets the header template. Default is null. + /// Gets or sets the header template. Default is null /// public RenderFragment? HeaderTemplate { get; set; } /// /// 获得/设置 是否开启动画,默认 true - /// Gets or sets whether to enable animation. Default is true. + /// Gets or sets whether to enable animation. Default is true /// public bool Animation { get; set; } = true; /// /// 获得/设置 关闭当前 Toast 回调委托,默认 null - /// Gets or sets the callback delegate to close the current Toast. Default is null. + /// Gets or sets the callback delegate to close the current Toast. Default is null /// public Func? OnCloseAsync { get; set; } diff --git a/src/BootstrapBlazor/Components/Toggle/Toggle.razor.cs b/src/BootstrapBlazor/Components/Toggle/Toggle.razor.cs index 5d267c9bef7..90f95084cdd 100644 --- a/src/BootstrapBlazor/Components/Toggle/Toggle.razor.cs +++ b/src/BootstrapBlazor/Components/Toggle/Toggle.razor.cs @@ -28,7 +28,7 @@ public partial class Toggle /// /// 获得/设置 组件颜色,默认为 Success - /// Gets or sets the component color. Default is Success. + /// Gets or sets the component color. Default is Success /// [Parameter] public Color Color { get; set; } = Color.Success; diff --git a/src/BootstrapBlazor/Components/Toolbar/Toolbar.razor.cs b/src/BootstrapBlazor/Components/Toolbar/Toolbar.razor.cs index 463cb3a2414..04ff49d7fe1 100644 --- a/src/BootstrapBlazor/Components/Toolbar/Toolbar.razor.cs +++ b/src/BootstrapBlazor/Components/Toolbar/Toolbar.razor.cs @@ -13,7 +13,7 @@ public partial class Toolbar { /// /// 获得/设置 是否允许换行显示工具栏内容,默认 false - /// Gets or sets whether to allow toolbar content wrapping. Default is false. + /// Gets or sets whether to allow toolbar content wrapping. Default is false /// [Parameter] public bool IsWrap { get; set; } diff --git a/src/BootstrapBlazor/Components/Tooltip/ITooltip.cs b/src/BootstrapBlazor/Components/Tooltip/ITooltip.cs index 90f13ce28e6..77f3d2019f9 100644 --- a/src/BootstrapBlazor/Components/Tooltip/ITooltip.cs +++ b/src/BootstrapBlazor/Components/Tooltip/ITooltip.cs @@ -25,34 +25,34 @@ public interface ITooltip /// /// 获得/设置 内容是否为 Html,默认 false - /// Gets or sets whether the content is HTML. Default is false. + /// Gets or sets whether the content is HTML. Default is false /// bool IsHtml { get; set; } /// /// 获得/设置 触发方式,可组合 click focus hover manual,默认为 focus hover - /// Gets or sets the trigger method. Can be combined: click, focus, hover, manual. Default is focus hover. + /// Gets or sets the trigger method. Can be combined: click, focus, hover, manual. Default is focus hover /// /// 设置 manual 时,请使用 组件实例方法 对弹窗状态进行控制 string? Trigger { get; set; } /// /// 获得/设置 自定义样式,默认 null - /// Gets or sets the custom style. Default is null. + /// Gets or sets the custom style. Default is null /// /// 由 data-bs-custom-class 实现 string? CustomClass { get; set; } /// /// 获得/设置 显示隐藏延时,默认 null - /// Gets or sets the show/hide delay. Default is null. + /// Gets or sets the show/hide delay. Default is null /// /// Delay showing and hiding the tooltip (ms)—doesn't apply to manual trigger type. If a number is supplied, delay is applied to both hide/show. Object structure is: delay: { "show": 500, "hide": 100 }. string? Delay { get; set; } /// /// 获得/设置 是否对 Title 进行关键字过滤,默认 true - /// Gets or sets whether to filter the Title by keyword. Default is true. + /// Gets or sets whether to filter the Title by keyword. Default is true /// bool Sanitize { get; set; } diff --git a/src/BootstrapBlazor/Components/Tooltip/Tooltip.razor.cs b/src/BootstrapBlazor/Components/Tooltip/Tooltip.razor.cs index e7927a74f99..3b231f3e97c 100644 --- a/src/BootstrapBlazor/Components/Tooltip/Tooltip.razor.cs +++ b/src/BootstrapBlazor/Components/Tooltip/Tooltip.razor.cs @@ -59,7 +59,7 @@ public partial class Tooltip : ITooltip /// /// 获得/设置 获取显示内容的异步回调方法,默认 null - /// Gets or sets the callback method to get display content asynchronously. Default is null. + /// Gets or sets the callback method to get display content asynchronously. Default is null /// [Parameter] public Func>? GetTitleCallback { get; set; } @@ -84,14 +84,14 @@ public partial class Tooltip : ITooltip /// /// 获得/设置 位置,默认为 null - /// Gets or sets the placement. Default is null. + /// Gets or sets the placement. Default is null /// [Parameter] public string[]? FallbackPlacements { get; set; } /// /// 获得/设置 偏移量,默认为 null - /// Gets or sets the offset. Default is null. + /// Gets or sets the offset. Default is null /// [Parameter] public string? Offset { get; set; } @@ -161,20 +161,20 @@ public void SetParameters(string title, Placement placement = Placement.Auto, st /// 显示 Tooltip 弹窗方法 /// Shows the Tooltip popup /// - /// 延时指定毫秒后显示弹窗,默认 null 不延时Delay showing the popup for specified milliseconds. Default is null (no delay). + /// 延时指定毫秒后显示弹窗,默认 null 不延时Delay showing the popup for specified milliseconds. Default is null (no delay) public Task Show(int? delay = null) => InvokeVoidAsync("show", Id, delay); /// /// 关闭 Tooltip 弹窗方法 /// Hides the Tooltip popup /// - /// 延时指定毫秒后关闭弹窗,默认 null 不延时Delay hiding the popup for specified milliseconds. Default is null (no delay). + /// 延时指定毫秒后关闭弹窗,默认 null 不延时Delay hiding the popup for specified milliseconds. Default is null (no delay) public Task Hide(int? delay = null) => InvokeVoidAsync("hide", Id, delay); /// /// 切换 Tooltip 弹窗当前状态方法 /// Toggles the Tooltip popup state /// - /// 延时指定毫秒后切换弹窗状态,默认 null 不延时Delay toggling the popup state for specified milliseconds. Default is null (no delay). + /// 延时指定毫秒后切换弹窗状态,默认 null 不延时Delay toggling the popup state for specified milliseconds. Default is null (no delay) public Task Toggle(int? delay = null) => InvokeVoidAsync("toggle", Id, delay); } diff --git a/src/BootstrapBlazor/Components/Tooltip/TooltipWrapperBase.cs b/src/BootstrapBlazor/Components/Tooltip/TooltipWrapperBase.cs index 997863587fe..62ce96cb4cf 100644 --- a/src/BootstrapBlazor/Components/Tooltip/TooltipWrapperBase.cs +++ b/src/BootstrapBlazor/Components/Tooltip/TooltipWrapperBase.cs @@ -32,21 +32,21 @@ public abstract class TooltipWrapperBase : BootstrapModuleComponentBase /// /// 获得/设置 Tooltip 显示文字,默认为 null - /// Gets or sets the Tooltip display text. Default is null. + /// Gets or sets the Tooltip display text. Default is null /// [Parameter] public string? TooltipText { get; set; } /// /// 获得/设置 Tooltip 显示位置,默认为 Top - /// Gets or sets the Tooltip display position. Default is Top. + /// Gets or sets the Tooltip display position. Default is Top /// [Parameter] public Placement TooltipPlacement { get; set; } = Placement.Top; /// /// 获得/设置 Tooltip 触发方式,默认为 hover focus - /// Gets or sets the Tooltip trigger method. Default is hover focus. + /// Gets or sets the Tooltip trigger method. Default is hover focus /// [Parameter] [NotNull] diff --git a/src/BootstrapBlazor/Components/Transfer/Transfer.razor.cs b/src/BootstrapBlazor/Components/Transfer/Transfer.razor.cs index 173f822bd4a..5c01fa8c2f8 100644 --- a/src/BootstrapBlazor/Components/Transfer/Transfer.razor.cs +++ b/src/BootstrapBlazor/Components/Transfer/Transfer.razor.cs @@ -149,7 +149,7 @@ public partial class Transfer /// /// 获得/设置 右侧面板包含的最大数量,默认为 0 不限制 - /// Gets or sets the maximum number of items in the right panel. Default is 0 (no limit). + /// Gets or sets the maximum number of items in the right panel. Default is 0 (no limit) /// [Parameter] public int Max { get; set; } @@ -164,7 +164,7 @@ public partial class Transfer /// /// 获得/设置 右侧面板包含的最小数量,默认为 0 不限制 - /// Gets or sets the minimum number of items in the right panel. Default is 0 (no limit). + /// Gets or sets the minimum number of items in the right panel. Default is 0 (no limit) /// [Parameter] public int Min { get; set; } @@ -179,7 +179,7 @@ public partial class Transfer /// /// 获得/设置 数据样式回调方法,默认为 null - /// Gets or sets the data style callback method. Default is null. + /// Gets or sets the data style callback method. Default is null /// [Parameter] [NotNull] diff --git a/src/BootstrapBlazor/Components/Transfer/TransferPanel.razor.cs b/src/BootstrapBlazor/Components/Transfer/TransferPanel.razor.cs index 2fe681b0ccf..3f82fcecaa5 100644 --- a/src/BootstrapBlazor/Components/Transfer/TransferPanel.razor.cs +++ b/src/BootstrapBlazor/Components/Transfer/TransferPanel.razor.cs @@ -65,7 +65,7 @@ public partial class TransferPanel /// /// 获得/设置 数据样式回调方法,默认为 null - /// Gets or sets the data style callback method. Default is null. + /// Gets or sets the data style callback method. Default is null /// [Parameter] public Func? OnSetItemClass { get; set; } @@ -109,7 +109,7 @@ public partial class TransferPanel /// /// 获得/设置 是否禁用,默认为 false - /// Gets or sets whether to disable. Default is false. + /// Gets or sets whether to disable. Default is false /// [Parameter] public bool IsDisabled { get; set; } diff --git a/src/BootstrapBlazor/Components/Transition/Transition.razor.cs b/src/BootstrapBlazor/Components/Transition/Transition.razor.cs index 869820f87ad..17e47fec172 100644 --- a/src/BootstrapBlazor/Components/Transition/Transition.razor.cs +++ b/src/BootstrapBlazor/Components/Transition/Transition.razor.cs @@ -23,21 +23,21 @@ public partial class Transition /// /// 获得/设置 是否显示动画,默认 true - /// Gets or sets whether to display the animation. Default is true. + /// Gets or sets whether to display the animation. Default is true /// [Parameter] public bool Show { get; set; } = true; /// /// 获得/设置 动画名称,默认 FadeIn - /// Gets or sets the animation name. Default is FadeIn. + /// Gets or sets the animation name. Default is FadeIn /// [Parameter] public TransitionType TransitionType { get; set; } = TransitionType.FadeIn; /// /// 获得/设置 动画执行时长,单位毫秒,默认为 0 - /// Gets or sets the animation execution duration in milliseconds. Default is 0. + /// Gets or sets the animation execution duration in milliseconds. Default is 0 /// [Parameter] public int Duration { get; set; } diff --git a/src/BootstrapBlazor/Components/TreeView/TreeView.razor.cs b/src/BootstrapBlazor/Components/TreeView/TreeView.razor.cs index 44e71f2ae13..fc53cea7ac3 100644 --- a/src/BootstrapBlazor/Components/TreeView/TreeView.razor.cs +++ b/src/BootstrapBlazor/Components/TreeView/TreeView.razor.cs @@ -26,7 +26,7 @@ public partial class TreeView : IModelEqualityComparer /// /// 获得/设置 是否显示加载动画,默认为 false - /// Gets or sets whether to show the loading animation. Default is false. + /// Gets or sets whether to show the loading animation. Default is false /// [Obsolete("Deprecated. Please remove it.")] [ExcludeFromCodeCoverage] @@ -34,98 +34,98 @@ public partial class TreeView : IModelEqualityComparer /// /// 获得/设置 是否显示树视图项的工具栏,默认为 false - /// Gets or sets whether to show the toolbar of tree view item. Default is false. + /// Gets or sets whether to show the toolbar of tree view item. Default is false /// [Parameter] public bool ShowToolbar { get; set; } /// /// 获得/设置 确定是否显示树视图项工具栏的回调方法 - /// Gets or sets the callback method that determines whether to show the toolbar of the tree view item. + /// Gets or sets the callback method that determines whether to show the toolbar of the tree view item /// [Parameter] public Func, Task>? ShowToolbarCallback { get; set; } /// /// 获得/设置 整个组件是否被禁用,默认为 false - /// Gets or sets whether the entire component is disabled. Default is false. + /// Gets or sets whether the entire component is disabled. Default is false /// [Parameter] public bool IsDisabled { get; set; } /// /// 获得/设置 组件被禁用时,节点是否可以展开或折叠,默认为 false - /// Gets or sets whether nodes can be expanded or collapsed when the component is disabled. Default is false. + /// Gets or sets whether nodes can be expanded or collapsed when the component is disabled. Default is false /// [Parameter] public bool CanExpandWhenDisabled { get; set; } /// - /// 获得/设置 树视图是否具有手风琴行为,默认为 false。虚拟滚动模式不支持手风琴行为。 - /// Gets or sets whether the tree view has accordion behavior. Default is false. Accordion behavior is not supported in virtual scrolling mode. + /// 获得/设置 树视图是否具有手风琴行为,默认为 false。虚拟滚动模式不支持手风琴行为 + /// Gets or sets whether the tree view has accordion behavior. Default is false. Accordion behavior is not supported in virtual scrolling mode /// [Parameter] public bool IsAccordion { get; set; } /// /// 获得/设置 点击节点是否展开或折叠其子节点,默认为 false - /// Gets or sets whether clicking a node expands or collapses its children. Default is false. + /// Gets or sets whether clicking a node expands or collapses its children. Default is false /// [Parameter] public bool ClickToggleNode { get; set; } /// - /// 获得/设置 点击节点是否切换其复选框状态,默认为 false。仅在 ShowCheckbox 为 true 时有效。 - /// Gets or sets whether clicking a node toggles its checkbox state. Default is false. Effective when ShowCheckbox is true. + /// 获得/设置 点击节点是否切换其复选框状态,默认为 false。仅在 ShowCheckbox 为 true 时有效 + /// Gets or sets whether clicking a node toggles its checkbox state. Default is false. Effective when ShowCheckbox is true /// [Parameter] public bool ClickToggleCheck { get; set; } /// /// 获得/设置 是否显示加载骨架,默认为 false - /// Gets or sets whether to show the loading skeleton. Default is false. + /// Gets or sets whether to show the loading skeleton. Default is false /// [Parameter] public bool ShowSkeleton { get; set; } /// /// 获得/设置 是否显示搜索栏,默认为 false - /// Gets or sets whether to show the search bar. Default is false. + /// Gets or sets whether to show the search bar. Default is false /// [Parameter] public bool ShowSearch { get; set; } /// /// 获得/设置 是否显示重置搜索按钮,默认为 true - /// Gets or sets whether to show the reset search button. Default is true. + /// Gets or sets whether to show the reset search button. Default is true /// [Parameter] public bool ShowResetSearchButton { get; set; } = true; /// /// 获得/设置 搜索栏模板,默认为 null - /// Gets or sets the search bar template. Default is null. + /// Gets or sets the search bar template. Default is null /// [Parameter] public RenderFragment? SearchTemplate { get; set; } /// /// 获得/设置 搜索图标,默认未设置,使用内置主题图标 - /// Gets or sets the search icon. Default is not set, using the built-in theme icon. + /// Gets or sets the search icon. Default is not set, using the built-in theme icon /// [Parameter] public string? SearchIcon { get; set; } /// /// 获得/设置 清除搜索图标,默认未设置,使用内置主题图标 - /// Gets or sets the clear search icon. Default is not set, using the built-in theme icon. + /// Gets or sets the clear search icon. Default is not set, using the built-in theme icon /// [Parameter] public string? ClearSearchIcon { get; set; } /// /// 获得/设置 搜索回调方法,默认为 null - /// Gets or sets the search callback method. Default is null. + /// Gets or sets the search callback method. Default is null /// /// Enabled by setting to true. [Parameter] @@ -133,7 +133,7 @@ public partial class TreeView : IModelEqualityComparer /// /// 获得/设置 分层数据集合 - /// Gets or sets the hierarchical data collection. + /// Gets or sets the hierarchical data collection /// [Parameter] [NotNull] @@ -141,56 +141,56 @@ public partial class TreeView : IModelEqualityComparer /// /// 获得/设置 是否显示复选框,默认为 false - /// Gets or sets whether to show checkboxes. Default is false. + /// Gets or sets whether to show checkboxes. Default is false /// [Parameter] public bool ShowCheckbox { get; set; } /// /// 获得/设置 最多选中项数 - /// Gets or sets the maximum number of selected items. + /// Gets or sets the maximum number of selected items /// [Parameter] public int MaxSelectedCount { get; set; } /// /// 获得/设置 超过最多选中项数时的回调方法 - /// Gets or sets the callback method when the maximum number of selected items is exceeded. + /// Gets or sets the callback method when the maximum number of selected items is exceeded /// [Parameter] public Func? OnMaxSelectedCountExceed { get; set; } /// /// 获得/设置 是否显示图标,默认为 false - /// Gets or sets whether to show icons. Default is false. + /// Gets or sets whether to show icons. Default is false /// [Parameter] public bool ShowIcon { get; set; } /// /// 获得/设置 树项被点击时的回调方法 - /// Gets or sets the callback method when a tree item is clicked. + /// Gets or sets the callback method when a tree item is clicked /// [Parameter] public Func, Task>? OnTreeItemClick { get; set; } /// /// 获得/设置 点击节点前的回调方法 - /// Gets or sets the callback method before a tree item is clicked. + /// Gets or sets the callback method before a tree item is clicked /// [Parameter] public Func, Task>? OnBeforeTreeItemClick { get; set; } /// /// 获得/设置 树项被选中时的回调方法 - /// Gets or sets the callback method when a tree item is checked. + /// Gets or sets the callback method when a tree item is checked /// [Parameter] public Func>, Task>? OnTreeItemChecked { get; set; } /// /// 获得/设置 节点展开时获取子数据的回调方法 - /// Gets or sets the callback method to get child data when a node is expanded. + /// Gets or sets the callback method to get child data when a node is expanded /// [Parameter] public Func, Task>>>? OnExpandNodeAsync { get; set; } @@ -209,59 +209,59 @@ public partial class TreeView : IModelEqualityComparer /// /// 获得/设置 树节点的加载图标 - /// Gets or sets the loading icon for tree nodes. + /// Gets or sets the loading icon for tree nodes /// [Parameter] public string? LoadingIcon { get; set; } /// /// 获得/设置 树节点的图标 - /// Gets or sets the icon for tree nodes. + /// Gets or sets the icon for tree nodes /// [Parameter] public string? NodeIcon { get; set; } /// /// 获得/设置 展开状态的树节点图标 - /// Gets or sets the icon for expanded tree nodes. + /// Gets or sets the icon for expanded tree nodes /// [Parameter] public string? ExpandNodeIcon { get; set; } /// - /// 获得/设置 是否启用键盘导航,默认为 false。 ArrowLeft 收缩节点。 - /// ArrowRight 展开节点。 - /// ArrowUp 移动到上一个节点。 - /// ArrowDown 移动到下一个节点。 - /// Space 选择当前节点。 + /// 获得/设置 是否启用键盘导航,默认为 false。 ArrowLeft 收缩节点 + /// ArrowRight 展开节点 + /// ArrowUp 移动到上一个节点 + /// ArrowDown 移动到下一个节点 + /// Space 选择当前节点 /// - /// Gets or sets whether to enable keyboard navigation. Default is false. ArrowLeft collapses the node. - /// ArrowRight expands the node. - /// ArrowUp moves to the previous node. - /// ArrowDown moves to the next node. - /// Space selects the current node. + /// Gets or sets whether to enable keyboard navigation. Default is false. ArrowLeft collapses the node + /// ArrowRight expands the node + /// ArrowUp moves to the previous node + /// ArrowDown moves to the next node + /// Space selects the current node /// /// [Parameter] public bool EnableKeyboard { get; set; } /// - /// 获得/设置 键盘导航时的滚动至视图选项,默认为 null,使用 { behavior: "smooth", block: "nearest", inline: "start" }。 - /// Gets or sets the scroll into view options for keyboard navigation. Default is null, using { behavior: "smooth", block: "nearest", inline: "start" }. + /// 获得/设置 键盘导航时的滚动至视图选项,默认为 null,使用 { behavior: "smooth", block: "nearest", inline: "start" } + /// Gets or sets the scroll into view options for keyboard navigation. Default is null, using { behavior: "smooth", block: "nearest", inline: "start" } /// [Parameter] public ScrollIntoViewOptions? ScrollIntoViewOptions { get; set; } /// /// 获得/设置 是否启用虚拟滚动,默认为 false - /// Gets or sets whether to enable virtual scrolling. Default is false. + /// Gets or sets whether to enable virtual scrolling. Default is false /// [Parameter] public bool IsVirtualize { get; set; } /// /// 获得/设置 虚拟滚动时的行高,默认为 29f - /// Gets or sets the row height for virtual scrolling. Default is 29f. + /// Gets or sets the row height for virtual scrolling. Default is 29f /// /// Effective when is set to true. [Parameter] @@ -269,7 +269,7 @@ public partial class TreeView : IModelEqualityComparer /// /// 获得/设置 虚拟滚动时的超扫描计数,默认为 10 - /// Gets or sets the overscan count for virtual scrolling. Default is 10. + /// Gets or sets the overscan count for virtual scrolling. Default is 10 /// /// Effective when is set to true. [Parameter] @@ -277,42 +277,42 @@ public partial class TreeView : IModelEqualityComparer /// /// 获得/设置 工具栏内容模板,默认为 null - /// Gets or sets the toolbar content template. Default is null. + /// Gets or sets the toolbar content template. Default is null /// [Parameter] public RenderFragment? ToolbarTemplate { get; set; } /// /// 获得/设置 弹出窗口标题,默认为 null - /// Gets or sets the title of the popup-window. Default is null. + /// Gets or sets the title of the popup-window. Default is null /// [Parameter] public string? ToolbarEditTitle { get; set; } /// /// 获得/设置 弹出窗口标签文本,默认为 null - /// Gets or sets the title of the popup-window. Default is null. + /// Gets or sets the title of the popup-window. Default is null /// [Parameter] public string? ToolbarEditLabelText { get; set; } /// - /// 获得/设置 更新树文本值的回调,默认为 null. 如果返回 true 则更新树文本值,否则不更新。 - /// Gets or sets the update the tree text value callback. Default is null. If return true will update the tree text value, otherwise will not update. + /// 获得/设置 更新树文本值的回调,默认为 null. 如果返回 true 则更新树文本值,否则不更新 + /// Gets or sets the update the tree text value callback. Default is null. If return true will update the tree text value, otherwise will not update /// [Parameter] public Func>? OnUpdateCallbackAsync { get; set; } /// /// 获得/设置 节点状态变化时是否自动更新子节点,默认为 false - /// Gets or sets whether to automatically update child nodes when the node state changes. Default is false. + /// Gets or sets whether to automatically update child nodes when the node state changes. Default is false /// [Parameter] public bool AutoCheckChildren { get; set; } /// /// 获得/设置 节点状态变化时是否自动更新父节点,默认为 false - /// Gets or sets whether to automatically update parent nodes when the node state changes. Default is false. + /// Gets or sets whether to automatically update parent nodes when the node state changes. Default is false /// [Parameter] public bool AutoCheckParent { get; set; } @@ -477,8 +477,8 @@ public async ValueTask TriggerKeyDown(string key) } /// - /// Triggers the end of a drag-and-drop operation within the tree view. - /// Triggers the end of a drag-and-drop operation within the tree view. + /// Triggers the end of a drag-and-drop operation within the tree view + /// Triggers the end of a drag-and-drop operation within the tree view /// /// This method is invoked via JavaScript interop to signal the completion of a drag-and-drop /// action. If a handler is assigned to , it will be invoked with the drag diff --git a/src/BootstrapBlazor/Components/TreeView/TreeViewItem.cs b/src/BootstrapBlazor/Components/TreeView/TreeViewItem.cs index 1f1e03eed8b..b63f317dbd0 100644 --- a/src/BootstrapBlazor/Components/TreeView/TreeViewItem.cs +++ b/src/BootstrapBlazor/Components/TreeView/TreeViewItem.cs @@ -22,7 +22,7 @@ public TreeViewItem([DisallowNull] TItem item) /// /// 获得/设置 是否显示正在加载动画,默认为 false - /// Gets or sets whether to display the loading animation. Default is false. + /// Gets or sets whether to display the loading animation. Default is false /// [Obsolete("已弃用(Deprecated)")] [ExcludeFromCodeCoverage] diff --git a/src/BootstrapBlazor/Components/TreeView/TreeViewRow.razor.cs b/src/BootstrapBlazor/Components/TreeView/TreeViewRow.razor.cs index 17904c4ef4e..faad5d50409 100644 --- a/src/BootstrapBlazor/Components/TreeView/TreeViewRow.razor.cs +++ b/src/BootstrapBlazor/Components/TreeView/TreeViewRow.razor.cs @@ -15,147 +15,147 @@ public partial class TreeViewRow { /// /// 获得/设置 节点是否为活跃状态,默认为 false - /// Gets or sets whether the node is active. Default is false. + /// Gets or sets whether the node is active. Default is false /// [Parameter] public bool IsActive { get; set; } /// /// 获得/设置 节点索引,默认为 0 - /// Gets or sets the node index. Default is 0. + /// Gets or sets the node index. Default is 0 /// [Parameter] public int Index { get; set; } /// /// 获得/设置 树节点项,默认为 null - /// Gets or sets the tree node item. Default is null. + /// Gets or sets the tree node item. Default is null /// [Parameter, NotNull] public TreeViewItem? Item { get; set; } /// /// 获得/设置 树节点的加载图标 - /// Gets or sets the loading icon for tree nodes. + /// Gets or sets the loading icon for tree nodes /// [Parameter] public string? LoadingIcon { get; set; } /// /// 获得/设置 树节点的图标 - /// Gets or sets the icon for tree nodes. + /// Gets or sets the icon for tree nodes /// [Parameter] public string? NodeIcon { get; set; } /// /// 获得/设置 展开的树节点的图标 - /// Gets or sets the icon for expanded tree nodes. + /// Gets or sets the icon for expanded tree nodes /// [Parameter] public string? ExpandNodeIcon { get; set; } /// /// 获得/设置 整个组件是否被禁用,默认为 false - /// Gets or sets whether the entire component is disabled. Default is false. + /// Gets or sets whether the entire component is disabled. Default is false /// [Parameter] public bool IsDisabled { get; set; } /// /// 获得/设置 是否显示复选框,默认为 false - /// Gets or sets whether to show checkboxes. Default is false. + /// Gets or sets whether to show checkboxes. Default is false /// [Parameter] public bool ShowCheckbox { get; set; } /// /// 获得/设置 组件被禁用时,节点是否可以展开或折叠,默认为 false - /// Gets or sets whether nodes can be expanded or collapsed when the component is disabled. Default is false. + /// Gets or sets whether nodes can be expanded or collapsed when the component is disabled. Default is false /// [Parameter] public bool CanExpandWhenDisabled { get; set; } /// /// 获得/设置 节点切换事件回调 - /// Gets or sets the node click event callback. + /// Gets or sets the node click event callback /// [Parameter] public Func, Task>? OnToggleNodeAsync { get; set; } /// /// 获得/设置 节点复选框状态变化事件回调 - /// Gets or sets the node checkbox state change event callback. + /// Gets or sets the node checkbox state change event callback /// [Parameter] public Func, CheckboxState, Task>? OnCheckStateChanged { get; set; } /// /// 获得/设置 可选中的最大节点数 - /// Gets or sets the maximum number of selected items. + /// Gets or sets the maximum number of selected items /// [Parameter] public int MaxSelectedCount { get; set; } /// /// 获得/设置 在节点状态改变前被调用的回调 - /// Gets or sets the callback that is invoked before the node state changes. + /// Gets or sets the callback that is invoked before the node state changes /// [Parameter] public Func, CheckboxState, Task>? OnBeforeStateChangedCallback { get; set; } /// /// 获得/设置 是否显示图标,默认为 false - /// Gets or sets whether to show icons. Default is false. + /// Gets or sets whether to show icons. Default is false /// [Parameter] public bool ShowIcon { get; set; } /// /// 获得/设置 点击事件回调,默认为 null - /// Gets or sets the click event callback. Default is null. + /// Gets or sets the click event callback. Default is null /// [Parameter] public Func, Task>? OnClick { get; set; } /// /// 获得/设置 是否显示工具栏,默认为 false - /// Gets or sets whether show the toolbar of tree view item. Default is false. + /// Gets or sets whether show the toolbar of tree view item. Default is false /// [Parameter] public bool ShowToolbar { get; set; } /// /// 获得/设置 决定是否显示工具栏的回调 - /// A callback method that determines whether to show the toolbar of the tree view item. + /// A callback method that determines whether to show the toolbar of the tree view item /// [Parameter] public Func, Task>? ShowToolbarCallback { get; set; } /// /// 获得/设置 弹出窗口的标题 - /// Gets or sets the title of the popup-window. Default is null. + /// Gets or sets the title of the popup-window. Default is null /// [Parameter] public string? ToolbarEditTitle { get; set; } /// /// 获得/设置 弹出窗口的标题 - /// Gets or sets the title of the popup-window. Default is null. + /// Gets or sets the title of the popup-window. Default is null /// [Parameter] public string? ToolbarEditLabelText { get; set; } /// /// 获得/设置 工具栏内容模板 - /// Gets or sets the toolbar content template. Default is null. + /// Gets or sets the toolbar content template. Default is null /// [Parameter] public RenderFragment? ToolbarTemplate { get; set; } /// /// 获得/设置 更新树节点文本值的回调 - /// Gets or sets the update the tree text value callback. Default is null. If return true will update the tree text value, otherwise will not update. + /// Gets or sets the update the tree text value callback. Default is null. If return true will update the tree text value, otherwise will not update /// /// [Parameter] diff --git a/src/BootstrapBlazor/Components/TreeView/TreeViewToolbarEditButton.razor.cs b/src/BootstrapBlazor/Components/TreeView/TreeViewToolbarEditButton.razor.cs index d67d887b331..50d89a4ed9a 100644 --- a/src/BootstrapBlazor/Components/TreeView/TreeViewToolbarEditButton.razor.cs +++ b/src/BootstrapBlazor/Components/TreeView/TreeViewToolbarEditButton.razor.cs @@ -14,42 +14,42 @@ public partial class TreeViewToolbarEditButton : ComponentBase { /// /// 获得/设置 树视图项,默认为 null - /// Gets or sets the tree view item. Default is null. + /// Gets or sets the tree view item. Default is null /// [Parameter, NotNull] public TreeViewItem? Item { get; set; } /// /// 获得/设置 项更改事件回调 - /// Gets or sets the item changed event callback. + /// Gets or sets the item changed event callback /// [Parameter] public EventCallback> ItemChanged { get; set; } /// - /// 获得/设置 更新树文本值的回调方法,默认为 null。如果返回 true 将更新树文本值,否则不更新。 - /// Gets or sets the callback method to update the tree text value. Default is null. If it returns true, the tree text value will be updated; otherwise, it will not be updated. + /// 获得/设置 更新树文本值的回调方法,默认为 null。如果返回 true 将更新树文本值,否则不更新 + /// Gets or sets the callback method to update the tree text value. Default is null. If it returns true, the tree text value will be updated; otherwise, it will not be updated /// [Parameter] public Func>? OnUpdateCallbackAsync { get; set; } /// /// 获得/设置 弹出窗口的标题,默认为 null - /// Gets or sets the title of the popup window. Default is null. + /// Gets or sets the title of the popup window. Default is null /// [Parameter] public string? Title { get; set; } /// /// 获得/设置 弹出窗口标签的文本,默认为 null - /// Gets or sets the text of the popup window label. Default is null. + /// Gets or sets the text of the popup window label. Default is null /// [Parameter] public string? Text { get; set; } /// /// 获得/设置 编辑按钮的图标,默认为 null - /// Gets or sets the icon of the edit button. Default is null. + /// Gets or sets the icon of the edit button. Default is null /// [Parameter] public string? Icon { get; set; } diff --git a/src/BootstrapBlazor/Components/Typed/Typed.razor.cs b/src/BootstrapBlazor/Components/Typed/Typed.razor.cs index 2facd8c9b56..3d740cfb0ae 100644 --- a/src/BootstrapBlazor/Components/Typed/Typed.razor.cs +++ b/src/BootstrapBlazor/Components/Typed/Typed.razor.cs @@ -13,21 +13,21 @@ public partial class Typed { /// /// 获得/设置 组件显示文字,默认 null - /// Gets or sets the component display text. Default is null. + /// Gets or sets the component display text. Default is null /// [Parameter] public string? Text { get; set; } /// /// 获得/设置 组件配置实例,默认 null - /// Gets or sets the component configuration instance. Default is null. + /// Gets or sets the component configuration instance. Default is null /// [Parameter] public TypedOptions? Options { get; set; } /// /// 获得/设置 打字结束回调方法,默认 null - /// Gets or sets the callback method when typing is complete. Default is null. + /// Gets or sets the callback method when typing is complete. Default is null /// [Parameter] public Func? OnCompleteAsync { get; set; } diff --git a/src/BootstrapBlazor/Components/Typed/TypedOptions.cs b/src/BootstrapBlazor/Components/Typed/TypedOptions.cs index 0166a423e99..e89c3dfd029 100644 --- a/src/BootstrapBlazor/Components/Typed/TypedOptions.cs +++ b/src/BootstrapBlazor/Components/Typed/TypedOptions.cs @@ -23,7 +23,7 @@ public class TypedOptions : IEquatable /// /// 获得/设置 打字速度,默认 null 未设置,单位毫秒 - /// Gets or sets the typing speed. Default is null, in milliseconds. + /// Gets or sets the typing speed. Default is null, in milliseconds /// [JsonPropertyName("typeSpeed")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] @@ -31,7 +31,7 @@ public class TypedOptions : IEquatable /// /// 获得/设置 退格速度,默认 null 未设置,单位毫秒 - /// Gets or sets the backspace speed. Default is null, in milliseconds. + /// Gets or sets the backspace speed. Default is null, in milliseconds /// [JsonPropertyName("backSpeed")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] @@ -39,7 +39,7 @@ public class TypedOptions : IEquatable /// /// 获得/设置 smartBackspace,仅退格与前一个字符串不匹配的内容,默认 true - /// Gets or sets smartBackspace. Only backspace what doesn't match the previous string. Default is true. + /// Gets or sets smartBackspace. Only backspace what doesn't match the previous string. Default is true /// [JsonPropertyName("smartBackspace")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] @@ -47,7 +47,7 @@ public class TypedOptions : IEquatable /// /// 获得/设置 是否打乱字符串顺序,默认 false - /// Gets or sets whether to shuffle the strings. Default is false. + /// Gets or sets whether to shuffle the strings. Default is false /// [JsonPropertyName("shuffle")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] @@ -55,7 +55,7 @@ public class TypedOptions : IEquatable /// /// 获得/设置 退格前的延迟时间,默认 700 毫秒 - /// Gets or sets the delay time before backspacing in milliseconds. Default is 700. + /// Gets or sets the delay time before backspacing in milliseconds. Default is 700 /// [JsonPropertyName("backDelay")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] @@ -63,7 +63,7 @@ public class TypedOptions : IEquatable /// /// 获得/设置 是否循环打字,默认 false - /// Gets or sets whether to loop typing. Default is false. + /// Gets or sets whether to loop typing. Default is false /// [JsonPropertyName("loop")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] @@ -71,7 +71,7 @@ public class TypedOptions : IEquatable /// /// 获得/设置 循环次数,默认无限 - /// Gets or sets the amount of loops. Default is Infinity. + /// Gets or sets the amount of loops. Default is Infinity /// [JsonPropertyName("loopCount")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] @@ -79,7 +79,7 @@ public class TypedOptions : IEquatable /// /// 获得/设置 是否显示光标,默认 true - /// Gets or sets whether to show the cursor. Default is true. + /// Gets or sets whether to show the cursor. Default is true /// [JsonPropertyName("showCursor")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] @@ -87,7 +87,7 @@ public class TypedOptions : IEquatable /// /// 获得/设置 光标字符,默认 | - /// Gets or sets the cursor character. Default is |. + /// Gets or sets the cursor character. Default is | /// [JsonPropertyName("cursorChar")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] @@ -95,7 +95,7 @@ public class TypedOptions : IEquatable /// /// 获得/设置 内容类型,'html' 或 'null' 表示纯文本,默认 html - /// Gets or sets the content type. 'html' or 'null' for plaintext. Default is html. + /// Gets or sets the content type. 'html' or 'null' for plaintext. Default is html /// [JsonPropertyName("contentType")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] diff --git a/src/BootstrapBlazor/Components/Upload/AvatarUpload.razor.cs b/src/BootstrapBlazor/Components/Upload/AvatarUpload.razor.cs index 9945ed4bb44..23bff8470bd 100644 --- a/src/BootstrapBlazor/Components/Upload/AvatarUpload.razor.cs +++ b/src/BootstrapBlazor/Components/Upload/AvatarUpload.razor.cs @@ -27,14 +27,14 @@ public partial class AvatarUpload /// /// 获得/设置 是否圆形图片框,Avatar 模式时生效,默认为 false - /// Gets or sets whether to use circular image frame. Default is false. + /// Gets or sets whether to use circular image frame. Default is false /// [Parameter] public bool IsCircle { get; set; } /// /// 获得/设置 边框圆角,默认为 null - /// Gets or sets the border radius. Default is null. + /// Gets or sets the border radius. Default is null /// [Parameter] public string? BorderRadius { get; set; } @@ -83,14 +83,14 @@ public partial class AvatarUpload /// /// 获得/设置 继续上传按钮是否在列表前,默认 false - /// Gets or sets whether the upload button is displayed before the list. Default is false. + /// Gets or sets whether the upload button is displayed before the list. Default is false /// [Parameter] public bool IsUploadButtonAtFirst { get; set; } /// /// 获得/设置 是否允许预览的回调方法,默认 null - /// Gets or sets the callback method to determine whether preview is allowed. Default is null. + /// Gets or sets the callback method to determine whether preview is allowed. Default is null /// [Parameter] public Func? CanPreviewCallback { get; set; } diff --git a/src/BootstrapBlazor/Components/Upload/ButtonUpload.razor.cs b/src/BootstrapBlazor/Components/Upload/ButtonUpload.razor.cs index b9f8a001612..d4d048e3093 100644 --- a/src/BootstrapBlazor/Components/Upload/ButtonUpload.razor.cs +++ b/src/BootstrapBlazor/Components/Upload/ButtonUpload.razor.cs @@ -43,14 +43,14 @@ public partial class ButtonUpload /// /// 获得/设置 上传按钮样式,默认 null 使用 Button 默认 Primary 颜色 - /// Gets or sets the upload button style. Default is null, uses Button Primary color. + /// Gets or sets the upload button style. Default is null, uses Button Primary color /// [Parameter] public string? BrowserButtonClass { get; set; } /// /// 获得/设置 是否显示上传列表,默认 true - /// Gets or sets whether to display the upload file list. Default is true. + /// Gets or sets whether to display the upload file list. Default is true /// [Parameter] public bool ShowUploadFileList { get; set; } = true; diff --git a/src/BootstrapBlazor/Components/Upload/CardUpload.razor.cs b/src/BootstrapBlazor/Components/Upload/CardUpload.razor.cs index bd965cd4a4c..4d925e49f2f 100644 --- a/src/BootstrapBlazor/Components/Upload/CardUpload.razor.cs +++ b/src/BootstrapBlazor/Components/Upload/CardUpload.razor.cs @@ -54,7 +54,7 @@ public partial class CardUpload /// /// 获得/设置 是否允许预览的回调方法,默认 null - /// Gets or sets the callback method to determine whether preview is allowed. Default is null. + /// Gets or sets the callback method to determine whether preview is allowed. Default is null /// [Parameter] public Func? CanPreviewCallback { get; set; } @@ -82,7 +82,7 @@ public partial class CardUpload /// /// 获得/设置 是否显示文件尺寸,默认为 true - /// Gets or sets whether to display the file size. Default is true. + /// Gets or sets whether to display the file size. Default is true /// [Parameter] public bool ShowFileSize { get; set; } = true; @@ -117,14 +117,14 @@ public partial class CardUpload /// /// 获得/设置 是否显示放大按钮,默认 true - /// Gets or sets whether to display the zoom button. Default is true. + /// Gets or sets whether to display the zoom button. Default is true /// [Parameter] public bool ShowZoomButton { get; set; } = true; /// /// 获得/设置 是否显示删除按钮,默认 true - /// Gets or sets whether to display the delete button. Default is true. + /// Gets or sets whether to display the delete button. Default is true /// [Parameter] [Obsolete("已弃用,请使用 ShowDeleteButton 参数。(Deprecated, please use the ShowDeleteButton parameter)")] @@ -133,7 +133,7 @@ public partial class CardUpload /// /// 获得/设置 继续上传按钮是否在列表前,默认 false - /// Gets or sets whether the continue upload button is in front of the list. Default is false. + /// Gets or sets whether the continue upload button is in front of the list. Default is false /// [Parameter] public bool IsUploadButtonAtFirst { get; set; } @@ -154,42 +154,42 @@ public partial class CardUpload /// /// 获得/设置 删除前是否显示确认对话框,依赖 ShowDeleteButton 属性为 true 时有效 - /// Gets or sets whether to display a confirmation dialog before deletion. Only takes effect when the ShowDeleteButton property is true. + /// Gets or sets whether to display a confirmation dialog before deletion. Only takes effect when the ShowDeleteButton property is true /// [Parameter] public bool ShowDeleteConfirmButton { get; set; } /// /// 获得/设置 删除确认弹窗中确认按钮颜色,默认 Color.Danger - /// Gets or sets the color of the confirmation button in the delete confirmation dialog. Default is Color.Danger. + /// Gets or sets the color of the confirmation button in the delete confirmation dialog. Default is Color.Danger /// [Parameter] public Color DeleteConfirmButtonColor { get; set; } = Color.Danger; /// /// 获得/设置 删除确认弹窗中确认按钮图标,默认 null - /// Gets or sets the confirmation button icon in the delete confirmation dialog. Default is null. + /// Gets or sets the confirmation button icon in the delete confirmation dialog. Default is null /// [Parameter] public string? DeleteConfirmButtonIcon { get; set; } /// /// 获得/设置 删除确认弹窗中确认文本内容,默认 null 使用资源文件中内置文字 - /// Gets or sets the confirmation text content in the delete confirmation dialog. Default is null (uses built-in text from resource file). + /// Gets or sets the confirmation text content in the delete confirmation dialog. Default is null (uses built-in text from resource file) /// [Parameter] public string? DeleteConfirmContent { get; set; } /// /// 获得/设置 删除确认弹窗中确认按钮显示文字,默认 null - /// Gets or sets the confirmation button display text in the delete confirmation dialog. Default is null. + /// Gets or sets the confirmation button display text in the delete confirmation dialog. Default is null /// [Parameter] public string? DeleteConfirmButtonText { get; set; } /// /// 获得/设置 删除确认弹窗中取消按钮显示文字,默认 null - /// Gets or sets the cancel button display text in the delete confirmation dialog. Default is null. + /// Gets or sets the cancel button display text in the delete confirmation dialog. Default is null /// [Parameter] public string? DeleteCloseButtonText { get; set; } diff --git a/src/BootstrapBlazor/Components/Upload/DropUpload.razor.cs b/src/BootstrapBlazor/Components/Upload/DropUpload.razor.cs index 81c223d0288..26e6a83be0b 100644 --- a/src/BootstrapBlazor/Components/Upload/DropUpload.razor.cs +++ b/src/BootstrapBlazor/Components/Upload/DropUpload.razor.cs @@ -14,36 +14,36 @@ namespace BootstrapBlazor.Components; public partial class DropUpload { /// - /// 获得/设置 Body 模板,默认 null。设置 BodyTemplate 后 IconTemplate 和 TextTemplate 不生效。 - /// Gets or sets the body template. Default is null. When BodyTemplate is set, IconTemplate and TextTemplate are not effective. + /// 获得/设置 Body 模板,默认 null。设置 BodyTemplate 后 IconTemplate 和 TextTemplate 不生效 + /// Gets or sets the body template. Default is null. When BodyTemplate is set, IconTemplate and TextTemplate are not effective /// [Parameter] public RenderFragment? BodyTemplate { get; set; } /// /// 获得/设置 图标模板,默认 null - /// Gets or sets the icon template. Default is null. + /// Gets or sets the icon template. Default is null /// [Parameter] public RenderFragment? IconTemplate { get; set; } /// /// 获得/设置 图标,默认 null - /// Gets or sets the icon. Default is null. + /// Gets or sets the icon. Default is null /// [Parameter] public string? UploadIcon { get; set; } /// /// 获得/设置 文字模板,默认 null - /// Gets or sets the text template. Default is null. + /// Gets or sets the text template. Default is null /// [Parameter] public RenderFragment? TextTemplate { get; set; } /// /// 获得/设置 上传文字,默认 null - /// Gets or sets the upload text. Default is null. + /// Gets or sets the upload text. Default is null /// [Parameter] [NotNull] @@ -51,21 +51,21 @@ public partial class DropUpload /// /// 获得/设置 是否显示 Footer,默认 false - /// Gets or sets whether to display the footer. Default is false. + /// Gets or sets whether to display the footer. Default is false /// [Parameter] public bool ShowFooter { get; set; } /// /// 获得/设置 Footer 字符串模板,默认 null - /// Gets or sets the footer template. Default is null. + /// Gets or sets the footer template. Default is null /// [Parameter] public RenderFragment? FooterTemplate { get; set; } /// /// 获得/设置 Footer 字符串信息,默认 null - /// Gets or sets the footer text. Default is null. + /// Gets or sets the footer text. Default is null /// [Parameter] [NotNull] @@ -73,7 +73,7 @@ public partial class DropUpload /// /// 获得/设置 是否显示上传列表,默认 true - /// Gets or sets whether to display the upload file list. Default is true. + /// Gets or sets whether to display the upload file list. Default is true /// [Parameter] public bool ShowUploadFileList { get; set; } = true; @@ -87,21 +87,21 @@ public partial class DropUpload /// /// 获得/设置 加载中图标 - /// Gets or sets the loading icon. + /// Gets or sets the loading icon /// [Parameter] public string? LoadingIcon { get; set; } /// /// 获得/设置 上传失败状态图标 - /// Gets or sets the upload failed status icon. + /// Gets or sets the upload failed status icon /// [Parameter] public string? InvalidStatusIcon { get; set; } /// /// 获得/设置 上传成功状态图标 - /// Gets or sets the upload success status icon. + /// Gets or sets the upload success status icon /// [Parameter] public string? ValidStatusIcon { get; set; } diff --git a/src/BootstrapBlazor/Components/Upload/FileListUploadBase.cs b/src/BootstrapBlazor/Components/Upload/FileListUploadBase.cs index 15b13d8965b..0cb0321ca77 100644 --- a/src/BootstrapBlazor/Components/Upload/FileListUploadBase.cs +++ b/src/BootstrapBlazor/Components/Upload/FileListUploadBase.cs @@ -14,7 +14,7 @@ public class FileListUploadBase : UploadBase { /// /// 获得/设置 是否显示删除按钮,默认 false - /// Gets or sets whether to display the delete button. Default is false. + /// Gets or sets whether to display the delete button. Default is false /// [Parameter] public bool ShowDeleteButton { get; set; } @@ -28,7 +28,7 @@ public class FileListUploadBase : UploadBase /// /// 获得/设置 是否显示下载按钮,默认 false - /// Gets or sets whether to display the download button. Default is false. + /// Gets or sets whether to display the download button. Default is false /// [Parameter] public bool ShowDownloadButton { get; set; } @@ -42,7 +42,7 @@ public class FileListUploadBase : UploadBase /// /// 获得/设置 点击下载按钮回调方法,默认 null - /// Gets or sets the callback method for the download button click event. Default is null. + /// Gets or sets the callback method for the download button click event. Default is null /// [Parameter] public Func? OnDownload { get; set; } @@ -56,7 +56,7 @@ public class FileListUploadBase : UploadBase /// /// 获得/设置 点击取消按钮回调方法,默认 null - /// Gets or sets the callback method for the cancel button click event. Default is null. + /// Gets or sets the callback method for the cancel button click event. Default is null /// [Parameter] public Func? OnCancel { get; set; } diff --git a/src/BootstrapBlazor/Components/Upload/InputUpload.razor.cs b/src/BootstrapBlazor/Components/Upload/InputUpload.razor.cs index fbfc32e1cca..1c7de760004 100644 --- a/src/BootstrapBlazor/Components/Upload/InputUpload.razor.cs +++ b/src/BootstrapBlazor/Components/Upload/InputUpload.razor.cs @@ -22,7 +22,7 @@ public partial class InputUpload /// /// 获得/设置 上传按钮样式,默认 btn-primary - /// Gets or sets the upload button style. Default is btn-primary. + /// Gets or sets the upload button style. Default is btn-primary /// [Parameter] public string BrowserButtonClass { get; set; } = "btn-primary"; @@ -37,7 +37,7 @@ public partial class InputUpload /// /// 获得/设置 删除按钮样式,默认 btn-danger - /// Gets or sets the delete button style. Default is btn-danger. + /// Gets or sets the delete button style. Default is btn-danger /// [Parameter] public string DeleteButtonClass { get; set; } = "btn-danger"; @@ -59,7 +59,7 @@ public partial class InputUpload /// /// 获得/设置 是否显示删除按钮,默认为 false - /// Gets or sets whether to display the delete button. Default is false. + /// Gets or sets whether to display the delete button. Default is false /// [Parameter] public bool ShowDeleteButton { get; set; } diff --git a/src/BootstrapBlazor/Components/Upload/UploadBase.cs b/src/BootstrapBlazor/Components/Upload/UploadBase.cs index 89c3ab72c6c..12b31f8475a 100644 --- a/src/BootstrapBlazor/Components/Upload/UploadBase.cs +++ b/src/BootstrapBlazor/Components/Upload/UploadBase.cs @@ -34,14 +34,14 @@ public abstract class UploadBase : ValidateBase, IUpload /// /// 获得/设置 最大上传个数,默认为 null - /// Gets or sets the maximum number of files to upload. Default is null. + /// Gets or sets the maximum number of files to upload. Default is null /// [Parameter] public int? MaxFileCount { get; set; } /// /// 获得/设置 所有文件上传完毕回调方法,默认 null - /// Gets or sets the callback method when all files have been uploaded. Default is null. + /// Gets or sets the callback method when all files have been uploaded. Default is null /// [Parameter] public Func, Task>? OnAllFileUploaded { get; set; } @@ -55,62 +55,62 @@ public abstract class UploadBase : ValidateBase, IUpload /// /// 获得/设置 是否显示上传进度,默认为 false - /// Gets or sets whether to display the upload progress. Default is false. + /// Gets or sets whether to display the upload progress. Default is false /// [Parameter] public bool ShowProgress { get; set; } /// /// 获得/设置 上传接收的文件格式,默认为 null 接收任意格式 - /// Gets or sets the accepted file format. Default is null (accepts all formats). + /// Gets or sets the accepted file format. Default is null (accepts all formats) /// [Parameter] public string? Accept { get; set; } /// /// 获得/设置 媒体捕获机制的首选面向模式,默认为 null - /// Gets or sets the preferred facing mode for media capture. Default is null. + /// Gets or sets the preferred facing mode for media capture. Default is null /// [Parameter] public string? Capture { get; set; } /// /// 获得/设置 是否上传整个目录,默认为 false - /// Gets or sets whether to upload the entire directory. Default is false. + /// Gets or sets whether to upload the entire directory. Default is false /// [Parameter] public bool IsDirectory { get; set; } /// /// 获得/设置 是否允许多文件上传,默认 false - /// Gets or sets whether to allow multiple file uploads. Default is false. + /// Gets or sets whether to allow multiple file uploads. Default is false /// [Parameter] public bool IsMultiple { get; set; } /// /// 获得/设置 点击删除按钮时回调此方法,默认 null - /// Gets or sets the callback method when the delete button is clicked. Default is null. + /// Gets or sets the callback method when the delete button is clicked. Default is null /// [Parameter] public Func>? OnDelete { get; set; } /// /// 获得/设置 点击浏览按钮时回调此方法,如果多文件上传此回调会触发多次,默认 null - /// Gets or sets the callback method when the browse button is clicked. This may be called multiple times for multiple file uploads. Default is null. + /// Gets or sets the callback method when the browse button is clicked. This may be called multiple times for multiple file uploads. Default is null /// [Parameter] public Func? OnChange { get; set; } /// /// 获得/设置 已上传文件集合,此集合中数据是用户上传文件集合 - /// Gets or sets the uploaded file collection. This collection contains the files uploaded by the user. + /// Gets or sets the uploaded file collection. This collection contains the files uploaded by the user /// public List UploadFiles { get; } = []; /// - /// 获得 the 集合 of files to be uploaded. - /// Gets the collection of files to be uploaded. + /// 获得 the 集合 of files to be uploaded + /// Gets the collection of files to be uploaded /// protected List Files => GetUploadFiles(); @@ -246,8 +246,8 @@ protected virtual async Task TriggerOnChanged(UploadFile file) } /// - /// 删除文件方法。 - /// Delete file method. + /// 删除文件方法 + /// Delete file method /// /// protected virtual async Task OnFileDelete(UploadFile item) @@ -297,9 +297,9 @@ protected void Update(UploadFile file) private List? _filesCache; /// - /// 获得当前文件集合 Get the files collection. + /// 获得当前文件集合 Get the files collection /// - /// Gets当前文件collection Get the files collection. + /// Gets当前文件collection Get the files collection /// /// protected List GetUploadFiles() @@ -323,9 +323,9 @@ protected List GetUploadFiles() } /// - /// 检查是否可以继续上传文件 Check whether can upload file. + /// 检查是否可以继续上传文件 Check whether can upload file /// - /// 检查whether可以继续上传文件 Check whether can upload file. + /// 检查whether可以继续上传文件 Check whether can upload file /// /// protected bool CanUpload() @@ -361,9 +361,9 @@ protected bool ShowAddButton() } /// - /// 清空上传列表方法 Clear the upload files collection. + /// 清空上传列表方法 Clear the upload files collection /// - /// 清空上传列表方法 Clear the upload files collection. + /// 清空上传列表方法 Clear the upload files collection /// /// public virtual void Reset() @@ -376,8 +376,8 @@ public virtual void Reset() } /// - /// append html attribute method. - /// append html attribute method. + /// append html attribute method + /// append html attribute method /// protected IDictionary GetUploadAdditionalAttributes() { diff --git a/src/BootstrapBlazor/Components/Upload/UploadFile.cs b/src/BootstrapBlazor/Components/Upload/UploadFile.cs index d85a17150f6..40f9d46dbcd 100644 --- a/src/BootstrapBlazor/Components/Upload/UploadFile.cs +++ b/src/BootstrapBlazor/Components/Upload/UploadFile.cs @@ -15,7 +15,7 @@ public class UploadFile { /// /// 获得/设置 文件名,由用户指定,上传时此参数未设置默认为 null - /// Gets or sets the file name specified by the user. Default is null if not set during upload. + /// Gets or sets the file name specified by the user. Default is null if not set during upload /// public string? FileName { get; set; } @@ -33,7 +33,7 @@ public class UploadFile /// /// 获得/设置 文件上传结果,0 表示成功,非零表示失败 - /// Gets or sets the upload result. 0 indicates success, non-zero indicates failure. + /// Gets or sets the upload result. 0 indicates success, non-zero indicates failure /// public int Code { get; set; } diff --git a/src/BootstrapBlazor/Components/Upload/UploadPreviewList.razor.cs b/src/BootstrapBlazor/Components/Upload/UploadPreviewList.razor.cs index b1e0556f966..87360e4c3e9 100644 --- a/src/BootstrapBlazor/Components/Upload/UploadPreviewList.razor.cs +++ b/src/BootstrapBlazor/Components/Upload/UploadPreviewList.razor.cs @@ -13,7 +13,7 @@ public partial class UploadPreviewList { /// /// 获得/设置 待上传文件集合 - /// Gets or sets the collection of files to be uploaded. + /// Gets or sets the collection of files to be uploaded /// [Parameter] [NotNull] @@ -21,168 +21,168 @@ public partial class UploadPreviewList /// /// 获得/设置 上传列表禁用状态 - /// Gets or sets the disable status of the upload list. + /// Gets or sets the disable status of the upload list /// [Parameter] public bool IsDisabled { get; set; } /// /// 获得/设置 是否在操作期间显示进度 - /// Gets or sets a value indicating whether progress should be displayed during the operation. + /// Gets or sets a value indicating whether progress should be displayed during the operation /// [Parameter] public bool ShowProgress { get; set; } /// /// 获得/设置 上传文件格式回调方法 - /// Gets or sets the upload file format callback method. + /// Gets or sets the upload file format callback method /// [Parameter] public Func? OnGetFileFormat { get; set; } /// /// 获得/设置 点击取消按钮回调方法,默认 null - /// Gets or sets the callback method for the cancel button click event. Default is null. + /// Gets or sets the callback method for the cancel button click event. Default is null /// [Parameter] public Func? OnCancel { get; set; } /// /// 获得/设置 取消按钮图标 - /// Gets or sets the cancel button icon. + /// Gets or sets the cancel button icon /// [Parameter] public string? CancelIcon { get; set; } /// /// 获得/设置 加载状态图标 - /// Gets or sets the loading state icon. + /// Gets or sets the loading state icon /// [Parameter] public string? LoadingIcon { get; set; } /// /// 获得/设置 下载按钮图标 - /// Gets or sets the download button icon. + /// Gets or sets the download button icon /// [Parameter] public string? DownloadIcon { get; set; } /// /// 获得/设置 上传失败状态图标 - /// Gets or sets the upload failed status icon. + /// Gets or sets the upload failed status icon /// [Parameter] public string? InvalidStatusIcon { get; set; } /// /// 获得/设置 上传成功状态图标 - /// Gets or sets the upload success status icon. + /// Gets or sets the upload success status icon /// [Parameter] public string? ValidStatusIcon { get; set; } /// /// 获得/设置 删除按钮图标 - /// Gets or sets the delete button icon. + /// Gets or sets the delete button icon /// [Parameter] public string? DeleteIcon { get; set; } /// /// 获得/设置 是否显示下载按钮,默认 false - /// Gets or sets whether to display the download button. Default is false. + /// Gets or sets whether to display the download button. Default is false /// [Parameter] public bool ShowDownloadButton { get; set; } /// /// 获得/设置 点击下载按钮回调方法,默认 null - /// Gets or sets the callback method for the download button click event. Default is null. + /// Gets or sets the callback method for the download button click event. Default is null /// [Parameter] public Func? OnDownload { get; set; } /// /// 获得/设置 点击删除按钮回调方法,默认 null - /// Gets or sets the callback method for the delete button click event. Default is null. + /// Gets or sets the callback method for the delete button click event. Default is null /// [Parameter] public Func>? OnDelete { get; set; } /// /// 获得/设置 Excel 类型文件图标 - /// Gets or sets the Excel file type icon. + /// Gets or sets the Excel file type icon /// [Parameter] public string? FileIconExcel { get; set; } /// /// 获得/设置 Word 文档文件图标 - /// Gets or sets the Word document file type icon. + /// Gets or sets the Word document file type icon /// [Parameter] public string? FileIconDocx { get; set; } /// /// 获得/设置 PowerPoint 文件图标 - /// Gets or sets the PowerPoint file type icon. + /// Gets or sets the PowerPoint file type icon /// [Parameter] public string? FileIconPPT { get; set; } /// /// 获得/设置 音频文件图标 - /// Gets or sets the audio file type icon. + /// Gets or sets the audio file type icon /// [Parameter] public string? FileIconAudio { get; set; } /// /// 获得/设置 视频文件图标 - /// Gets or sets the video file type icon. + /// Gets or sets the video file type icon /// [Parameter] public string? FileIconVideo { get; set; } /// /// 获得/设置 代码文件图标 - /// Gets or sets the code file type icon. + /// Gets or sets the code file type icon /// [Parameter] public string? FileIconCode { get; set; } /// /// 获得/设置 PDF 文件图标 - /// Gets or sets the PDF file type icon. + /// Gets or sets the PDF file type icon /// [Parameter] public string? FileIconPdf { get; set; } /// /// 获得/设置 压缩文件图标 - /// Gets or sets the compressed file type icon. + /// Gets or sets the compressed file type icon /// [Parameter] public string? FileIconZip { get; set; } /// /// 获得/设置 档案文件图标 - /// Gets or sets the archive file type icon. + /// Gets or sets the archive file type icon /// [Parameter] public string? FileIconArchive { get; set; } /// /// 获得/设置 图像文件图标 - /// Gets or sets the image file type icon. + /// Gets or sets the image file type icon /// [Parameter] public string? FileIconImage { get; set; } /// /// 获得/设置 通用文件图标 - /// Gets or sets the generic file type icon. + /// Gets or sets the generic file type icon /// [Parameter] public string? FileIconFile { get; set; } diff --git a/src/BootstrapBlazor/Components/Validate/IValidateComponent.cs b/src/BootstrapBlazor/Components/Validate/IValidateComponent.cs index c490dbd4ae6..4c3895ea4b6 100644 --- a/src/BootstrapBlazor/Components/Validate/IValidateComponent.cs +++ b/src/BootstrapBlazor/Components/Validate/IValidateComponent.cs @@ -13,7 +13,7 @@ public interface IValidateComponent { /// /// 获得/设置 是否进行验证 默认为 false - /// Gets or sets whether validation is needed. Default is false. + /// Gets or sets whether validation is needed. Default is false /// bool IsNeedValidate { get; } diff --git a/src/BootstrapBlazor/Components/Validate/ValidateBase.cs b/src/BootstrapBlazor/Components/Validate/ValidateBase.cs index d17f0f71600..368ec610a2f 100644 --- a/src/BootstrapBlazor/Components/Validate/ValidateBase.cs +++ b/src/BootstrapBlazor/Components/Validate/ValidateBase.cs @@ -19,7 +19,7 @@ public abstract class ValidateBase : DisplayBase, IValidateCompo /// /// 获得/设置 上一次转化是否失败 为 true 时表示上一次转化失败 - /// Gets or sets whether the previous parsing attempt failed. True indicates the last parsing failed. + /// Gets or sets whether the previous parsing attempt failed. True indicates the last parsing failed /// protected bool PreviousParsingAttemptFailed { get; set; } @@ -51,7 +51,7 @@ public abstract class ValidateBase : DisplayBase, IValidateCompo /// /// 获得/设置 组件是否合规 默认为 null 未检查 - /// Gets or sets whether the component is valid. Default is null (unchecked). + /// Gets or sets whether the component is valid. Default is null (unchecked) /// protected bool? IsValid { get; set; } @@ -69,7 +69,7 @@ public abstract class ValidateBase : DisplayBase, IValidateCompo /// /// 获得/设置 输入框的当前值 - /// Gets or sets the current value of the input. + /// Gets or sets the current value of the input /// protected TValue? CurrentValue { @@ -103,7 +103,7 @@ protected TValue? CurrentValue /// /// 获得/设置 输入框的当前值,以字符串形式表示 - /// Gets or sets the current value of the input, represented as a string. + /// Gets or sets the current value of the input, represented as a string /// protected string CurrentValueAsString { @@ -171,7 +171,7 @@ protected string CurrentValueAsString /// /// 获得/设置 类型转化失败格式化字符串 默认为 null - /// Gets or sets the parsing error message format string. Default is null. + /// Gets or sets the parsing error message format string. Default is null /// [Parameter] [NotNull] @@ -179,28 +179,28 @@ protected string CurrentValueAsString /// /// 获得/设置 是否不进行验证 默认为 false - /// Gets or sets whether to skip validation. Default is false. + /// Gets or sets whether to skip validation. Default is false /// [Parameter] public bool SkipValidate { get; set; } /// /// 获得/设置 是否禁用 默认为 false - /// Gets or sets whether the component is disabled. Default is false. + /// Gets or sets whether the component is disabled. Default is false /// [Parameter] public bool IsDisabled { get; set; } /// /// 获得/设置 是否显示必填项标记 默认为 null 未设置 - /// Gets or sets whether to display the required field marker. Default is null. + /// Gets or sets whether to display the required field marker. Default is null /// [Parameter] public bool? ShowRequired { get; set; } /// /// 获得/设置 必填项错误文本 默认为 null 未设置 - /// Gets or sets the required field error message. Default is null. + /// Gets or sets the required field error message. Default is null /// [Parameter] public string? RequiredErrorMessage { get; set; } @@ -220,8 +220,8 @@ protected string CurrentValueAsString private IStringLocalizerFactory? LocalizerFactory { get; set; } /// - /// 将字符串解析为 TValue 的实例。派生类可以重写此方法来改变 CurrentValueAsString 如何解释传入的值。 - /// Parses a string to create an instance of . Derived classes can override this to change how interprets incoming values. + /// 将字符串解析为 TValue 的实例。派生类可以重写此方法来改变 CurrentValueAsString 如何解释传入的值 + /// Parses a string to create an instance of . Derived classes can override this to change how interprets incoming values /// /// The string value to be parsed. /// An instance of . @@ -259,14 +259,14 @@ protected virtual bool IsRequired() => ShowRequired ?? FieldIdentifier || (ValidateRules?.OfType().Any() ?? false); /// - /// 获得表示被编辑字段状态的字符串。这将包括"modified"、"valid"或"invalid"的某种组合,具体取决于该字段的状态。 - /// Gets a string that indicates the status of the field being edited. This will include some combination of "modified", "valid", or "invalid", depending on the status of the field. + /// 获得表示被编辑字段状态的字符串。这将包括"modified"、"valid"或"invalid"的某种组合,具体取决于该字段的状态 + /// Gets a string that indicates the status of the field being edited. This will include some combination of "modified", "valid", or "invalid", depending on the status of the field /// protected string FieldClass => (EditContext != null && FieldIdentifier != null) ? EditContext.FieldCssClass(FieldIdentifier.Value) : ""; /// - /// 获得组合了 class 属性和 FieldClass 属性的 CSS 类字符串。派生组件通常应将此值用于主 HTML 元素的 class 属性。 - /// Gets a CSS class string that combines the class attribute and properties. Derived components should typically use this value for the primary HTML element's class attribute. + /// 获得组合了 class 属性和 FieldClass 属性的 CSS 类字符串。派生组件通常应将此值用于主 HTML 元素的 class 属性 + /// Gets a CSS class string that combines the class attribute and properties. Derived components should typically use this value for the primary HTML element's class attribute /// protected string? CssClass => CssBuilder.Default() .AddClass(FieldClass, IsNeedValidate) @@ -418,7 +418,7 @@ private string GetDefaultRequiredErrorMessage() /// /// 获得/设置 是否不进行验证 默认为 false - /// Gets or sets whether validation is needed. Default is false. + /// Gets or sets whether validation is needed. Default is false /// public bool IsNeedValidate => !IsDisabled && !SkipValidate; diff --git a/src/BootstrapBlazor/Components/ValidateForm/ValidateForm.razor.cs b/src/BootstrapBlazor/Components/ValidateForm/ValidateForm.razor.cs index 01d3808455a..e3f42ba3360 100644 --- a/src/BootstrapBlazor/Components/ValidateForm/ValidateForm.razor.cs +++ b/src/BootstrapBlazor/Components/ValidateForm/ValidateForm.razor.cs @@ -20,21 +20,21 @@ public partial class ValidateForm { /// /// 获得/设置 表单提交后验证合规时回调方法 - /// Gets or sets the callback method when form submission is validated. + /// Gets or sets the callback method when form submission is validated /// [Parameter] public Func? OnValidSubmit { get; set; } /// /// 获得/设置 表单提交后验证不合规时回调方法 - /// Gets or sets the callback method when form submission is invalid. + /// Gets or sets the callback method when form submission is invalid /// [Parameter] public Func? OnInvalidSubmit { get; set; } /// /// 获得/设置 表单内绑定字段值变化时回调方法 - /// Gets or sets the callback method when a bound field's value has changed within the form. + /// Gets or sets the callback method when a bound field's value has changed within the form /// [Parameter] [NotNull] @@ -42,21 +42,21 @@ public partial class ValidateForm /// /// 获得/设置 是否显示所有验证失败字段的提示信息 默认 false 仅显示第一个验证失败字段的提示信息 - /// Gets or sets whether to display all validation failure messages. The default is false, which only displays the first validation failure message. + /// Gets or sets whether to display all validation failure messages. The default is false, which only displays the first validation failure message /// [Parameter] public bool ShowAllInvalidResult { get; set; } /// /// 获得/设置 是否验证所有字段 默认 false - /// Gets or sets whether to validate all properties. The default is false. + /// Gets or sets whether to validate all properties. The default is false /// [Parameter] public bool ValidateAllProperties { get; set; } /// /// 获得/设置 表单绑定模型对象 - /// Gets or sets the top-level model object for the form. + /// Gets or sets the top-level model object for the form /// [Parameter] [NotNull] @@ -64,35 +64,35 @@ public partial class ValidateForm /// /// 获得/设置 组件子内容 - /// Gets or sets the content to be rendered inside this component. + /// Gets or sets the content to be rendered inside this component /// [Parameter] public RenderFragment? ChildContent { get; set; } /// /// 获得/设置 是否获取必填项标记 默认为 true 显示 - /// Gets or sets whether to display the required mark. The default is true, which means the required mark is displayed. + /// Gets or sets whether to display the required mark. The default is true, which means the required mark is displayed /// [Parameter] public bool ShowRequiredMark { get; set; } = true; /// /// 获得/设置 是否显示验证表单内的 Label 默认为 null - /// Gets or sets whether to display labels within the validation form. The default value is null. + /// Gets or sets whether to display labels within the validation form. The default value is null /// [Parameter] public bool? ShowLabel { get; set; } /// /// 获得/设置 是否显示标签 Tooltip 多用于标签文字过长导致裁减时使用 默认 null - /// Gets or sets whether to display a tooltip for the label, often used when the label text is too long and gets truncated. The default is null. + /// Gets or sets whether to display a tooltip for the label, often used when the label text is too long and gets truncated. The default is null /// [Parameter] public bool? ShowLabelTooltip { get; set; } /// /// 获得/设置 是否为无表单模式 默认 false - /// Gets or sets whether to use a formless mode. The default is false. + /// Gets or sets whether to use a formless mode. The default is false /// /// 设置为 true 时不渲染 form 元素,仅级联 EditContext 用于 Table InCell 编辑模式 [Parameter] @@ -107,7 +107,7 @@ public partial class ValidateForm /// /// 获得/设置 标签宽度 默认 null 未设置 使用全局设置 --bb-row-label-width - /// Gets or sets the label width. The default is null, which means the global setting --bb-row-label-width is used. + /// Gets or sets the label width. The default is null, which means the global setting --bb-row-label-width is used /// [Parameter] public int? LabelWidth { get; set; } @@ -136,13 +136,13 @@ public partial class ValidateForm /// /// 获得验证合法成员集合 - /// Gets the collection of valid member names. + /// Gets the collection of valid member names /// internal List ValidMemberNames { get; } = []; /// /// 获得验证非法成员集合 - /// Gets the collection of invalid member names. + /// Gets the collection of invalid member names /// internal List InvalidMemberNames { get; } = []; @@ -173,7 +173,7 @@ protected override void OnParametersSet() /// /// 添加数据验证组件到 EditForm 中 - /// Adds a data validation component to the EditForm. + /// Adds a data validation component to the EditForm /// /// /// @@ -184,7 +184,7 @@ internal void AddValidator((string FieldName, Type ModelType) key, (FieldIdentif /// /// 移除数据验证组件到 EditForm 中 - /// Removes a data validation component from the EditForm. + /// Removes a data validation component from the EditForm /// /// /// @@ -192,7 +192,7 @@ internal void AddValidator((string FieldName, Type ModelType) key, (FieldIdentif /// /// 设置指定字段错误信息 - /// Sets the error message for the specified field. + /// Sets the error message for the specified field /// /// /// 错误描述信息,可为空,为空时查找资源文件错误描述info,可为空,为空时查找资源文件 @@ -231,7 +231,7 @@ private async Task InternalSetError(MemberExpression exp, string errorMessage) /// /// 设置指定字段错误信息 - /// Sets the error message for the specified field. + /// Sets the error message for the specified field /// /// 字段名,可以使用多层,如 a.b.cField name, can be multi-level, such as a.b.c /// 错误描述信息,可为空,为空时查找资源文件Error description info, can be empty, if empty, resource file is searched @@ -366,7 +366,7 @@ internal async Task ValidateObject(ValidationContext context, List /// 通过表单内绑定的字段验证方法 - /// Validates a field bound within the form. + /// Validates a field bound within the form /// /// /// @@ -392,7 +392,7 @@ internal async Task ValidateFieldAsync(ValidationContext context, List /// 通过属性设置的 DataAnnotation 进行数据验证 - /// Validates data using DataAnnotations set on properties. + /// Validates data using DataAnnotations set on properties /// /// /// @@ -476,7 +476,7 @@ private void ValidateDataAnnotations(object? value, ValidationContext context, L /// /// 验证整个模型时验证属性方法 - /// Validates properties when validating the entire model. + /// Validates properties when validating the entire model /// /// /// @@ -589,7 +589,7 @@ private async Task ValidateAsync(IValidateComponent validator, ValidationContext /// /// 注册提交按钮 - /// Registers a submit button. + /// Registers a submit button /// /// internal void RegisterAsyncSubmitButton(ButtonBase button) @@ -666,7 +666,7 @@ private async Task OnInvalidSubmitForm(EditContext context) /// /// 同步验证方法 用于代码调用触发表单验证(不支持某些组件的异步验证) - /// Synchronous validation method used to trigger form validation via code (does not support asynchronous validation for some components). + /// Synchronous validation method used to trigger form validation via code (does not support asynchronous validation for some components) /// [Obsolete("已弃用,请使用 ValidateAsync 方法。Deprecated. Please use the ValidateAsync method.")] [ExcludeFromCodeCoverage] @@ -674,13 +674,13 @@ private async Task OnInvalidSubmitForm(EditContext context) /// /// 异步验证方法 用于代码调用触发表单验证(支持异步验证) - /// Asynchronous validation method used to trigger form validation via code (supports asynchronous validation). + /// Asynchronous validation method used to trigger form validation via code (supports asynchronous validation) /// public Task ValidateAsync() => Validator.ValidateAsync(); /// /// 通知属性改变方法 - /// Notifies that a property has changed. + /// Notifies that a property has changed /// /// /// @@ -692,13 +692,13 @@ public void NotifyFieldChanged(in FieldIdentifier fieldIdentifier, object? value /// /// 获取 当前表单值改变的属性集合 - /// Get the set of attributes whose current form values ​​have changed. + /// Get the set of attributes whose current form values ​​have changed /// public ConcurrentDictionary ValueChangedFields { get; } = new(); /// /// 获取 当前表单值改变的属性集合 - /// Get the set of attributes whose current form values ​​have changed. + /// Get the set of attributes whose current form values ​​have changed /// [Obsolete("已弃用,单词拼写错误,请使用 ValueChangedFields,Deprecated Please use ValueChangedFields instead. wrong typo")] [ExcludeFromCodeCoverage] diff --git a/src/BootstrapBlazor/Components/WebSpeech/Recognition/WebSpeechRecognition.cs b/src/BootstrapBlazor/Components/WebSpeech/Recognition/WebSpeechRecognition.cs index add24137bb1..09cdc7776c4 100644 --- a/src/BootstrapBlazor/Components/WebSpeech/Recognition/WebSpeechRecognition.cs +++ b/src/BootstrapBlazor/Components/WebSpeech/Recognition/WebSpeechRecognition.cs @@ -16,26 +16,26 @@ public class WebSpeechRecognition(JSModule module, IComponentIdGenerator compone private string? _id; /// - /// fired when the speech recognition service has begun listening to incoming audio with intent to recognize grammars associated with the current SpeechRecognition. - /// fired when the speech recognition service has begun listening to incoming audio with intent to recognize grammars associated with the current SpeechRecognition. + /// fired when the speech recognition service has begun listening to incoming audio with intent to recognize grammars associated with the current SpeechRecognition + /// fired when the speech recognition service has begun listening to incoming audio with intent to recognize grammars associated with the current SpeechRecognition /// public Func? OnStartAsync { get; set; } /// - /// fired when the speech recognition service has disconnected. - /// fired when the speech recognition service has disconnected. + /// fired when the speech recognition service has disconnected + /// fired when the speech recognition service has disconnected /// public Func? OnEndAsync { get; set; } /// - /// fired when sound recognized by the speech recognition service as speech has been detected. - /// fired when sound recognized by the speech recognition service as speech has been detected. + /// fired when sound recognized by the speech recognition service as speech has been detected + /// fired when sound recognized by the speech recognition service as speech has been detected /// public Func? OnSpeechStartAsync { get; set; } /// - /// fired when speech recognized by the speech recognition service has stopped being detected. - /// fired when speech recognized by the speech recognition service has stopped being detected. + /// fired when speech recognized by the speech recognition service has stopped being detected + /// fired when speech recognized by the speech recognition service has stopped being detected /// public Func? OnSpeechEndAsync { get; set; } @@ -46,14 +46,14 @@ public class WebSpeechRecognition(JSModule module, IComponentIdGenerator compone public Func? OnResultAsync { get; set; } /// - /// fired when a speech recognition error occurs. - /// fired when a speech recognition error occurs. + /// fired when a speech recognition error occurs + /// fired when a speech recognition error occurs /// public Func? OnErrorAsync { get; set; } /// - /// fired when the speech recognition service returns a final result with no significant recognition. - /// fired when the speech recognition service returns a final result with no significant recognition. + /// fired when the speech recognition service returns a final result with no significant recognition + /// fired when the speech recognition service returns a final result with no significant recognition /// public Func? OnNoMatchAsync { get; set; } diff --git a/src/BootstrapBlazor/Components/WebSpeech/Recognition/WebSpeechRecognitionError.cs b/src/BootstrapBlazor/Components/WebSpeech/Recognition/WebSpeechRecognitionError.cs index a51248cc84e..ace51b7082e 100644 --- a/src/BootstrapBlazor/Components/WebSpeech/Recognition/WebSpeechRecognitionError.cs +++ b/src/BootstrapBlazor/Components/WebSpeech/Recognition/WebSpeechRecognitionError.cs @@ -12,14 +12,14 @@ namespace BootstrapBlazor.Components; public class WebSpeechRecognitionError { /// - /// A string naming the 类型 of error. no-speech aborted audio-capture network not-allowed service-not-allowed bad-grammar language-not-supported. - /// A string naming the type of error. no-speech aborted audio-capture network not-allowed service-not-allowed bad-grammar language-not-supported. + /// A string naming the 类型 of error. no-speech aborted audio-capture network not-allowed service-not-allowed bad-grammar language-not-supported + /// A string naming the type of error. no-speech aborted audio-capture network not-allowed service-not-allowed bad-grammar language-not-supported /// public string? Error { get; set; } /// - /// A string containing more details about the error that was raised. Note that the spec does not define the exact wording of these messages — this is up to the implementors to decide upon. - /// A string containing more details about the error that was raised. Note that the spec does not define the exact wording of these messages — this is up to the implementors to decide upon. + /// A string containing more details about the error that was raised. Note that the spec does not define the exact wording of these messages — this is up to the implementors to decide upon + /// A string containing more details about the error that was raised. Note that the spec does not define the exact wording of these messages — this is up to the implementors to decide upon /// public string? Message { get; set; } } diff --git a/src/BootstrapBlazor/Components/WebSpeech/Recognition/WebSpeechRecognitionOption.cs b/src/BootstrapBlazor/Components/WebSpeech/Recognition/WebSpeechRecognitionOption.cs index d91d1e42cf8..d24d11d99f9 100644 --- a/src/BootstrapBlazor/Components/WebSpeech/Recognition/WebSpeechRecognitionOption.cs +++ b/src/BootstrapBlazor/Components/WebSpeech/Recognition/WebSpeechRecognitionOption.cs @@ -14,29 +14,29 @@ namespace BootstrapBlazor.Components; public class WebSpeechRecognitionOption { /// - /// sets the maximum number of SpeechRecognitionAlternatives provided per SpeechRecognitionResult. - /// sets the maximum number of SpeechRecognitionAlternatives provided per SpeechRecognitionResult. + /// sets the maximum number of SpeechRecognitionAlternatives provided per SpeechRecognitionResult + /// sets the maximum number of SpeechRecognitionAlternatives provided per SpeechRecognitionResult /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public float? MaxAlternatives { get; set; } /// - /// 是否 continuous results are returned for each recognition, or only a single result. - /// whether continuous results are returned for each recognition, or only a single result. + /// 是否 continuous results are returned for each recognition, or only a single result + /// whether continuous results are returned for each recognition, or only a single result /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public bool? Continuous { get; set; } /// - /// 是否 interim results should be returned (true) or not (false). Interim results are results that are not yet final (e.g. the SpeechRecognitionResult.isFinal 属性 is false). - /// whether interim results should be returned (true) or not (false). Interim results are results that are not yet final (e.g. the SpeechRecognitionResult.isFinal property is false). + /// 是否 interim results should be returned (true) or not (false). Interim results are results that are not yet final (e.g. the SpeechRecognitionResult.isFinal 属性 is false) + /// whether interim results should be returned (true) or not (false). Interim results are results that are not yet final (e.g. the SpeechRecognitionResult.isFinal property is false) /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public bool? InterimResults { get; set; } /// - /// sets the language of the current SpeechRecognition. If not specified, this defaults to the HTML lang attribute value, or the user agent's language setting if that isn't set either. - /// sets the language of the current SpeechRecognition. If not specified, this defaults to the HTML lang attribute value, or the user agent's language setting if that isn't set either. + /// sets the language of the current SpeechRecognition. If not specified, this defaults to the HTML lang attribute value, or the user agent's language setting if that isn't set either + /// sets the language of the current SpeechRecognition. If not specified, this defaults to the HTML lang attribute value, or the user agent's language setting if that isn't set either /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? Lang { get; set; } diff --git a/src/BootstrapBlazor/Components/WebSpeech/Synthesizer/WebSpeechSynthesisError.cs b/src/BootstrapBlazor/Components/WebSpeech/Synthesizer/WebSpeechSynthesisError.cs index 8bd5eb28e21..b6a49a1bd4d 100644 --- a/src/BootstrapBlazor/Components/WebSpeech/Synthesizer/WebSpeechSynthesisError.cs +++ b/src/BootstrapBlazor/Components/WebSpeech/Synthesizer/WebSpeechSynthesisError.cs @@ -12,20 +12,20 @@ namespace BootstrapBlazor.Components; public class WebSpeechSynthesisError { /// - /// Returns the 索引 position of the character in the SpeechSynthesisUtterance.text that was being spoken when the event was triggered. - /// Returns the index position of the character in the SpeechSynthesisUtterance.text that was being spoken when the event was triggered. + /// Returns the 索引 position of the character in the SpeechSynthesisUtterance.text that was being spoken when the event was triggered + /// Returns the index position of the character in the SpeechSynthesisUtterance.text that was being spoken when the event was triggered /// public int CharIndex { get; set; } /// - /// Returns the elapsed time in seconds after the SpeechSynthesisUtterance.text started being spoken that the event was triggered at. - /// Returns the elapsed time in seconds after the SpeechSynthesisUtterance.text started being spoken that the event was triggered at. + /// Returns the elapsed time in seconds after the SpeechSynthesisUtterance.text started being spoken that the event was triggered at + /// Returns the elapsed time in seconds after the SpeechSynthesisUtterance.text started being spoken that the event was triggered at /// public float ElapsedTime { get; set; } /// - /// Returns an error code indicating what has gone wrong with a speech synthesis attempt. - /// Returns an error code indicating what has gone wrong with a speech synthesis attempt. + /// Returns an error code indicating what has gone wrong with a speech synthesis attempt + /// Returns an error code indicating what has gone wrong with a speech synthesis attempt /// public string? Error { get; set; } } diff --git a/src/BootstrapBlazor/Components/WebSpeech/Synthesizer/WebSpeechSynthesisUtterance.cs b/src/BootstrapBlazor/Components/WebSpeech/Synthesizer/WebSpeechSynthesisUtterance.cs index 0a470e889bf..25af1183468 100644 --- a/src/BootstrapBlazor/Components/WebSpeech/Synthesizer/WebSpeechSynthesisUtterance.cs +++ b/src/BootstrapBlazor/Components/WebSpeech/Synthesizer/WebSpeechSynthesisUtterance.cs @@ -14,8 +14,8 @@ namespace BootstrapBlazor.Components; public class WebSpeechSynthesisUtterance { /// - /// gets and sets the text that will be synthesized when the utterance is spoken. - /// gets and sets the text that will be synthesized when the utterance is spoken. + /// gets and sets the text that will be synthesized when the utterance is spoken + /// gets and sets the text that will be synthesized when the utterance is spoken /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? Text { get; set; } @@ -28,29 +28,29 @@ public class WebSpeechSynthesisUtterance public string? Lang { get; set; } /// - /// gets and sets the pitch at which the utterance will be spoken at. - /// gets and sets the pitch at which the utterance will be spoken at. + /// gets and sets the pitch at which the utterance will be spoken at + /// gets and sets the pitch at which the utterance will be spoken at /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public float? Pitch { get; set; } /// - /// gets and sets the speed at which the utterance will be spoken at. - /// gets and sets the speed at which the utterance will be spoken at. + /// gets and sets the speed at which the utterance will be spoken at + /// gets and sets the speed at which the utterance will be spoken at /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public float? Rate { get; set; } /// - /// gets and sets the voice that will be used to speak the utterance. - /// gets and sets the voice that will be used to speak the utterance. + /// gets and sets the voice that will be used to speak the utterance + /// gets and sets the voice that will be used to speak the utterance /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public WebSpeechSynthesisVoice? Voice { get; set; } /// - /// gets and sets the volume that the utterance will be spoken at. - /// gets and sets the volume that the utterance will be spoken at. + /// gets and sets the volume that the utterance will be spoken at + /// gets and sets the volume that the utterance will be spoken at /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public float? Volume { get; set; } diff --git a/src/BootstrapBlazor/Components/WebSpeech/Synthesizer/WebSpeechSynthesisVoice.cs b/src/BootstrapBlazor/Components/WebSpeech/Synthesizer/WebSpeechSynthesisVoice.cs index edcd78f0aee..a684476c750 100644 --- a/src/BootstrapBlazor/Components/WebSpeech/Synthesizer/WebSpeechSynthesisVoice.cs +++ b/src/BootstrapBlazor/Components/WebSpeech/Synthesizer/WebSpeechSynthesisVoice.cs @@ -18,14 +18,14 @@ public class WebSpeechSynthesisVoice public bool Default { get; set; } /// - /// 获得/设置 indicating the language of the voice. - /// Gets or sets indicating the language of the voice. + /// 获得/设置 indicating the language of the voice + /// Gets or sets indicating the language of the voice /// public string? Lang { get; set; } /// - /// 获得/设置 human-readable name that represents the voice. - /// Gets or sets human-readable name that represents the voice. + /// 获得/设置 human-readable name that represents the voice + /// Gets or sets human-readable name that represents the voice /// public string? Name { get; set; } @@ -36,8 +36,8 @@ public class WebSpeechSynthesisVoice public bool LocalService { get; set; } /// - /// 获得/设置 the type of URI and location of the speech synthesis service for this voice. - /// Gets or sets the type of URI and location of the speech synthesis service for this voice. + /// 获得/设置 the type of URI and location of the speech synthesis service for this voice + /// Gets or sets the type of URI and location of the speech synthesis service for this voice /// public string? VoiceURI { get; set; } } diff --git a/src/BootstrapBlazor/Converter/JsonDescriptionEnumConverter.cs b/src/BootstrapBlazor/Converter/JsonDescriptionEnumConverter.cs index 6bc094d6bf3..305440c473d 100644 --- a/src/BootstrapBlazor/Converter/JsonDescriptionEnumConverter.cs +++ b/src/BootstrapBlazor/Converter/JsonDescriptionEnumConverter.cs @@ -9,14 +9,14 @@ namespace BootstrapBlazor.Components; /// -/// Enum 类型 converter that serializes the [Description] attribute of 枚举 values to strings. It is recommended to use instead. -/// Enum type converter that serializes the [Description] attribute of enum values to strings. It is recommended to use instead. +/// Enum 类型 converter that serializes the [Description] attribute of 枚举 values to strings. It is recommended to use instead +/// Enum type converter that serializes the [Description] attribute of enum values to strings. It is recommended to use instead /// public class JsonDescriptionEnumConverter : JsonConverter where T : struct, Enum { /// - /// Reads and converts the JSON to the specified 枚举 类型. - /// Reads and converts the JSON to the specified enum type. + /// Reads and converts the JSON to the specified 枚举 类型 + /// Reads and converts the JSON to the specified enum type /// /// The reader. /// The type to convert. @@ -38,8 +38,8 @@ public override T Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerial } /// - /// Writes the specified 枚举 value as a string using its [Description] attribute. - /// Writes the specified enum value as a string using its [Description] attribute. + /// Writes the specified 枚举 value as a string using its [Description] attribute + /// Writes the specified enum value as a string using its [Description] attribute /// /// The writer. /// The value to write. diff --git a/src/BootstrapBlazor/Converter/JsonEnumConverter.cs b/src/BootstrapBlazor/Converter/JsonEnumConverter.cs index 83ce7ff7448..d17b276326a 100644 --- a/src/BootstrapBlazor/Converter/JsonEnumConverter.cs +++ b/src/BootstrapBlazor/Converter/JsonEnumConverter.cs @@ -9,16 +9,16 @@ namespace BootstrapBlazor.Components; /// -/// JsonEnumConverter is an 枚举 converter that allows customization of 枚举 serialization. -/// JsonEnumConverter is an enum converter that allows customization of enum serialization. +/// JsonEnumConverter is an 枚举 converter that allows customization of 枚举 serialization +/// JsonEnumConverter is an enum converter that allows customization of enum serialization /// /// Optional naming policy for writing enum values. /// True to allow undefined enum values. When true, if an enum value isn't defined it will output as a number rather than a string. public class JsonEnumConverter(bool camelCase = false, bool allowIntegerValues = true) : JsonConverterAttribute { /// - /// Creates a JsonConverter for the specified 类型. - /// Creates a JsonConverter for the specified type. + /// Creates a JsonConverter for the specified 类型 + /// Creates a JsonConverter for the specified type /// /// The type to convert. /// A JsonConverter for the specified type. diff --git a/src/BootstrapBlazor/Extensions/DialogServiceExtensions.cs b/src/BootstrapBlazor/Extensions/DialogServiceExtensions.cs index 9abfbe06304..82791a4a4e7 100644 --- a/src/BootstrapBlazor/Extensions/DialogServiceExtensions.cs +++ b/src/BootstrapBlazor/Extensions/DialogServiceExtensions.cs @@ -15,7 +15,7 @@ public static class DialogServiceExtensions { /// /// Show 对话框泛型方法 - /// Show dialog with generic type. + /// Show dialog with generic type /// /// DialogService 服务实例DialogService instance /// 对话框标题,优先级高于 Dialog title, priority higher than diff --git a/src/BootstrapBlazor/Extensions/DirectoryInfoExtensions.cs b/src/BootstrapBlazor/Extensions/DirectoryInfoExtensions.cs index c5e9dca22c3..b5e1b8378de 100644 --- a/src/BootstrapBlazor/Extensions/DirectoryInfoExtensions.cs +++ b/src/BootstrapBlazor/Extensions/DirectoryInfoExtensions.cs @@ -12,8 +12,8 @@ namespace BootstrapBlazor.Components; public static class DirectoryInfoExtensions { /// - /// Copies the 内容s of the current directory to a specified destination directory. - /// Copies the contents of the current directory to a specified destination directory. + /// Copies the 内容s of the current directory to a specified destination directory + /// Copies the contents of the current directory to a specified destination directory /// /// This method creates the destination directory if it does not already exist. Files in the /// source directory are copied to the destination directory, and if is - /// Tries to convert the string representation of a value to a specified 类型. - /// Tries to convert the string representation of a value to a specified type. + /// Tries to convert the string representation of a value to a specified 类型 + /// Tries to convert the string representation of a value to a specified type /// /// /// @@ -241,8 +241,8 @@ internal static void Clone(this TModel source, TModel item) } /// - /// Creates an 实例 of a 类型 and ensures all class-类型 properties are initialized. - /// Creates an instance of a type and ensures all class-type properties are initialized. + /// Creates an 实例 of a 类型 and ensures all class-类型 properties are initialized + /// Creates an instance of a type and ensures all class-type properties are initialized /// /// The type to create an instance of. /// Whether to automatically initialize model properties default value is false. @@ -273,8 +273,8 @@ internal static void Clone(this TModel source, TModel item) } /// - /// Ensures that all class-类型 properties of the 实例 are initialized. - /// Ensures that all class-type properties of the instance are initialized. + /// Ensures that all class-类型 properties of the 实例 are initialized + /// Ensures that all class-type properties of the instance are initialized /// /// Whether to automatically initialize model properties default value is false. /// The instance to initialize properties for. diff --git a/src/BootstrapBlazor/Extensions/TableColumnFilterExtensions.cs b/src/BootstrapBlazor/Extensions/TableColumnFilterExtensions.cs index f6733e3a3a3..f6a129363fe 100644 --- a/src/BootstrapBlazor/Extensions/TableColumnFilterExtensions.cs +++ b/src/BootstrapBlazor/Extensions/TableColumnFilterExtensions.cs @@ -40,8 +40,8 @@ public static bool IsHeaderRow(this TableColumnFilter? filter) } /// - /// 获得 the field key for the filter. - /// Gets the field key for the filter. + /// 获得 the field key for the filter + /// Gets the field key for the filter /// /// public static string GetFieldKey(this TableColumnFilter? filter) @@ -54,8 +54,8 @@ public static string GetFieldKey(this TableColumnFilter? filter) } /// - /// 获得 the filter title. - /// Gets the filter title. + /// 获得 the filter title + /// Gets the filter title /// /// public static string GetFilterTitle(this TableColumnFilter? filter) diff --git a/src/BootstrapBlazor/Extensions/UploadFileExtensions.cs b/src/BootstrapBlazor/Extensions/UploadFileExtensions.cs index b3ff1602bf3..e236607d6f7 100644 --- a/src/BootstrapBlazor/Extensions/UploadFileExtensions.cs +++ b/src/BootstrapBlazor/Extensions/UploadFileExtensions.cs @@ -193,8 +193,8 @@ public static async Task SaveToFileAsync(this UploadFile upload, string fi } /// - /// Check item 是否 is image extension method. - /// Check item whether is image extension method. + /// Check item 是否 is image extension method + /// Check item whether is image extension method /// /// /// @@ -218,15 +218,15 @@ public static bool IsImage(this UploadFile item, List? allowExtensions = } /// - /// Check item 是否 is base64 format image extension method. - /// Check item whether is base64 format image extension method. + /// Check item 是否 is base64 format image extension method + /// Check item whether is base64 format image extension method /// /// public static bool IsBase64Format(this UploadFile item) => !string.IsNullOrEmpty(item.PrevUrl) && item.PrevUrl.StartsWith("data:image/", StringComparison.OrdinalIgnoreCase); /// - /// Check the extension 是否 in the allowExtensions list. - /// Check the extension whether in the allowExtensions list. + /// Check the extension 是否 in the allowExtensions list + /// Check the extension whether in the allowExtensions list /// /// /// diff --git a/src/BootstrapBlazor/Misc/Internal/LinkerFlags.cs b/src/BootstrapBlazor/Misc/Internal/LinkerFlags.cs index b04cb343ea1..c2a1b333d8d 100644 --- a/src/BootstrapBlazor/Misc/Internal/LinkerFlags.cs +++ b/src/BootstrapBlazor/Misc/Internal/LinkerFlags.cs @@ -10,8 +10,8 @@ namespace Microsoft.AspNetCore.Internal; internal static class LinkerFlags { /// - /// Flags for a member that is JSON (de)serialized. - /// Flags for a member that is JSON (de)serialized. + /// Flags for a member that is JSON (de)serialized + /// Flags for a member that is JSON (de)serialized /// public const DynamicallyAccessedMemberTypes JsonSerialized = DynamicallyAccessedMemberTypes.PublicConstructors | DynamicallyAccessedMemberTypes.PublicFields | DynamicallyAccessedMemberTypes.PublicProperties; diff --git a/src/BootstrapBlazor/Misc/Internal/QueryStringEnumerable.cs b/src/BootstrapBlazor/Misc/Internal/QueryStringEnumerable.cs index 6e5d092ab45..700481b6dc1 100644 --- a/src/BootstrapBlazor/Misc/Internal/QueryStringEnumerable.cs +++ b/src/BootstrapBlazor/Misc/Internal/QueryStringEnumerable.cs @@ -7,8 +7,8 @@ namespace Microsoft.AspNetCore.Internal; /// -/// An 枚举erable that can supply the name/value pairs from a URI query string. -/// An enumerable that can supply the name/value pairs from a URI query string. +/// An 枚举erable that can supply the name/value pairs from a URI query string +/// An enumerable that can supply the name/value pairs from a URI query string /// [ExcludeFromCodeCoverage] internal readonly struct QueryStringEnumerable @@ -16,8 +16,8 @@ internal readonly struct QueryStringEnumerable private readonly ReadOnlyMemory _queryString; /// - /// Constructs an 实例 of . - /// Constructs an instance of . + /// Constructs an 实例 of + /// Constructs an instance of /// /// The query string. public QueryStringEnumerable(string? queryString) @@ -26,8 +26,8 @@ public QueryStringEnumerable(string? queryString) } /// - /// Constructs an 实例 of . - /// Constructs an instance of . + /// Constructs an 实例 of + /// Constructs an instance of /// /// The query string. public QueryStringEnumerable(ReadOnlyMemory queryString) @@ -36,27 +36,27 @@ public QueryStringEnumerable(ReadOnlyMemory queryString) } /// - /// Retrieves an object that can iterate through the name/value pairs in the query string. - /// Retrieves an object that can iterate through the name/value pairs in the query string. + /// Retrieves an object that can iterate through the name/value pairs in the query string + /// Retrieves an object that can iterate through the name/value pairs in the query string /// /// An object that can iterate through the name/value pairs in the query string. public Enumerator GetEnumerator() => new(_queryString); /// - /// Represents a single name/value pair extracted from a query string during 枚举eration. - /// Represents a single name/value pair extracted from a query string during enumeration. + /// Represents a single name/value pair extracted from a query string during 枚举eration + /// Represents a single name/value pair extracted from a query string during enumeration /// public readonly struct EncodedNameValuePair { /// - /// 获得 the name from this name/value pair in its original encoded form. To get the decoded string, call . - /// Gets the name from this name/value pair in its original encoded form. To get the decoded string, call . + /// 获得 the name from this name/value pair in its original encoded form. To get the decoded string, call + /// Gets the name from this name/value pair in its original encoded form. To get the decoded string, call /// public readonly ReadOnlyMemory EncodedName { get; } /// - /// 获得 the value from this name/value pair in its original encoded form. To get the decoded string, call . - /// Gets the value from this name/value pair in its original encoded form. To get the decoded string, call . + /// 获得 the value from this name/value pair in its original encoded form. To get the decoded string, call + /// Gets the value from this name/value pair in its original encoded form. To get the decoded string, call /// public readonly ReadOnlyMemory EncodedValue { get; } @@ -67,16 +67,16 @@ internal EncodedNameValuePair(ReadOnlyMemory encodedName, ReadOnlyMemory - /// Decodes the name from this name/value pair. - /// Decodes the name from this name/value pair. + /// Decodes the name from this name/value pair + /// Decodes the name from this name/value pair /// /// Characters representing the decoded name. public ReadOnlyMemory DecodeName() => Decode(EncodedName); /// - /// Decodes the value from this name/value pair. - /// Decodes the value from this name/value pair. + /// Decodes the value from this name/value pair + /// Decodes the value from this name/value pair /// /// Characters representing the decoded value. public ReadOnlyMemory DecodeValue() @@ -95,8 +95,8 @@ private static ReadOnlyMemory Decode(ReadOnlyMemory chars) } /// - /// An 枚举erator that supplies the name/value pairs from a URI query string. - /// An enumerator that supplies the name/value pairs from a URI query string. + /// An 枚举erator that supplies the name/value pairs from a URI query string + /// An enumerator that supplies the name/value pairs from a URI query string /// public struct Enumerator { @@ -111,14 +111,14 @@ internal Enumerator(ReadOnlyMemory query) } /// - /// 获得 the currently referenced key/value pair in the query string being 枚举erated. - /// Gets the currently referenced key/value pair in the query string being enumerated. + /// 获得 the currently referenced key/value pair in the query string being 枚举erated + /// Gets the currently referenced key/value pair in the query string being enumerated /// public EncodedNameValuePair Current { get; private set; } /// - /// Moves to the next key/value pair in the query string being 枚举erated. - /// Moves to the next key/value pair in the query string being enumerated. + /// Moves to the next key/value pair in the query string being 枚举erated + /// Moves to the next key/value pair in the query string being enumerated /// /// True if there is another key/value pair, otherwise false. public bool MoveNext() diff --git a/src/BootstrapBlazor/Options/BootstrapBlazorOptions.cs b/src/BootstrapBlazor/Options/BootstrapBlazorOptions.cs index e96bea3b2bb..02e9ec23582 100644 --- a/src/BootstrapBlazor/Options/BootstrapBlazorOptions.cs +++ b/src/BootstrapBlazor/Options/BootstrapBlazorOptions.cs @@ -40,8 +40,8 @@ public class BootstrapBlazorOptions : IOptions public string FallbackCulture { get; set; } = "en"; /// - /// 获得/设置 the default position for the Toast component globally, default is null. When set, it overrides the site-wide setting. - /// Gets or sets the default position for the Toast component globally, default is null. When set, it overrides the site-wide setting. + /// 获得/设置 the default position for the Toast component globally, default is null. When set, it overrides the site-wide setting + /// Gets or sets the default position for the Toast component globally, default is null. When set, it overrides the site-wide setting /// public Placement? ToastPlacement { get; set; } @@ -64,8 +64,8 @@ public class BootstrapBlazorOptions : IOptions public bool ShowErrorLoggerToast { get; set; } = true; /// - /// 获得/设置 a value indicating 是否 error logging using an is enabled, default is true. - /// Gets or sets a value indicating whether error logging using an is enabled, default is true. + /// 获得/设置 a value indicating 是否 error logging using an is enabled, default is true + /// Gets or sets a value indicating whether error logging using an is enabled, default is true /// public bool EnableErrorLoggerILogger { get; set; } = true; diff --git a/src/BootstrapBlazor/Options/MarginOptions.cs b/src/BootstrapBlazor/Options/MarginOptions.cs index 120ee1705f7..3ea886bf594 100644 --- a/src/BootstrapBlazor/Options/MarginOptions.cs +++ b/src/BootstrapBlazor/Options/MarginOptions.cs @@ -13,26 +13,26 @@ namespace BootstrapBlazor.Components; public record MarginOptions { /// - /// Top margin, accepts values labeled with units. - /// Top margin, accepts values labeled with units. + /// Top margin, accepts values labeled with units + /// Top margin, accepts values labeled with units /// public object? Top { get; set; } /// - /// Left margin, accepts values labeled with units. - /// Left margin, accepts values labeled with units. + /// Left margin, accepts values labeled with units + /// Left margin, accepts values labeled with units /// public object? Left { get; set; } /// - /// Bottom margin, accepts values labeled with units. - /// Bottom margin, accepts values labeled with units. + /// Bottom margin, accepts values labeled with units + /// Bottom margin, accepts values labeled with units /// public object? Bottom { get; set; } /// - /// Right margin, accepts values labeled with units. - /// Right margin, accepts values labeled with units. + /// Right margin, accepts values labeled with units + /// Right margin, accepts values labeled with units /// public object? Right { get; set; } } diff --git a/src/BootstrapBlazor/Options/OtpOptions.cs b/src/BootstrapBlazor/Options/OtpOptions.cs index 452c755808a..b66f010f004 100644 --- a/src/BootstrapBlazor/Options/OtpOptions.cs +++ b/src/BootstrapBlazor/Options/OtpOptions.cs @@ -12,8 +12,8 @@ namespace BootstrapBlazor.Components; public class OtpOptions { /// - /// 获得/设置 the secret key used for generating the QR code. - /// Gets or sets the secret key used for generating the QR code. + /// 获得/设置 the secret key used for generating the QR code + /// Gets or sets the secret key used for generating the QR code /// public string? SecretKey { get; set; } @@ -36,52 +36,52 @@ public class OtpOptions public string? UserName { get; set; } /// - /// 获得/设置 the OTP hash mode. - /// Gets or sets the OTP hash mode. + /// 获得/设置 the OTP hash mode + /// Gets or sets the OTP hash mode /// public OtpHashMode Algorithm { get; set; } /// - /// 获得/设置 the OTP 类型. - /// Gets or sets the OTP type. + /// 获得/设置 the OTP 类型 + /// Gets or sets the OTP type /// public OtpType Type { get; set; } /// - /// 获得/设置 the code length. 默认为 6. - /// Gets or sets the code length. Default is 6. + /// 获得/设置 the code length. 默认为 6 + /// Gets or sets the code length. Default is 6 /// public int Digits { get; set; } = 6; /// - /// 获得/设置 the period in seconds for TOTP. 默认为 30. - /// Gets or sets the period in seconds for TOTP. Default is 30. + /// 获得/设置 the period in seconds for TOTP. 默认为 30 + /// Gets or sets the period in seconds for TOTP. Default is 30 /// public int Period { get; set; } = 30; /// - /// 获得/设置 the counter for Hotp. 默认为 0. - /// Gets or sets the counter for Hotp. Default is 0. + /// 获得/设置 the counter for Hotp. 默认为 0 + /// Gets or sets the counter for Hotp. Default is 0 /// public int Counter { get; set; } } /// -/// Abstract class representing a Time-based One-Time Password (TOTP) 实例. -/// Abstract class representing a Time-based One-Time Password (TOTP) instance. +/// Abstract class representing a Time-based One-Time Password (TOTP) 实例 +/// Abstract class representing a Time-based One-Time Password (TOTP) instance /// public abstract class TotpInstanceBase { /// - /// Get the remaining seconds until the next TOTP expiration for the given secret key and timestamp. - /// Get the remaining seconds until the next TOTP expiration for the given secret key and timestamp. + /// Get the remaining seconds until the next TOTP expiration for the given secret key and timestamp + /// Get the remaining seconds until the next TOTP expiration for the given secret key and timestamp /// /// public abstract int GetRemainingSeconds(DateTime? timestamp = null); /// - /// Verify the given TOTP code against the expected value using the provided secret key. - /// Verify the given TOTP code against the expected value using the provided secret key. + /// Verify the given TOTP code against the expected value using the provided secret key + /// Verify the given TOTP code against the expected value using the provided secret key /// /// /// @@ -89,8 +89,8 @@ public abstract class TotpInstanceBase } /// -/// Abstract class representing an HMAC-based One-Time Password (HOTP) 实例. -/// Abstract class representing an HMAC-based One-Time Password (HOTP) instance. +/// Abstract class representing an HMAC-based One-Time Password (HOTP) 实例 +/// Abstract class representing an HMAC-based One-Time Password (HOTP) instance /// public abstract class HotpInstanceBase { @@ -104,8 +104,8 @@ public abstract class HotpInstanceBase } /// -/// Enum representing the OTP hash modes. -/// Enum representing the OTP hash modes. +/// Enum representing the OTP hash modes +/// Enum representing the OTP hash modes /// public enum OtpHashMode { @@ -129,8 +129,8 @@ public enum OtpHashMode } /// -/// Enum representing the OTP 类型s. -/// Enum representing the OTP types. +/// Enum representing the OTP 类型s +/// Enum representing the OTP types /// public enum OtpType { diff --git a/src/BootstrapBlazor/Options/TableExportOptions.cs b/src/BootstrapBlazor/Options/TableExportOptions.cs index 43a54a6507d..8b9b8a11d09 100644 --- a/src/BootstrapBlazor/Options/TableExportOptions.cs +++ b/src/BootstrapBlazor/Options/TableExportOptions.cs @@ -14,46 +14,46 @@ namespace BootstrapBlazor.Components; public class TableExportOptions { /// - /// Gets or sets whether to use formatting. Default is true. If or is set, the formatted value will be used. - /// Gets or sets whether to use formatting. Default is true. If or is set, the formatted value will be used. + /// Gets or sets whether to use formatting. Default is true. If or is set, the formatted value will be used + /// Gets or sets whether to use formatting. Default is true. If or is set, the formatted value will be used /// /// Note: After formatting, the returned value is a string, which may change the original value type. public bool EnableFormat { get; set; } = true; /// - /// Gets or sets whether to use Lookup. Default is true. - /// Gets or sets whether to use Lookup. Default is true. + /// Gets or sets whether to use Lookup. Default is true + /// Gets or sets whether to use Lookup. Default is true /// public bool EnableLookup { get; set; } = true; /// - /// Gets or sets whether to merge array-type values. Default is true. - /// Gets or sets whether to merge array-type values. Default is true. + /// Gets or sets whether to merge array-type values. Default is true + /// Gets or sets whether to merge array-type values. Default is true /// public bool AutoMergeArray { get; set; } = true; /// - /// Gets or sets whether to use the tag for enum types. Default is true. - /// Gets or sets whether to use the tag for enum types. Default is true. + /// Gets or sets whether to use the tag for enum types. Default is true + /// Gets or sets whether to use the tag for enum types. Default is true /// public bool UseEnumDescription { get; set; } = true; /// - /// Gets or sets the delimiter used when merging array-type values. Default is a comma. - /// Gets or sets the delimiter used when merging array-type values. Default is a comma. + /// Gets or sets the delimiter used when merging array-type values. Default is a comma + /// Gets or sets the delimiter used when merging array-type values. Default is a comma /// /// Note: After formatting, the returned value is a string, which may change the original value type. public string ArrayDelimiter { get; set; } = ","; /// - /// Gets or sets whether to enable Excel auto-filtering. Default is true. - /// Gets or sets whether to enable Excel auto-filtering. Default is true. + /// Gets or sets whether to enable Excel auto-filtering. Default is true + /// Gets or sets whether to enable Excel auto-filtering. Default is true /// public bool EnableAutoFilter { get; set; } = true; /// - /// Gets or sets whether to enable Excel auto-width. Default is false. - /// Gets or sets whether to enable Excel auto-width. Default is false. + /// Gets or sets whether to enable Excel auto-width. Default is false + /// Gets or sets whether to enable Excel auto-width. Default is false /// public bool EnableAutoWidth { get; set; } } diff --git a/src/BootstrapBlazor/Services/Bluetooth/BluetoothFilter.cs b/src/BootstrapBlazor/Services/Bluetooth/BluetoothFilter.cs index 29b87df5333..a740ef12de8 100644 --- a/src/BootstrapBlazor/Services/Bluetooth/BluetoothFilter.cs +++ b/src/BootstrapBlazor/Services/Bluetooth/BluetoothFilter.cs @@ -14,36 +14,36 @@ namespace BootstrapBlazor.Components; public class BluetoothFilter { /// - /// An array of values indicating the Bluetooth GATT (Generic Attribute Profile) services that a Bluetooth device must support. Each value can be a valid name from the GATT assigned services list, such as 'battery_service' or 'blood_pressure'. You can also pass a full service UUID such as '0000180F-0000-1000-8000-00805f9b34fb' or the short 16-bit (0x180F) or 32-bit alias. Note that these are the same values that can be passed to BluetoothUUID.getService(). - /// An array of values indicating the Bluetooth GATT (Generic Attribute Profile) services that a Bluetooth device must support. Each value can be a valid name from the GATT assigned services list, such as 'battery_service' or 'blood_pressure'. You can also pass a full service UUID such as '0000180F-0000-1000-8000-00805f9b34fb' or the short 16-bit (0x180F) or 32-bit alias. Note that these are the same values that can be passed to BluetoothUUID.getService(). + /// An array of values indicating the Bluetooth GATT (Generic Attribute Profile) services that a Bluetooth device must support. Each value can be a valid name from the GATT assigned services list, such as 'battery_service' or 'blood_pressure'. You can also pass a full service UUID such as '0000180F-0000-1000-8000-00805f9b34fb' or the short 16-bit (0x180F) or 32-bit alias. Note that these are the same values that can be passed to BluetoothUUID.getService() + /// An array of values indicating the Bluetooth GATT (Generic Attribute Profile) services that a Bluetooth device must support. Each value can be a valid name from the GATT assigned services list, such as 'battery_service' or 'blood_pressure'. You can also pass a full service UUID such as '0000180F-0000-1000-8000-00805f9b34fb' or the short 16-bit (0x180F) or 32-bit alias. Note that these are the same values that can be passed to BluetoothUUID.getService() /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public List? Services { get; set; } /// - /// A string containing the precise name of the device to match against. - /// A string containing the precise name of the device to match against. + /// A string containing the precise name of the device to match against + /// A string containing the precise name of the device to match against /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? Name { get; set; } /// - /// A string containing the name prefix to match against. All devices that have a name starting with this string will be matched. - /// A string containing the name prefix to match against. All devices that have a name starting with this string will be matched. + /// A string containing the name prefix to match against. All devices that have a name starting with this string will be matched + /// A string containing the name prefix to match against. All devices that have a name starting with this string will be matched /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? NamePrefix { get; set; } /// - /// An array of objects matching against manufacturer 数据 in the Bluetooth Low Energy (BLE) advertising packets. - /// An array of objects matching against manufacturer data in the Bluetooth Low Energy (BLE) advertising packets. + /// An array of objects matching against manufacturer 数据 in the Bluetooth Low Energy (BLE) advertising packets + /// An array of objects matching against manufacturer data in the Bluetooth Low Energy (BLE) advertising packets /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public List? ManufacturerData { get; set; } /// - /// An array of objects matching against service 数据 in the Bluetooth Low Energy (BLE) advertising packets. - /// An array of objects matching against service data in the Bluetooth Low Energy (BLE) advertising packets. + /// An array of objects matching against service 数据 in the Bluetooth Low Energy (BLE) advertising packets + /// An array of objects matching against service data in the Bluetooth Low Energy (BLE) advertising packets /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public List? ServiceData { get; set; } diff --git a/src/BootstrapBlazor/Services/Bluetooth/BluetoothManufacturerDataFilter.cs b/src/BootstrapBlazor/Services/Bluetooth/BluetoothManufacturerDataFilter.cs index 99cf0d91a03..45a5a33dfa6 100644 --- a/src/BootstrapBlazor/Services/Bluetooth/BluetoothManufacturerDataFilter.cs +++ b/src/BootstrapBlazor/Services/Bluetooth/BluetoothManufacturerDataFilter.cs @@ -14,22 +14,22 @@ namespace BootstrapBlazor.Components; public class BluetoothManufacturerDataFilter { /// - /// A mandatory number identifying the manufacturer of the device. Company identifiers are listed in the Bluetooth specification Assigned numbers, Section 7. For example, to match against devices manufactured by "Digianswer A/S", with assigned hex number 0x000C, you would specify 12. - /// A mandatory number identifying the manufacturer of the device. Company identifiers are listed in the Bluetooth specification Assigned numbers, Section 7. For example, to match against devices manufactured by "Digianswer A/S", with assigned hex number 0x000C, you would specify 12. + /// A mandatory number identifying the manufacturer of the device. Company identifiers are listed in the Bluetooth specification Assigned numbers, Section 7. For example, to match against devices manufactured by "Digianswer A/S", with assigned hex number 0x000C, you would specify 12 + /// A mandatory number identifying the manufacturer of the device. Company identifiers are listed in the Bluetooth specification Assigned numbers, Section 7. For example, to match against devices manufactured by "Digianswer A/S", with assigned hex number 0x000C, you would specify 12 /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public int? CompanyIdentifier { get; set; } /// - /// 数据 prefix. A buffer containing values to match against the values at the start of the advertising manufacturer 数据. - /// The data prefix. A buffer containing values to match against the values at the start of the advertising manufacturer data. + /// 数据 prefix. A buffer containing values to match against the values at the start of the advertising manufacturer 数据 + /// The data prefix. A buffer containing values to match against the values at the start of the advertising manufacturer data /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? DataPrefix { get; set; } /// - /// This allows you to match against bytes within the manufacturer 数据, by masking some bytes of the service 数据 数据Prefix. - /// This allows you to match against bytes within the manufacturer data, by masking some bytes of the service data dataPrefix. + /// This allows you to match against bytes within the manufacturer 数据, by masking some bytes of the service 数据 数据Prefix + /// This allows you to match against bytes within the manufacturer data, by masking some bytes of the service data dataPrefix /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? Mask { get; set; } diff --git a/src/BootstrapBlazor/Services/Bluetooth/BluetoothRequestOptions.cs b/src/BootstrapBlazor/Services/Bluetooth/BluetoothRequestOptions.cs index 90fc813beb2..6ecf8982c21 100644 --- a/src/BootstrapBlazor/Services/Bluetooth/BluetoothRequestOptions.cs +++ b/src/BootstrapBlazor/Services/Bluetooth/BluetoothRequestOptions.cs @@ -22,29 +22,29 @@ public class BluetoothRequestOptions public List? Filters { get; set; } /// - /// An array of filter objects indicating the characteristics of devices that will be excluded from matching. properties of the array elements are the same as for . - /// An array of filter objects indicating the characteristics of devices that will be excluded from matching. The properties of the array elements are the same as for . + /// An array of filter objects indicating the characteristics of devices that will be excluded from matching. properties of the array elements are the same as for + /// An array of filter objects indicating the characteristics of devices that will be excluded from matching. The properties of the array elements are the same as for /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public List? ExclusionFilters { get; set; } /// - /// An array of optional service identifiers. - /// An array of optional service identifiers. + /// An array of optional service identifiers + /// An array of optional service identifiers /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public List? OptionalServices { get; set; } /// - /// An optional array of integer manufacturer codes. This takes the same values as companyIdentifier. - /// An optional array of integer manufacturer codes. This takes the same values as companyIdentifier. + /// An optional array of integer manufacturer codes. This takes the same values as companyIdentifier + /// An optional array of integer manufacturer codes. This takes the same values as companyIdentifier /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public List? OptionalManufacturerData { get; set; } /// - /// A boolean value indicating that the requesting script can accept all Bluetooth devices. default is false. - /// A boolean value indicating that the requesting script can accept all Bluetooth devices. The default is false. + /// A boolean value indicating that the requesting script can accept all Bluetooth devices. default is false + /// A boolean value indicating that the requesting script can accept all Bluetooth devices. The default is false /// /// This option is appropriate when devices have not advertised enough information for filtering to be useful. When acceptAllDevices is set to true you should omit all filters and exclusionFilters, and you must set optionalServices to be able to use the returned device. [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)] diff --git a/src/BootstrapBlazor/Services/Bluetooth/BluetoothServiceDataFilter.cs b/src/BootstrapBlazor/Services/Bluetooth/BluetoothServiceDataFilter.cs index 9b447b627af..3c6a305251d 100644 --- a/src/BootstrapBlazor/Services/Bluetooth/BluetoothServiceDataFilter.cs +++ b/src/BootstrapBlazor/Services/Bluetooth/BluetoothServiceDataFilter.cs @@ -14,22 +14,22 @@ namespace BootstrapBlazor.Components; public class BluetoothServiceDataFilter { /// - /// GATT service name, the service UUID, or the UUID 16-bit or 32-bit form. This takes the same values as the elements of the services array. - /// The GATT service name, the service UUID, or the UUID 16-bit or 32-bit form. This takes the same values as the elements of the services array. + /// GATT service name, the service UUID, or the UUID 16-bit or 32-bit form. This takes the same values as the elements of the services array + /// The GATT service name, the service UUID, or the UUID 16-bit or 32-bit form. This takes the same values as the elements of the services array /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? Service { get; set; } /// - /// 数据 prefix. A buffer containing values to match against the values at the start of the advertising service 数据. - /// The data prefix. A buffer containing values to match against the values at the start of the advertising service data. + /// 数据 prefix. A buffer containing values to match against the values at the start of the advertising service 数据 + /// The data prefix. A buffer containing values to match against the values at the start of the advertising service data /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? DataPrefix { get; set; } /// - /// This allows you to match against bytes within the manufacturer 数据, by masking some bytes of the service 数据 数据Prefix. - /// This allows you to match against bytes within the manufacturer data, by masking some bytes of the service data dataPrefix. + /// This allows you to match against bytes within the manufacturer 数据, by masking some bytes of the service 数据 数据Prefix + /// This allows you to match against bytes within the manufacturer data, by masking some bytes of the service data dataPrefix /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? Mask { get; set; } diff --git a/src/BootstrapBlazor/Services/IEntityFrameworkCoreDataService.cs b/src/BootstrapBlazor/Services/IEntityFrameworkCoreDataService.cs index 0c094fb9d14..0700af52328 100644 --- a/src/BootstrapBlazor/Services/IEntityFrameworkCoreDataService.cs +++ b/src/BootstrapBlazor/Services/IEntityFrameworkCoreDataService.cs @@ -13,7 +13,7 @@ public interface IEntityFrameworkCoreDataService { /// /// 取消方法,由于编辑时使用的是克隆数据,常见取消用法不需要写任何代码,可用于保存数据下次编辑时恢复 - /// Cancel method. Since cloned data is used during editing, no code is required for common cancellation usage. It can be used to restore data for the next edit save. + /// Cancel method. Since cloned data is used during editing, no code is required for common cancellation usage. It can be used to restore data for the next edit save /// Task CancelAsync(); diff --git a/src/BootstrapBlazor/Services/IHtml2ImageOptions.cs b/src/BootstrapBlazor/Services/IHtml2ImageOptions.cs index 9701608443c..f918ef59fc4 100644 --- a/src/BootstrapBlazor/Services/IHtml2ImageOptions.cs +++ b/src/BootstrapBlazor/Services/IHtml2ImageOptions.cs @@ -12,44 +12,44 @@ namespace BootstrapBlazor.Components; public interface IHtml2ImageOptions { /// - /// Width in pixels to be applied to node before rendering. - /// Width in pixels to be applied to node before rendering. + /// Width in pixels to be applied to node before rendering + /// Width in pixels to be applied to node before rendering /// int? Width { get; set; } /// - /// Height in pixels to be applied to node before rendering. - /// Height in pixels to be applied to node before rendering. + /// Height in pixels to be applied to node before rendering + /// Height in pixels to be applied to node before rendering /// int? Height { get; set; } /// - /// A string value for the background 颜色, any valid CSS 颜色 value. - /// A string value for the background color, any valid CSS color value. + /// A string value for the background 颜色, any valid CSS 颜色 value + /// A string value for the background color, any valid CSS color value /// string? BackgroundColor { get; set; } /// - /// Width in pixels to be applied to canvas on export. - /// Width in pixels to be applied to canvas on export. + /// Width in pixels to be applied to canvas on export + /// Width in pixels to be applied to canvas on export /// int? CanvasWidth { get; set; } /// - /// Height in pixels to be applied to canvas on export. - /// Height in pixels to be applied to canvas on export. + /// Height in pixels to be applied to canvas on export + /// Height in pixels to be applied to canvas on export /// int? CanvasHeight { get; set; } /// - /// An array of 样式 properties to be copied to node's 样式 before rendering. For performance-critical scenarios, users may want to specify only the required properties instead of all 样式s. - /// An array of style properties to be copied to node's style before rendering. For performance-critical scenarios, users may want to specify only the required properties instead of all styles. + /// An array of 样式 properties to be copied to node's 样式 before rendering. For performance-critical scenarios, users may want to specify only the required properties instead of all 样式s + /// An array of style properties to be copied to node's style before rendering. For performance-critical scenarios, users may want to specify only the required properties instead of all styles /// string[]? IncludeStyleProperties { get; set; } /// - /// A number between `0` and `1` indicating image quality (e.g. 0.92 => 92%) of the JPEG image. - /// A number between `0` and `1` indicating image quality (e.g. 0.92 => 92%) of the JPEG image. + /// A number between `0` and `1` indicating image quality (e.g. 0.92 => 92%) of the JPEG image + /// A number between `0` and `1` indicating image quality (e.g. 0.92 => 92%) of the JPEG image /// double? Quality { get; set; } @@ -60,8 +60,8 @@ public interface IHtml2ImageOptions double? PixelRatio { get; set; } /// - /// A string indicating the image format. default 类型 is image/png; that 类型 is also used if the given 类型 isn't supported. - /// A string indicating the image format. The default type is image/png; that type is also used if the given type isn't supported. + /// A string indicating the image format. default 类型 is image/png; that 类型 is also used if the given 类型 isn't supported + /// A string indicating the image format. The default type is image/png; that type is also used if the given type isn't supported /// string? Type { get; set; } } diff --git a/src/BootstrapBlazor/Services/INetworkMonitorService.cs b/src/BootstrapBlazor/Services/INetworkMonitorService.cs index 57b445a20c0..2b71fed1801 100644 --- a/src/BootstrapBlazor/Services/INetworkMonitorService.cs +++ b/src/BootstrapBlazor/Services/INetworkMonitorService.cs @@ -6,14 +6,14 @@ namespace BootstrapBlazor.Components; /// -/// Defines a service for monitoring network state and retrieving the current network monitor status. -/// Defines a service for monitoring network state and retrieving the current network monitor status. +/// Defines a service for monitoring network state and retrieving the current network monitor status +/// Defines a service for monitoring network state and retrieving the current network monitor status /// public interface INetworkMonitorService { /// - /// Retrieves the current state of the network monitor. - /// Retrieves the current state of the network monitor. + /// Retrieves the current state of the network monitor + /// Retrieves the current state of the network monitor /// /// A cancellation token that can be used to cancel the operation. /// A task representing the asynchronous operation. The task result contains the current GetNetworkMonitorState(CancellationToken token = default); /// - /// Registers a 回调 to be invoked when the network monitor state changes. - /// Registers a callback to be invoked when the network monitor state changes. + /// Registers a 回调 to be invoked when the network monitor state changes + /// Registers a callback to be invoked when the network monitor state changes /// /// The callback is executed asynchronously whenever the network monitor detects a change in /// state. Ensure that the callback function is thread-safe and handles any exceptions that may occur during @@ -33,8 +33,8 @@ public interface INetworkMonitorService Task RegisterStateChangedCallback(IComponent component, Func callback); /// - /// Unregisters a previously registered 回调 for state changes on the specified component. - /// Unregisters a previously registered callback for state changes on the specified component. + /// Unregisters a previously registered 回调 for state changes on the specified component + /// Unregisters a previously registered callback for state changes on the specified component /// /// The component for which the state change callback should be unregistered. Cannot be null. void UnregisterStateChangedCallback(IComponent component); diff --git a/src/BootstrapBlazor/Services/IThemeProvider.cs b/src/BootstrapBlazor/Services/IThemeProvider.cs index 35fec1d06be..4d53e2b3b6d 100644 --- a/src/BootstrapBlazor/Services/IThemeProvider.cs +++ b/src/BootstrapBlazor/Services/IThemeProvider.cs @@ -12,16 +12,16 @@ namespace BootstrapBlazor.Components; public interface IThemeProvider { /// - /// 设置 the theme asynchronously. - /// Sets the theme asynchronously. + /// 设置 the theme asynchronously + /// Sets the theme asynchronously /// /// The name of the theme to set. /// A representing the asynchronous operation. ValueTask SetThemeAsync(string themeName); /// - /// 获得 the current theme asynchronously. - /// Gets the current theme asynchronously. + /// 获得 the current theme asynchronously + /// Gets the current theme asynchronously /// /// A representing the asynchronous operation, with the current theme name as the result. ValueTask GetThemeAsync(); diff --git a/src/BootstrapBlazor/Services/ITotpService.cs b/src/BootstrapBlazor/Services/ITotpService.cs index c04a4e0c54b..823516a80cc 100644 --- a/src/BootstrapBlazor/Services/ITotpService.cs +++ b/src/BootstrapBlazor/Services/ITotpService.cs @@ -12,15 +12,15 @@ namespace BootstrapBlazor.Components; public interface ITotpService { /// - /// Generates a one-time password (OTP) URI for the specified parameters. - /// Generates a one-time password (OTP) URI for the specified parameters. + /// Generates a one-time password (OTP) URI for the specified parameters + /// Generates a one-time password (OTP) URI for the specified parameters /// /// the instance of string GenerateOtpUri(OtpOptions? options = null); /// - /// Computes the Time-based One-Time Password (TOTP) for the given secret key and timestamp. - /// Computes the Time-based One-Time Password (TOTP) for the given secret key and timestamp. + /// Computes the Time-based One-Time Password (TOTP) for the given secret key and timestamp + /// Computes the Time-based One-Time Password (TOTP) for the given secret key and timestamp /// /// /// @@ -30,35 +30,35 @@ public interface ITotpService string Compute(string secretKey, int period = 30, OtpHashMode mode = OtpHashMode.Sha1, int digits = 6, DateTime? timestamp = null); /// - /// Computes the remaining seconds until the next TOTP expiration for the given secret key and timestamp. - /// Computes the remaining seconds until the next TOTP expiration for the given secret key and timestamp. + /// Computes the remaining seconds until the next TOTP expiration for the given secret key and timestamp + /// Computes the remaining seconds until the next TOTP expiration for the given secret key and timestamp /// /// int GetRemainingSeconds(DateTime? timestamp = null); /// - /// Generates a random secret key for OTP authentication. - /// Generates a random secret key for OTP authentication. + /// Generates a random secret key for OTP authentication + /// Generates a random secret key for OTP authentication /// string GenerateSecretKey(int length = 20); /// - /// 获得 the secret key bytes from the given input string. - /// Gets the secret key bytes from the given input string. + /// 获得 the secret key bytes from the given input string + /// Gets the secret key bytes from the given input string /// byte[] GetSecretKeyBytes(string input); /// - /// Verifies the given TOTP code against the expected value using the provided secret key. - /// Verifies the given TOTP code against the expected value using the provided secret key. + /// Verifies the given TOTP code against the expected value using the provided secret key + /// Verifies the given TOTP code against the expected value using the provided secret key /// /// /// bool Verify(string code, DateTime? timestamp = null); /// - /// 获得 the 实例. 默认为 null. - /// Gets the instance. Default is null. + /// 获得 the 实例. 默认为 null + /// Gets the instance. Default is null /// TotpInstanceBase Instance { get; } } diff --git a/src/BootstrapBlazor/Services/Internal/HtmlRenderer.cs b/src/BootstrapBlazor/Services/Internal/HtmlRenderer.cs index d56617a84d1..a308c71eeb4 100644 --- a/src/BootstrapBlazor/Services/Internal/HtmlRenderer.cs +++ b/src/BootstrapBlazor/Services/Internal/HtmlRenderer.cs @@ -13,8 +13,8 @@ namespace Microsoft.AspNetCore.Components.Web; /// -/// Provides a mechanism for rendering components non-interactively as HTML markup. -/// Provides a mechanism for rendering components non-interactively as HTML markup. +/// Provides a mechanism for rendering components non-interactively as HTML markup +/// Provides a mechanism for rendering components non-interactively as HTML markup /// [ExcludeFromCodeCoverage] sealed class HtmlRenderer : IDisposable, IAsyncDisposable @@ -22,8 +22,8 @@ sealed class HtmlRenderer : IDisposable, IAsyncDisposable private readonly StaticHtmlRenderer _passiveHtmlRenderer; /// - /// Constructs an 实例 of . - /// Constructs an instance of . + /// Constructs an 实例 of + /// Constructs an instance of /// /// The services to use when rendering components. /// The logger factory to use. @@ -45,14 +45,14 @@ public ValueTask DisposeAsync() => _passiveHtmlRenderer.DisposeAsync(); /// - /// 获得 the associated with this 实例. Any calls to or must be performed using this . - /// Gets the associated with this instance. Any calls to or must be performed using this . + /// 获得 the associated with this 实例. Any calls to or must be performed using this + /// Gets the associated with this instance. Any calls to or must be performed using this /// public Dispatcher Dispatcher => _passiveHtmlRenderer.Dispatcher; /// - /// Adds an 实例 of the specified component and instructs it to render. resulting 内容 represents the initial synchronous rendering output, which may later change. To wait for the component hierarchy to complete any asynchronous operations such as loading, await before reading 内容 from the . - /// Adds an instance of the specified component and instructs it to render. The resulting content represents the initial synchronous rendering output, which may later change. To wait for the component hierarchy to complete any asynchronous operations such as loading, await before reading content from the . + /// Adds an 实例 of the specified component and instructs it to render. resulting 内容 represents the initial synchronous rendering output, which may later change. To wait for the component hierarchy to complete any asynchronous operations such as loading, await before reading 内容 from the + /// Adds an instance of the specified component and instructs it to render. The resulting content represents the initial synchronous rendering output, which may later change. To wait for the component hierarchy to complete any asynchronous operations such as loading, await before reading content from the /// /// The component type. /// An instance representing the render output. @@ -60,8 +60,8 @@ public ValueTask DisposeAsync() => _passiveHtmlRenderer.BeginRenderingComponent(typeof(TComponent), ParameterView.Empty); /// - /// Adds an 实例 of the specified component and instructs it to render. resulting 内容 represents the initial synchronous rendering output, which may later change. To wait for the component hierarchy to complete any asynchronous operations such as loading, await before reading 内容 from the . - /// Adds an instance of the specified component and instructs it to render. The resulting content represents the initial synchronous rendering output, which may later change. To wait for the component hierarchy to complete any asynchronous operations such as loading, await before reading content from the . + /// Adds an 实例 of the specified component and instructs it to render. resulting 内容 represents the initial synchronous rendering output, which may later change. To wait for the component hierarchy to complete any asynchronous operations such as loading, await before reading 内容 from the + /// Adds an instance of the specified component and instructs it to render. The resulting content represents the initial synchronous rendering output, which may later change. To wait for the component hierarchy to complete any asynchronous operations such as loading, await before reading content from the /// /// The component type. /// Parameters for the component. @@ -71,8 +71,8 @@ public ValueTask DisposeAsync() => _passiveHtmlRenderer.BeginRenderingComponent(typeof(TComponent), parameters); /// - /// Adds an 实例 of the specified component and instructs it to render. resulting 内容 represents the initial synchronous rendering output, which may later change. To wait for the component hierarchy to complete any asynchronous operations such as loading, await before reading 内容 from the . - /// Adds an instance of the specified component and instructs it to render. The resulting content represents the initial synchronous rendering output, which may later change. To wait for the component hierarchy to complete any asynchronous operations such as loading, await before reading content from the . + /// Adds an 实例 of the specified component and instructs it to render. resulting 内容 represents the initial synchronous rendering output, which may later change. To wait for the component hierarchy to complete any asynchronous operations such as loading, await before reading 内容 from the + /// Adds an instance of the specified component and instructs it to render. The resulting content represents the initial synchronous rendering output, which may later change. To wait for the component hierarchy to complete any asynchronous operations such as loading, await before reading content from the /// /// The component type. This must implement . /// An instance representing the render output. @@ -81,8 +81,8 @@ public HtmlRootComponent BeginRenderingComponent( => _passiveHtmlRenderer.BeginRenderingComponent(componentType, ParameterView.Empty); /// - /// Adds an 实例 of the specified component and instructs it to render. resulting 内容 represents the initial synchronous rendering output, which may later change. To wait for the component hierarchy to complete any asynchronous operations such as loading, await before reading 内容 from the . - /// Adds an instance of the specified component and instructs it to render. The resulting content represents the initial synchronous rendering output, which may later change. To wait for the component hierarchy to complete any asynchronous operations such as loading, await before reading content from the . + /// Adds an 实例 of the specified component and instructs it to render. resulting 内容 represents the initial synchronous rendering output, which may later change. To wait for the component hierarchy to complete any asynchronous operations such as loading, await before reading 内容 from the + /// Adds an instance of the specified component and instructs it to render. The resulting content represents the initial synchronous rendering output, which may later change. To wait for the component hierarchy to complete any asynchronous operations such as loading, await before reading content from the /// /// The component type. This must implement . /// Parameters for the component. @@ -93,8 +93,8 @@ public HtmlRootComponent BeginRenderingComponent( => _passiveHtmlRenderer.BeginRenderingComponent(componentType, parameters); /// - /// Adds an 实例 of the specified component and instructs it to render, waiting for the component hierarchy to complete asynchronous tasks such as loading. - /// Adds an instance of the specified component and instructs it to render, waiting for the component hierarchy to complete asynchronous tasks such as loading. + /// Adds an 实例 of the specified component and instructs it to render, waiting for the component hierarchy to complete asynchronous tasks such as loading + /// Adds an instance of the specified component and instructs it to render, waiting for the component hierarchy to complete asynchronous tasks such as loading /// /// The component type. /// A task that completes with once the component hierarchy has completed any asynchronous tasks such as loading. @@ -102,8 +102,8 @@ public HtmlRootComponent BeginRenderingComponent( => RenderComponentAsync(ParameterView.Empty); /// - /// Adds an 实例 of the specified component and instructs it to render, waiting for the component hierarchy to complete asynchronous tasks such as loading. - /// Adds an instance of the specified component and instructs it to render, waiting for the component hierarchy to complete asynchronous tasks such as loading. + /// Adds an 实例 of the specified component and instructs it to render, waiting for the component hierarchy to complete asynchronous tasks such as loading + /// Adds an instance of the specified component and instructs it to render, waiting for the component hierarchy to complete asynchronous tasks such as loading /// /// The component type. This must implement . /// A task that completes with once the component hierarchy has completed any asynchronous tasks such as loading. @@ -112,8 +112,8 @@ public Task RenderComponentAsync( => RenderComponentAsync(componentType, ParameterView.Empty); /// - /// Adds an 实例 of the specified component and instructs it to render, waiting for the component hierarchy to complete asynchronous tasks such as loading. - /// Adds an instance of the specified component and instructs it to render, waiting for the component hierarchy to complete asynchronous tasks such as loading. + /// Adds an 实例 of the specified component and instructs it to render, waiting for the component hierarchy to complete asynchronous tasks such as loading + /// Adds an instance of the specified component and instructs it to render, waiting for the component hierarchy to complete asynchronous tasks such as loading /// /// The component type. /// Parameters for the component. @@ -123,8 +123,8 @@ public Task RenderComponentAsync( => RenderComponentAsync(typeof(TComponent), parameters); /// - /// Adds an 实例 of the specified component and instructs it to render, waiting for the component hierarchy to complete asynchronous tasks such as loading. - /// Adds an instance of the specified component and instructs it to render, waiting for the component hierarchy to complete asynchronous tasks such as loading. + /// Adds an 实例 of the specified component and instructs it to render, waiting for the component hierarchy to complete asynchronous tasks such as loading + /// Adds an instance of the specified component and instructs it to render, waiting for the component hierarchy to complete asynchronous tasks such as loading /// /// The component type. This must implement . /// Parameters for the component. diff --git a/src/BootstrapBlazor/Services/Internal/HtmlRootComponent.cs b/src/BootstrapBlazor/Services/Internal/HtmlRootComponent.cs index 66a3207441b..1f66c9d1540 100644 --- a/src/BootstrapBlazor/Services/Internal/HtmlRootComponent.cs +++ b/src/BootstrapBlazor/Services/Internal/HtmlRootComponent.cs @@ -11,8 +11,8 @@ namespace Microsoft.AspNetCore.Components.Web.HtmlRendering; #pragma warning disable BL0006 // Do not use RenderTree types /// -/// Represents the output of rendering a root component as HTML. 内容 can change if the component 实例 re-renders. -/// Represents the output of rendering a root component as HTML. The content can change if the component instance re-renders. +/// Represents the output of rendering a root component as HTML. 内容 can change if the component 实例 re-renders +/// Represents the output of rendering a root component as HTML. The content can change if the component instance re-renders /// [ExcludeFromCodeCoverage] readonly struct HtmlRootComponent @@ -27,20 +27,20 @@ internal HtmlRootComponent(StaticHtmlRenderer renderer, int componentId, Task qu } /// - /// 获得 the component ID. - /// Gets the component ID. + /// 获得 the component ID + /// Gets the component ID /// public int ComponentId { get; } /// - /// 获得 a that completes when the component hierarchy has completed asynchronous tasks such as loading. - /// Gets a that completes when the component hierarchy has completed asynchronous tasks such as loading. + /// 获得 a that completes when the component hierarchy has completed asynchronous tasks such as loading + /// Gets a that completes when the component hierarchy has completed asynchronous tasks such as loading /// public Task QuiescenceTask { get; } = Task.CompletedTask; /// - /// Returns an HTML string representation of the component's latest output. - /// Returns an HTML string representation of the component's latest output. + /// Returns an HTML string representation of the component's latest output + /// Returns an HTML string representation of the component's latest output /// /// An HTML string representation of the component's latest output. public string ToHtmlString() @@ -56,8 +56,8 @@ public string ToHtmlString() } /// - /// Writes the component's latest output as HTML to the specified writer. - /// Writes the component's latest output as HTML to the specified writer. + /// Writes the component's latest output as HTML to the specified writer + /// Writes the component's latest output as HTML to the specified writer /// /// The output destination. public void WriteHtmlTo(TextWriter output) diff --git a/src/BootstrapBlazor/Services/Internal/StaticHtmlRenderer.HtmlWriting.cs b/src/BootstrapBlazor/Services/Internal/StaticHtmlRenderer.HtmlWriting.cs index 32e018e3171..654aab8fdde 100644 --- a/src/BootstrapBlazor/Services/Internal/StaticHtmlRenderer.HtmlWriting.cs +++ b/src/BootstrapBlazor/Services/Internal/StaticHtmlRenderer.HtmlWriting.cs @@ -23,8 +23,8 @@ partial class StaticHtmlRenderer private string? _closestSelectValueAsString; /// - /// Renders the specified component as HTML to the output. - /// Renders the specified component as HTML to the output. + /// Renders the specified component as HTML to the output + /// Renders the specified component as HTML to the output /// /// The ID of the component whose current HTML state is to be rendered. /// The output destination. diff --git a/src/BootstrapBlazor/Services/Internal/StaticHtmlRenderer.cs b/src/BootstrapBlazor/Services/Internal/StaticHtmlRenderer.cs index 457cf40e918..67ee3ae31cd 100644 --- a/src/BootstrapBlazor/Services/Internal/StaticHtmlRenderer.cs +++ b/src/BootstrapBlazor/Services/Internal/StaticHtmlRenderer.cs @@ -15,8 +15,8 @@ namespace Microsoft.AspNetCore.Components.HtmlRendering.Infrastructure; #pragma warning disable BL0006 // Do not use RenderTree types /// -/// A subclass that is intended for static HTML rendering. Application developers should not normally use this class directly. Instead, use for a more convenient API. -/// A subclass that is intended for static HTML rendering. Application developers should not normally use this class directly. Instead, use for a more convenient API. +/// A subclass that is intended for static HTML rendering. Application developers should not normally use this class directly. Instead, use for a more convenient API +/// A subclass that is intended for static HTML rendering. Application developers should not normally use this class directly. Instead, use for a more convenient API /// [ExcludeFromCodeCoverage] partial class StaticHtmlRenderer : Renderer @@ -24,8 +24,8 @@ partial class StaticHtmlRenderer : Renderer private static readonly Task CanceledRenderTask = Task.FromCanceled(new CancellationToken(canceled: true)); /// - /// Constructs an 实例 of . - /// Constructs an instance of . + /// Constructs an 实例 of + /// Constructs an instance of /// /// The to be used when initializing components. /// The . @@ -40,8 +40,8 @@ public StaticHtmlRenderer(IServiceProvider serviceProvider, ILoggerFactory logge public override Dispatcher Dispatcher { get; } = Dispatcher.CreateDefault(); /// - /// Adds a root component of the specified 类型 and begins rendering it. - /// Adds a root component of the specified type and begins rendering it. + /// Adds a root component of the specified 类型 and begins rendering it + /// Adds a root component of the specified type and begins rendering it /// /// The component type. This must implement . /// Parameters for the component. @@ -55,8 +55,8 @@ public HtmlRootComponent BeginRenderingComponent( } /// - /// Adds a root component and begins rendering it. - /// Adds a root component and begins rendering it. + /// Adds a root component and begins rendering it + /// Adds a root component and begins rendering it /// /// The root component instance to be added and rendered. This must not already be associated with any renderer. /// Parameters for the component. diff --git a/src/BootstrapBlazor/Services/MediaDevices/IAudioDevice.cs b/src/BootstrapBlazor/Services/MediaDevices/IAudioDevice.cs index 72957479e87..5eb3691c0d2 100644 --- a/src/BootstrapBlazor/Services/MediaDevices/IAudioDevice.cs +++ b/src/BootstrapBlazor/Services/MediaDevices/IAudioDevice.cs @@ -12,28 +12,28 @@ namespace BootstrapBlazor.Components; public interface IAudioDevice { /// - /// 获得 the list of audio devices. - /// Gets the list of audio devices. + /// 获得 the list of audio devices + /// Gets the list of audio devices /// Task?> GetDevices(); /// - /// Opens the audio device with the specified constraints. - /// Opens the audio device with the specified constraints. + /// Opens the audio device with the specified constraints + /// Opens the audio device with the specified constraints /// /// Task Open(MediaTrackConstraints constraints); /// - /// Close the audio device with the specified selector. - /// Close the audio device with the specified selector. + /// Close the audio device with the specified selector + /// Close the audio device with the specified selector /// /// Task Close(string? selector); /// - /// 获得 the stream of the audio. - /// Gets the stream of the audio. + /// 获得 the stream of the audio + /// Gets the stream of the audio /// Task GetData(); } diff --git a/src/BootstrapBlazor/Services/MediaDevices/IMediaDeviceInfo.cs b/src/BootstrapBlazor/Services/MediaDevices/IMediaDeviceInfo.cs index c5a7e28699c..aee175356da 100644 --- a/src/BootstrapBlazor/Services/MediaDevices/IMediaDeviceInfo.cs +++ b/src/BootstrapBlazor/Services/MediaDevices/IMediaDeviceInfo.cs @@ -6,32 +6,32 @@ namespace BootstrapBlazor.Components; /// -/// MediaDeviceInfo interface of the Media Capture and Streams API contains information that describes a single media input or output device. -/// The MediaDeviceInfo interface of the Media Capture and Streams API contains information that describes a single media input or output device. +/// MediaDeviceInfo interface of the Media Capture and Streams API contains information that describes a single media input or output device +/// The MediaDeviceInfo interface of the Media Capture and Streams API contains information that describes a single media input or output device /// public interface IMediaDeviceInfo { /// - /// deviceId read-only 属性 of the MediaDeviceInfo interface returns a string that is an identifier for the represented device and is persisted across sessions. - /// The deviceId read-only property of the MediaDeviceInfo interface returns a string that is an identifier for the represented device and is persisted across sessions. + /// deviceId read-only 属性 of the MediaDeviceInfo interface returns a string that is an identifier for the represented device and is persisted across sessions + /// The deviceId read-only property of the MediaDeviceInfo interface returns a string that is an identifier for the represented device and is persisted across sessions /// public string DeviceId { get; } /// - /// groupId read-only 属性 of the MediaDeviceInfo interface returns a string that is a group identifier. - /// The groupId read-only property of the MediaDeviceInfo interface returns a string that is a group identifier. + /// groupId read-only 属性 of the MediaDeviceInfo interface returns a string that is a group identifier + /// The groupId read-only property of the MediaDeviceInfo interface returns a string that is a group identifier /// public string GroupId { get; } /// - /// kind read-only 属性 of the MediaDeviceInfo interface returns an 枚举erated value, that is either "videoinput", "audioinput" or "audiooutput". - /// The kind read-only property of the MediaDeviceInfo interface returns an enumerated value, that is either "videoinput", "audioinput" or "audiooutput". + /// kind read-only 属性 of the MediaDeviceInfo interface returns an 枚举erated value, that is either "videoinput", "audioinput" or "audiooutput" + /// The kind read-only property of the MediaDeviceInfo interface returns an enumerated value, that is either "videoinput", "audioinput" or "audiooutput" /// public string Kind { get; } /// - /// label read-only 属性 of the MediaDeviceInfo interface returns a string describing this device (for example "External USB Webcam"). - /// The label read-only property of the MediaDeviceInfo interface returns a string describing this device (for example "External USB Webcam"). + /// label read-only 属性 of the MediaDeviceInfo interface returns a string describing this device (for example "External USB Webcam") + /// The label read-only property of the MediaDeviceInfo interface returns a string describing this device (for example "External USB Webcam") /// public string Label { get; } } diff --git a/src/BootstrapBlazor/Services/MediaDevices/IMediaDevices.cs b/src/BootstrapBlazor/Services/MediaDevices/IMediaDevices.cs index 3dd2094dceb..cc7cd9ad2c6 100644 --- a/src/BootstrapBlazor/Services/MediaDevices/IMediaDevices.cs +++ b/src/BootstrapBlazor/Services/MediaDevices/IMediaDevices.cs @@ -6,60 +6,60 @@ namespace BootstrapBlazor.Components; /// -/// MediaDevices interface of the Media Capture and Streams API provides access to connected media input devices like cameras and microphones, as well as screen sharing. In essence, it lets you obtain access to any hardware source of media 数据. -/// The MediaDevices interface of the Media Capture and Streams API provides access to connected media input devices like cameras and microphones, as well as screen sharing. In essence, it lets you obtain access to any hardware source of media data. +/// MediaDevices interface of the Media Capture and Streams API provides access to connected media input devices like cameras and microphones, as well as screen sharing. In essence, it lets you obtain access to any hardware source of media 数据 +/// The MediaDevices interface of the Media Capture and Streams API provides access to connected media input devices like cameras and microphones, as well as screen sharing. In essence, it lets you obtain access to any hardware source of media data /// public interface IMediaDevices { /// - /// An array of MediaDeviceInfo objects. Each object in the array describes one of the available media input and output devices. - /// An array of MediaDeviceInfo objects. Each object in the array describes one of the available media input and output devices. + /// An array of MediaDeviceInfo objects. Each object in the array describes one of the available media input and output devices + /// An array of MediaDeviceInfo objects. Each object in the array describes one of the available media input and output devices /// Task?> EnumerateDevices(); /// - /// open() method of the MediaDevices interface creates a new MediaStream object and starts capturing media from the specified device. - /// The open() method of the MediaDevices interface creates a new MediaStream object and starts capturing media from the specified device. + /// open() method of the MediaDevices interface creates a new MediaStream object and starts capturing media from the specified device + /// The open() method of the MediaDevices interface creates a new MediaStream object and starts capturing media from the specified device /// /// video or audio /// Task Open(string type, MediaTrackConstraints constraints); /// - /// close() method of the MediaDevices interface stops capturing media from the specified device and closes the MediaStream object. - /// The close() method of the MediaDevices interface stops capturing media from the specified device and closes the MediaStream object. + /// close() method of the MediaDevices interface stops capturing media from the specified device and closes the MediaStream object + /// The close() method of the MediaDevices interface stops capturing media from the specified device and closes the MediaStream object /// /// Task Close(string? selector); /// - /// capture() method of the MediaDevices interface captures a still image from the specified video stream and saves it to the specified location. - /// The capture() method of the MediaDevices interface captures a still image from the specified video stream and saves it to the specified location. + /// capture() method of the MediaDevices interface captures a still image from the specified video stream and saves it to the specified location + /// The capture() method of the MediaDevices interface captures a still image from the specified video stream and saves it to the specified location /// Task Capture(); /// - /// 获得 the preview URL of the captured image. - /// Gets the preview URL of the captured image. + /// 获得 the preview URL of the captured image + /// Gets the preview URL of the captured image /// Task GetPreviewUrl(); /// - /// 获得 the stream of the captured image. - /// Gets the stream of the captured image. + /// 获得 the stream of the captured image + /// Gets the stream of the captured image /// Task GetPreviewData(); /// - /// Apply the media track constraints. - /// Apply the media track constraints. + /// Apply the media track constraints + /// Apply the media track constraints /// /// Task Apply(MediaTrackConstraints constraints); /// - /// 获得 the stream of the audio. - /// Gets the stream of the audio. + /// 获得 the stream of the audio + /// Gets the stream of the audio /// Task GetAudioData(); } diff --git a/src/BootstrapBlazor/Services/MediaDevices/IVideoDevice.cs b/src/BootstrapBlazor/Services/MediaDevices/IVideoDevice.cs index 4de1e83ca99..53fdc750c41 100644 --- a/src/BootstrapBlazor/Services/MediaDevices/IVideoDevice.cs +++ b/src/BootstrapBlazor/Services/MediaDevices/IVideoDevice.cs @@ -12,46 +12,46 @@ namespace BootstrapBlazor.Components; public interface IVideoDevice { /// - /// 获得 the list of video devices. - /// Gets the list of video devices. + /// 获得 the list of video devices + /// Gets the list of video devices /// Task?> GetDevices(); /// - /// Opens the video device with the specified constraints. - /// Opens the video device with the specified constraints. + /// Opens the video device with the specified constraints + /// Opens the video device with the specified constraints /// /// Task Open(MediaTrackConstraints constraints); /// - /// Close the video device with the specified selector. - /// Close the video device with the specified selector. + /// Close the video device with the specified selector + /// Close the video device with the specified selector /// /// Task Close(string? selector); /// - /// Capture a still image from the video stream. - /// Capture a still image from the video stream. + /// Capture a still image from the video stream + /// Capture a still image from the video stream /// Task Capture(); /// - /// 获得 the preview URL of the captured image. - /// Gets the preview URL of the captured image. + /// 获得 the preview URL of the captured image + /// Gets the preview URL of the captured image /// Task GetPreviewUrl(); /// - /// 获得 the stream of the captured image. - /// Gets the stream of the captured image. + /// 获得 the stream of the captured image + /// Gets the stream of the captured image /// Task GetPreviewData(); /// - /// Apply the media track constraints. - /// Apply the media track constraints. + /// Apply the media track constraints + /// Apply the media track constraints /// /// Task Apply(MediaTrackConstraints constraints); diff --git a/src/BootstrapBlazor/Services/MediaDevices/MediaTrackConstraints.cs b/src/BootstrapBlazor/Services/MediaDevices/MediaTrackConstraints.cs index 4d1d8f1403c..4a4786e116e 100644 --- a/src/BootstrapBlazor/Services/MediaDevices/MediaTrackConstraints.cs +++ b/src/BootstrapBlazor/Services/MediaDevices/MediaTrackConstraints.cs @@ -6,8 +6,8 @@ namespace BootstrapBlazor.Components; /// -/// MediaTrackConstraints interface of the Media Capture and Streams API is used to specify constraints on the media tracks that are requested from a media device. It is used in conjunction with the getUserMedia() method to specify the desired properties of the media tracks, such as resolution, frame rate, and aspect ratio. -/// The MediaTrackConstraints interface of the Media Capture and Streams API is used to specify constraints on the media tracks that are requested from a media device. It is used in conjunction with the getUserMedia() method to specify the desired properties of the media tracks, such as resolution, frame rate, and aspect ratio. +/// MediaTrackConstraints interface of the Media Capture and Streams API is used to specify constraints on the media tracks that are requested from a media device. It is used in conjunction with the getUserMedia() method to specify the desired properties of the media tracks, such as resolution, frame rate, and aspect ratio +/// The MediaTrackConstraints interface of the Media Capture and Streams API is used to specify constraints on the media tracks that are requested from a media device. It is used in conjunction with the getUserMedia() method to specify the desired properties of the media tracks, such as resolution, frame rate, and aspect ratio /// public class MediaTrackConstraints { diff --git a/src/BootstrapBlazor/Services/NotificationService.cs b/src/BootstrapBlazor/Services/NotificationService.cs index de1868c6771..f4b6c0c22e5 100644 --- a/src/BootstrapBlazor/Services/NotificationService.cs +++ b/src/BootstrapBlazor/Services/NotificationService.cs @@ -83,8 +83,8 @@ public async Task DispatchCallback(string id) } /// - /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously. - /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously. + /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously + /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously /// /// protected virtual async ValueTask DisposeAsync(bool disposing) diff --git a/src/BootstrapBlazor/Services/Pinyin/PinyinLetterCaseCategory.cs b/src/BootstrapBlazor/Services/Pinyin/PinyinLetterCaseCategory.cs index 0d91bb1abda..971d1c1579e 100644 --- a/src/BootstrapBlazor/Services/Pinyin/PinyinLetterCaseCategory.cs +++ b/src/BootstrapBlazor/Services/Pinyin/PinyinLetterCaseCategory.cs @@ -12,14 +12,14 @@ namespace BootstrapBlazor.Components; public enum PinyinLetterCaseCategory { /// - /// Indicates that the character is an uppercase letter. - /// Indicates that the character is an uppercase letter. + /// Indicates that the character is an uppercase letter + /// Indicates that the character is an uppercase letter /// UppercaseLetter = 0, /// - /// Represents a Unicode character that is classified as a lowercase letter. - /// Represents a Unicode character that is classified as a lowercase letter. + /// Represents a Unicode character that is classified as a lowercase letter + /// Represents a Unicode character that is classified as a lowercase letter /// LowercaseLetter = 1, } diff --git a/src/BootstrapBlazor/Services/TableMetadataTypeService.cs b/src/BootstrapBlazor/Services/TableMetadataTypeService.cs index 4927fd281af..48b68cad8be 100644 --- a/src/BootstrapBlazor/Services/TableMetadataTypeService.cs +++ b/src/BootstrapBlazor/Services/TableMetadataTypeService.cs @@ -42,7 +42,7 @@ public static void RegisterMetadataType(Type metadataType, Type targetType) /// /// 通过指定数据类型获得其 Metadata 数据 - /// get metadata type for target data type. return data type itself if metadata type not registered. + /// get metadata type for target data type. return data type itself if metadata type not registered /// /// the target data type /// metadata type diff --git a/src/BootstrapBlazor/Services/WebClientService.cs b/src/BootstrapBlazor/Services/WebClientService.cs index 7b41fd1d394..f9de69e357c 100644 --- a/src/BootstrapBlazor/Services/WebClientService.cs +++ b/src/BootstrapBlazor/Services/WebClientService.cs @@ -82,8 +82,8 @@ public void SetData(ClientInfo client) } /// - /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously. - /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously. + /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously + /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously /// /// protected virtual async ValueTask DisposeAsync(bool disposing) diff --git a/src/BootstrapBlazor/Utils/CssBuilder.cs b/src/BootstrapBlazor/Utils/CssBuilder.cs index cdd12dfb3be..0fb2c15b219 100644 --- a/src/BootstrapBlazor/Utils/CssBuilder.cs +++ b/src/BootstrapBlazor/Utils/CssBuilder.cs @@ -18,15 +18,15 @@ public class CssBuilder private bool _hasConent; /// - /// Creates a CssBuilder used to define conditional CSS classes used in a component. Call Build() to return the completed CSS Classes as a string. - /// Creates a CssBuilder used to define conditional CSS classes used in a component. Call Build() to return the completed CSS Classes as a string. + /// Creates a CssBuilder used to define conditional CSS classes used in a component. Call Build() to return the completed CSS Classes as a string + /// Creates a CssBuilder used to define conditional CSS classes used in a component. Call Build() to return the completed CSS Classes as a string /// /// public static CssBuilder Default(string? value = null) => new(value); /// - /// Creates a CssBuilder used to define conditional CSS classes used in a component. Call Build() to return the completed CSS Classes as a string. - /// Creates a CssBuilder used to define conditional CSS classes used in a component. Call Build() to return the completed CSS Classes as a string. + /// Creates a CssBuilder used to define conditional CSS classes used in a component. Call Build() to return the completed CSS Classes as a string + /// Creates a CssBuilder used to define conditional CSS classes used in a component. Call Build() to return the completed CSS Classes as a string /// /// protected CssBuilder(string? value) @@ -39,8 +39,8 @@ protected CssBuilder(string? value) } /// - /// Adds a raw string to the builder that will be concatenated with the next class or value added to the builder. - /// Adds a raw string to the builder that will be concatenated with the next class or value added to the builder. + /// Adds a raw string to the builder that will be concatenated with the next class or value added to the builder + /// Adds a raw string to the builder that will be concatenated with the next class or value added to the builder /// /// /// CssBuilder @@ -62,8 +62,8 @@ public CssBuilder AddClass(string? value) } /// - /// Adds a conditional CSS Class to the builder with space separator. - /// Adds a conditional CSS Class to the builder with space separator. + /// Adds a conditional CSS Class to the builder with space separator + /// Adds a conditional CSS Class to the builder with space separator /// /// CSS Class to conditionally add. /// Condition in which the CSS Class is added. @@ -71,8 +71,8 @@ public CssBuilder AddClass(string? value) public CssBuilder AddClass(string? value, bool when = true) => when ? AddClass(value) : this; /// - /// Adds a conditional CSS Class to the builder with space separator. - /// Adds a conditional CSS Class to the builder with space separator. + /// Adds a conditional CSS Class to the builder with space separator + /// Adds a conditional CSS Class to the builder with space separator /// /// CSS Class to conditionally add. /// Condition in which the CSS Class is added. @@ -80,8 +80,8 @@ public CssBuilder AddClass(string? value) public CssBuilder AddClass(string? value, Func when) => AddClass(value, when()); /// - /// Adds a conditional CSS Class to the builder with space separator. - /// Adds a conditional CSS Class to the builder with space separator. + /// Adds a conditional CSS Class to the builder with space separator + /// Adds a conditional CSS Class to the builder with space separator /// /// Function that returns a CSS Class to conditionally add. /// Condition in which the CSS Class is added. @@ -89,8 +89,8 @@ public CssBuilder AddClass(string? value) public CssBuilder AddClass(Func value, bool when = true) => when ? AddClass(value()) : this; /// - /// Adds a conditional CSS Class to the builder with space separator. - /// Adds a conditional CSS Class to the builder with space separator. + /// Adds a conditional CSS Class to the builder with space separator + /// Adds a conditional CSS Class to the builder with space separator /// /// Function that returns a CSS Class to conditionally add. /// Condition in which the CSS Class is added. @@ -98,8 +98,8 @@ public CssBuilder AddClass(string? value) public CssBuilder AddClass(Func value, Func when) => AddClass(value, when()); /// - /// Adds a conditional nested CssBuilder to the builder with space separator. - /// Adds a conditional nested CssBuilder to the builder with space separator. + /// Adds a conditional nested CssBuilder to the builder with space separator + /// Adds a conditional nested CssBuilder to the builder with space separator /// /// CSS Class to conditionally add. /// Condition in which the CSS Class is added. @@ -107,8 +107,8 @@ public CssBuilder AddClass(string? value) public CssBuilder AddClass(CssBuilder builder, bool when = true) => when ? AddClass(builder.Build()) : this; /// - /// Adds a conditional CSS Class to the builder with space separator. - /// Adds a conditional CSS Class to the builder with space separator. + /// Adds a conditional CSS Class to the builder with space separator + /// Adds a conditional CSS Class to the builder with space separator /// /// CSS Class to conditionally add. /// Condition in which the CSS Class is added. @@ -116,8 +116,8 @@ public CssBuilder AddClass(string? value) public CssBuilder AddClass(CssBuilder builder, Func when) => AddClass(builder, when()); /// - /// Adds a conditional CSS Class when it exists in a dictionary to the builder with space separator. Null safe operation. - /// Adds a conditional CSS Class when it exists in a dictionary to the builder with space separator. Null safe operation. + /// Adds a conditional CSS Class when it exists in a dictionary to the builder with space separator. Null safe operation + /// Adds a conditional CSS Class when it exists in a dictionary to the builder with space separator. Null safe operation /// /// Additional Attribute splat parameters /// CssBuilder @@ -132,8 +132,8 @@ public CssBuilder AddClassFromAttributes(IDictionary? additional } /// - /// Adds a conditional css Style when it exists in a dictionary to the builder with space separator. Null safe operation. - /// Adds a conditional css Style when it exists in a dictionary to the builder with space separator. Null safe operation. + /// Adds a conditional css Style when it exists in a dictionary to the builder with space separator. Null safe operation + /// Adds a conditional css Style when it exists in a dictionary to the builder with space separator. Null safe operation /// /// Additional Attribute splat parameters /// CssBuilder @@ -148,8 +148,8 @@ public CssBuilder AddStyleFromAttributes(IDictionary? additional } /// - /// Finalize the completed CSS Classes as a string. - /// Finalize the completed CSS Classes as a string. + /// Finalize the completed CSS Classes as a string + /// Finalize the completed CSS Classes as a string /// /// string public string? Build() => _hasConent ? _builder.ToString() : null; diff --git a/src/BootstrapBlazor/Utils/QueryHelper.cs b/src/BootstrapBlazor/Utils/QueryHelper.cs index 46d8a4de08c..5647f2fc689 100644 --- a/src/BootstrapBlazor/Utils/QueryHelper.cs +++ b/src/BootstrapBlazor/Utils/QueryHelper.cs @@ -10,15 +10,15 @@ namespace BootstrapBlazor.Components; /// -/// Provides methods for parsing and manipulating query strings. -/// Provides methods for parsing and manipulating query strings. +/// Provides methods for parsing and manipulating query strings +/// Provides methods for parsing and manipulating query strings /// [ExcludeFromCodeCoverage] public static class QueryHelper { /// - /// Append the given query key and value to the URI. - /// Append the given query key and value to the URI. + /// Append the given query key and value to the URI + /// Append the given query key and value to the URI /// /// The base URI. /// The name of the query key. @@ -31,8 +31,8 @@ public static string AddQueryString(string uri, string name, string value) => Ad uri, new[] { new KeyValuePair(name, value) }); /// - /// Append the given query keys and values to the URI. - /// Append the given query keys and values to the URI. + /// Append the given query keys and values to the URI + /// Append the given query keys and values to the URI /// /// The base URI. /// A dictionary of query keys and values to append. @@ -42,8 +42,8 @@ public static string AddQueryString(string uri, string name, string value) => Ad public static string AddQueryString(string uri, IDictionary queryString) => AddQueryString(uri, (IEnumerable>)queryString); /// - /// Append the given query keys and values to the URI. - /// Append the given query keys and values to the URI. + /// Append the given query keys and values to the URI + /// Append the given query keys and values to the URI /// /// The base URI. /// A collection of query names and values to append. @@ -53,8 +53,8 @@ public static string AddQueryString(string uri, string name, string value) => Ad public static string AddQueryString(string uri, IEnumerable> queryString) => AddQueryString(uri, queryString.SelectMany(kvp => kvp.Value, (kvp, v) => KeyValuePair.Create(kvp.Key, v))); /// - /// Append the given query keys and values to the URI. - /// Append the given query keys and values to the URI. + /// Append the given query keys and values to the URI + /// Append the given query keys and values to the URI /// /// The base URI. /// A collection of name value query pairs to append. @@ -97,16 +97,16 @@ public static string AddQueryString(string uri, IEnumerable - /// Parse a query string into its component key and value parts. - /// Parse a query string into its component key and value parts. + /// Parse a query string into its component key and value parts + /// Parse a query string into its component key and value parts /// /// The raw query string value, with or without the leading '?'. /// A collection of parsed keys and values. public static Dictionary ParseQuery(string? queryString) => ParseNullableQuery(queryString) ?? []; /// - /// Parse a query string into its component key and value parts. - /// Parse a query string into its component key and value parts. + /// Parse a query string into its component key and value parts + /// Parse a query string into its component key and value parts /// /// The raw query string value, with or without the leading '?'. /// A collection of parsed keys and values, null if there are no entries.