diff --git a/src/BootstrapBlazor/Attributes/AutoGenerateBaseAttribute.cs b/src/BootstrapBlazor/Attributes/AutoGenerateBaseAttribute.cs
index c05bef4244d..e3a21d311ba 100644
--- a/src/BootstrapBlazor/Attributes/AutoGenerateBaseAttribute.cs
+++ b/src/BootstrapBlazor/Attributes/AutoGenerateBaseAttribute.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License
// See the LICENSE file in the project root for more information.
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone
@@ -6,69 +6,82 @@
namespace BootstrapBlazor.Components;
///
-/// Base class for AutoGenerateColumn attribute, used to mark auto-generated columns in
+/// AutoGenerateColumn 属性基类,用于标记 中的自动生成列
+/// Base class for AutoGenerateColumn attribute, used to mark auto-generated columns in
///
public abstract class AutoGenerateBaseAttribute : Attribute
{
///
- /// 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;
///
- /// 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; }
///
- /// 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; }
///
- /// 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;
///
- /// 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; }
///
- /// 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; }
///
- /// 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; }
///
- /// 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; }
///
- /// 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; }
///
- /// 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; }
///
- /// 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; }
///
- /// 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/AutoGenerateClassAttribute.cs b/src/BootstrapBlazor/Attributes/AutoGenerateClassAttribute.cs
index c5943dcb201..267554cbd2c 100644
--- a/src/BootstrapBlazor/Attributes/AutoGenerateClassAttribute.cs
+++ b/src/BootstrapBlazor/Attributes/AutoGenerateClassAttribute.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License
// See the LICENSE file in the project root for more information.
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone
@@ -6,7 +6,8 @@
namespace BootstrapBlazor.Components;
///
-/// AutoGenerateColumn attribute class, used to mark auto-generated columns in
+/// AutoGenerateColumn 属性类,用于在 中标记自动生成的列
+/// AutoGenerateColumn attribute class, used to mark auto-generated columns in
///
[AttributeUsage(AttributeTargets.Class)]
public class AutoGenerateClassAttribute : AutoGenerateBaseAttribute
diff --git a/src/BootstrapBlazor/Attributes/AutoGenerateColumnAttribute.cs b/src/BootstrapBlazor/Attributes/AutoGenerateColumnAttribute.cs
index 606e71a00ab..b21ef5ee3ff 100644
--- a/src/BootstrapBlazor/Attributes/AutoGenerateColumnAttribute.cs
+++ b/src/BootstrapBlazor/Attributes/AutoGenerateColumnAttribute.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License
// See the LICENSE file in the project root for more information.
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone
@@ -6,19 +6,21 @@
namespace BootstrapBlazor.Components;
///
-/// AutoGenerateColumn attribute class, used to mark auto-generated columns in
+/// AutoGenerateColumn 属性类,用于在 中标记自动生成的列
+/// AutoGenerateColumn attribute class, used to mark auto-generated columns in
///
[AttributeUsage(AttributeTargets.Property)]
public class AutoGenerateColumnAttribute : AutoGenerateBaseAttribute, ITableColumn
{
///
- /// Gets or sets the display order. The rules are as follows:
- ///
- /// >0 for the front, 1,2,3...
- ///
- /// =0 for the middle (default)
- ///
- /// <0 for the back, ...-3,-2,-1
+ /// 获得/设置 显示顺序。规则如下:
+ /// Gets or sets the display order. The rules are as follows:
+ /// >0 正序排列,1,2,3...
+ /// >0 for the front, 1,2,3...
+ /// =0 保持默认
+ /// =0 for the middle (default)
+ /// <0 倒序排列,...-3,-2,-1
+ /// <0 for the back, ...-3,-2,-1
///
public int Order { get; set; }
@@ -33,7 +35,8 @@ public class AutoGenerateColumnAttribute : AutoGenerateBaseAttribute, ITableColu
public bool SkipValidate { get; set; }
///
- /// 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; }
@@ -44,7 +47,8 @@ public class AutoGenerateColumnAttribute : AutoGenerateBaseAttribute, ITableColu
}
///
- /// 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; }
@@ -55,7 +59,8 @@ public class AutoGenerateColumnAttribute : AutoGenerateBaseAttribute, ITableColu
}
///
- /// 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;
@@ -66,7 +71,8 @@ public class AutoGenerateColumnAttribute : AutoGenerateBaseAttribute, ITableColu
}
///
- /// 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;
@@ -90,7 +96,8 @@ public class AutoGenerateColumnAttribute : AutoGenerateBaseAttribute, ITableColu
public string? RequiredErrorMessage { get; set; }
///
- /// 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; }
@@ -101,14 +108,16 @@ public class AutoGenerateColumnAttribute : AutoGenerateBaseAttribute, ITableColu
}
///
- /// 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; }
@@ -230,6 +239,9 @@ public class AutoGenerateColumnAttribute : AutoGenerateBaseAttribute, ITableColu
///
public bool ShowSearchWhenSelect { get; set; }
+ ///
+ ///
+ ///
///
///
///
@@ -253,17 +265,17 @@ public class AutoGenerateColumnAttribute : AutoGenerateBaseAttribute, ITableColu
ILookupService? ILookup.LookupService { get; set; }
///
- /// >
+ ///
///
public string? LookupServiceKey { get; set; }
///
- /// >
+ ///
///
public object? LookupServiceData { get; set; }
///
- /// >
+ ///
///
public StringComparison LookupStringComparison { get; set; } = StringComparison.OrdinalIgnoreCase;
diff --git a/src/BootstrapBlazor/Attributes/BootstrapModuleAutoLoaderAttribute.cs b/src/BootstrapBlazor/Attributes/BootstrapModuleAutoLoaderAttribute.cs
index 620fac2a15f..d52fedca741 100644
--- a/src/BootstrapBlazor/Attributes/BootstrapModuleAutoLoaderAttribute.cs
+++ b/src/BootstrapBlazor/Attributes/BootstrapModuleAutoLoaderAttribute.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License
// See the LICENSE file in the project root for more information.
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone
@@ -6,13 +6,15 @@
namespace BootstrapBlazor.Components;
///
-/// Constructor
+/// 构造函数
+/// Constructor
///
///
class BootstrapModuleAutoLoaderAttribute(string? path = null) : JSModuleAutoLoaderAttribute(path)
{
///
- /// 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/FileValidationAttribute.cs b/src/BootstrapBlazor/Attributes/FileValidationAttribute.cs
index 3e3d601027c..829a845fd9d 100644
--- a/src/BootstrapBlazor/Attributes/FileValidationAttribute.cs
+++ b/src/BootstrapBlazor/Attributes/FileValidationAttribute.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License
// See the LICENSE file in the project root for more information.
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone
@@ -9,7 +9,8 @@
namespace BootstrapBlazor.Components;
///
-/// 上传文件扩展名验证标签类
+/// 上传文件扩展名验证标签类
+/// Upload file extension validation attribute class
///
[AttributeUsage(AttributeTargets.Property)]
public class FileValidationAttribute : ValidationAttribute
@@ -17,17 +18,20 @@ public class FileValidationAttribute : ValidationAttribute
private IStringLocalizer? Localizer { get; set; }
///
- /// 获得/设置 允许的扩展名
+ /// 获得/设置 允许的扩展名
+ /// Gets or sets allowed extensions
///
public string[] Extensions { get; set; } = [];
///
- /// 获得/设置 文件大小 默认为 0 未限制
+ /// 获得/设置 文件大小 默认为 0 未限制
+ /// Gets or sets file size. Default is 0 (no limit)
///
public long FileSize { get; set; }
///
- /// 是否合规判断方法
+ /// 是否合规判断方法
+ /// Is valid method
///
///
///
diff --git a/src/BootstrapBlazor/Attributes/JSModuleAutoLoaderAttribute.cs b/src/BootstrapBlazor/Attributes/JSModuleAutoLoaderAttribute.cs
index b23753ae99c..9d9d1907b3a 100644
--- a/src/BootstrapBlazor/Attributes/JSModuleAutoLoaderAttribute.cs
+++ b/src/BootstrapBlazor/Attributes/JSModuleAutoLoaderAttribute.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License
// See the LICENSE file in the project root for more information.
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone
@@ -6,29 +6,34 @@
namespace BootstrapBlazor.Components;
///
-/// JSModuleAutoLoaderAttribute class
+/// JSModuleAutoLoaderAttribute 类
+/// JSModuleAutoLoaderAttribute class
///
-/// The path to the JavaScript module
+/// JavaScript 模块的路径The path to the JavaScript module
[AttributeUsage(AttributeTargets.Class)]
public class JSModuleAutoLoaderAttribute(string? path = null) : Attribute
{
///
- /// Gets the path property
+ /// 获得 路径属性
+ /// Gets the path property
///
public string? Path { get; } = path;
///
- /// 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; }
///
- /// 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;
///
- /// 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/JSModuleNotInheritedAttribute.cs b/src/BootstrapBlazor/Attributes/JSModuleNotInheritedAttribute.cs
index dc2005784d9..68c91bfb5e6 100644
--- a/src/BootstrapBlazor/Attributes/JSModuleNotInheritedAttribute.cs
+++ b/src/BootstrapBlazor/Attributes/JSModuleNotInheritedAttribute.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License
// See the LICENSE file in the project root for more information.
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone
@@ -6,11 +6,11 @@
namespace BootstrapBlazor.Components;
///
-/// JSModuleNotInheritedAttribute
+/// JSModuleNotInheritedAttribute
+/// JSModuleNotInheritedAttribute
///
[AttributeUsage(AttributeTargets.Class)]
public sealed class JSModuleNotInheritedAttribute : Attribute
{
- // 增加 sealed 关键字防止二开写派生类导致 type.GetCustomAttribute() 报错
- // BootstrapModuleComponentBase 类 OnLoadJSModule 方法
+
}
diff --git a/src/BootstrapBlazor/Attributes/NullableBoolItemsAttribute.cs b/src/BootstrapBlazor/Attributes/NullableBoolItemsAttribute.cs
index 19b21468b50..6e7770de64b 100644
--- a/src/BootstrapBlazor/Attributes/NullableBoolItemsAttribute.cs
+++ b/src/BootstrapBlazor/Attributes/NullableBoolItemsAttribute.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License
// See the LICENSE file in the project root for more information.
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone
@@ -6,23 +6,27 @@
namespace BootstrapBlazor.Components;
///
-/// Nullable boolean type converter
+/// 可为空布尔类型转换器
+/// Nullable boolean type converter
///
[AttributeUsage(AttributeTargets.Property)]
public class NullableBoolItemsAttribute : Attribute
{
///
- /// Gets or sets the display text for null value
+ /// 获得/设置 空值显示文本
+ /// Gets or sets the display text for null value
///
public string? NullValueDisplayText { get; set; }
///
- /// Gets or sets the display text for true value
+ /// 获得/设置 True 值显示文本
+ /// Gets or sets the display text for true value
///
public string? TrueValueDisplayText { get; set; }
///
- /// Gets or sets the display text for false value
+ /// 获得/设置 False 值显示文本
+ /// Gets or sets the display text for false value
///
public string? FalseValueDisplayText { get; set; }
}
diff --git a/src/BootstrapBlazor/Attributes/PlaceHolderAttribute.cs b/src/BootstrapBlazor/Attributes/PlaceHolderAttribute.cs
index 435aac53fe8..b7db0ca6e59 100644
--- a/src/BootstrapBlazor/Attributes/PlaceHolderAttribute.cs
+++ b/src/BootstrapBlazor/Attributes/PlaceHolderAttribute.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License
// See the LICENSE file in the project root for more information.
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone
@@ -6,14 +6,16 @@
namespace BootstrapBlazor.Components;
///
-/// 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 { get; } = placeholder;
+ public string Text => placeholder;
}
diff --git a/src/BootstrapBlazor/Attributes/TabItemOptionAttribute.cs b/src/BootstrapBlazor/Attributes/TabItemOptionAttribute.cs
index 25fc4d3ee13..9e379f456ed 100644
--- a/src/BootstrapBlazor/Attributes/TabItemOptionAttribute.cs
+++ b/src/BootstrapBlazor/Attributes/TabItemOptionAttribute.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License
// See the LICENSE file in the project root for more information.
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone
@@ -6,23 +6,27 @@
namespace BootstrapBlazor.Components;
///
-/// TabItem configuration attribute class
+/// TabItem 配置属性类
+/// TabItem configuration attribute class
///
[AttributeUsage(AttributeTargets.Class)]
public class TabItemOptionAttribute : Attribute
{
///
- /// Gets or sets the text of the tab item.
+ /// 获得/设置 TabItem 文本
+ /// Gets or sets the text of the tab item.
///
public string? Text { get; set; }
///
- /// 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 0588f57a62e..a077e75115a 100644
--- a/src/BootstrapBlazor/Attributes/TableMetadataForAttribute.cs
+++ b/src/BootstrapBlazor/Attributes/TableMetadataForAttribute.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License
// See the LICENSE file in the project root for more information.
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone
@@ -6,14 +6,20 @@
namespace BootstrapBlazor.Components;
///
-/// 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.
-/// Then register metadata type with
+/// 定义目标数据类型的 UI 生成元数据组
+/// 通常模型类型位于与 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.
+/// Then register metadata type with
///
///
-/// Example:
-/// the Pig data type is usually at biz or data layer
+/// 示例:
+/// Pig 数据类型通常位于业务层或数据层
+/// Example:
+/// the Pig data type is usually at biz or data layer
///
/// public class Pig
/// {
@@ -22,7 +28,8 @@ namespace BootstrapBlazor.Components;
/// public string? Name2 { get; set; }
/// }
///
-/// the PigMetadata can be defined at UI/component layer
+/// PigMetadata 可以定义在 UI/组件层
+/// the PigMetadata can be defined at UI/component layer
///
/// [TableMetadataFor(typeof(Pig))]
/// [AutoGenerateClass(Align = Alignment.Center)]
@@ -35,28 +42,33 @@ namespace BootstrapBlazor.Components;
/// public string? Name2 { get; set; }
/// }
///
-/// before using the metadata, it needs to register the metadata types.
-/// register metadata types in assembly
+/// 在使用元数据之前,需要注册元数据类型。
+/// 在程序集中注册元数据类型
+/// before using the metadata, it needs to register the metadata types.
+/// register metadata types in assembly
///
/// TableMetadataTypeService.RegisterMetadataTypes(typeof(Pig).Assembly);
/// var cols = Utility.GetTableColumns<Pig>().ToList();
/// Assert.Single(cols);
///
-/// or you can register types individually
+/// 或者您可以单独注册类型
+/// or you can register types individually
///
/// TableMetadataTypeService.RegisterMetadataType(metadataType, dataType);
///
///
///
///
-/// Constructor TableMetadataForAttribute for target data type
+/// TableMetadataForAttribute 构造函数
+/// Constructor TableMetadataForAttribute for target data type
///
-/// The target model/data type
+/// 目标模型/数据类型The target model/data type
[AttributeUsage(AttributeTargets.Class)]
public class TableMetadataForAttribute(Type dataType) : Attribute
{
///
- /// Gets the target model/data type
+ /// 获得 目标模型/数据类型
+ /// Gets the target model/data type
///
public Type DataType => dataType;
}
diff --git a/src/BootstrapBlazor/Components/Affix/Affix.razor.cs b/src/BootstrapBlazor/Components/Affix/Affix.razor.cs
index 2b9c3823db4..8e5f5ff9148 100644
--- a/src/BootstrapBlazor/Components/Affix/Affix.razor.cs
+++ b/src/BootstrapBlazor/Components/Affix/Affix.razor.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License
// See the LICENSE file in the project root for more information.
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone
@@ -8,30 +8,39 @@
namespace BootstrapBlazor.Components;
///
-/// Affix 固钉组件
+/// Affix 固钉组件
+/// Affix component
///
public partial class Affix
{
///
- /// 获得/设置 指定偏移量后触发
+ /// 获得/设置 指定偏移量后触发
+ /// Gets or sets the offset value to trigger
+ /// 10.2.2
///
[Parameter]
public float Offset { get; set; }
///
- /// 获得/设置 固定位置枚举 默认
+ /// 获得/设置 固定位置枚举 默认
+ /// Gets or sets the affix position. Default is
+ /// 10.2.2
///
[Parameter]
public AffixPosition Position { get; set; }
///
- /// 获得/设置 z-index 值 默认 100
+ /// 获得/设置 z-index 值 默认 100
+ /// Gets or sets the z-index value. Default is 100
+ /// 10.2.2
///
[Parameter]
public int? ZIndex { get; set; }
///
- /// 获得/设置 组件内容
+ /// 获得/设置 组件内容
+ /// Gets or sets the child content
+ /// 10.2.2
///
[Parameter]
[EditorRequired]
diff --git a/src/BootstrapBlazor/Components/Ajax/AjaxOption.cs b/src/BootstrapBlazor/Components/Ajax/AjaxOption.cs
index c83b7ca185a..2c35072132e 100644
--- a/src/BootstrapBlazor/Components/Ajax/AjaxOption.cs
+++ b/src/BootstrapBlazor/Components/Ajax/AjaxOption.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License
// See the LICENSE file in the project root for more information.
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone
@@ -6,29 +6,34 @@
namespace BootstrapBlazor.Components;
///
-/// Ajax配置类
+/// Ajax配置类
+/// Ajax configuration class
///
public class AjaxOption
{
///
- /// 获取/设置 要上传的参数类
+ /// 获取/设置 要上传的参数类
+ /// Gets or sets the parameter object to upload
///
[NotNull]
public object? Data { get; set; }
///
- /// 获取/设置 传输方式,默认为POST
+ /// 获取/设置 传输方式,默认为POST
+ /// Gets or sets the transfer method. Default is POST
///
public string Method { get; set; } = "POST";
///
- /// 获取/设置 请求的URL
+ /// 获取/设置 请求的URL
+ /// Gets or sets the request URL
///
[NotNull]
public string? Url { get; set; }
///
- /// 获得/设置 是否获得序列化 Json 结果 参数 默认为 true
+ /// 获得/设置 是否获得序列化 Json 结果 参数 默认为 true
+ /// Gets or sets whether to get the serialized Json result. Default is true
///
[NotNull]
public bool ToJson { get; set; } = true;
diff --git a/src/BootstrapBlazor/Components/Alert/Alert.razor.cs b/src/BootstrapBlazor/Components/Alert/Alert.razor.cs
index 2e6c939c51e..fc3c835e55e 100644
--- a/src/BootstrapBlazor/Components/Alert/Alert.razor.cs
+++ b/src/BootstrapBlazor/Components/Alert/Alert.razor.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License
// See the LICENSE file in the project root for more information.
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone
@@ -6,12 +6,14 @@
namespace BootstrapBlazor.Components;
///
-/// Alert 组件
+/// Alert 组件
+/// Alert component
///
public partial class Alert
{
///
- /// 获得 样式集合
+ /// 获得 样式集合
+ /// Gets the class name
///
///
private string? ClassName => CssBuilder.Default("alert fade show")
@@ -27,13 +29,17 @@ public partial class Alert
private bool IsShown { get; set; } = true;
///
- /// 获得/设置 是否显示阴影 默认 false 不显示
+ /// 获得/设置 是否显示阴影 默认 false 不显示
+ /// Gets or sets whether to show shadow. Default is false
+ /// 10.2.2
///
[Parameter]
public bool ShowShadow { get; set; }
///
- /// 获得/设置 是否显示边框 默认 false 不显示
+ /// 获得/设置 是否显示边框 默认 false 不显示
+ /// Gets or sets whether to show border. Default is false
+ /// 10.2.2
///
[Parameter]
public bool ShowBorder { get; set; }
diff --git a/src/BootstrapBlazor/Components/Alert/AlertBase.cs b/src/BootstrapBlazor/Components/Alert/AlertBase.cs
index 38a8c321080..ed735400720 100644
--- a/src/BootstrapBlazor/Components/Alert/AlertBase.cs
+++ b/src/BootstrapBlazor/Components/Alert/AlertBase.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License
// See the LICENSE file in the project root for more information.
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone
@@ -6,49 +6,63 @@
namespace BootstrapBlazor.Components;
///
-/// Alert 警告框组件
+/// Alert 警告框组件
+/// Alert component
///
public abstract class AlertBase : BootstrapComponentBase
{
///
- /// 获得 图标样式字符串
+ /// 获得 图标样式字符串
+ /// Gets the icon class string
///
protected string? IconString => CssBuilder.Default("alert-icon")
.AddClass(Icon)
.Build();
///
- /// 获得/设置 颜色
+ /// 获得/设置 颜色
+ /// Gets or sets the color
+ /// 10.2.2
///
[Parameter]
public Color Color { get; set; } = Color.Primary;
///
- /// 获得/设置 是否显示关闭按钮
+ /// 获得/设置 是否显示关闭按钮
+ /// Gets or sets whether to show the dismiss button
+ /// 10.2.2
///
[Parameter]
public bool ShowDismiss { get; set; }
///
- /// 获得/设置 显示图标
+ /// 获得/设置 显示图标
+ /// Gets or sets the icon
+ /// 10.2.2
///
[Parameter]
public string? Icon { get; set; }
///
- /// 获得/设置 是否显示左侧 Bar
+ /// 获得/设置 是否显示左侧 Bar
+ /// Gets or sets whether to show the left bar
+ /// 10.2.2
///
[Parameter]
public bool ShowBar { get; set; }
///
- /// 子组件
+ /// 子组件
+ /// Child content
+ /// 10.2.2
///
[Parameter]
public RenderFragment? ChildContent { get; set; }
///
- /// 关闭警告框回调方法
+ /// 关闭警告框回调方法
+ /// Callback method when the alert is dismissed
+ /// 10.2.2
///
[Parameter]
public Func? OnDismiss { get; set; }
diff --git a/src/BootstrapBlazor/Components/Anchor/Anchor.razor.cs b/src/BootstrapBlazor/Components/Anchor/Anchor.razor.cs
index f7a48cad0dd..5895e3d100d 100644
--- a/src/BootstrapBlazor/Components/Anchor/Anchor.razor.cs
+++ b/src/BootstrapBlazor/Components/Anchor/Anchor.razor.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License
// See the LICENSE file in the project root for more information.
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone
@@ -6,41 +6,53 @@
namespace BootstrapBlazor.Components;
///
-/// Anchor 组件部分类
+/// Anchor 组件部分类
+/// Anchor component
///
public partial class Anchor
{
///
- /// 获得/设置 目标组件 Id
+ /// 获得/设置 目标组件 Id
+ /// Gets or sets the target component Id
+ /// 10.2.2
///
[Parameter]
public string? Target { get; set; }
///
- /// 获得/设置 滚动组件 Id 默认为 null 使用最近滚动条容器元素
+ /// 获得/设置 滚动组件 Id 默认为 null 使用最近滚动条容器元素
+ /// Gets or sets the scroll component Id. Default is null, using the nearest scroll container element
+ /// 10.2.2
///
[Parameter]
public string? Container { get; set; }
///
- /// 获得/设置 滚动时是否开启动画 默认 true
+ /// 获得/设置 滚动时是否开启动画 默认 true
+ /// Gets or sets whether to enable animation when scrolling. Default is true
+ /// 10.2.2
///
[Parameter]
public bool IsAnimation { get; set; } = true;
///
- /// 获得 滚动动画
+ /// 获得 滚动动画
+ /// Gets the scroll animation
///
protected string? AnimationString => IsAnimation ? "true" : null;
///
- /// 获得/设置 距离顶端偏移量 默认为 0
+ /// 获得/设置 距离顶端偏移量 默认为 0
+ /// Gets or sets the offset from the top. Default is 0
+ /// 10.2.2
///
[Parameter]
public int Offset { get; set; }
///
- /// 获得/设置 子内容
+ /// 获得/设置 子内容
+ /// Gets or sets the child content
+ /// 10.2.2
///
[Parameter]
public RenderFragment? ChildContent { get; set; }
diff --git a/src/BootstrapBlazor/Components/AnchorLink/AnchorLink.razor.cs b/src/BootstrapBlazor/Components/AnchorLink/AnchorLink.razor.cs
index c39cda12d0b..8523fc03e59 100644
--- a/src/BootstrapBlazor/Components/AnchorLink/AnchorLink.razor.cs
+++ b/src/BootstrapBlazor/Components/AnchorLink/AnchorLink.razor.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License
// See the LICENSE file in the project root for more information.
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone
@@ -6,24 +6,31 @@
namespace BootstrapBlazor.Components;
///
-/// AnchorLink 组件
+/// AnchorLink 组件
+/// AnchorLink component
///
public partial class AnchorLink
{
///
- /// 获得/设置 组件 Text 显示文字
+ /// 获得/设置 组件 Text 显示文字
+ /// Gets or sets the component text display
+ /// 10.2.2
///
[Parameter]
public string? Text { get; set; }
///
- /// 获得/设置 组件 拷贝成功后 显示文字
+ /// 获得/设置 组件 拷贝成功后 显示文字
+ /// Gets or sets the display text after successful copy
+ /// 10.2.2
///
[Parameter]
public string? TooltipText { get; set; }
///
- /// 获得/设置 锚点图标 默认 fa-solid fa-link
+ /// 获得/设置 锚点图标 默认 fa-solid fa-link
+ /// Gets or sets the anchor icon. Default is fa-solid fa-link
+ /// 10.2.2
///
[Parameter]
public string? Icon { get; set; }
diff --git a/src/BootstrapBlazor/Components/AutoComplete/AutoComplete.razor.cs b/src/BootstrapBlazor/Components/AutoComplete/AutoComplete.razor.cs
index 3025f9f0348..20af86de2a8 100644
--- a/src/BootstrapBlazor/Components/AutoComplete/AutoComplete.razor.cs
+++ b/src/BootstrapBlazor/Components/AutoComplete/AutoComplete.razor.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License
// See the LICENSE file in the project root for more information.
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone
@@ -8,75 +8,96 @@
namespace BootstrapBlazor.Components;
///
-/// AutoComplete component
+/// AutoComplete 组件
+/// AutoComplete component
///
public partial class AutoComplete
{
///
- /// Gets or sets the collection of matching data obtained by inputting a string
+ /// 获得/设置 通过输入字符串获得的匹配数据集合
+ /// Gets or sets the collection of matching data obtained by inputting a string
+ /// 10.2.2
///
[Parameter]
[NotNull]
public IEnumerable? Items { get; set; }
///
- /// Gets or sets custom collection filtering rules, default is null
+ /// 获得/设置 自定义集合过滤规则 默认为 null
+ /// Gets or sets custom collection filtering rules, default is null
+ /// 10.2.2
///
[Parameter]
public Func>>? OnCustomFilter { get; set; }
///
- /// Gets or sets the icon
+ /// 获得/设置 图标
+ /// Gets or sets the icon
+ /// 10.2.2
///
[Parameter]
public string? Icon { get; set; }
///
- /// Gets or sets the loading icon
+ /// 获得/设置 加载图标
+ /// Gets or sets the loading icon
+ /// 10.2.2
///
[Parameter]
public string? LoadingIcon { get; set; }
///
- /// Gets or sets the number of items to display when matching data
+ /// 获得/设置 匹配数据时显示的数量
+ /// Gets or sets the number of items to display when matching data
+ /// 10.2.2
///
[Parameter]
[NotNull]
public int? DisplayCount { get; set; }
///
- /// Gets or sets whether to enable fuzzy search, default is false
+ /// 获得/设置 是否开启模糊搜索 默认为 false
+ /// Gets or sets whether to enable fuzzy search, default is false
+ /// 10.2.2
///
[Parameter]
public bool IsLikeMatch { get; set; }
///
- /// Gets or sets whether to ignore case when matching, default is true
+ /// 获得/设置 匹配时是否忽略大小写 默认为 true
+ /// Gets or sets whether to ignore case when matching, default is true
+ /// 10.2.2
///
[Parameter]
public bool IgnoreCase { get; set; } = true;
///
- /// Gets or sets whether to expand the dropdown candidate menu when focused, default is true
+ /// 获得/设置 获得焦点时是否展开下拉候选菜单 默认为 true
+ /// Gets or sets whether to expand the dropdown candidate menu when focused, default is true
+ /// 10.2.2
///
[Parameter]
public bool ShowDropdownListOnFocus { get; set; } = true;
///
- /// Gets or sets whether to show the no matching data option, default is true
+ /// 获得/设置 是否显示无匹配数据选项 默认为 true
+ /// Gets or sets whether to show the no matching data option, default is true
+ /// 10.2.2
///
[Parameter]
public bool ShowNoDataTip { get; set; } = true;
///
- /// IStringLocalizer service instance
+ /// IStringLocalizer 服务实例
+ /// IStringLocalizer service instance
///
[Inject]
[NotNull]
private IStringLocalizer? Localizer { get; set; }
///
- /// Gets the string setting for automatically displaying the dropdown when focused
+ /// 获得 获得焦点时自动显示下拉框设置字符串
+ /// Gets the string setting for automatically displaying the dropdown when focused
///
private string? ShowDropdownListOnFocusString => ShowDropdownListOnFocus ? "true" : null;
@@ -92,7 +113,8 @@ public partial class AutoComplete
.Build();
///
- /// 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)
@@ -164,13 +186,15 @@ protected override async Task OnAfterRenderAsync(bool firstRender)
private string? GetChangedEventCallbackName() => (OnValueChanged != null || ValueChanged.HasDelegate) ? nameof(TriggerChange) : null;
///
- /// Gets whether show the clear button.
+ /// 获得 是否显示清除按钮
+ /// Gets whether show the clear button.
///
///
private bool GetClearable() => IsClearable && !IsDisabled;
///
- /// Callback method when a candidate item is clicked
+ /// 点击候选项目时回调方法
+ /// Callback method when a candidate item is clicked
///
private async Task OnClickItem(string val)
{
@@ -195,7 +219,8 @@ private async Task OnClickItem(string val)
private List Rows => _filterItems ?? [.. Items];
///
- /// 点击清空按钮时调用此方法 由 Javascript 触发
+ /// 点击清空按钮时调用此方法 由 Javascript 触发
+ /// Method called when the clear button is clicked. Triggered by Javascript
///
///
[JSInvokable]
@@ -208,7 +233,8 @@ public async Task TriggerClear()
}
///
- /// TriggerFilter method
+ /// TriggerFilter 方法
+ /// TriggerFilter method
///
///
[JSInvokable]
@@ -238,7 +264,8 @@ public async Task TriggerFilter(string val)
}
///
- /// 支持双向绑定 由客户端 JavaScript 触发
+ /// 支持双向绑定 由客户端 JavaScript 触发
+ /// Supports two-way binding. Triggered by client-side JavaScript
///
///
///
diff --git a/src/BootstrapBlazor/Components/AutoComplete/PopoverCompleteBase.cs b/src/BootstrapBlazor/Components/AutoComplete/PopoverCompleteBase.cs
index 71148e67728..9b51e48f3c8 100644
--- a/src/BootstrapBlazor/Components/AutoComplete/PopoverCompleteBase.cs
+++ b/src/BootstrapBlazor/Components/AutoComplete/PopoverCompleteBase.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License
// See the LICENSE file in the project root for more information.
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone
@@ -6,13 +6,15 @@
namespace BootstrapBlazor.Components;
///
-/// 弹窗可悬浮组件基类
+/// 弹窗可悬浮组件基类
+/// Base class for popover complete component
///
[BootstrapModuleAutoLoader("AutoComplete/AutoComplete.razor.js", JSObjectReference = true)]
public abstract class PopoverCompleteBase : BootstrapInputBase, IPopoverBaseComponent
{
///
- /// 图标主题服务
+ /// 图标主题服务
+ /// Icon theme service
///
[Inject]
[NotNull]
@@ -20,24 +22,29 @@ public abstract class PopoverCompleteBase : BootstrapInputBase,
///
///
+ /// 10.2.2
///
[Parameter]
public Placement Placement { get; set; } = Placement.Bottom;
///
///
+ /// 10.2.2
///
[Parameter]
public string? CustomClass { get; set; }
///
///
+ /// 10.2.2
///
[Parameter]
public bool ShowShadow { get; set; } = true;
///
- /// 获得/设置 无匹配数据时显示提示信息 默认提示"无匹配数据"
+ /// 获得/设置 无匹配数据时显示提示信息 默认提示"无匹配数据"
+ /// Gets or sets the tip info when no matching data. Default is "No matched data"
+ /// 10.2.2
///
[Parameter]
[NotNull]
@@ -45,119 +52,148 @@ public abstract class PopoverCompleteBase : BootstrapInputBase,
///
///
+ /// 10.2.2
///
[Parameter]
public bool IsPopover { get; set; }
///
///
+ /// 10.2.2
///
[Parameter]
public string? Offset { get; set; }
///
- /// 获得/设置 防抖时间 默认为 0 即不开启
+ /// 获得/设置 防抖时间 默认为 0 即不开启
+ /// Gets or sets the debounce time. Default is 0 (disabled)
+ /// 10.2.2
///
[Parameter]
public int Debounce { get; set; }
///
- /// 获得/设置 下拉菜单选择回调方法 默认 null
+ /// 获得/设置 下拉菜单选择回调方法 默认 null
+ /// Gets or sets the callback method for dropdown item selection. Default is null
+ /// 10.2.2
///
[Parameter]
public Func? OnSelectedItemChanged { get; set; }
///
- /// 获得/设置 是否跳过 Enter 按键处理 默认 false
+ /// 获得/设置 是否跳过 Enter 按键处理 默认 false
+ /// Gets or sets whether to skip Enter key processing. Default is false
+ /// 10.2.2
///
[Parameter]
public bool SkipEnter { get; set; }
///
- /// 获得/设置 是否跳过 Esc 按键处理 默认 false
+ /// 获得/设置 是否跳过 Esc 按键处理 默认 false
+ /// Gets or sets whether to skip Esc key processing. Default is false
+ /// 10.2.2
///
[Parameter]
public bool SkipEsc { get; set; }
///
- /// 获得/设置 滚动行为 默认
+ /// 获得/设置 滚动行为 默认
+ /// Gets or sets the scroll behavior. Default is
+ /// 10.2.2
///
[Parameter]
public ScrollIntoViewBehavior ScrollIntoViewBehavior { get; set; } = ScrollIntoViewBehavior.Smooth;
///
- /// 获得/设置 候选项模板 默认 null
+ /// 获得/设置 候选项模板 默认 null
+ /// Gets or sets the item template. Default is null
+ /// 10.2.2
///
[Parameter]
public RenderFragment? ItemTemplate { get; set; }
///
- /// Gets or sets whether the select component is clearable. Default is false.
+ /// 获得/设置 选择组件是否可清除 默认为 false
+ /// Gets or sets whether the select component is clearable. Default is false.
+ /// 10.2.2
///
[Parameter]
public bool IsClearable { get; set; }
///
- /// Gets or sets the right-side clear icon. Default is fa-solid fa-angle-up.
+ /// 获得/设置 右侧清除图标 默认为 fa-solid fa-angle-up
+ /// Gets or sets the right-side clear icon. Default is fa-solid fa-angle-up.
+ /// 10.2.2
///
[Parameter]
[NotNull]
public string? ClearIcon { get; set; }
///
- /// 配置类实例
+ /// 配置类实例
+ /// configuration instance
///
[Inject]
[NotNull]
protected IOptions? BootstrapBlazorOptions { get; set; }
///
- /// 获得 是否跳过 ESC 按键字符串
+ /// 获得 是否跳过 ESC 按键字符串
+ /// Gets the skip ESC key string
///
protected string? SkipEscString => SkipEsc ? "true" : null;
///
- /// 获得 是否跳过 Enter 按键字符串
+ /// 获得 是否跳过 Enter 按键字符串
+ /// Gets the skip Enter key string
///
protected string? SkipEnterString => SkipEnter ? "true" : null;
///
- /// 获得 滚动行为字符串
+ /// 获得 滚动行为字符串
+ /// Gets the scroll behavior string
///
protected string? ScrollIntoViewBehaviorString => ScrollIntoViewBehavior == ScrollIntoViewBehavior.Smooth ? null : ScrollIntoViewBehavior.ToDescriptionString();
///
- /// 防抖时长字符串
+ /// 防抖时长字符串
+ /// Debounce duration string
///
protected string? DurationString => Debounce > 0 ? $"{Debounce}" : null;
///
- /// data-bs-toggle 值
+ /// data-bs-toggle 值
+ /// data-bs-toggle value
///
protected string? ToggleString => IsPopover ? Constants.DropdownToggleString : null;
///
- /// 偏移量字符串
+ /// 偏移量字符串
+ /// Offset string
///
protected string? OffsetString => IsPopover ? null : Offset;
///
- /// 输入框 Id
+ /// 输入框 Id
+ /// Input Id
///
protected string InputId => $"{Id}_input";
///
- /// 弹窗位置字符串
+ /// 弹窗位置字符串
+ /// Popover placement string
///
protected string? PlacementString => Placement == Placement.Auto ? null : Placement.ToDescriptionString();
///
- /// 获得输入框 Id
+ /// 获得输入框 Id
+ /// Gets the input Id
///
protected override string? GetInputId() => InputId;
///
- /// 获得 CustomClass 字符串
+ /// 获得 CustomClass 字符串
+ /// Gets the CustomClass string
///
protected virtual string? CustomClassString => CssBuilder.Default(CustomClass)
.AddClass("shadow", ShowShadow)
@@ -177,13 +213,15 @@ protected override void OnParametersSet()
}
///
- /// 触发 OnBlurAsync 回调前回调方法
+ /// 触发 OnBlurAsync 回调前回调方法
+ /// Callback method before triggering OnBlurAsync
///
///
protected virtual Task OnBeforeBlurAsync() => Task.CompletedTask;
///
- /// 触发 OnBlur 回调方法 由 Javascript 触发
+ /// 触发 OnBlur 回调方法 由 Javascript 触发
+ /// Trigger OnBlur callback method. Triggered by Javascript
///
[JSInvokable]
public async Task TriggerBlur()
diff --git a/src/BootstrapBlazor/Components/AutoFill/AutoFill.razor.cs b/src/BootstrapBlazor/Components/AutoFill/AutoFill.razor.cs
index 466bbb9059a..f776a16789f 100644
--- a/src/BootstrapBlazor/Components/AutoFill/AutoFill.razor.cs
+++ b/src/BootstrapBlazor/Components/AutoFill/AutoFill.razor.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License
// See the LICENSE file in the project root for more information.
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone
@@ -10,76 +10,99 @@
namespace BootstrapBlazor.Components;
///
-/// AutoFill component
+/// AutoFill 组件
+/// AutoFill component
///
/// The type of the value.
public partial class AutoFill
{
///
- /// Gets or sets the collection of items for the component.
+ /// 获得/设置 组件数据集合
+ /// Gets or sets the collection of items for the component.
+ /// 10.2.2
///
[Parameter]
[NotNull]
public IEnumerable? Items { get; set; }
///
- /// Gets or sets the number of items to display when matching data. Default is null.
+ /// 获得/设置 匹配数据时显示的数量 默认为 null
+ /// Gets or sets the number of items to display when matching data. Default is null.
+ /// 10.2.2
///
[Parameter]
[NotNull]
public int? DisplayCount { get; set; }
///
- /// Gets or sets whether to enable fuzzy search. Default is false.
+ /// 获得/设置 是否开启模糊搜索 默认为 false
+ /// Gets or sets whether to enable fuzzy search. Default is false.
+ /// 10.2.2
///
[Parameter]
public bool IsLikeMatch { get; set; }
///
- /// Gets or sets whether to ignore case when matching. Default is true.
+ /// 获得/设置 匹配时是否忽略大小写 默认为 true
+ /// Gets or sets whether to ignore case when matching. Default is true.
+ /// 10.2.2
///
[Parameter]
public bool IgnoreCase { get; set; } = true;
///
- /// Gets or sets whether to expand the dropdown candidate menu when focused. Default is true.
+ /// 获得/设置 获得焦点时是否展开下拉候选菜单 默认为 true
+ /// Gets or sets whether to expand the dropdown candidate menu when focused. Default is true.
+ /// 10.2.2
///
[Parameter]
public bool ShowDropdownListOnFocus { get; set; } = true;
///
- /// Gets or sets the method to get the display text from the model. Default is to use the ToString override method.
+ /// 获得/设置 获取显示文本方法 默认为使用 ToString 方法
+ /// Gets or sets the method to get the display text from the model. Default is to use the ToString override method.
+ /// 10.2.2
///
[Parameter]
[NotNull]
public Func? OnGetDisplayText { get; set; }
///
- /// Gets or sets the icon.
+ /// 获得/设置 图标
+ /// Gets or sets the icon.
+ /// 10.2.2
///
[Parameter]
public string? Icon { get; set; }
///
- /// Gets or sets the loading icon.
+ /// 获得/设置 加载图标
+ /// Gets or sets the loading icon.
+ /// 10.2.2
///
[Parameter]
public string? LoadingIcon { get; set; }
///
- /// Gets or sets the custom collection filtering rules.
+ /// 获得/设置 自定义集合过滤规则
+ /// Gets or sets the custom collection filtering rules.
+ /// 10.2.2
///
[Parameter]
public Func>>? OnCustomFilter { get; set; }
///
- /// Gets or sets whether to show the no matching data option. Default is true.
+ /// 获得/设置 是否显示无匹配数据选项 默认为 true
+ /// Gets or sets whether to show the no matching data option. Default is true.
+ /// 10.2.2
///
[Parameter]
public bool ShowNoDataTip { get; set; } = true;
///
- /// Gets or sets the candidate item template. Default is null.
+ /// 获得/设置 候选项模板 默认为 null
+ /// Gets or sets the candidate item template. Default is null.
+ /// 10.2.2
///
[Parameter]
[Obsolete("已弃用,请使用 ItemTemplate 代替;Deprecated please use ItemTemplate parameter")]
@@ -87,40 +110,58 @@ public partial class AutoFill
public RenderFragment? Template { get => ItemTemplate; set => ItemTemplate = value; }
///
- /// Gets or sets whether virtual scrolling is enabled. Default is false.
+ /// 获得/设置 是否开启虚拟滚动 默认为 false
+ /// Gets or sets whether virtual scrolling is enabled. Default is false.
+ /// 10.2.2
///
[Parameter]
public bool IsVirtualize { get; set; }
///
- /// Gets or sets the row height for virtual scrolling. Default is 50f.
+ /// 获得/设置 虚拟滚动行高 默认为 50f
+ /// Gets or sets the row height for virtual scrolling. Default is 50f.
+ /// 10.2.2
///
- /// Effective when is set to true.
+ ///
+ /// 当 为 true 时生效
+ /// Effective when is set to true.
+ ///
[Parameter]
public float RowHeight { get; set; } = 50f;
///
- /// Gets or sets the overscan count for virtual scrolling. Default is 3.
+ /// 获得/设置 虚拟滚动预加载行数 默认为 3
+ /// Gets or sets the overscan count for virtual scrolling. Default is 3.
+ /// 10.2.2
///
- /// Effective when is set to true.
+ ///
+ /// 当 为 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.
+ /// 10.2.2
///
[Parameter]
[NotNull]
public Func>>? OnQueryAsync { get; set; }
///
- /// Gets or sets the callback method when the clear button is clicked. Default is null.
+ /// 获得/设置 点击清除按钮回调方法 默认为 null
+ /// Gets or sets the callback method when the clear button is clicked. Default is null.
+ /// 10.2.2
///
[Parameter]
public Func? OnClearAsync { get; set; }
///
- /// 获得/设置 输入框内容无效时是否自动清空内容 默认 false
+ /// 获得/设置 输入框内容无效时是否自动清空内容 默认 false
+ /// Gets or sets whether to clear the content automatically when the input is invalid. Default is false
+ /// 10.2.2
///
[Parameter]
public bool IsAutoClearWhenInvalid { get; set; }
@@ -146,14 +187,16 @@ public partial class AutoFill
private string? _lastClientValue;
///
- /// Gets the component style.
+ /// 获得 组件样式
+ /// Gets the component style.
///
private string? ClassString => CssBuilder.Default("auto-complete auto-fill")
.AddClass("is-clearable", IsClearable)
.Build();
///
- /// 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)
@@ -215,7 +258,8 @@ protected override async Task OnAfterRenderAsync(bool firstRender)
private string? _clientValue;
///
- /// 由客户端 JavaScript 触发
+ /// 由客户端 JavaScript 触发
+ /// Triggered by client-side JavaScript
///
///
///
@@ -228,15 +272,17 @@ public void TriggerChange(string v)
private bool IsNullable() => !ValueType.IsValueType || NullableUnderlyingType != null;
///
- /// 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;
@@ -274,9 +320,10 @@ private async ValueTask> LoadItems(ItemsProviderRequ
private string? _searchText;
///
- /// 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/AutoRedirect/AutoRedirect.cs b/src/BootstrapBlazor/Components/AutoRedirect/AutoRedirect.cs
index 1c33a3c647f..904c6c2a8a9 100644
--- a/src/BootstrapBlazor/Components/AutoRedirect/AutoRedirect.cs
+++ b/src/BootstrapBlazor/Components/AutoRedirect/AutoRedirect.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License
// See the LICENSE file in the project root for more information.
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone
@@ -6,37 +6,47 @@
namespace BootstrapBlazor.Components;
///
-/// AutoRedirect component
+/// AutoRedirect 组件
+/// AutoRedirect component
///
[BootstrapModuleAutoLoader(ModuleName = "autoredirect", JSObjectReference = true)]
public class AutoRedirect : BootstrapModuleComponentBase
{
///
- /// 获得/设置 重定向地址
+ /// 获得/设置 重定向地址
+ /// Gets or sets the redirect URL
+ /// 10.2.2
///
[Parameter]
public string? RedirectUrl { get; set; }
///
- /// 获得/设置 是否强制导航 默认 false
+ /// 获得/设置 是否强制导航 默认 false
+ /// Gets or sets whether to force load. Default is false
+ /// 10.2.2
///
[Parameter]
public bool IsForceLoad { get; set; }
///
- /// 获得/设置 自动锁屏间隔单位 秒 默认 60000 毫秒
+ /// 获得/设置 自动锁屏间隔单位 秒 默认 60000 毫秒
+ /// Gets or sets the auto lock screen interval in milliseconds. Default is 60000 ms
+ /// 10.2.2
///
[Parameter]
public int Interval { get; set; } = 60000;
///
- /// 获得/设置 地址跳转前回调方法 返回 true 时中止跳转
+ /// 获得/设置 地址跳转前回调方法 返回 true 时中止跳转
+ /// Gets or sets the callback method before redirect. Returns true to cancel redirect
+ /// 10.2.2
///
[Parameter]
public Func>? OnBeforeRedirectAsync { get; set; }
///
- /// 获得/设置 NavigationManager 实例
+ /// 获得/设置 NavigationManager 实例
+ /// Gets or sets the NavigationManager instance
///
[Inject]
[NotNull]
@@ -49,7 +59,8 @@ public class AutoRedirect : BootstrapModuleComponentBase
protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id, Interop, Interval, nameof(Lock));
///
- /// 锁屏操作由 JS 调用
+ /// 锁屏操作由 JS 调用
+ /// Lock screen operation called by JS
///
[JSInvokable]
public async Task Lock()
diff --git a/src/BootstrapBlazor/Components/Avatar/Avatar.razor.cs b/src/BootstrapBlazor/Components/Avatar/Avatar.razor.cs
index 0e5e77c80c8..f8f481f93fd 100644
--- a/src/BootstrapBlazor/Components/Avatar/Avatar.razor.cs
+++ b/src/BootstrapBlazor/Components/Avatar/Avatar.razor.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License
// See the LICENSE file in the project root for more information.
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone
@@ -6,12 +6,14 @@
namespace BootstrapBlazor.Components;
///
-/// Avatar 头像框组件
+/// Avatar 头像框组件
+/// Avatar component
///
public partial class Avatar
{
///
- /// 获得 样式集合
+ /// 获得 样式集合
+ /// Gets the class name
///
///
private string? ClassName => CssBuilder.Default("avatar")
@@ -24,60 +26,79 @@ public partial class Avatar
.Build();
///
- /// 获得 图片样式
+ /// 获得 图片样式
+ /// Gets the image class string
///
private string? ImgClassString => (IsLoaded.HasValue && IsLoaded.Value) ? null : "d-none";
///
- /// 获得/设置 是否为圆形
+ /// 获得/设置 是否为圆形
+ /// Gets or sets whether it is a circle
+ /// 10.2.2
///
[Parameter]
public bool IsCircle { get; set; }
///
- /// 获得/设置 Image 头像路径地址
+ /// 获得/设置 Image 头像路径地址
+ /// Gets or sets the image path
+ /// 10.2.2
///
[Parameter]
public string? Url { get; set; }
///
- /// 获得/设置 是否为图标
+ /// 获得/设置 是否为图标
+ /// Gets or sets whether it is an icon
+ /// 10.2.2
///
[Parameter]
public bool IsIcon { get; set; }
///
- /// 获得/设置 头像框显示图标
+ /// 获得/设置 头像框显示图标
+ /// Gets or sets the icon
+ /// 10.2.2
///
[Parameter]
public string? Icon { get; set; }
///
- /// 获得/设置 是否为显示为文字
+ /// 获得/设置 是否显示为文字
+ /// Gets or sets whether to display text
+ /// 10.2.2
///
[Parameter]
public bool IsText { get; set; }
///
- /// 获得/设置 头像框显示文字
+ /// 获得/设置 头像框显示文字
+ /// Gets or sets the text
+ /// 10.2.2
///
[Parameter]
public string? Text { get; set; }
///
- /// 获得/设置 头像框大小
+ /// 获得/设置 头像框大小
+ /// Gets or sets the size
+ /// 10.2.2
///
[Parameter]
public Size Size { get; set; } = Size.Medium;
///
- /// 获得/设置 是否显示 Border 默认为 false
+ /// 获得/设置 是否显示 Border 默认为 false
+ /// Gets or sets whether to show border. Default is false
+ /// 10.2.2
///
[Parameter]
public bool IsBorder { get; set; }
///
- /// 获得/设置 获取图片地址异步回调方法
+ /// 获得/设置 获取图片地址异步回调方法
+ /// Gets or sets the async callback method to get image url
+ /// 10.2.2
///
[Parameter]
public Func>? GetUrlAsync { get; set; }
@@ -87,12 +108,14 @@ public partial class Avatar
private IIconTheme? IconTheme { get; set; }
///
- /// 获得/设置 是否显示图片
+ /// 获得/设置 是否显示图片
+ /// Gets or sets whether to show image
///
private bool? IsLoaded { get; set; }
///
- /// OnInitializedAsync 方法
+ /// OnParametersSetAsync 方法
+ /// OnParametersSetAsync method
///
///
protected override async Task OnParametersSetAsync()
@@ -106,7 +129,8 @@ protected override async Task OnParametersSetAsync()
}
///
- /// OnParametersSet 方法
+ /// OnParametersSet 方法
+ /// OnParametersSet method
///
protected override void OnParametersSet()
{
@@ -115,7 +139,8 @@ protected override void OnParametersSet()
}
///
- /// 图片加载失败时回调此方法
+ /// 图片加载失败时回调此方法
+ /// Callback method when image load fails
///
private void OnError()
{
@@ -124,7 +149,8 @@ private void OnError()
}
///
- /// 图片加载成功时回调此方法
+ /// 图片加载成功时回调此方法
+ /// Callback method when image load succeeds
///
private void OnLoad()
{
diff --git a/src/BootstrapBlazor/Components/Badge/Badge.razor.cs b/src/BootstrapBlazor/Components/Badge/Badge.razor.cs
index e37d63a76da..e52a9c6ced1 100644
--- a/src/BootstrapBlazor/Components/Badge/Badge.razor.cs
+++ b/src/BootstrapBlazor/Components/Badge/Badge.razor.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License
// See the LICENSE file in the project root for more information.
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone
@@ -6,7 +6,8 @@
namespace BootstrapBlazor.Components;
///
-/// Badge component
+/// Badge 徽章组件
+/// Badge component
///
public partial class Badge
{
@@ -17,20 +18,26 @@ public partial class Badge
.Build();
///
- /// Gets or sets the color of the badge. Default is .
+ /// 获得/设置 徽章颜色 默认为
+ /// Gets or sets the color of the badge. Default is .
+ /// 10.2.2
///
[Parameter]
public Color Color { get; set; } = Color.Primary;
///
- /// Gets or sets whether the badge should be displayed as a pill (rounded) or not. Default is false.
+ /// 获得/设置 徽章是否显示为胶囊形式 默认为 false
+ /// Gets or sets whether the badge should be displayed as a pill (rounded) or not. Default is false.
+ /// 10.2.2
///
///
[Parameter]
public bool IsPill { get; set; }
///
- /// Gets or sets the child content of the component. Default is false.
+ /// 获得/设置 子组件内容 默认为 false
+ /// Gets or sets the child content of the component. Default is false.
+ /// 10.2.2
///
[Parameter]
public RenderFragment? ChildContent { get; set; }
diff --git a/src/BootstrapBlazor/Components/Badge/ShieldBadge.razor.cs b/src/BootstrapBlazor/Components/Badge/ShieldBadge.razor.cs
index 9066a5d66aa..0af11045477 100644
--- a/src/BootstrapBlazor/Components/Badge/ShieldBadge.razor.cs
+++ b/src/BootstrapBlazor/Components/Badge/ShieldBadge.razor.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License
// See the LICENSE file in the project root for more information.
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone
@@ -6,60 +6,79 @@
namespace BootstrapBlazor.Components;
///
-/// ShieldBadge component
+/// ShieldBadge 徽章组件
+/// ShieldBadge component
///
public partial class ShieldBadge
{
///
- /// Gets or sets the icon. Default is null.
+ /// 获得/设置 图标 默认为 null
+ /// Gets or sets the icon. Default is null.
+ /// 10.2.2
///
[Parameter]
public string? Icon { get; set; }
///
- /// Gets or sets the icon color. Default is null.
+ /// 获得/设置 图标颜色 默认为 null
+ /// Gets or sets the icon color. Default is null.
+ /// 10.2.2
///
[Parameter]
public string? IconColor { get; set; }
///
- /// Gets or sets the text of badge. Default is null.
+ /// 获得/设置 徽章文本 默认为 null
+ /// Gets or sets the text of badge. Default is null.
+ /// 10.2.2
///
[Parameter]
public string? Text { get; set; }
///
- /// Gets or sets the text color. Default is null.
+ /// 获得/设置 文本颜色 默认为 null
+ /// Gets or sets the text color. Default is null.
+ /// 10.2.2
///
[Parameter]
public string? TextColor { get; set; }
///
- /// Gets or sets the text background color. Default is null.
+ /// 获得/设置 文本背景颜色 默认为 null
+ /// Gets or sets the text background color. Default is null.
+ /// 10.2.2
///
[Parameter]
public string? TextBackgroundColor { get; set; }
///
- /// Gets or sets the label of badge. Default is null.
+ /// 获得/设置 徽章标签 默认为 null
+ /// Gets or sets the label of badge. Default is null.
+ /// 10.2.2
///
[Parameter]
public string? Label { get; set; }
///
- /// Gets or sets the label color of badge. Default is null.
+ /// 获得/设置 标签颜色 默认为 null
+ /// Gets or sets the label color of badge. Default is null.
+ /// 10.2.2
///
[Parameter]
public string? LabelColor { get; set; }
///
- /// Gets or sets the label background color. Default is null.
+ /// 获得/设置 标签背景颜色 默认为 null
+ /// Gets or sets the label background color. Default is null.
+ /// 10.2.2
///
[Parameter]
public string? LabelBackgroundColor { get; set; }
///
- /// Gets or sets the badge radius. Default is 3.
+ /// 获得/设置 徽章圆角半径 默认为 3
+ /// Gets or sets the badge radius. Default is 3.
+ /// 10.2.2
///
[Parameter]
public int Radius { get; set; } = 3;
diff --git a/src/BootstrapBlazor/Components/BaseComponents/BootstrapBlazorRoot.razor.cs b/src/BootstrapBlazor/Components/BaseComponents/BootstrapBlazorRoot.razor.cs
index a9c1d1e19a6..096db46b6c6 100644
--- a/src/BootstrapBlazor/Components/BaseComponents/BootstrapBlazorRoot.razor.cs
+++ b/src/BootstrapBlazor/Components/BaseComponents/BootstrapBlazorRoot.razor.cs
@@ -8,7 +8,8 @@
namespace BootstrapBlazor.Components;
///
-/// BootstrapBlazorRoot 组件
+/// BootstrapBlazorRoot 组件
+/// BootstrapBlazorRoot component
///
public partial class BootstrapBlazorRoot
{
@@ -24,37 +25,47 @@ public partial class BootstrapBlazorRoot
private IEnumerable? Generators { get; set; }
///
- /// 获得/设置 子组件
+ /// 获得/设置 子组件
+ /// Gets or sets child content
+ /// 10.2.2
///
[Parameter]
public RenderFragment? ChildContent { get; set; }
///
- /// 获得 Message 组件实例
+ /// 获得 Message 组件实例
+ /// Gets the Message component instance
///
[NotNull]
public Message? MessageContainer { get; private set; }
///
- /// 获得 ToastContainer 组件实例
+ /// 获得 ToastContainer 组件实例
+ /// Gets the ToastContainer component instance
///
[NotNull]
public ToastContainer? ToastContainer { get; private set; }
///
- /// 获得/设置 是否开启全局异常捕获 默认 null 使用 设置值
+ /// 获得/设置 是否开启全局异常捕获 默认 null 使用 设置值
+ /// Gets or sets whether to enable global exception handling. Default is null (use )
+ /// 10.2.2
///
[Parameter]
public bool? EnableErrorLogger { get; set; }
///
- /// 获得/设置 是否记录异常到 默认 null 使用 设置值
+ /// 获得/设置 是否记录异常到 默认 null 使用 设置值
+ /// Gets or sets whether to log exceptions to . Default is null (use )
+ /// 10.2.2
///
[Parameter]
public bool? EnableErrorLoggerILogger { get; set; }
///
- /// 获得/设置 是否显示 Error 提示弹窗 默认 null 使用 设置值
+ /// 获得/设置 是否显示 Error 提示弹窗 默认 null 使用 设置值
+ /// Gets or sets whether to show Error toast. Default is null (use )
+ /// 10.2.2
///
[Parameter]
[Obsolete("已弃用,请使用 ShowErrorLoggerToast 参数. Deprecated, please use ShowErrorLoggerToast parameter")]
@@ -62,19 +73,25 @@ public partial class BootstrapBlazorRoot
public bool? ShowToast { get => ShowErrorLoggerToast; set => ShowErrorLoggerToast = value; }
///
- /// 获得/设置 是否显示 Error 提示弹窗 默认 null 使用 设置值
+ /// 获得/设置 是否显示 Error 提示弹窗 默认 null 使用 设置值
+ /// Gets or sets whether to show Error toast. Default is null (use )
+ /// 10.2.2
///
[Parameter]
public bool? ShowErrorLoggerToast { get; set; }
///
- /// 获得/设置 Error Toast 弹窗标题
+ /// 获得/设置 Error Toast 弹窗标题
+ /// Gets or sets Error Toast title
+ /// 10.2.2
///
[Parameter]
public string? ToastTitle { get; set; }
///
- /// 获得/设置 自定义错误处理回调方法
+ /// 获得/设置 自定义错误处理回调方法
+ /// Gets or sets custom error callback method
+ /// 10.2.2
///
[Parameter]
public Func? OnErrorHandleAsync { get; set; }
diff --git a/src/BootstrapBlazor/Components/BaseComponents/BootstrapComponentBase.cs b/src/BootstrapBlazor/Components/BaseComponents/BootstrapComponentBase.cs
index 26a0c22983f..22fdcee4abf 100644
--- a/src/BootstrapBlazor/Components/BaseComponents/BootstrapComponentBase.cs
+++ b/src/BootstrapBlazor/Components/BaseComponents/BootstrapComponentBase.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License
// See the LICENSE file in the project root for more information.
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone
@@ -8,32 +8,37 @@
namespace BootstrapBlazor.Components;
///
-/// Bootstrap Blazor 组件基类
+/// Bootstrap Blazor 组件基类
+/// Bootstrap Blazor component base class
///
public abstract class BootstrapComponentBase : ComponentBase, IHandleEvent
{
///
- /// 获得/设置 用户自定义属性
+ /// 获得/设置 用户自定义属性
+ /// Gets or sets user defined attributes
///
[Parameter(CaptureUnmatchedValues = true)]
[JsonIgnore]
public IDictionary? AdditionalAttributes { get; set; }
///
- /// 异常捕获组件
+ /// 异常捕获组件
+ /// Exception handling component
///
[CascadingParameter]
protected IErrorLogger? ErrorLogger { get; set; }
///
- /// 获得/设置 IJSRuntime 实例
+ /// 获得/设置 IJSRuntime 实例
+ /// Gets or sets IJSRuntime instance
///
[Inject]
[NotNull]
protected IJSRuntime? JSRuntime { get; set; }
///
- /// 获得/设置 是否需要 Render 组件 默认 false 需要重新渲染组件
+ /// 获得/设置 是否需要 Render 组件 默认 false 需要重新渲染组件
+ /// Gets or sets whether to render the component. Default is false (re-render required)
///
protected bool IsNotRender { get; set; }
diff --git a/src/BootstrapBlazor/Components/BaseComponents/BootstrapModuleComponentBase.cs b/src/BootstrapBlazor/Components/BaseComponents/BootstrapModuleComponentBase.cs
index 0baeea2e985..b338d852d00 100644
--- a/src/BootstrapBlazor/Components/BaseComponents/BootstrapModuleComponentBase.cs
+++ b/src/BootstrapBlazor/Components/BaseComponents/BootstrapModuleComponentBase.cs
@@ -8,42 +8,50 @@
namespace BootstrapBlazor.Components;
///
-/// Bootstrap blazor JavaScript isolation base class
+/// Bootstrap Blazor JavaScript 隔离基类
+/// Bootstrap blazor JavaScript isolation base class
///
public abstract class BootstrapModuleComponentBase : IdComponentBase, IAsyncDisposable
{
///
- /// Instance of
+ /// 实例
+ /// Instance of
///
protected JSModule? Module { get; set; }
///
- /// 获得/设置 脚本路径
+ /// 获得/设置 脚本路径
+ /// Gets or sets the module path
///
protected string? ModulePath { get; set; }
///
- /// 获得/设置 是否自动调用 init 默认 true
+ /// 获得/设置 是否自动调用 init 默认 true
+ /// Gets or sets whether to auto invoke init. Default is true
///
protected bool AutoInvokeInit { get; set; } = true;
///
- /// 获得/设置 是否自动调用 dispose 默认 true
+ /// 获得/设置 是否自动调用 dispose 默认 true
+ /// Gets or sets whether to auto invoke dispose. Default is true
///
protected bool AutoInvokeDispose { get; set; } = true;
///
- /// 获得/设置 DotNetObjectReference 实例
+ /// 获得/设置 DotNetObjectReference 实例
+ /// Gets or sets DotNetObjectReference instance
///
protected DotNetObjectReference? Interop { get; set; }
///
- /// 获得/设置 Module 是否加载完成
+ /// 获得/设置 Module 是否加载完成
+ /// Gets or sets whether the module is loaded
///
protected TaskCompletionSource ModuleLoadTask { get; } = new();
///
- /// 获得/设置 Module 是否初始化完成
+ /// 获得/设置 Module 是否初始化完成
+ /// Gets or sets whether the module is initialized
///
protected TaskCompletionSource ModuleInitTask { get; } = new();
@@ -77,7 +85,8 @@ protected override async Task OnAfterRenderAsync(bool firstRender)
}
///
- /// 加载 JS Module 方法
+ /// 加载 JS Module 方法
+ /// Load JS Module method
///
protected virtual void OnLoadJSModule()
{
@@ -103,13 +112,15 @@ protected virtual void OnLoadJSModule()
}
///
- /// call JavaScript method
+ /// 调用 JavaScript 方法
+ /// Call JavaScript method
///
///
protected virtual Task InvokeInitAsync() => InvokeVoidAsync("init", Id, Interop);
///
- /// call JavaScript method
+ /// 调用 JavaScript 方法
+ /// Call JavaScript method
///
///
///
@@ -117,7 +128,8 @@ protected virtual void OnLoadJSModule()
protected Task InvokeVoidAsync(string identifier, params object?[]? args) => InvokeVoidAsync(identifier, CancellationToken.None, args);
///
- /// call JavaScript method
+ /// 调用 JavaScript 方法
+ /// Call JavaScript method
///
///
///
@@ -132,7 +144,8 @@ protected async Task InvokeVoidAsync(string identifier, TimeSpan timeout, params
}
///
- /// call JavaScript method
+ /// 调用 JavaScript 方法
+ /// Call JavaScript method
///
///
///
@@ -147,7 +160,8 @@ protected async Task InvokeVoidAsync(string identifier, CancellationToken cancel
}
///
- /// call JavaScript method
+ /// 调用 JavaScript 方法
+ /// Call JavaScript method
///
///
///
@@ -155,7 +169,8 @@ protected async Task InvokeVoidAsync(string identifier, CancellationToken cancel
protected Task InvokeAsync(string identifier, params object?[]? args) => InvokeAsync(identifier, CancellationToken.None, args);
///
- /// call JavaScript method
+ /// 调用 JavaScript 方法
+ /// Call JavaScript method
///
///
///
@@ -172,7 +187,8 @@ protected async Task InvokeVoidAsync(string identifier, CancellationToken cancel
}
///
- /// call JavaScript method
+ /// 调用 JavaScript 方法
+ /// Call JavaScript method
///
///
///
@@ -189,7 +205,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.
///
///
///
diff --git a/src/BootstrapBlazor/Components/BaseComponents/DynamicElement.cs b/src/BootstrapBlazor/Components/BaseComponents/DynamicElement.cs
index d2ade8f08e3..81b637fa9e4 100644
--- a/src/BootstrapBlazor/Components/BaseComponents/DynamicElement.cs
+++ b/src/BootstrapBlazor/Components/BaseComponents/DynamicElement.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License
// See the LICENSE file in the project root for more information.
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone
@@ -9,79 +9,103 @@
namespace BootstrapBlazor.Components;
///
-/// 动态元素组件
+/// 动态元素组件
+/// 动态元素component
///
public class DynamicElement : BootstrapComponentBase
{
///
- /// 获得/设置 TagName 属性 默认为 div
+ /// 获得/设置 TagName 属性 默认为 div
+ /// Gets or sets TagName property Default is为 div
+ /// 10.2.2
///
[Parameter]
[NotNull]
public string? TagName { get; set; } = "div";
///
- /// 获得/设置 是否触发 Click 事件 默认 true
+ /// 获得/设置 是否触发 Click 事件 默认 true
+ /// Gets or sets whether触发 Click 事件 Default is true
+ /// 10.2.2
///
[Parameter]
public bool TriggerClick { get; set; } = true;
///
- /// 获得/设置 是否阻止默认行为 默认 false
+ /// 获得/设置 是否阻止默认行为 默认 false
+ /// Gets or sets whether阻止Default is行为 Default is false
+ /// 10.2.2
///
[Parameter]
public bool PreventDefault { get; set; }
///
- /// 获得/设置 是否事件冒泡 默认为 false
+ /// 获得/设置 是否事件冒泡 默认为 false
+ /// Gets or sets whether事件冒泡 Default is为 false
+ /// 10.2.2
///
[Parameter]
public bool StopPropagation { get; set; }
///
- /// 获得/设置 Click 回调委托
+ /// 获得/设置 Click 回调委托
+ /// Gets or sets Click 回调delegate
+ /// 10.2.2
///
[Parameter]
public Func? OnClick { get; set; }
///
- /// 获得/设置 是否触发 DoubleClick 事件 默认 true
+ /// 获得/设置 是否触发 DoubleClick 事件 默认 true
+ /// Gets or sets whether触发 DoubleClick 事件 Default is true
+ /// 10.2.2
///
[Parameter]
public bool TriggerDoubleClick { get; set; } = true;
///
- /// 获得/设置 DoubleClick 回调委托
+ /// 获得/设置 DoubleClick 回调委托
+ /// Gets or sets DoubleClick 回调delegate
+ /// 10.2.2
///
[Parameter]
public Func? OnDoubleClick { get; set; }
///
- /// 获得/设置 OnContextMenu 回调委托
+ /// 获得/设置 OnContextMenu 回调委托
+ /// Gets or sets OnContextMenu 回调delegate
+ /// 10.2.2
///
[Parameter]
public Func? OnContextMenu { get; set; }
///
- /// 获得/设置 是否触发 OnContextMenu 事件 默认 false
+ /// 获得/设置 是否触发 OnContextMenu 事件 默认 false
+ /// Gets or sets whether触发 OnContextMenu 事件 Default is false
+ /// 10.2.2
///
[Parameter]
public bool TriggerContextMenu { get; set; }
///
- /// 获得/设置 内容组件
+ /// 获得/设置 内容组件
+ /// Gets or sets contentcomponent
+ /// 10.2.2
///
[Parameter]
public RenderFragment? ChildContent { get; set; }
///
- /// 获得/设置 是否生成指定 Tag 元素 默认 true 生成
+ /// 获得/设置 是否生成指定 Tag 元素 默认 true 生成
+ /// Gets or sets whether生成指定 Tag 元素 Default is true 生成
+ /// 10.2.2
///
[Parameter]
public bool GenerateElement { get; set; } = true;
///
- /// BuildRenderTree 方法
+ /// BuildRenderTree 方法
+ /// BuildRenderTree 方法
///
///
protected override void BuildRenderTree(RenderTreeBuilder builder)
diff --git a/src/BootstrapBlazor/Components/BaseComponents/IdComponentBase.cs b/src/BootstrapBlazor/Components/BaseComponents/IdComponentBase.cs
index 17f0c93fa16..81d861e440d 100644
--- a/src/BootstrapBlazor/Components/BaseComponents/IdComponentBase.cs
+++ b/src/BootstrapBlazor/Components/BaseComponents/IdComponentBase.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License
// See the LICENSE file in the project root for more information.
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone
@@ -6,26 +6,31 @@
namespace BootstrapBlazor.Components;
///
-/// 自动生成客户端 ID 组件基类
+/// 自动生成客户端 ID 组件基类
+/// Base class for auto-generating client ID component
///
public abstract class IdComponentBase : BootstrapComponentBase
{
///
- /// 获得/设置 组件 id 属性
+ /// 获得/设置 组件 id 属性
+ /// Gets or sets the component id
+ /// 10.2.2
///
[Parameter]
[NotNull]
public string? Id { get; set; }
///
- /// 获得 实例
+ /// 获得 实例
+ /// Gets the instance
///
[Inject]
[NotNull]
protected IComponentIdGenerator? ComponentIdGenerator { get; set; }
///
- /// 获得 弹窗客户端 ID
+ /// 获得 弹窗客户端 ID
+ /// Gets the popup client ID
///
protected virtual string? RetrieveId() => Id;
diff --git a/src/BootstrapBlazor/Components/BaseComponents/RenderTemplate.razor.cs b/src/BootstrapBlazor/Components/BaseComponents/RenderTemplate.razor.cs
index 0bd7342bd4f..e71f305fd0c 100644
--- a/src/BootstrapBlazor/Components/BaseComponents/RenderTemplate.razor.cs
+++ b/src/BootstrapBlazor/Components/BaseComponents/RenderTemplate.razor.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License
// See the LICENSE file in the project root for more information.
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone
@@ -6,18 +6,23 @@
namespace BootstrapBlazor.Components;
///
-/// RenderTemplate component
+/// RenderTemplate component
+/// RenderTemplate component
///
public partial class RenderTemplate
{
///
- /// Gets or sets the child component
+ /// 获得/设置 the child component
+ /// Gets or sets the child component
+ /// 10.2.2
///
[Parameter]
public RenderFragment? ChildContent { get; set; }
///
- /// Gets or sets the callback delegate for the first load
+ /// 获得/设置 the 回调 委托 for the first load
+ /// Gets or sets the callback delegate for the first load
+ /// 10.2.2
///
[Parameter]
public Func? OnRenderAsync { get; set; }
@@ -38,7 +43,8 @@ protected override async Task OnAfterRenderAsync(bool firstRender)
}
///
- /// Render method
+ /// Render method
+ /// Render method
///
public void Render()
{
diff --git a/src/BootstrapBlazor/Components/Block/Block.cs b/src/BootstrapBlazor/Components/Block/Block.cs
index 62fd248e52d..ac842addb53 100644
--- a/src/BootstrapBlazor/Components/Block/Block.cs
+++ b/src/BootstrapBlazor/Components/Block/Block.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License
// See the LICENSE file in the project root for more information.
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone
@@ -10,54 +10,71 @@
namespace BootstrapBlazor.Components;
///
-/// 条件输出自组件
+/// 条件输出自组件
+/// Conditional Output Component
///
public class Block : BootstrapComponentBase
{
///
- /// 获得/设置 Block 名字 此名字通过 第一个参数传递给使用者
+ /// 获得/设置 Block 名字 此名字通过 第一个参数传递给使用者
+ /// Gets or sets the Block name. This name is passed to the user via the first parameter of
+ /// 10.2.2
///
[Parameter]
public string? Name { get; set; }
///
- /// 获得/设置 Block 允许的角色集合
+ /// 获得/设置 Block 允许的角色集合
+ /// Gets or sets the allowed roles for the Block
+ /// 10.2.2
///
[Parameter]
public IEnumerable? Roles { get; set; }
///
- /// 获得/设置 Block 允许的用户集合
+ /// 获得/设置 Block 允许的用户集合
+ /// Gets or sets the allowed users for the Block
+ /// 10.2.2
///
[Parameter]
public IEnumerable? Users { get; set; }
///
- /// 获得/设置 是否显示此 Block 默认显示 返回 true 时显示
+ /// 获得/设置 是否显示此 Block 默认显示 返回 true 时显示
+ /// Gets or sets whether to show this Block. Default is true
+ /// 10.2.2
///
[Parameter]
public Func>? OnQueryCondition { get; set; }
///
- /// 获得/设置 是否显示此 Block 默认显示 null 未参与判断 设置 true 时显示
+ /// 获得/设置 是否显示此 Block 默认显示 null 未参与判断 设置 true 时显示
+ /// Gets or sets whether to show this Block. Default is null (not participating in judgment). Show if set to true
+ /// 10.2.2
///
[Parameter]
public bool? Condition { get; set; }
///
- /// 获得/设置 子组件内容
+ /// 获得/设置 子组件内容
+ /// Gets or sets the child content
+ /// 10.2.2
///
[Parameter]
public RenderFragment? ChildContent { get; set; }
///
- /// 获得/设置 符合条件显示的内容
+ /// 获得/设置 符合条件显示的内容
+ /// Gets or sets the authorized content
+ /// 10.2.2
///
[Parameter]
public RenderFragment? Authorized { get; set; }
///
- /// 获得/设置 不符合条件显示的内容
+ /// 获得/设置 不符合条件显示的内容
+ /// Gets or sets the not authorized content
+ /// 10.2.2
///
[Parameter]
public RenderFragment? NotAuthorized { get; set; }
@@ -68,7 +85,8 @@ public class Block : BootstrapComponentBase
private bool IsShow { get; set; }
///
- /// OnParametersSetAsync 方法
+ /// OnParametersSetAsync 方法
+ /// OnParametersSetAsync method
///
///
protected override async Task OnParametersSetAsync()
@@ -122,7 +140,8 @@ private async Task ProcessAuthorizeAsync()
}
///
- /// BuildRenderTree 方法
+ /// BuildRenderTree 方法
+ /// BuildRenderTree method
///
///
protected override void BuildRenderTree(RenderTreeBuilder builder)
diff --git a/src/BootstrapBlazor/Components/BootstrapBlazorRootOutlet/BootstrapBlazorRootContent.cs b/src/BootstrapBlazor/Components/BootstrapBlazorRootOutlet/BootstrapBlazorRootContent.cs
index 63a2b2a63fd..efe41898c00 100644
--- a/src/BootstrapBlazor/Components/BootstrapBlazorRootOutlet/BootstrapBlazorRootContent.cs
+++ b/src/BootstrapBlazor/Components/BootstrapBlazorRootOutlet/BootstrapBlazorRootContent.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License
// See the LICENSE file in the project root for more information.
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone
@@ -6,26 +6,31 @@
namespace BootstrapBlazor.Components;
///
-/// BootstrapBlazorRootContent Component
+/// BootstrapBlazorRootContent Component
+/// BootstrapBlazorRootContent Component
///
public class BootstrapBlazorRootContent : IComponent, IDisposable
{
private object? _registeredIdentifier;
///
- /// 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.
+ /// 10.2.2
///
[Parameter] public string? RootName { get; set; }
///
- /// 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.
+ /// 10.2.2
///
[Parameter] public object? RootId { get; set; }
///
- /// Gets or sets the content.
+ /// 获得/设置 the 内容.
+ /// Gets or sets the content.
+ /// 10.2.2
///
[Parameter]
public RenderFragment? ChildContent { get; set; }
diff --git a/src/BootstrapBlazor/Components/BootstrapBlazorRootOutlet/BootstrapBlazorRootOutlet.cs b/src/BootstrapBlazor/Components/BootstrapBlazorRootOutlet/BootstrapBlazorRootOutlet.cs
index 1eb29b987bb..ecba0b6b7e8 100644
--- a/src/BootstrapBlazor/Components/BootstrapBlazorRootOutlet/BootstrapBlazorRootOutlet.cs
+++ b/src/BootstrapBlazor/Components/BootstrapBlazorRootOutlet/BootstrapBlazorRootOutlet.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License
// See the LICENSE file in the project root for more information.
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone
@@ -8,7 +8,8 @@
namespace BootstrapBlazor.Components;
///
-/// BootstrapBlazorRootOutlet Component
+/// BootstrapBlazorRootOutlet 组件
+/// BootstrapBlazorRootOutlet Component
///
public class BootstrapBlazorRootOutlet : IComponent, IDisposable
{
@@ -17,7 +18,8 @@ public class BootstrapBlazorRootOutlet : IComponent, IDisposable
private RenderHandle _renderHandle;
///
- /// 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();
@@ -25,15 +27,17 @@ public class BootstrapBlazorRootOutlet : IComponent, IDisposable
private BootstrapBlazorRootRegisterService RootRegisterService { get; set; } = default!;
///
- /// Gets or sets the ID that determines which instances will provide
- /// content to this instance.
+ /// 获得/设置确定哪些 实例将为此实例提供内容的 ID
+ /// Gets or sets the ID that determines which instances will provide content to this instance.
+ /// 10.2.2
///
[Parameter]
public string? RootName { get; set; }
///
- /// Gets or sets the ID that determines which instances will provide
- /// content to this instance.
+ /// 获得/设置确定哪些 实例将为此实例提供内容的 ID
+ /// Gets or sets the ID that determines which instances will provide content to this instance.
+ /// 10.2.2
///
[Parameter]
public object? RootId { get; set; }
diff --git a/src/BootstrapBlazor/Components/Breadcrumb/Breadcrumb.razor.cs b/src/BootstrapBlazor/Components/Breadcrumb/Breadcrumb.razor.cs
index 84961d8ea67..b55c620dbdf 100644
--- a/src/BootstrapBlazor/Components/Breadcrumb/Breadcrumb.razor.cs
+++ b/src/BootstrapBlazor/Components/Breadcrumb/Breadcrumb.razor.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License
// See the LICENSE file in the project root for more information.
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone
@@ -6,12 +6,15 @@
namespace BootstrapBlazor.Components;
///
-/// Breadcrumb 组件
+/// Breadcrumb 组件
+/// Breadcrumb component
///
public sealed partial class Breadcrumb
{
///
- /// 获得/设置 数据集
+ /// 获得/设置 数据集
+ /// Gets or sets the data collection
+ /// 10.2.2
///
[Parameter]
[NotNull]
diff --git a/src/BootstrapBlazor/Components/Breadcrumb/BreadcrumbItem.cs b/src/BootstrapBlazor/Components/Breadcrumb/BreadcrumbItem.cs
index c9d275198e7..fa463c057c0 100644
--- a/src/BootstrapBlazor/Components/Breadcrumb/BreadcrumbItem.cs
+++ b/src/BootstrapBlazor/Components/Breadcrumb/BreadcrumbItem.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License
// See the LICENSE file in the project root for more information.
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone
@@ -6,7 +6,8 @@
namespace BootstrapBlazor.Components;
///
-/// BreadcrumbItem Class
+/// BreadcrumbItem 类
+/// BreadcrumbItem Class
///
///
///
@@ -14,17 +15,20 @@ namespace BootstrapBlazor.Components;
public class BreadcrumbItem(string text, string? url = null, string? cssClass = null)
{
///
- /// 获得/设置 显示文字
+ /// 获得/设置 显示文字
+ /// Gets or sets the display text
///
public string Text { get; } = text;
///
- /// 获得/设置 导航地址
+ /// 获得/设置 导航地址
+ /// Gets or sets the navigation URL
///
public string? Url { get; } = url;
///
- /// 获得/设置 样式名称
+ /// 获得/设置 样式名称
+ /// Gets or sets the style name
///
public string? CssClass { get; } = cssClass;
}
diff --git a/src/BootstrapBlazor/Components/Button/Button.razor.cs b/src/BootstrapBlazor/Components/Button/Button.razor.cs
index 04fbd78942b..56fe6019f7f 100644
--- a/src/BootstrapBlazor/Components/Button/Button.razor.cs
+++ b/src/BootstrapBlazor/Components/Button/Button.razor.cs
@@ -6,18 +6,22 @@
namespace BootstrapBlazor.Components;
///
-/// Button 按钮组件
+/// Button 按钮组件
+/// Button component
///
public partial class Button : ButtonBase
{
///
- /// 获得/设置 是否自动获取焦点 默认 false 不自动获取焦点
+ /// 获得/设置 是否自动获取焦点 默认 false 不自动获取焦点
+ /// Gets or sets whether to auto focus. Default is false
+ /// 10.2.2
///
[Parameter]
public bool IsAutoFocus { get; set; }
///
- /// 获得/设置 html button 实例
+ /// 获得/设置 html button 实例
+ /// Gets or sets the html button instance
///
protected ElementReference ButtonElement { get; set; }
@@ -38,7 +42,8 @@ protected override async Task OnAfterRenderAsync(bool firstRender)
}
///
- /// OnClickButton 方法
+ /// OnClickButton 方法
+ /// OnClickButton method
///
protected virtual async Task OnClickButton()
{
@@ -60,7 +65,8 @@ protected virtual async Task OnClickButton()
}
///
- /// 自动获得焦点方法
+ /// 自动获得焦点方法
+ /// Auto focus method
///
///
public ValueTask FocusAsync() => ButtonElement.FocusAsync();
diff --git a/src/BootstrapBlazor/Components/Button/ButtonBase.cs b/src/BootstrapBlazor/Components/Button/ButtonBase.cs
index 05205e4fd17..6197c01d63d 100644
--- a/src/BootstrapBlazor/Components/Button/ButtonBase.cs
+++ b/src/BootstrapBlazor/Components/Button/ButtonBase.cs
@@ -8,13 +8,15 @@
namespace BootstrapBlazor.Components;
///
-/// Button 按钮组件
+/// Button 按钮组件
+/// Button component
///
[BootstrapModuleAutoLoader("Button/Button.razor.js")]
public abstract class ButtonBase : TooltipWrapperBase
{
///
- /// 获得 按钮样式集合
+ /// 获得 按钮样式集合
+ /// Gets the button style collection
///
///
protected string? ClassName => CssBuilder.Default("btn")
@@ -28,146 +30,186 @@ public abstract class ButtonBase : TooltipWrapperBase
.Build();
///
- /// 获得 按钮 disabled 属性
+ /// 获得 按钮 disabled 属性
+ /// Gets the button disabled attribute
///
protected string? Disabled => IsDisabled ? "disabled" : null;
///
- /// 获得 按钮 aria-disabled 属性
+ /// 获得 按钮 aria-disabled 属性
+ /// Gets the button aria-disabled attribute
///
protected string DisabledString => IsDisabled ? "true" : "false";
///
- /// 获得 按钮 tab index 属性
+ /// 获得 按钮 tab index 属性
+ /// Gets the button tab index attribute
///
protected string? Tab => IsDisabled ? "-1" : null;
///
- /// 获得/设置 按钮风格枚举
+ /// 获得/设置 按钮风格枚举
+ /// Gets or sets the button style enum
+ /// 10.2.2
///
[Parameter]
public ButtonStyle ButtonStyle { get; set; }
///
- /// 获得/设置 按钮类型 Submit 为表单提交按钮 Reset 为表单重置按钮 默认为 Button
+ /// 获得/设置 按钮类型 Submit 为表单提交按钮 Reset 为表单重置按钮 默认为 Button
+ /// Gets or sets the button type. Submit for form submission, Reset for form reset. Default is Button
+ /// 10.2.2
///
[Parameter]
public ButtonType ButtonType { get; set; } = ButtonType.Button;
///
- /// 获得/设置 OnClick 事件
+ /// 获得/设置 OnClick 事件
+ /// Gets or sets the OnClick event
+ /// 10.2.2
///
[Parameter]
public EventCallback OnClick { get; set; }
///
- /// 获得/设置 OnClick 事件不刷新父组件
+ /// 获得/设置 OnClick 事件不刷新父组件
+ /// Gets or sets the OnClickWithoutRender event
+ /// 10.2.2
///
[Parameter]
public Func? OnClickWithoutRender { get; set; }
///
- /// 获得/设置 按钮颜色 默认
+ /// 获得/设置 按钮颜色 默认
+ /// Gets or sets the button color. Default is
+ /// 10.2.2
///
[Parameter]
public virtual Color Color { get; set; } = Color.Primary;
///
- /// 获得/设置 显示图标
+ /// 获得/设置 显示图标
+ /// Gets or sets the icon
+ /// 10.2.2
///
[Parameter]
public string? Icon { get; set; }
///
- /// 获得/设置 正在加载动画图标 默认为 fa-solid fa-spin fa-spinner
+ /// 获得/设置 正在加载动画图标 默认为 fa-solid fa-spin fa-spinner
+ /// Gets or sets the loading icon. Default is fa-solid fa-spin fa-spinner
+ /// 10.2.2
///
[Parameter]
[NotNull]
public string? LoadingIcon { get; set; }
///
- /// 获得/设置 是否为异步按钮,默认为 false 如果为 true 表示是异步按钮,点击按钮后禁用自身并且等待异步完成,过程中显示 loading 动画
+ /// 获得/设置 是否为异步按钮,默认为 false 如果为 true 表示是异步按钮,点击按钮后禁用自身并且等待异步完成,过程中显示 loading 动画
+ /// Gets or sets whether it is an async button. Default is false. If true, it disables itself after click and shows loading animation until async operation completes
+ /// 10.2.2
///
[Parameter]
public bool IsAsync { get; set; }
///
- /// 获得/设置 是否异步结束后是否保持禁用状态,默认为 false
+ /// 获得/设置 是否异步结束后是否保持禁用状态,默认为 false
+ /// Gets or sets whether to keep disabled state after async operation. Default is false
+ /// 10.2.2
///
- /// 开启时有效
+ /// 开启时有效Effective when is true
[Parameter]
public bool IsKeepDisabled { get; set; }
///
- /// 获得/设置 显示文字
+ /// 获得/设置 显示文字
+ /// Gets or sets the display text
+ /// 10.2.2
///
[Parameter]
public string? Text { get; set; }
///
- /// 获得/设置 Outline 样式 默认 false
+ /// 获得/设置 Outline 样式 默认 false
+ /// Gets or sets the Outline style. Default is false
+ /// 10.2.2
///
[Parameter]
public bool IsOutline { get; set; }
///
- /// 获得/设置 Size 大小
+ /// 获得/设置 Size 大小
+ /// Gets or sets the Size
+ /// 10.2.2
///
[Parameter]
public Size Size { get; set; }
///
- /// 获得/设置 Block 模式
+ /// 获得/设置 Block 模式
+ /// Gets or sets the Block mode
+ /// 10.2.2
///
[Parameter]
public bool IsBlock { get; set; }
///
- /// 获得/设置 是否禁用 默认为 false
+ /// 获得/设置 是否禁用 默认为 false
+ /// Gets or sets whether it is disabled. Default is false
+ /// 10.2.2
///
[Parameter]
public bool IsDisabled { get; set; }
///
- /// 获得/设置 点击事件是否向上传播 默认 false
+ /// 获得/设置 点击事件是否向上传播 默认 false
+ /// Gets or sets whether to propagate click event. Default is false
+ /// 10.2.2
///
[Parameter]
public bool StopPropagation { get; set; }
///
- /// 获得/设置 RenderFragment 实例
+ /// 获得/设置 RenderFragment 实例
+ /// Gets or sets the RenderFragment instance
+ /// 10.2.2
///
[Parameter]
[NotNull]
public RenderFragment? ChildContent { get; set; }
///
- /// 获得 ValidateForm 实例
+ /// 获得 ValidateForm 实例
+ /// Gets the ValidateForm instance
///
[CascadingParameter]
protected ValidateForm? ValidateForm { get; set; }
///
- /// 获得 IconTheme 实例
+ /// 获得 IconTheme 实例
+ /// Gets the IconTheme instance
///
[Inject]
[NotNull]
protected IIconTheme? IconTheme { get; set; }
///
- /// 获得/设置 是否当前正在异步执行操作
+ /// 获得/设置 是否当前正在异步执行操作
+ /// Gets or sets whether an async operation is currently executing
///
protected bool IsAsyncLoading { get; set; }
private string? _lastTooltipText;
///
- /// 获得 异步属性字符串
+ /// 获得 异步属性字符串
+ /// Gets the async attribute string
///
protected string? IsAsyncString => IsAsync ? "true" : null;
///
- /// OnInitialized 方法
+ /// OnInitialized 方法
+ /// OnInitialized method
///
protected override void OnInitialized()
{
@@ -181,7 +223,8 @@ protected override void OnInitialized()
}
///
- /// OnParametersSet 方法
+ /// OnParametersSet 方法
+ /// OnParametersSet method
///
protected override void OnParametersSet()
{
@@ -197,7 +240,8 @@ protected override void OnParametersSet()
private bool _prevDisable;
///
- /// OnAfterRenderAsync 方法
+ /// OnAfterRenderAsync 方法
+ /// OnAfterRenderAsync method
///
///
///
@@ -237,7 +281,8 @@ protected override async Task OnAfterRenderAsync(bool firstRender)
}
///
- /// 处理点击方法
+ /// 处理点击方法
+ /// Handle click method
///
///
protected virtual async Task HandlerClick()
@@ -257,7 +302,8 @@ protected virtual async Task HandlerClick()
}
///
- /// 设置按钮是否可用状态
+ /// 设置按钮是否可用状态
+ /// Set button disabled state
///
///
public void SetDisable(bool disable)
@@ -267,9 +313,10 @@ public void SetDisable(bool disable)
}
///
- /// 触发按钮异步操作方法
+ /// 触发按钮异步操作方法
+ /// Trigger button async operation
///
- /// true 时显示正在操作 false 时表示结束
+ /// true 时显示正在操作 false 时表示结束true to show loading, false to indicate completion
internal void TriggerAsync(bool loading)
{
IsAsyncLoading = loading;
@@ -277,7 +324,8 @@ internal void TriggerAsync(bool loading)
}
///
- /// 显示 Tooltip 方法
+ /// 显示 Tooltip 方法
+ /// Show Tooltip method
///
///
public virtual async Task ShowTooltip()
@@ -289,7 +337,8 @@ public virtual async Task ShowTooltip()
}
///
- /// 销毁 Tooltip 方法
+ /// 销毁 Tooltip 方法
+ /// Remove Tooltip method
///
///
public virtual async Task RemoveTooltip()
@@ -301,7 +350,8 @@ public virtual async Task RemoveTooltip()
}
///
- /// DisposeAsyncCore 方法
+ /// DisposeAsyncCore 方法
+ /// DisposeAsyncCore method
///
///
///
diff --git a/src/BootstrapBlazor/Components/Button/CountButton.cs b/src/BootstrapBlazor/Components/Button/CountButton.cs
index 7acfe34561d..1d45a0209b1 100644
--- a/src/BootstrapBlazor/Components/Button/CountButton.cs
+++ b/src/BootstrapBlazor/Components/Button/CountButton.cs
@@ -6,24 +6,31 @@
namespace BootstrapBlazor.Components;
///
-/// CountButton 组件
+/// CountButton 组件
+/// CountButton component
///
public class CountButton : Button
{
///
- /// 倒计时数量 默认 5 秒
+ /// 倒计时数量 默认 5 秒
+ /// Countdown seconds. Default is 5
+ /// 10.2.2
///
[Parameter]
public int Count { get; set; } = 5;
///
- /// 倒计时文本 默认 null 使用 参数
+ /// 倒计时文本 默认 null 使用 参数
+ /// Countdown text. Default is null (uses )
+ /// 10.2.2
///
[Parameter]
public string? CountText { get; set; }
///
- /// 倒计时格式化回调方法
+ /// 倒计时格式化回调方法
+ /// Countdown format callback method
+ /// 10.2.2
///
[Parameter]
public Func? CountTextCallback { get; set; }
@@ -47,7 +54,6 @@ protected override async Task OnClickButton()
///
///
///
- ///
protected override async Task HandlerClick()
{
if (OnClickWithoutRender != null)
diff --git a/src/BootstrapBlazor/Components/Button/DialButton.razor.cs b/src/BootstrapBlazor/Components/Button/DialButton.razor.cs
index f04376f66bc..83245fc2362 100644
--- a/src/BootstrapBlazor/Components/Button/DialButton.razor.cs
+++ b/src/BootstrapBlazor/Components/Button/DialButton.razor.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License
// See the LICENSE file in the project root for more information.
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone
@@ -6,103 +6,135 @@
namespace BootstrapBlazor.Components;
///
-/// 拨号按钮组件
+/// 拨号按钮组件
+/// DialButton component
///
public partial class DialButton
{
///
- /// 数据项模板
+ /// 数据项模板
+ /// Data item template
+ /// 10.2.2
///
[Parameter]
public RenderFragment? ChildContent { get; set; }
///
- /// 按钮模板
+ /// 按钮模板
+ /// Button template
+ /// 10.2.2
///
[Parameter]
public RenderFragment? ButtonTemplate { get; set; }
///
- /// 展开部分模板
+ /// 展开部分模板
+ /// Expanded section template
+ /// 10.2.2
///
[Parameter]
public RenderFragment? ItemTemplate { get; set; }
///
- /// 展开项集合
+ /// 展开项集合
+ /// Expanded item collection
+ /// 10.2.2
///
[Parameter]
[NotNull]
public IEnumerable? Items { get; set; }
///
- /// 获得/设置 按钮颜色
+ /// 获得/设置 按钮颜色
+ /// Gets or sets the button color
+ /// 10.2.2
///
[Parameter]
public Color Color { get; set; } = Color.Primary;
///
- /// 获得/设置 动画延时 默认 400 单位 ms 毫秒
+ /// 获得/设置 动画延时 默认 400 单位 ms 毫秒
+ /// Gets or sets the animation duration. Default is 400ms
+ /// 10.2.2
///
[Parameter]
public int Duration { get; set; } = 400;
///
- /// 获得/设置 位置
+ /// 获得/设置 位置
+ /// Gets or sets the placement
+ /// 10.2.2
///
[Parameter]
public Placement Placement { get; set; }
///
- /// 获得/设置 为 时扇形分布半径值 默认 75;
+ /// 获得/设置 为 时扇形分布半径值 默认 75;
+ /// Gets or sets the radial radius when is . Default is 75
+ /// 10.2.2
///
[Parameter]
public int Radius { get; set; } = 75;
///
- /// 获得/设置 弹窗便宜量 默认 8px
+ /// 获得/设置 弹窗偏移量 默认 8px
+ /// Gets or sets the offset. Default is 8px
+ /// 10.2.2
///
[Parameter]
public float Offset { get; set; } = 8;
///
- /// 获得/设置 Size 大小
+ /// 获得/设置 Size 大小
+ /// Gets or sets the Size
+ /// 10.2.2
///
[Parameter]
public Size Size { get; set; }
///
- /// 获得/设置 显示图标
+ /// 获得/设置 显示图标
+ /// Gets or sets the icon
+ /// 10.2.2
///
[Parameter]
public string? Icon { get; set; }
///
- /// 获得/设置 是否禁用 默认为 false
+ /// 获得/设置 是否禁用 默认为 false
+ /// Gets or sets whether it is disabled. Default is false
+ /// 10.2.2
///
[Parameter]
public bool IsDisabled { get; set; }
///
- /// 获得/设置 是否自动关闭弹窗 默认为 true
+ /// 获得/设置 是否自动关闭弹窗 默认为 true
+ /// Gets or sets whether to auto close. Default is true
+ /// 10.2.2
///
[Parameter]
public bool IsAutoClose { get; set; } = true;
///
- /// 获得/设置 OnClick 事件
+ /// 获得/设置 OnClick 事件
+ /// Gets or sets the OnClick event
+ /// 10.2.2
///
[Parameter]
public EventCallback OnClick { get; set; }
///
- /// 获得/设置 呈现方式 默认为 直线
+ /// 获得/设置 呈现方式 默认为 直线
+ /// Gets or sets the presentation mode. Default is Linear
+ /// 10.2.2
///
[Parameter]
public DialMode DialMode { get; set; }
///
- /// 获得 按钮样式集合
+ /// 获得 按钮样式集合
+ /// Gets the button style collection
///
///
private string? ClassString => CssBuilder.Default("dial-button")
@@ -111,7 +143,8 @@ public partial class DialButton
.Build();
///
- /// 获得 按钮样式集合
+ /// 获得 按钮样式集合
+ /// Gets the button style collection
///
///
private string? ButtonClassString => CssBuilder.Default("btn")
@@ -122,7 +155,8 @@ public partial class DialButton
private string? IsAutoCloseString => IsAutoClose ? "true" : null;
///
- /// 获得 按钮 disabled 属性
+ /// 获得 按钮 disabled 属性
+ /// Gets the button disabled attribute
///
private string? Disabled => IsDisabled ? "disabled" : null;
diff --git a/src/BootstrapBlazor/Components/Button/DialButtonItem.cs b/src/BootstrapBlazor/Components/Button/DialButtonItem.cs
index 9c6c31ed3ff..c2e8e98f0cd 100644
--- a/src/BootstrapBlazor/Components/Button/DialButtonItem.cs
+++ b/src/BootstrapBlazor/Components/Button/DialButtonItem.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License
// See the LICENSE file in the project root for more information.
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone
@@ -6,26 +6,33 @@
namespace BootstrapBlazor.Components;
///
-/// DialButtonItem 项组件
+/// DialButtonItem 项组件
+/// DialButtonItem component
///
public class DialButtonItem : ComponentBase, IDisposable
{
///
- /// 获得/设置 显示图标
+ /// 获得/设置 显示图标
+ /// Gets or sets the icon
+ /// 10.2.2
///
[Parameter]
[NotNull]
public string? Icon { get; set; }
///
- /// 获得/设置 选项值
+ /// 获得/设置 选项值
+ /// Gets or sets the value
+ /// 10.2.2
///
[Parameter]
[NotNull]
public string? Value { get; set; }
///
- /// 获得/设置 组件内容
+ /// 获得/设置 组件内容
+ /// Gets or sets the child content
+ /// 10.2.2
///
[Parameter]
public RenderFragment? ChildContent { get; set; }
@@ -42,7 +49,8 @@ protected override void OnInitialized()
}
///
- /// 资源销毁
+ /// 资源销毁
+ /// Dispose usage
///
///
protected virtual void Dispose(bool disposing)
@@ -54,7 +62,8 @@ protected virtual void Dispose(bool disposing)
}
///
- /// 资源销毁
+ /// 资源销毁
+ /// Dispose usage
///
///
public void Dispose()
diff --git a/src/BootstrapBlazor/Components/Button/ExportPdfButton.cs b/src/BootstrapBlazor/Components/Button/ExportPdfButton.cs
index 1eb493a5f40..8b1518b4a21 100644
--- a/src/BootstrapBlazor/Components/Button/ExportPdfButton.cs
+++ b/src/BootstrapBlazor/Components/Button/ExportPdfButton.cs
@@ -1,4 +1,4 @@
-// Licensed to the .NET Foundation under one or more agreements.
+// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the Apache 2.0 License
// See the LICENSE file in the project root for more information.
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone
@@ -6,60 +6,79 @@
namespace BootstrapBlazor.Components;
///
-/// 导出 Pdf 按钮
+/// 导出 Pdf 按钮
+/// Export PDF button
///
public class ExportPdfButton : Button
{
///
- /// 获得/设置 导出 Pdf 选择器 默认为 null
+ /// 获得/设置 导出 Pdf 选择器 默认为 null
+ /// Gets or sets the export PDF selector. Default is null
+ /// 10.2.2
///
[Parameter]
public string? Selector { get; set; }
///
- /// 获得/设置 导出 Pdf 元素 Id 默认为 null
+ /// 获得/设置 导出 Pdf 元素 Id 默认为 null
+ /// Gets or sets the export PDF element Id. Default is null
+ /// 10.2.2
///
[Parameter]
public string? ElementId { get; set; }
///
- /// 获得/设置 导出 Pdf 所需样式表文件集合 默认为 null
+ /// 获得/设置 导出 Pdf 所需样式表文件集合 默认为 null
+ /// Gets or sets the export PDF properties style tags. Default is null
+ /// 10.2.2
///
[Parameter]
public List? StyleTags { get; set; }
///
- /// 获得/设置 导出 Pdf 所需脚本文件集合 默认为 null
+ /// 获得/设置 导出 Pdf 所需脚本文件集合 默认为 null
+ /// Gets or sets the export PDF properties script tags. Default is null
+ /// 10.2.2
///
[Parameter]
public List? ScriptTags { get; set; }
///
- /// 获得/设置 导出 Pdf 文件名 默认为 null 未设置时使用 pdf-时间戳.pdf
+ /// 获得/设置 导出 Pdf 文件名 默认为 null 未设置时使用 pdf-时间戳.pdf
+ /// Gets or sets the export PDF file name. Default is null (uses pdf-timestamp.pdf)
+ /// 10.2.2
///
[Parameter]
public string? FileName { get; set; }
///
- /// 获得/设置 导出 Pdf 之前回调委托 默认为 null
+ /// 获得/设置 导出 Pdf 之前回调委托 默认为 null
+ /// Gets or sets the callback delegate before export PDF. Default is null
+ /// 10.2.2
///
[Parameter]
public Func? OnBeforeExport { get; set; }
///
- /// 获得/设置 下载 Pdf 之前回调委托 默认为 null
+ /// 获得/设置 下载 Pdf 之前回调委托 默认为 null
+ /// Gets or sets the callback delegate before download PDF. Default is null
+ /// 10.2.2
///
[Parameter]
public Func? OnBeforeDownload { get; set; }
///
- /// 获得/设置 下载 Pdf 之后回调委托 默认为 null
+ /// 获得/设置 下载 Pdf 之后回调委托 默认为 null
+ /// Gets or sets the callback delegate after download PDF. Default is null
+ /// 10.2.2
///
[Parameter]
public Func? OnAfterDownload { get; set; }
///
- /// 获得/设置 是否自动下载 Pdf 默认为 true
+ /// 获得/设置 是否自动下载 Pdf 默认为 true
+ /// Gets or sets whether to auto download PDF. Default is true
+ /// 10.2.2
///
[Parameter]
public bool AutoDownload { get; set; } = true;
@@ -102,7 +121,8 @@ protected override async Task HandlerClick()
var html = await _getHtmlModule.GetHtml(ElementId, Selector);
if (!string.IsNullOrEmpty(html))
{
- // 通过模板生成完整的 Html
+ // 通过模板生成完整的 Html
+ // Generate complete HTML via template
var htmlString = $"""
@@ -116,7 +136,8 @@ protected override async Task HandlerClick()