diff --git a/src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj b/src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj
index 3c511dbc51a..b83c7643c0c 100644
--- a/src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj
+++ b/src/BootstrapBlazor.Server/BootstrapBlazor.Server.csproj
@@ -31,7 +31,7 @@
-
+
@@ -65,7 +65,7 @@
-
+
diff --git a/src/BootstrapBlazor/Components/Tab/BootstrapBlazorAuthorizeView.cs b/src/BootstrapBlazor/Components/Tab/BootstrapBlazorAuthorizeView.cs
index 4d025fb3082..7d5b5c7c6ac 100644
--- a/src/BootstrapBlazor/Components/Tab/BootstrapBlazorAuthorizeView.cs
+++ b/src/BootstrapBlazor/Components/Tab/BootstrapBlazorAuthorizeView.cs
@@ -3,7 +3,6 @@
// See the LICENSE file in the project root for more information.
// Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone
-using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Components.Authorization;
using Microsoft.AspNetCore.Components.Rendering;
using Microsoft.AspNetCore.Components.Routing;
@@ -12,31 +11,31 @@
namespace BootstrapBlazor.Components;
///
-/// BootstrapBlazorAuthorizeView 组件
+/// BootstrapBlazorAuthorizeView component
///
public class BootstrapBlazorAuthorizeView : ComponentBase
{
///
- /// 获得/设置 路由关联上下文
+ /// Gets or sets the type associated with the route. default is null
///
[Parameter]
[NotNull]
public Type? Type { get; set; }
///
- /// 获得/设置 路由关联上下文
+ /// Gets or sets the parameters associated with the route. default is null
///
[Parameter]
public IReadOnlyDictionary? Parameters { get; set; }
///
- /// 获得/设置 NotAuthorized 模板
+ /// Gets or sets the template to display when the user is not authorized. default is null
///
[Parameter]
public RenderFragment? NotAuthorized { get; set; }
///
- /// The resource to which access is being controlled.
+ /// Gets or sets the resource to which access is being controlled. default is null
///
[Parameter]
public object? Resource { get; set; }
@@ -56,7 +55,7 @@ public class BootstrapBlazorAuthorizeView : ComponentBase
///
///
///
- ///
+ /// A task that represents the asynchronous operation.
protected override async Task OnInitializedAsync()
{
Authorized = Type == null || await Type.IsAuthorizedAsync(ServiceProvider, AuthenticationState, Resource);
@@ -65,10 +64,9 @@ protected override async Task OnInitializedAsync()
///
///
///
- ///
protected override void BuildRenderTree(RenderTreeBuilder builder)
{
- // 判断是否开启权限
+ // Check if authorization is enabled
if (Authorized && Type != null)
{
var index = 0;
diff --git a/src/BootstrapBlazor/Components/Tab/TabItem.cs b/src/BootstrapBlazor/Components/Tab/TabItem.cs
index a99fad578e3..da598f638ae 100644
--- a/src/BootstrapBlazor/Components/Tab/TabItem.cs
+++ b/src/BootstrapBlazor/Components/Tab/TabItem.cs
@@ -6,79 +6,79 @@
namespace BootstrapBlazor.Components;
///
-/// TabItem 组件基类
+/// TabItem component
///
public class TabItem : ComponentBase
{
///
- /// 获得/设置 文本文字
+ /// Gets or sets the text. Default is null
///
[Parameter]
public string? Text { get; set; }
///
- /// 获得/设置 TabItem Header 模板
+ /// Gets or sets the TabItem Header template. Default is null
///
[Parameter]
public RenderFragment? HeaderTemplate { get; set; }
///
- /// 获得/设置 请求地址
+ /// Gets or sets the request URL. Default is null
///
[Parameter]
[NotNull]
public string? Url { get; set; }
///
- /// 获得/设置 当前状态是否激活
+ /// Gets or sets whether the current state is active. Default is false
///
[Parameter]
public bool IsActive { get; set; }
///
- /// 获得/设置 当前状态是否 禁用 默认 false
+ /// Gets or sets whether the current state is disabled, default is false
///
[Parameter]
public bool IsDisabled { get; set; }
///
- /// 获得/设置 当前 TabItem 是否可关闭 默认为 true 可关闭
+ /// Gets or sets whether the current TabItem is closable, default is true
///
[Parameter]
public bool Closable { get; set; } = true;
///
- /// 获得/设置 当前 TabItem 是否始终加载 此参数作用于设置 默认 false
+ /// Gets or sets whether the current TabItem is always loaded, this parameter is used to set , default is false
///
[Parameter]
public bool AlwaysLoad { get; set; }
///
- /// 获得/设置 自定义样式名
+ /// Gets or sets the custom CSS class. Default is null
///
[Parameter]
public string? CssClass { get; set; }
///
- /// 获得/设置 图标字符串
+ /// Gets or sets the icon string. Default is null
///
[Parameter]
public string? Icon { get; set; }
///
- /// 获得/设置 是否显示全屏按钮 默认 true
+ /// Gets or sets whether to show the full screen button, default is true
///
[Parameter]
public bool ShowFullScreen { get; set; } = true;
///
- /// 获得/设置 组件内容
+ /// Gets or sets the component content. Default is null
///
[Parameter]
public RenderFragment? ChildContent { get; set; }
///
- /// 获得/设置 所属 Tab 实例
+ /// Gets or sets the associated Tab instance
///
[CascadingParameter]
protected internal Tab? TabSet { get; set; }
@@ -86,7 +86,7 @@ public class TabItem : ComponentBase
private string? LastText { get; set; }
///
- /// OnInitialized 方法
+ ///
///
protected override void OnInitialized()
{
@@ -110,13 +110,13 @@ protected override void OnParametersSet()
}
///
- /// 设置是否被选中方法
+ /// Method to set whether it is active
///
///
public void SetActive(bool active) => IsActive = active;
///
- /// 设置是否被禁用
+ /// Method to set whether it is disabled
///
///
public void SetDisabled(bool disabled)
@@ -125,13 +125,13 @@ public void SetDisabled(bool disabled)
}
///
- /// 设置是否被禁用
+ /// Method to set whether it is disabled without rendering
///
///
internal void SetDisabledWithoutRender(bool disabled) => IsDisabled = disabled;
///
- /// 重新设置标签文字等参数
+ /// Method to reset the tab text and other parameters
///
///
///
@@ -155,7 +155,7 @@ public void SetHeader(string text, string? icon = null, bool? closable = null)
}
///
- /// 通过指定参数集合获取 TabItem 实例
+ /// Gets a TabItem instance by specifying a set of parameters
///
///
///
diff --git a/src/BootstrapBlazor/Components/Tab/TabLink.razor.cs b/src/BootstrapBlazor/Components/Tab/TabLink.razor.cs
index fae78b219d0..92b7c76dc74 100644
--- a/src/BootstrapBlazor/Components/Tab/TabLink.razor.cs
+++ b/src/BootstrapBlazor/Components/Tab/TabLink.razor.cs
@@ -6,36 +6,36 @@
namespace BootstrapBlazor.Components;
///
-///
+/// Represents a link within a tab component.
///
public sealed partial class TabLink
{
///
- /// 获得/设置 文本文字
+ /// Gets or sets the text of the link. Default is null
///
[Parameter]
public string? Text { get; set; }
///
- /// 获得/设置 请求地址
+ /// Gets or sets the URL of the link. Default is null
///
[Parameter]
public string? Url { get; set; }
///
- /// 获得/设置 图标字符串
+ /// Gets or sets the icon of the link. Default is null
///
[Parameter]
public string? Icon { get; set; }
///
- /// 获得/设置 当前 TabItem 是否可关闭 默认为 true 可关闭
+ /// Gets or sets a value indicating whether the tab item is closable. Default is true.
///
[Parameter]
public bool Closable { get; set; } = true;
///
- /// 点击组件时回调此委托方法 默认为空
+ /// Gets or sets the callback method when the link is clicked. Default is null.
///
[Parameter]
public Func? OnClick { get; set; }
@@ -45,7 +45,7 @@ public sealed partial class TabLink
private TabItemTextOptions? TabItemOptions { get; set; }
///
- /// 获得/设置 组件内容
+ /// Gets or sets the content of the component. Default is null
///
[Parameter]
public RenderFragment? ChildContent { get; set; }