diff --git a/src/BootstrapBlazor.Server/Directory.Build.targets b/src/BootstrapBlazor.Server/Directory.Build.targets index 4beb8250df6..30bf98167d2 100644 --- a/src/BootstrapBlazor.Server/Directory.Build.targets +++ b/src/BootstrapBlazor.Server/Directory.Build.targets @@ -14,4 +14,12 @@ + + + + + + + + diff --git a/src/BootstrapBlazor.Server/Locales/en-US.json b/src/BootstrapBlazor.Server/Locales/en-US.json index 8557e9c85c6..88f97e9b06f 100644 --- a/src/BootstrapBlazor.Server/Locales/en-US.json +++ b/src/BootstrapBlazor.Server/Locales/en-US.json @@ -2385,7 +2385,7 @@ "Att4": "Date format string The default is yyyyy-MM-dd", "Att6": "Whether to disable False by default", "Att8": "The value of the component is a two-way binding with ValueChanged", - "Att9": "Get/Set Component display mode The default is the month-to-day display mode", + "Att9": "Gets or sets Component display mode The default is the month-to-day display mode", "AttrAutoClose": "Whether auto close the popup window", "AttrIsEditable": "Is manual date entry allowed", "Event1": "Confirm that the button calls back the delegate", @@ -3606,9 +3606,9 @@ "CollapsibleHeaderTemplateIntro": "Setting HeaderTemplate for custom CardHeader", "ShadowTitle": "Shadow effect", "ShadowIntro": "Enable shadow effect by set IsShadow to true", - "BodyTemplate": "Get/set up BodyTemplate", - "FooterTemplate": "Get/set up FooterTemplate", - "HeaderTemplate": "Get/set up HeaderTemplate", + "BodyTemplate": "Gets or sets up BodyTemplate", + "FooterTemplate": "Gets or sets up FooterTemplate", + "HeaderTemplate": "Gets or sets up HeaderTemplate", "Class": "Style", "Color": "Set the color of the card border", "IsCenter": "Make align center by set IsCenter to true", diff --git a/src/BootstrapBlazor/Components/Circle/Circle.razor.cs b/src/BootstrapBlazor/Components/Circle/Circle.razor.cs index 564fffd0cf5..e330215d904 100644 --- a/src/BootstrapBlazor/Components/Circle/Circle.razor.cs +++ b/src/BootstrapBlazor/Components/Circle/Circle.razor.cs @@ -13,7 +13,7 @@ public sealed partial class Circle { /// /// 获得/设置 当前值 - /// Get/Set current value + /// Gets or sets current value /// 10.2.2 /// [Parameter] @@ -21,13 +21,13 @@ public sealed partial class Circle /// /// 获得/设置 当前进度值 - /// Get/Set current progress value + /// Gets or sets current progress value /// private string? ValueString => $"{Math.Round(((1 - Value * 1.0 / 100) * CircleLength), 2)}"; /// /// 获得/设置 Title 字符串 - /// Get/Set Title string + /// Gets or sets Title string /// private string ValueTitleString => $"{Value}%"; } diff --git a/src/BootstrapBlazor/Components/Circle/CircleBase.cs b/src/BootstrapBlazor/Components/Circle/CircleBase.cs index 20554b2c09a..ba15ee815d3 100644 --- a/src/BootstrapBlazor/Components/Circle/CircleBase.cs +++ b/src/BootstrapBlazor/Components/Circle/CircleBase.cs @@ -39,19 +39,19 @@ public abstract class CircleBase : BootstrapModuleComponentBase /// /// 获得/设置 Dash 字符串 - /// Get/Set Dash string + /// Gets or sets Dash string /// protected string DashString => $"{CircleLength}, {CircleLength}"; /// /// 获得/设置 圆形进度半径 - /// Get/Set circular progress radius + /// Gets or sets circular progress radius /// protected string CircleDiameter => $"{Width / 2}"; /// /// 获得/设置 半径 - /// Get/Set radius + /// Gets or sets radius /// protected string CircleR => $"{Width / 2 - StrokeWidth}"; @@ -63,7 +63,7 @@ public abstract class CircleBase : BootstrapModuleComponentBase /// /// 获得/设置 文件预览框宽度 - /// Get/Set file preview box width + /// Gets or sets file preview box width /// 10.2.2 /// [Parameter] @@ -71,7 +71,7 @@ public abstract class CircleBase : BootstrapModuleComponentBase /// /// 获得/设置 进度条宽度 默认为 2 - /// Get/Set progress bar width, default is 2 + /// Gets or sets progress bar width, default is 2 /// 10.2.2 /// [Parameter] @@ -79,7 +79,7 @@ public abstract class CircleBase : BootstrapModuleComponentBase /// /// 获得/设置 组件进度条颜色 - /// Get/Set component progress bar color + /// Gets or sets component progress bar color /// 10.2.2 /// [Parameter] @@ -87,7 +87,7 @@ public abstract class CircleBase : BootstrapModuleComponentBase /// /// 获得/设置 是否显示进度百分比 默认显示 - /// Get/Set whether to show progress percentage, default is true + /// Gets or sets whether to show progress percentage, default is true /// 10.2.2 /// [Parameter] @@ -95,7 +95,7 @@ public abstract class CircleBase : BootstrapModuleComponentBase /// /// 获得/设置 子组件 - /// Get/Set child content + /// Gets or sets child content /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/ClockPicker/ClockPicker.razor.cs b/src/BootstrapBlazor/Components/ClockPicker/ClockPicker.razor.cs index 48ad5f7f899..45ea806db7b 100644 --- a/src/BootstrapBlazor/Components/ClockPicker/ClockPicker.razor.cs +++ b/src/BootstrapBlazor/Components/ClockPicker/ClockPicker.razor.cs @@ -15,7 +15,7 @@ public partial class ClockPicker { /// /// 获得/设置 样式 - /// Get/Set style + /// Gets or sets style /// private string? ClassString => CssBuilder.Default("bb-clock-picker") .AddClassFromAttributes(AdditionalAttributes) @@ -23,7 +23,7 @@ public partial class ClockPicker /// /// 获得/设置 是否显示表盘刻度 默认 false - /// Get/Set whether to show clock scale, default is false + /// Gets or sets whether to show clock scale, default is false /// 10.2.2 /// [Parameter] @@ -31,7 +31,7 @@ public partial class ClockPicker /// /// 获得/设置 是否显示秒 默认 true - /// Get/Set whether to show second, default is true + /// Gets or sets whether to show second, default is true /// 10.2.2 /// [Parameter] @@ -39,7 +39,7 @@ public partial class ClockPicker /// /// 获得/设置 是否显示分钟 默认 true - /// Get/Set whether to show minute, default is true + /// Gets or sets whether to show minute, default is true /// 10.2.2 /// [Parameter] @@ -47,7 +47,7 @@ public partial class ClockPicker /// /// 获得/设置 是否自动切换 小时、分钟、秒 自动切换 默认 true - /// Get/Set whether to automatically switch hour/minute/second, default is true + /// Gets or sets whether to automatically switch hour/minute/second, default is true /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Collapse/Collapse.razor.cs b/src/BootstrapBlazor/Components/Collapse/Collapse.razor.cs index cb30d2ef79a..b85efcad18d 100644 --- a/src/BootstrapBlazor/Components/Collapse/Collapse.razor.cs +++ b/src/BootstrapBlazor/Components/Collapse/Collapse.razor.cs @@ -46,13 +46,13 @@ public partial class Collapse /// /// 获得/设置 CollapseItem 集合 - /// Get/Set CollapseItem collection + /// Gets or sets CollapseItem collection /// protected List Items { get; } = new(10); /// /// 获得/设置 是否为手风琴效果 默认为 false - /// Get/Set whether to use accordion effect, default is false + /// Gets or sets whether to use accordion effect, default is false /// 10.2.2 /// [Parameter] @@ -60,7 +60,7 @@ public partial class Collapse /// /// 获得/设置 CollapseItems 模板 - /// Get/Set CollapseItems template + /// Gets or sets CollapseItems template /// 10.2.2 /// [Parameter] @@ -68,7 +68,7 @@ public partial class Collapse /// /// 获得/设置 CollapseItem 展开收缩时回调方法 - /// Get/Set callback when CollapseItem expands or collapses + /// Gets or sets callback when CollapseItem expands or collapses /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Collapse/CollapseItem.cs b/src/BootstrapBlazor/Components/Collapse/CollapseItem.cs index 89df6e0b35f..9f12534eab8 100644 --- a/src/BootstrapBlazor/Components/Collapse/CollapseItem.cs +++ b/src/BootstrapBlazor/Components/Collapse/CollapseItem.cs @@ -13,7 +13,7 @@ public class CollapseItem : BootstrapComponentBase, IDisposable { /// /// 获得/设置 文本文字 - /// Get/Set text + /// Gets or sets text /// 10.2.2 /// [Parameter] @@ -21,7 +21,7 @@ public class CollapseItem : BootstrapComponentBase, IDisposable /// /// 获得/设置 当前状态是否收缩 默认 true - /// Get/Set whether current status is collapsed, default is true + /// Gets or sets whether current status is collapsed, default is true /// 10.2.2 /// [Parameter] @@ -29,7 +29,7 @@ public class CollapseItem : BootstrapComponentBase, IDisposable /// /// 获得/设置 图标字符串 默认为 null - /// Get/Set icon string, default is null + /// Gets or sets icon string, default is null /// 10.2.2 /// [Parameter] @@ -37,7 +37,7 @@ public class CollapseItem : BootstrapComponentBase, IDisposable /// /// 获得/设置 标题颜色 默认无颜色 Color.None - /// Get/Set title color, default is Color.None + /// Gets or sets title color, default is Color.None /// 10.2.2 /// [Parameter] @@ -45,7 +45,7 @@ public class CollapseItem : BootstrapComponentBase, IDisposable /// /// 获得/设置 CSS 样式名称 默认 null - /// Get/Set CSS style name, default is null + /// Gets or sets CSS style name, default is null /// 10.2.2 /// [Parameter] @@ -53,7 +53,7 @@ public class CollapseItem : BootstrapComponentBase, IDisposable /// /// 获得/设置 组件内容 - /// Get/Set component content + /// Gets or sets component content /// 10.2.2 /// [Parameter] @@ -61,7 +61,7 @@ public class CollapseItem : BootstrapComponentBase, IDisposable /// /// 获得/设置 Header CSS 样式名称 默认 null - /// Get/Set Header CSS style name, default is null + /// Gets or sets Header CSS style name, default is null /// 10.2.2 /// [Parameter] @@ -69,7 +69,7 @@ public class CollapseItem : BootstrapComponentBase, IDisposable /// /// 获得/设置 组件 Header 模板 - /// Get/Set component Header template + /// Gets or sets component Header template /// 10.2.2 /// [Parameter] @@ -77,7 +77,7 @@ public class CollapseItem : BootstrapComponentBase, IDisposable /// /// 获得/设置 所属 Collapse 实例 - /// Get/Set the Collapse instance it belongs to + /// Gets or sets the Collapse instance it belongs to /// [CascadingParameter] protected Collapse? Collapse { get; set; } diff --git a/src/BootstrapBlazor/Components/ColorPicker/ColorPicker.razor.cs b/src/BootstrapBlazor/Components/ColorPicker/ColorPicker.razor.cs index d409b28f8c1..840463e4ae0 100644 --- a/src/BootstrapBlazor/Components/ColorPicker/ColorPicker.razor.cs +++ b/src/BootstrapBlazor/Components/ColorPicker/ColorPicker.razor.cs @@ -23,7 +23,7 @@ public partial class ColorPicker /// /// 获得/设置 显示模板 - /// Get/Set display template + /// Gets or sets display template /// 10.2.2 /// [Parameter] @@ -31,7 +31,7 @@ public partial class ColorPicker /// /// 获得/设置 显示颜色值格式化回调方法 - /// Get/Set display color value formatting callback method + /// Gets or sets display color value formatting callback method /// 10.2.2 /// [Parameter] @@ -39,7 +39,7 @@ public partial class ColorPicker /// /// 获得/设置 是否支持透明度 默认 false 不支持 - /// Get/Set whether to support opacity, default is false(not supported) + /// Gets or sets whether to support opacity, default is false(not supported) /// 10.2.2 /// [Parameter] @@ -47,7 +47,7 @@ public partial class ColorPicker /// /// 获得/设置 预设候选颜色 开启时生效 默认 null - /// Get/Set preset candidate colors, effective when is enabled, default is null + /// Gets or sets preset candidate colors, effective when is enabled, default is null /// 10.2.2 /// /// diff --git a/src/BootstrapBlazor/Components/ConnectionHub/ConnectionItem.cs b/src/BootstrapBlazor/Components/ConnectionHub/ConnectionItem.cs index 2155f3bc0d5..8b87513bd6d 100644 --- a/src/BootstrapBlazor/Components/ConnectionHub/ConnectionItem.cs +++ b/src/BootstrapBlazor/Components/ConnectionHub/ConnectionItem.cs @@ -13,26 +13,26 @@ public class ConnectionItem { /// /// 获得/设置 连接 Id - /// Get/Set Connection Id + /// Gets or sets Connection Id /// [NotNull] public string? Id { get; internal set; } /// /// 获得/设置 连接 Ip 地址 - /// Get/Set Connection IP address + /// Gets or sets Connection IP address /// public ClientInfo? ClientInfo { get; set; } /// /// 获得/设置 开始连接时间 - /// Get/Set Connection start time + /// Gets or sets Connection start time /// public DateTimeOffset ConnectionTime { get; internal set; } /// /// 获得/设置 上次心跳时间 - /// Get/Set Last beat time + /// Gets or sets Last beat time /// public DateTimeOffset LastBeatTime { get; internal set; } } diff --git a/src/BootstrapBlazor/Components/Console/Console.razor.cs b/src/BootstrapBlazor/Components/Console/Console.razor.cs index cf9e47b3d90..5aef30b9ff9 100644 --- a/src/BootstrapBlazor/Components/Console/Console.razor.cs +++ b/src/BootstrapBlazor/Components/Console/Console.razor.cs @@ -49,7 +49,7 @@ public partial class Console /// /// 获得/设置 组件绑定数据源 - /// Get/Set component data source + /// Gets or sets component data source /// 10.2.2 /// /// @@ -62,7 +62,7 @@ public partial class Console /// /// 获得/设置 Header 显示文字 默认值为 系统监控 - /// Get/Set Header display text, default is System Monitor + /// Gets or sets Header display text, default is System Monitor /// 10.2.2 /// [Parameter] @@ -70,7 +70,7 @@ public partial class Console /// /// 获得/设置 指示灯 Title 显示文字 - /// Get/Set indicator Title display text + /// Gets or sets indicator Title display text /// 10.2.2 /// [Parameter] @@ -78,7 +78,7 @@ public partial class Console /// /// 获得/设置 指示灯 是否闪烁 默认 true 闪烁 - /// Get/Set whether indicator flashes, default is true(flashing) + /// Gets or sets whether indicator flashes, default is true(flashing) /// 10.2.2 /// [Parameter] @@ -86,7 +86,7 @@ public partial class Console /// /// 获得/设置 指示灯颜色 - /// Get/Set indicator color + /// Gets or sets indicator color /// 10.2.2 /// [Parameter] @@ -94,7 +94,7 @@ public partial class Console /// /// 获得/设置 是否显示指示灯 默认 true 显示 - /// Get/Set whether to show indicator, default is true + /// Gets or sets whether to show indicator, default is true /// 10.2.2 /// [Parameter] @@ -102,7 +102,7 @@ public partial class Console /// /// 获得/设置 自动滚屏显示文字 - /// Get/Set auto scroll display text + /// Gets or sets auto scroll display text /// 10.2.2 /// [Parameter] @@ -110,7 +110,7 @@ public partial class Console /// /// 获得/设置 是否显示自动滚屏选项 默认 false - /// Get/Set whether to show auto scroll option, default is false + /// Gets or sets whether to show auto scroll option, default is false /// 10.2.2 /// [Parameter] @@ -118,7 +118,7 @@ public partial class Console /// /// 获得/设置 是否自动滚屏 默认 true - /// Get/Set whether to auto scroll, default is true + /// Gets or sets whether to auto scroll, default is true /// 10.2.2 /// [Parameter] @@ -126,7 +126,7 @@ public partial class Console /// /// 获得/设置 按钮 显示文字 默认值为 清屏 - /// Get/Set button display text, default is Clear + /// Gets or sets button display text, default is Clear /// 10.2.2 /// [Parameter] @@ -134,7 +134,7 @@ public partial class Console /// /// 获得/设置 按钮 显示图标 默认值为 fa-solid fa-xmark - /// Get/Set button display icon, default is fa-solid fa-xmark + /// Gets or sets button display icon, default is fa-solid fa-xmark /// 10.2.2 /// [Parameter] @@ -143,7 +143,7 @@ public partial class Console /// /// 获得/设置 清除按钮颜色 默认值为 Color.Secondary - /// Get/Set clear button color, default is Color.Secondary + /// Gets or sets clear button color, default is Color.Secondary /// 10.2.2 /// [Parameter] @@ -151,7 +151,7 @@ public partial class Console /// /// 获得/设置 清空委托方法 - /// Get/Set clear delegate method + /// Gets or sets clear delegate method /// 10.2.2 /// [Parameter] @@ -159,7 +159,7 @@ public partial class Console /// /// 获得/设置 组件高度 默认为 126px; - /// Get/Set component height, default is 126px + /// Gets or sets component height, default is 126px /// 10.2.2 /// [Parameter] @@ -167,7 +167,7 @@ public partial class Console /// /// 获得/设置 Footer 模板 - /// Get/Set Footer template + /// Gets or sets Footer template /// 10.2.2 /// [Parameter] @@ -175,7 +175,7 @@ public partial class Console /// /// 获得/设置 Header 模板 - /// Get/Set Header template + /// Gets or sets Header template /// 10.2.2 /// [Parameter] @@ -183,7 +183,7 @@ public partial class Console /// /// 获得/设置 Item 模板 - /// Get/Set Item template + /// Gets or sets Item template /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Console/ConsoleLogger.razor.cs b/src/BootstrapBlazor/Components/Console/ConsoleLogger.razor.cs index 57b430ade0e..6408d6523f1 100644 --- a/src/BootstrapBlazor/Components/Console/ConsoleLogger.razor.cs +++ b/src/BootstrapBlazor/Components/Console/ConsoleLogger.razor.cs @@ -15,7 +15,7 @@ public partial class ConsoleLogger { /// /// 获得/设置 最大行数 默认 3 行 - /// Get/Set max rows, default is 3 + /// Gets or sets max rows, default is 3 /// 10.2.2 /// [Parameter] @@ -23,7 +23,7 @@ public partial class ConsoleLogger /// /// 获得/设置 是否为 Html 代码 默认 false - /// Get/Set whether it is Html code, default is false + /// Gets or sets whether it is Html code, default is false /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Console/ConsoleMessageCollection.cs b/src/BootstrapBlazor/Components/Console/ConsoleMessageCollection.cs index 4f4deb7c8dd..c114ac2724c 100644 --- a/src/BootstrapBlazor/Components/Console/ConsoleMessageCollection.cs +++ b/src/BootstrapBlazor/Components/Console/ConsoleMessageCollection.cs @@ -16,7 +16,7 @@ public class ConsoleMessageCollection(int maxCount = 2000) : IEnumerable /// 获得/设置 最大记录数 默认 2000 - /// Get/Set max record count, default is 2000 + /// Gets or sets max record count, default is 2000 /// public int MaxCount { get; set; } = maxCount; diff --git a/src/BootstrapBlazor/Components/Console/ConsoleMessageItem.cs b/src/BootstrapBlazor/Components/Console/ConsoleMessageItem.cs index ec3ab2a3074..0d967e72d41 100644 --- a/src/BootstrapBlazor/Components/Console/ConsoleMessageItem.cs +++ b/src/BootstrapBlazor/Components/Console/ConsoleMessageItem.cs @@ -13,26 +13,26 @@ public class ConsoleMessageItem { /// /// 获得/设置 控制台输出消息 - /// Get/Set console output message + /// Gets or sets console output message /// [NotNull] public string? Message { get; set; } /// /// 获得/设置 控制台消息颜色 默认为 White 白色 - /// Get/Set console message color, default is White + /// Gets or sets console message color, default is White /// public Color Color { get; set; } /// /// 获得/设置 自定义样式名称 默认 null - /// Get/Set custom style name, default is null + /// Gets or sets custom style name, default is null /// public string? CssClass { get; set; } /// /// 获得/设置 是否为 Html 原生字符串 默认 false - /// Get/Set whether it is Html raw string, default is false + /// Gets or sets whether it is Html raw string, default is false /// public bool IsHtml { get; set; } } diff --git a/src/BootstrapBlazor/Components/ContextMenu/ContextMenuDivider.cs b/src/BootstrapBlazor/Components/ContextMenu/ContextMenuDivider.cs index d3619c5d433..51bc0479556 100644 --- a/src/BootstrapBlazor/Components/ContextMenu/ContextMenuDivider.cs +++ b/src/BootstrapBlazor/Components/ContextMenu/ContextMenuDivider.cs @@ -38,10 +38,7 @@ protected override void BuildRenderTree(RenderTreeBuilder builder) { } /// 释放资源方法 /// Method to release resources. /// - /// - /// 是否释放托管资源 - /// Flags whether to release managed resources - /// + /// protected virtual void Dispose(bool disposing) { if (!disposedValue) diff --git a/src/BootstrapBlazor/Components/CountUp/CountUp.razor.cs b/src/BootstrapBlazor/Components/CountUp/CountUp.razor.cs index 18381d859b3..d3ad2a5deae 100644 --- a/src/BootstrapBlazor/Components/CountUp/CountUp.razor.cs +++ b/src/BootstrapBlazor/Components/CountUp/CountUp.razor.cs @@ -13,7 +13,7 @@ public partial class CountUp { /// /// 获得/设置 Value 值 - /// Get/Set Value + /// Gets or sets Value /// 10.2.2 /// [Parameter] @@ -22,7 +22,7 @@ public partial class CountUp /// /// 获得/设置 计数配置项 默认 null - /// Get/Set count configuration item, default is null + /// Gets or sets count configuration item, default is null /// 10.2.2 /// [Parameter] @@ -30,7 +30,7 @@ public partial class CountUp /// /// 获得/设置 计数结束回调方法 默认 null - /// Get/Set callback method when counting ends, default is null + /// Gets or sets callback method when counting ends, default is null /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/DateTimePicker/DatePickerBody.razor.cs b/src/BootstrapBlazor/Components/DateTimePicker/DatePickerBody.razor.cs index 1286912a84e..d084f70f8df 100644 --- a/src/BootstrapBlazor/Components/DateTimePicker/DatePickerBody.razor.cs +++ b/src/BootstrapBlazor/Components/DateTimePicker/DatePickerBody.razor.cs @@ -15,7 +15,7 @@ public partial class DatePickerBody { /// /// 获得/设置 日历框开始时间 - /// Get/Set Calendar start time + /// Gets or sets Calendar start time /// private DateTime StartDate { @@ -29,25 +29,25 @@ private DateTime StartDate /// /// 获得/设置 日历框结束时间 - /// Get/Set Calendar end time + /// Gets or sets Calendar end time /// private DateTime EndDate => GetSafeDayDateTime(StartDate, 42); /// /// 获得/设置 当前日历框月份 - /// Get/Set Current Calendar Month + /// Gets or sets Current Calendar Month /// private DateTime CurrentDate { get; set; } /// /// 获得/设置 当前日历框时刻值 - /// Get/Set Current Calendar Time + /// Gets or sets Current Calendar Time /// private TimeSpan CurrentTime { get; set; } /// /// 获得/设置 当前选中时间 未点击确认时 与 Value 可能不一致 - /// Get/Set Current Selected Time. It may check with Value when not confirmed + /// Gets or sets Current Selected Time. It may check with Value when not confirmed /// private DateTime SelectValue { get; set; } @@ -61,7 +61,7 @@ private DateTime StartDate /// /// 获得/设置 日期样式 - /// Get/Set Date Style + /// Gets or sets Date Style /// private string? GetDayClass(DateTime day, bool overflow) => CssBuilder.Default() .AddClass("prev-month", IsPrevMonth(day)) @@ -163,7 +163,7 @@ private bool IsRange(DateTime day) => Ranger != null /// /// 获得/设置 组件显示模式 默认为显示年月日模式 - /// Get/Set Component Display Mode. Default is Date Mode + /// Gets or sets Component Display Mode. Default is Date Mode /// private DatePickerViewMode CurrentViewMode { get; set; } @@ -177,7 +177,7 @@ private bool IsRange(DateTime day) => Ranger != null /// /// 获得/设置 日期时间格式字符串 默认为 null - /// Get/Set Date Time Format String. Default is null + /// Gets or sets Date Time Format String. Default is null /// 10.2.2 /// [Parameter] @@ -186,7 +186,7 @@ private bool IsRange(DateTime day) => Ranger != null /// /// 获得/设置 日期格式字符串 默认为 null - /// Get/Set Date Format String. Default is null + /// Gets or sets Date Format String. Default is null /// 10.2.2 /// [Parameter] @@ -195,7 +195,7 @@ private bool IsRange(DateTime day) => Ranger != null /// /// 获得/设置 时间格式字符串 默认为 null - /// Get/Set Time Format String. Default is null + /// Gets or sets Time Format String. Default is null /// 10.2.2 /// [Parameter] @@ -204,7 +204,7 @@ private bool IsRange(DateTime day) => Ranger != null /// /// 获得/设置 是否显示快捷侧边栏 默认 false 不显示 - /// Get/Set Whether to Show Sidebar. Default is false + /// Gets or sets Whether to Show Sidebar. Default is false /// 10.2.2 /// [Parameter] @@ -212,7 +212,7 @@ private bool IsRange(DateTime day) => Ranger != null /// /// 获得/设置 侧边栏模板 默认 null - /// Get/Set Sidebar Template. Default is null + /// Gets or sets Sidebar Template. Default is null /// 10.2.2 /// [Parameter] @@ -220,7 +220,7 @@ private bool IsRange(DateTime day) => Ranger != null /// /// 获得/设置 是否显示左侧控制按钮 默认显示 - /// Get/Set Whether to Show Left Control Buttons. Default is true + /// Gets or sets Whether to Show Left Control Buttons. Default is true /// 10.2.2 /// [Parameter] @@ -228,7 +228,7 @@ private bool IsRange(DateTime day) => Ranger != null /// /// 获得/设置 是否显示右侧控制按钮 默认显示 - /// Get/Set Whether to Show Right Control Buttons. Default is true + /// Gets or sets Whether to Show Right Control Buttons. Default is true /// 10.2.2 /// [Parameter] @@ -236,7 +236,7 @@ private bool IsRange(DateTime day) => Ranger != null /// /// 获得/设置 是否显示 Footer 区域 默认为 false 不显示 - /// Get/Set Whether to Show Footer Area. Default is false + /// Gets or sets Whether to Show Footer Area. Default is false /// 10.2.2 /// [Parameter] @@ -244,7 +244,7 @@ private bool IsRange(DateTime day) => Ranger != null /// /// 获得/设置 时间 PlaceHolder 字符串 - /// Get/Set Time Placeholder String + /// Gets or sets Time Placeholder String /// 10.2.2 /// [Parameter] @@ -253,7 +253,7 @@ private bool IsRange(DateTime day) => Ranger != null /// /// 获得/设置 日期 PlaceHolder 字符串 - /// Get/Set Date Placeholder String + /// Gets or sets Date Placeholder String /// 10.2.2 /// [Parameter] @@ -262,7 +262,7 @@ private bool IsRange(DateTime day) => Ranger != null /// /// 获得/设置 是否允许为空 默认 false 不允许为空 - /// Get/Set Whether to Allow Null. Default is false + /// Gets or sets Whether to Allow Null. Default is false /// 10.2.2 /// [Parameter] @@ -276,7 +276,7 @@ public bool AllowNull /// /// 获得/设置 是否显示 Clear 按钮 默认 false 不显示 - /// Get/Set Whether to Show Clear Button. Default is false + /// Gets or sets Whether to Show Clear Button. Default is false /// 10.2.2 /// [Parameter] @@ -284,7 +284,7 @@ public bool AllowNull /// /// 获得/设置 点击日期时是否自动关闭弹窗 默认 false - /// Get/Set Whether to Auto Close Popup When Date Clicked. Default is false + /// Gets or sets Whether to Auto Close Popup When Date Clicked. Default is false /// 10.2.2 /// [Parameter] @@ -292,7 +292,7 @@ public bool AllowNull /// /// 获得/设置 确认按钮回调委托 - /// Get/Set Confirm Button Callback Delegate + /// Gets or sets Confirm Button Callback Delegate /// 10.2.2 /// [Parameter] @@ -300,7 +300,7 @@ public bool AllowNull /// /// 获得/设置 清空按钮回调委托 - /// Get/Set Clear Button Callback Delegate + /// Gets or sets Clear Button Callback Delegate /// 10.2.2 /// [Parameter] @@ -308,7 +308,7 @@ public bool AllowNull /// /// 获得/设置 清空按钮文字 - /// Get/Set Clear Button Text + /// Gets or sets Clear Button Text /// 10.2.2 /// [Parameter] @@ -317,7 +317,7 @@ public bool AllowNull /// /// 获得/设置 此刻按钮文字 - /// Get/Set Now Button Text + /// Gets or sets Now Button Text /// 10.2.2 /// [Parameter] @@ -326,7 +326,7 @@ public bool AllowNull /// /// 获得/设置 确定按钮文字 - /// Get/Set Confirm Button Text + /// Gets or sets Confirm Button Text /// 10.2.2 /// [Parameter] @@ -335,7 +335,7 @@ public bool AllowNull /// /// 获得/设置 组件值 - /// Get/Set Component Value + /// Gets or sets Component Value /// 10.2.2 /// [Parameter] @@ -343,7 +343,7 @@ public bool AllowNull /// /// 获得/设置 组件值改变时回调委托供双向绑定使用 - /// Get/Set Value Changed Callback Delegate for Two-Way Binding + /// Gets or sets Value Changed Callback Delegate for Two-Way Binding /// 10.2.2 /// [Parameter] @@ -351,7 +351,7 @@ public bool AllowNull /// /// 获得/设置 当前日期最大值 - /// Get/Set Max Date + /// Gets or sets Max Date /// 10.2.2 /// [Parameter] @@ -359,7 +359,7 @@ public bool AllowNull /// /// 获得/设置 当前日期最小值 - /// Get/Set Min Date + /// Gets or sets Min Date /// 10.2.2 /// [Parameter] @@ -367,7 +367,7 @@ public bool AllowNull /// /// 获得/设置 上一年图标 - /// Get/Set Previous Year Icon + /// Gets or sets Previous Year Icon /// 10.2.2 /// [Parameter] @@ -375,7 +375,7 @@ public bool AllowNull /// /// 获得/设置 下一年图标 - /// Get/Set Next Year Icon + /// Gets or sets Next Year Icon /// 10.2.2 /// [Parameter] @@ -383,7 +383,7 @@ public bool AllowNull /// /// 获得/设置 上一月图标 - /// Get/Set Previous Month Icon + /// Gets or sets Previous Month Icon /// 10.2.2 /// [Parameter] @@ -391,7 +391,7 @@ public bool AllowNull /// /// 获得/设置 下一月图标 - /// Get/Set Next Month Icon + /// Gets or sets Next Month Icon /// 10.2.2 /// [Parameter] @@ -399,7 +399,7 @@ public bool AllowNull /// /// 获得/设置 子组件模板 - /// Get/Set Child Content Template + /// Gets or sets Child Content Template /// 10.2.2 /// [Parameter] @@ -407,7 +407,7 @@ public bool AllowNull /// /// 获得/设置 年月改变时回调方法 - /// Get/Set Callback Method When Year/Month Changed + /// Gets or sets Callback Method When Year/Month Changed /// 10.2.2 /// [Parameter] @@ -415,7 +415,7 @@ public bool AllowNull /// /// 获得/设置 日单元格模板 - /// Get/Set Day Cell Template + /// Gets or sets Day Cell Template /// 10.2.2 /// [Parameter] @@ -423,7 +423,7 @@ public bool AllowNull /// /// 获得/设置 禁用日单元格模板 - /// Get/Set Disabled Day Cell Template + /// Gets or sets Disabled Day Cell Template /// 10.2.2 /// [Parameter] @@ -431,7 +431,7 @@ public bool AllowNull /// /// 获得/设置 是否显示中国阴历历法 默认 false - /// Get/Set Whether to Show Chinese Lunar Calendar. Default is false + /// Gets or sets Whether to Show Chinese Lunar Calendar. Default is false /// 10.2.2 /// /// 日期范围 1901 年 2 月 19 日 - 2101 年 1 月 28 日 @@ -440,7 +440,7 @@ public bool AllowNull /// /// 获得/设置 是否显示中国 24 节气 默认 false - /// Get/Set Whether to Show Chinese Solar Term. Default is false + /// Gets or sets Whether to Show Chinese Solar Term. Default is false /// 10.2.2 /// [Parameter] @@ -448,7 +448,7 @@ public bool AllowNull /// /// 获得/设置 是否显示节日 默认 false - /// Get/Set Whether to Show Festivals. Default is false + /// Gets or sets Whether to Show Festivals. Default is false /// 10.2.2 /// [Parameter] @@ -456,7 +456,7 @@ public bool AllowNull /// /// 获得/设置 是否显示休假日 默认 false - /// Get/Set Whether to Show Holidays. Default is false + /// Gets or sets Whether to Show Holidays. Default is false /// 10.2.2 /// [Parameter] @@ -464,14 +464,14 @@ public bool AllowNull /// /// 获得/设置 是否为 Range 内使用 默认为 false - /// Get/Set Whether to Use in Range. Default is false + /// Gets or sets Whether to Use in Range. Default is false /// [CascadingParameter] private DateTimeRange? Ranger { get; set; } /// /// 获取/设置 获得月自定义禁用日期回调方法,默认 null 内部默认启用数据缓存 可通过 参数关闭 - /// Get/Set Callback Method to Get Custom Disabled Days of Month. Default is null. Internal Default Enable Data Cache. Can be Closed via Parameter + /// Gets or sets Callback Method to Get Custom Disabled Days of Month. Default is null. Internal Default Enable Data Cache. Can be Closed via Parameter /// 10.2.2 /// [Parameter] @@ -479,7 +479,7 @@ public bool AllowNull /// /// 获得/设置 是否启用获得自定义禁用日期缓存 - /// Get/Set Whether to Enable Custom Disabled Days Cache + /// Gets or sets Whether to Enable Custom Disabled Days Cache /// 10.2.2 /// [Parameter] @@ -487,7 +487,7 @@ public bool AllowNull /// /// 获得/设置 星期第一天 默认 - /// Get/Set First Day of Week. Default is + /// Gets or sets First Day of Week. Default is /// 10.2.2 /// [Parameter] @@ -495,7 +495,7 @@ public bool AllowNull /// /// 获得/设置 选择时间方式 默认使用 - /// Get/Set Pick Time Mode. Default is + /// Gets or sets Pick Time Mode. Default is /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/DateTimePicker/DatePickerCell.razor.cs b/src/BootstrapBlazor/Components/DateTimePicker/DatePickerCell.razor.cs index becbae2b733..3531567bed8 100644 --- a/src/BootstrapBlazor/Components/DateTimePicker/DatePickerCell.razor.cs +++ b/src/BootstrapBlazor/Components/DateTimePicker/DatePickerCell.razor.cs @@ -19,7 +19,7 @@ public sealed partial class DatePickerCell /// /// 获得/设置 日期 - /// Get/Set Date + /// Gets or sets Date /// 10.2.2 /// [Parameter] @@ -27,7 +27,7 @@ public sealed partial class DatePickerCell /// /// 获得/设置 日期 - /// Get/Set Date + /// Gets or sets Date /// 10.2.2 /// [Parameter] @@ -36,7 +36,7 @@ public sealed partial class DatePickerCell /// /// 获得/设置 按钮点击回调方法 默认 null - /// Get/Set Button Click Callback Method. Default is null + /// Gets or sets Button Click Callback Method. Default is null /// 10.2.2 /// [Parameter] @@ -45,7 +45,7 @@ public sealed partial class DatePickerCell /// /// 获得/设置 单元格模板 默认 null - /// Get/Set Cell Template. Default is null + /// Gets or sets Cell Template. Default is null /// 10.2.2 /// [Parameter] @@ -53,7 +53,7 @@ public sealed partial class DatePickerCell /// /// 获得/设置 是否显示中国阴历历法 默认 false - /// Get/Set Whether to Show Chinese Lunar Calendar. Default is false + /// Gets or sets Whether to Show Chinese Lunar Calendar. Default is false /// 10.2.2 /// [Parameter] @@ -61,7 +61,7 @@ public sealed partial class DatePickerCell /// /// 获得/设置 是否显示中国 24 节气 默认 false - /// Get/Set Whether to Show Chinese Solar Term. Default is false + /// Gets or sets Whether to Show Chinese Solar Term. Default is false /// 10.2.2 /// [Parameter] @@ -69,7 +69,7 @@ public sealed partial class DatePickerCell /// /// 获得/设置 是否节日 默认 false - /// Get/Set Whether to Show Festivals. Default is false + /// Gets or sets Whether to Show Festivals. Default is false /// 10.2.2 /// [Parameter] @@ -77,7 +77,7 @@ public sealed partial class DatePickerCell /// /// 获得/设置 是否显示休假日 默认 false - /// Get/Set Whether to Show Holidays. Default is false + /// Gets or sets Whether to Show Holidays. Default is false /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/DateTimePicker/DateTimePicker.razor.cs b/src/BootstrapBlazor/Components/DateTimePicker/DateTimePicker.razor.cs index 59abe1ed5f5..5f4e1cb6269 100644 --- a/src/BootstrapBlazor/Components/DateTimePicker/DateTimePicker.razor.cs +++ b/src/BootstrapBlazor/Components/DateTimePicker/DateTimePicker.razor.cs @@ -60,13 +60,13 @@ public partial class DateTimePicker /// /// 获得/设置 是否允许为空 - /// Get/Set Whether to Allow Null + /// Gets or sets Whether to Allow Null /// private bool AllowNull { get; set; } /// /// 获得/设置 是否显示为按钮样式 默认 false - /// Get/Set Whether to Show as Button. Default is false + /// Gets or sets Whether to Show as Button. Default is false /// 10.2.2 /// [Parameter] @@ -74,7 +74,7 @@ public partial class DateTimePicker /// /// 获得/设置 选择按钮文本 默认 null 读取资源文件 - /// Get/Set Picker Button Text. Default is null. Read from resource file + /// Gets or sets Picker Button Text. Default is null. Read from resource file /// 10.2.2 /// [Parameter] @@ -82,7 +82,7 @@ public partial class DateTimePicker /// /// 获得/设置 选择按钮颜色 默认 - /// Get/Set Button Color. Default is + /// Gets or sets Button Color. Default is /// 10.2.2 /// [Parameter] @@ -90,7 +90,7 @@ public partial class DateTimePicker /// /// 获得/设置 时间格式化字符串 默认值为 null - /// Get/Set Date Time Format String. Default is null + /// Gets or sets Date Time Format String. Default is null /// 10.2.2 /// [Parameter] @@ -104,7 +104,7 @@ public string? Format /// /// 获得/设置 时间格式化字符串 默认值为 "yyyy-MM-dd HH:mm:ss" - /// Get/Set Date Time Format String. Default is "yyyy-MM-dd HH:mm:ss" + /// Gets or sets Date Time Format String. Default is "yyyy-MM-dd HH:mm:ss" /// 10.2.2 /// [Parameter] @@ -113,7 +113,7 @@ public string? Format /// /// 获得/设置 时间格式化字符串 默认值为 "yyyy-MM-dd" - /// Get/Set Date Format String. Default is "yyyy-MM-dd" + /// Gets or sets Date Format String. Default is "yyyy-MM-dd" /// 10.2.2 /// [Parameter] @@ -122,7 +122,7 @@ public string? Format /// /// 获得/设置 时间格式化字符串 默认值为 "HH:mm:ss" - /// Get/Set Time Format String. Default is "HH:mm:ss" + /// Gets or sets Time Format String. Default is "HH:mm:ss" /// 10.2.2 /// [Parameter] @@ -131,7 +131,7 @@ public string? Format /// /// 获得/设置 星期第一天 默认 - /// Get/Set First Day of Week. Default is + /// Gets or sets First Day of Week. Default is /// 10.2.2 /// [Parameter] @@ -139,7 +139,7 @@ public string? Format /// /// 获得/设置 组件图标 默认 fa-regular fa-calendar-days - /// Get/Set Component Icon. Default is fa-regular fa-calendar-days + /// Gets or sets Component Icon. Default is fa-regular fa-calendar-days /// 10.2.2 /// [Parameter] @@ -148,7 +148,7 @@ public string? Format /// /// 获得/设置 是否显示组件图标 默认 true 显示 - /// Get/Set Whether to Show Component Icon. Default is true + /// Gets or sets Whether to Show Component Icon. Default is true /// 10.2.2 /// [Parameter] @@ -156,7 +156,7 @@ public string? Format /// /// 获得/设置 控件边框颜色样式 默认为 None 显示 - /// Get/Set Component Border Color Style. Default is None + /// Gets or sets Component Border Color Style. Default is None /// 10.2.2 /// [Parameter] @@ -164,7 +164,7 @@ public string? Format /// /// 获得/设置 组件显示模式 默认为显示年月日模式 - /// Get/Set Component Display Mode. Default is Date Mode + /// Gets or sets Component Display Mode. Default is Date Mode /// 10.2.2 /// [Parameter] @@ -172,7 +172,7 @@ public string? Format /// /// 获得/设置 选择时间方式 默认使用 - /// Get/Set Pick Time Mode. Default is + /// Gets or sets Pick Time Mode. Default is /// 10.2.2 /// [Parameter] @@ -180,7 +180,7 @@ public string? Format /// /// 获得/设置 是否显示快捷侧边栏 默认不显示 - /// Get/Set Whether to Show Sidebar. Default is not shown + /// Gets or sets Whether to Show Sidebar. Default is not shown /// 10.2.2 /// [Parameter] @@ -188,7 +188,7 @@ public string? Format /// /// 获得/设置 侧边栏模板 默认 null - /// Get/Set Sidebar Template. Default is null + /// Gets or sets Sidebar Template. Default is null /// 10.2.2 /// [Parameter] @@ -197,7 +197,7 @@ public string? Format /// /// 获得/设置 当前日期最大值 - /// Get/Set Max Date + /// Gets or sets Max Date /// 10.2.2 /// [Parameter] @@ -205,7 +205,7 @@ public string? Format /// /// 获得/设置 当前日期最小值 - /// Get/Set Min Date + /// Gets or sets Min Date /// 10.2.2 /// [Parameter] @@ -213,7 +213,7 @@ public string? Format /// /// 获得/设置 是否点击日期后自动关闭弹窗 默认 true - /// Get/Set Whether to Auto Close Popup When Date Clicked. Default is true + /// Gets or sets Whether to Auto Close Popup When Date Clicked. Default is true /// 10.2.2 /// [Parameter] @@ -221,7 +221,7 @@ public string? Format /// /// 获得/设置 是否可以编辑内容 默认 false - /// Get/Set Whether to Allow Edit. Default is false + /// Gets or sets Whether to Allow Edit. Default is false /// 10.2.2 /// [Parameter] @@ -229,7 +229,7 @@ public string? Format /// /// 获得/设置 是否自动设置值为当前时间 默认 true - /// Get/Set Whether to Auto Set Value to Current Time. Default is true + /// Gets or sets Whether to Auto Set Value to Current Time. Default is true /// 10.2.2 /// /// 当 Value 值为 时自动设置时间为 不为空类型时此参数生效 @@ -238,7 +238,7 @@ public string? Format /// /// 获得/设置 是否将 显示为空字符串 默认 true - /// Get/Set Whether to Display as Empty String. Default is true + /// Gets or sets Whether to Display as Empty String. Default is true /// 10.2.2 /// /// 可为空类型时此参数生效 @@ -247,7 +247,7 @@ public string? Format /// /// 获得/设置 子组件模板 - /// Get/Set Child Content Template + /// Gets or sets Child Content Template /// 10.2.2 /// [Parameter] @@ -255,7 +255,7 @@ public string? Format /// /// 获得/设置 日期占位符文本 默认 null 读取资源文件 - /// Get/Set Date Placeholder Text. Default is null. Read from resource file + /// Gets or sets Date Placeholder Text. Default is null. Read from resource file /// 10.2.2 /// [Parameter] @@ -263,7 +263,7 @@ public string? Format /// /// 获得/设置 日期时间占位符文本 默认 null 读取资源文件 - /// Get/Set Date Time Placeholder Text. Default is null. Read from resource file + /// Gets or sets Date Time Placeholder Text. Default is null. Read from resource file /// 10.2.2 /// [Parameter] @@ -271,7 +271,7 @@ public string? Format /// /// 获得/设置 日单元格模板 - /// Get/Set Day Cell Template + /// Gets or sets Day Cell Template /// 10.2.2 /// [Parameter] @@ -279,7 +279,7 @@ public string? Format /// /// 获得/设置 禁用日单元格模板 - /// Get/Set Disabled Day Cell Template + /// Gets or sets Disabled Day Cell Template /// 10.2.2 /// [Parameter] @@ -287,7 +287,7 @@ public string? Format /// /// 获得/设置 是否显示中国阴历历法 默认 false - /// Get/Set Whether to Show Chinese Lunar Calendar. Default is false + /// Gets or sets Whether to Show Chinese Lunar Calendar. Default is false /// 10.2.2 /// [Parameter] @@ -295,7 +295,7 @@ public string? Format /// /// 获得/设置 是否显示中国 24 节气 默认 false - /// Get/Set Whether to Show Chinese Solar Term. Default is false + /// Gets or sets Whether to Show Chinese Solar Term. Default is false /// 10.2.2 /// [Parameter] @@ -303,7 +303,7 @@ public string? Format /// /// 获得/设置 是否显示节日 默认 false - /// Get/Set Whether to Show Festivals. Default is false + /// Gets or sets Whether to Show Festivals. Default is false /// 10.2.2 /// [Parameter] @@ -311,7 +311,7 @@ public string? Format /// /// 获得/设置 是否显示休假日 默认 false - /// Get/Set Whether to Show Holidays. Default is false + /// Gets or sets Whether to Show Holidays. Default is false /// 10.2.2 /// [Parameter] @@ -319,7 +319,7 @@ public string? Format /// /// 获取/设置 获得自定义禁用日期回调方法,默认 null 内部默认启用数据缓存 可通过 参数关闭 - /// Get/Set Callback Method to Get Custom Disabled Days. Default is null. Internal Default Enable Data Cache. Can be Closed via Parameter + /// Gets or sets Callback Method to Get Custom Disabled Days. Default is null. Internal Default Enable Data Cache. Can be Closed via Parameter /// 10.2.2 /// [Parameter] @@ -327,7 +327,7 @@ public string? Format /// /// 获得/设置 是否启用获得年自定义禁用日期缓存 - /// Get/Set Whether to Enable Custom Disabled Days Cache of Year + /// Gets or sets Whether to Enable Custom Disabled Days Cache of Year /// 10.2.2 /// [Parameter] @@ -335,7 +335,7 @@ public string? Format /// /// 获得/设置 是否将禁用日期显示为空字符串 默认 false 开启后组件会频繁调用 方法,建议外部使用缓存提高性能 - /// Get/Set Whether to Display Disabled Day as Empty. Default is false. When enabled, component will frequently call method, suggesting external cache usage for performance + /// Gets or sets Whether to Display Disabled Day as Empty. Default is false. When enabled, component will frequently call method, suggesting external cache usage for performance /// 10.2.2 /// [Parameter] @@ -343,7 +343,7 @@ public string? Format /// /// 获得/设置 失去焦点回调方法 默认 null - /// Get/Set OnBlur Callback Method. Default is null + /// Gets or sets OnBlur Callback Method. Default is null /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/DateTimePicker/PopoverDropdownBase.cs b/src/BootstrapBlazor/Components/DateTimePicker/PopoverDropdownBase.cs index 7ddf1e1cd25..75ef1e6cd90 100644 --- a/src/BootstrapBlazor/Components/DateTimePicker/PopoverDropdownBase.cs +++ b/src/BootstrapBlazor/Components/DateTimePicker/PopoverDropdownBase.cs @@ -14,7 +14,7 @@ public abstract class PopoverDropdownBase : ValidateBase { /// /// 获得/设置 弹窗位置 默认为 Bottom - /// Get/Set Popover Placement. Default is Bottom + /// Gets or sets Popover Placement. Default is Bottom /// 10.2.2 /// [Parameter] @@ -22,7 +22,7 @@ public abstract class PopoverDropdownBase : ValidateBase /// /// 获得/设置 自定义样式 参数 默认 null - /// Get/Set Custom Class. Default is null + /// Gets or sets Custom Class. Default is null /// 10.2.2 /// /// 由 data-bs-custom-class 实现 @@ -31,7 +31,7 @@ public abstract class PopoverDropdownBase : ValidateBase /// /// 获得/设置 是否显示阴影 默认 true - /// Get/Set Whether to Show Shadow. Default is true + /// Gets or sets Whether to Show Shadow. Default is true /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/DateTimeRange/DateTimeRange.razor.cs b/src/BootstrapBlazor/Components/DateTimeRange/DateTimeRange.razor.cs index 0463b92736e..f5f62bf5db7 100644 --- a/src/BootstrapBlazor/Components/DateTimeRange/DateTimeRange.razor.cs +++ b/src/BootstrapBlazor/Components/DateTimeRange/DateTimeRange.razor.cs @@ -95,7 +95,7 @@ private string? EndValueString /// /// 获得/设置 是否可以编辑内容 默认 false - /// Get/Set Whether to Allow Edit. Default is false + /// Gets or sets Whether to Allow Edit. Default is false /// 10.2.2 /// [Parameter] @@ -103,7 +103,7 @@ private string? EndValueString /// /// 获得/设置 是否点击快捷侧边栏自动关闭弹窗 默认 false - /// Get/Set Whether to Auto Close Popup When Sidebar Item Clicked. Default is false + /// Gets or sets Whether to Auto Close Popup When Sidebar Item Clicked. Default is false /// 10.2.2 /// [Parameter] @@ -127,7 +127,7 @@ private string? EndValueString /// /// 获得/设置 清空按钮文字 - /// Get/Set Clear Button Text + /// Gets or sets Clear Button Text /// 10.2.2 /// [Parameter] @@ -136,7 +136,7 @@ private string? EndValueString /// /// 获得/设置 清空图标 默认 fa-solid fa-circle-xmark - /// Get/Set Clear Icon. Default is fa-solid fa-circle-xmark + /// Gets or sets Clear Icon. Default is fa-solid fa-circle-xmark /// 10.2.2 /// [Parameter] @@ -144,7 +144,7 @@ private string? EndValueString /// /// 获得/设置 组件显示模式 默认为显示年月日模式 - /// Get/Set Component Display Mode. Default is Date Mode + /// Gets or sets Component Display Mode. Default is Date Mode /// 10.2.2 /// [Parameter] @@ -152,7 +152,7 @@ private string? EndValueString /// /// 获得/设置 组件显示模式 默认为显示年月日模式 - /// Get/Set Component Display Mode. Default is Date Mode + /// Gets or sets Component Display Mode. Default is Date Mode /// 10.2.2 /// [Parameter] @@ -160,7 +160,7 @@ private string? EndValueString /// /// 获得/设置 今天按钮文字 - /// Get/Set Today Button Text + /// Gets or sets Today Button Text /// 10.2.2 /// [Parameter] @@ -169,7 +169,7 @@ private string? EndValueString /// /// 获得/设置 确定按钮文字 - /// Get/Set Confirm Button Text + /// Gets or sets Confirm Button Text /// 10.2.2 /// [Parameter] @@ -178,14 +178,14 @@ private string? EndValueString /// /// 获得/设置 最大值 - /// Get/Set Max Value + /// Gets or sets Max Value /// 10.2.2 /// [Parameter] public DateTime MaxValue { get; set; } = DateTime.MaxValue; /// /// 获得/设置 最小值 - /// Get/Set Min Value + /// Gets or sets Min Value /// 10.2.2 /// [Parameter] @@ -193,7 +193,7 @@ private string? EndValueString /// /// 获得/设置 是否允许为空 默认为 true - /// Get/Set Whether to Allow Null. Default is true + /// Gets or sets Whether to Allow Null. Default is true /// 10.2.2 /// [Parameter] @@ -207,7 +207,7 @@ public bool AllowNull /// /// 获得/设置 是否显示清空按钮 默认 true - /// Get/Set Whether to Show Clear Button. Default is true + /// Gets or sets Whether to Show Clear Button. Default is true /// 10.2.2 /// [Parameter] @@ -215,7 +215,7 @@ public bool AllowNull /// /// 获得/设置 组件图标 - /// Get/Set Component Icon + /// Gets or sets Component Icon /// 10.2.2 /// [Parameter] @@ -223,7 +223,7 @@ public bool AllowNull /// /// 获得/设置 是否显示今天按钮 默认为 false - /// Get/Set Whether to Show Today Button. Default is false + /// Gets or sets Whether to Show Today Button. Default is false /// 10.2.2 /// [Parameter] @@ -231,7 +231,7 @@ public bool AllowNull /// /// 获得/设置 是否显示快捷侧边栏 默认不显示 - /// Get/Set Whether to Show Sidebar. Default is not shown + /// Gets or sets Whether to Show Sidebar. Default is not shown /// 10.2.2 /// [Parameter] @@ -239,7 +239,7 @@ public bool AllowNull /// /// 获得/设置 侧边栏快捷选项集合 - /// Get/Set Sidebar Items + /// Gets or sets Sidebar Items /// 10.2.2 /// [Parameter] @@ -264,7 +264,7 @@ public bool AllowNull /// /// 获得/设置 时间格式化字符串 默认值为 "HH:mm:ss" - /// Get/Set Time Format String. Default is "HH:mm:ss" + /// Gets or sets Time Format String. Default is "HH:mm:ss" /// 10.2.2 /// [Parameter] @@ -273,7 +273,7 @@ public bool AllowNull /// /// 获得/设置 时间格式化字符串 默认值为 "yyyy-MM-dd" - /// Get/Set Date Format String. Default is "yyyy-MM-dd" + /// Gets or sets Date Format String. Default is "yyyy-MM-dd" /// 10.2.2 /// [Parameter] @@ -282,7 +282,7 @@ public bool AllowNull /// /// 获得/设置 时间格式化字符串 默认值为 "yyyy-MM-dd HH:mm:ss" - /// Get/Set Date Time Format String. Default is "yyyy-MM-dd HH:mm:ss" + /// Gets or sets Date Time Format String. Default is "yyyy-MM-dd HH:mm:ss" /// 10.2.2 /// [Parameter] @@ -291,7 +291,7 @@ public bool AllowNull /// /// 获得/设置 是否显示中国阴历历法 默认 false - /// Get/Set Whether to Show Chinese Lunar Calendar. Default is false + /// Gets or sets Whether to Show Chinese Lunar Calendar. Default is false /// 10.2.2 /// [Parameter] @@ -299,7 +299,7 @@ public bool AllowNull /// /// 获得/设置 是否显示中国 24 节气 默认 false - /// Get/Set Whether to Show Chinese Solar Term. Default is false + /// Gets or sets Whether to Show Chinese Solar Term. Default is false /// 10.2.2 /// [Parameter] @@ -307,7 +307,7 @@ public bool AllowNull /// /// 获得/设置 是否显示节日 默认 false - /// Get/Set Whether to Show Festivals. Default is false + /// Gets or sets Whether to Show Festivals. Default is false /// 10.2.2 /// [Parameter] @@ -315,7 +315,7 @@ public bool AllowNull /// /// 获得/设置 是否显示休假日 默认 false - /// Get/Set Whether to Show Holidays. Default is false + /// Gets or sets Whether to Show Holidays. Default is false /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/DateTimeRange/DateTimeRangeSidebarItem.cs b/src/BootstrapBlazor/Components/DateTimeRange/DateTimeRangeSidebarItem.cs index b6ae18b9314..90d3d0f196e 100644 --- a/src/BootstrapBlazor/Components/DateTimeRange/DateTimeRangeSidebarItem.cs +++ b/src/BootstrapBlazor/Components/DateTimeRange/DateTimeRangeSidebarItem.cs @@ -13,20 +13,20 @@ public class DateTimeRangeSidebarItem { /// /// 获得/设置 快捷项目文本 - /// Get/Set Item Text + /// Gets or sets Item Text /// [NotNull] public string? Text { get; set; } /// /// 获得/设置 开始时间 - /// Get/Set Start Time + /// Gets or sets Start Time /// public DateTime StartDateTime { get; set; } /// /// 获得/设置 结束时间 - /// Get/Set End Time + /// Gets or sets End Time /// public DateTime EndDateTime { get; set; } } diff --git a/src/BootstrapBlazor/Components/DateTimeRange/DateTimeRangeValue.cs b/src/BootstrapBlazor/Components/DateTimeRange/DateTimeRangeValue.cs index 80a73d7f62e..b217c581d52 100644 --- a/src/BootstrapBlazor/Components/DateTimeRange/DateTimeRangeValue.cs +++ b/src/BootstrapBlazor/Components/DateTimeRange/DateTimeRangeValue.cs @@ -13,19 +13,19 @@ public class DateTimeRangeValue { /// /// 获得/设置 开始时间 - /// Get/Set Start Time + /// Gets or sets Start Time /// public DateTime Start { get; set; } /// /// 获得/设置 结束时间 - /// Get/Set End Time + /// Gets or sets End Time /// public DateTime End { get; set; } /// /// 获得/设置 可为空开始时间 - /// Get/Set Nullable Start Time + /// Gets or sets Nullable Start Time /// public DateTime? NullStart { @@ -35,7 +35,7 @@ public DateTime? NullStart /// /// 获得/设置 可为空结束时间 - /// Get/Set Nullable End Time + /// Gets or sets Nullable End Time /// public DateTime? NullEnd { diff --git a/src/BootstrapBlazor/Components/Dialog/DialogBase.cs b/src/BootstrapBlazor/Components/Dialog/DialogBase.cs index c1d1ce35692..a7c4ddd3e35 100644 --- a/src/BootstrapBlazor/Components/Dialog/DialogBase.cs +++ b/src/BootstrapBlazor/Components/Dialog/DialogBase.cs @@ -13,7 +13,7 @@ public abstract class DialogBase : BootstrapModuleComponentBase { /// /// 获得/设置 EditModel 实例 - /// Get/Set EditModel Instance + /// Gets or sets EditModel Instance /// 10.2.2 /// [Parameter] @@ -22,7 +22,7 @@ public abstract class DialogBase : BootstrapModuleComponentBase /// /// 获得/设置 BodyTemplate 实例 - /// Get/Set BodyTemplate Instance + /// Gets or sets BodyTemplate Instance /// 10.2.2 /// [Parameter] @@ -38,7 +38,7 @@ public abstract class DialogBase : BootstrapModuleComponentBase /// /// 获得/设置 是否显示标签 - /// Get/Set Whether to Show Label + /// Gets or sets Whether to Show Label /// 10.2.2 /// [Parameter] @@ -46,7 +46,7 @@ public abstract class DialogBase : BootstrapModuleComponentBase /// /// 获得/设置 每行显示组件数量 默认为 null - /// Get/Set Items Per Row. Default is null + /// Gets or sets Items Per Row. Default is null /// 10.2.2 /// [Parameter] @@ -54,7 +54,7 @@ public abstract class DialogBase : BootstrapModuleComponentBase /// /// 获得/设置 设置行格式 默认 Row 布局 - /// Get/Set Row Layout. Default is Row + /// Gets or sets Row Layout. Default is Row /// 10.2.2 /// [Parameter] @@ -62,7 +62,7 @@ public abstract class DialogBase : BootstrapModuleComponentBase /// /// 获得/设置 设置 Inline 模式下标签对齐方式 默认 None 等效于 Left 左对齐 - /// Get/Set Label Alignment in Inline Mode. Default is None, equivalent to Left + /// Gets or sets Label Alignment in Inline Mode. Default is None, equivalent to Left /// 10.2.2 /// [Parameter] @@ -70,7 +70,7 @@ public abstract class DialogBase : BootstrapModuleComponentBase /// /// 获得/设置 未分组编辑项布局位置 默认 false 在尾部 - /// Get/Set Unset Group Items Position. Default is false (at the end) + /// Gets or sets Unset Group Items Position. Default is false (at the end) /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Dialog/DialogCloseButton.cs b/src/BootstrapBlazor/Components/Dialog/DialogCloseButton.cs index 0089d0fe3a2..6224746e210 100644 --- a/src/BootstrapBlazor/Components/Dialog/DialogCloseButton.cs +++ b/src/BootstrapBlazor/Components/Dialog/DialogCloseButton.cs @@ -15,7 +15,7 @@ public partial class DialogCloseButton : Button { /// /// 获得/设置 按钮颜色 - /// Get/Set Button Color + /// Gets or sets Button Color /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Dialog/DialogSaveButton.cs b/src/BootstrapBlazor/Components/Dialog/DialogSaveButton.cs index fc1ea412521..5f2c1afaf83 100644 --- a/src/BootstrapBlazor/Components/Dialog/DialogSaveButton.cs +++ b/src/BootstrapBlazor/Components/Dialog/DialogSaveButton.cs @@ -19,7 +19,7 @@ public partial class DialogSaveButton : Button /// /// 获得/设置 保存回调方法 返回 true 时自动关闭弹窗 - /// Get/Set Save Callback Method. Close Dialog when return true + /// Gets or sets Save Callback Method. Close Dialog when return true /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Dialog/EditDialog.razor.cs b/src/BootstrapBlazor/Components/Dialog/EditDialog.razor.cs index 44de869303a..3f936210fdf 100644 --- a/src/BootstrapBlazor/Components/Dialog/EditDialog.razor.cs +++ b/src/BootstrapBlazor/Components/Dialog/EditDialog.razor.cs @@ -16,7 +16,7 @@ public partial class EditDialog { /// /// 获得/设置 查询时是否显示正在加载中动画 默认为 false - /// Get/Set Whether to Show Loading Animation When Querying. Default is false + /// Gets or sets Whether to Show Loading Animation When Querying. Default is false /// 10.2.2 /// [Parameter] @@ -24,7 +24,7 @@ public partial class EditDialog /// /// 获得/设置 组件是否采用 Tracking 模式对编辑项进行直接更新 默认 false - /// Get/Set Whether Component Uses Tracking Mode to Update Editing Items Directly. Default is false + /// Gets or sets Whether Component Uses Tracking Mode to Update Editing Items Directly. Default is false /// 10.2.2 /// [Parameter] @@ -32,7 +32,7 @@ public partial class EditDialog /// /// 获得/设置 实体类编辑模式 Add 还是 Update - /// Get/Set Item Changed Type (Add or Update) + /// Gets or sets Item Changed Type (Add or Update) /// 10.2.2 /// [Parameter] @@ -40,7 +40,7 @@ public partial class EditDialog /// /// 获得/设置 保存按钮图标 - /// Get/Set Save Button Icon + /// Gets or sets Save Button Icon /// 10.2.2 /// [Parameter] @@ -48,7 +48,7 @@ public partial class EditDialog /// /// 获得/设置 保存按钮文本 - /// Get/Set Save Button Text + /// Gets or sets Save Button Text /// 10.2.2 /// [Parameter] @@ -56,7 +56,7 @@ public partial class EditDialog /// /// 获得/设置 保存回调委托 返回 false 时保持编辑弹窗 返回 true 时关闭编辑弹窗 - /// Get/Set Save Callback Delegate. Return false to keep edit dialog, true to close it + /// Gets or sets Save Callback Delegate. Return false to keep edit dialog, true to close it /// 10.2.2 /// [Parameter] @@ -67,7 +67,7 @@ public partial class EditDialog /// /// 获得/设置 关闭按钮图标 - /// Get/Set Close Button Icon + /// Gets or sets Close Button Icon /// 10.2.2 /// [Parameter] @@ -75,7 +75,7 @@ public partial class EditDialog /// /// 获得/设置 获得/设置 重置按钮文本 - /// Get/Set Reset Button Text + /// Gets or sets Reset Button Text /// 10.2.2 /// [Parameter] @@ -83,7 +83,7 @@ public partial class EditDialog /// /// 获得/设置 关闭弹窗回调方法 - /// Get/Set Close Dialog Callback Method + /// Gets or sets Close Dialog Callback Method /// 10.2.2 /// [Parameter] @@ -91,7 +91,7 @@ public partial class EditDialog /// /// 获得/设置 是否禁用表单内回车自动提交功能 默认 null 未设置 - /// Get/Set Whether to Disable Auto Submit Form By Enter. Default is null + /// Gets or sets Whether to Disable Auto Submit Form By Enter. Default is null /// 10.2.2 /// [Parameter] @@ -99,7 +99,7 @@ public partial class EditDialog /// /// 获得/设置 DialogFooterTemplate 实例 - /// Get/Set DialogFooterTemplate Instance + /// Gets or sets DialogFooterTemplate Instance /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Dialog/EditDialogOption.cs b/src/BootstrapBlazor/Components/Dialog/EditDialogOption.cs index 4dafe440869..4c1f4160baf 100644 --- a/src/BootstrapBlazor/Components/Dialog/EditDialogOption.cs +++ b/src/BootstrapBlazor/Components/Dialog/EditDialogOption.cs @@ -25,61 +25,61 @@ public EditDialogOption() /// /// 获得/设置 组件是否采用 Tracking 模式对编辑项进行直接更新 默认 false - /// Get/Set Whether Component Uses Tracking Mode to Update Editing Items Directly. Default is false + /// Gets or sets Whether Component Uses Tracking Mode to Update Editing Items Directly. Default is false /// public bool IsTracking { get; set; } /// /// 获得/设置 是否显示标签 默认为 true 显示标签 - /// Get/Set Whether to Show Label. Default is true + /// Gets or sets Whether to Show Label. Default is true /// public bool ShowLabel { get; set; } = true; /// /// 获得/设置 实体类编辑模式 Add 还是 Update - /// Get/Set Item Changed Type (Add or Update) + /// Gets or sets Item Changed Type (Add or Update) /// public ItemChangedType ItemChangedType { get; set; } /// /// 获得/设置 每行显示组件数量 默认为 null - /// Get/Set Items Per Row. Default is null + /// Gets or sets Items Per Row. Default is null /// public int? ItemsPerRow { get; set; } /// /// 获得/设置 设置行内组件布局格式 默认 Row 布局 - /// Get/Set Row Layout. Default is Row + /// Gets or sets Row Layout. Default is Row /// public RowType RowType { get; set; } /// /// 获得/设置 设置 Inline 模式下标签对齐方式 默认 None 等效于 Left 左对齐 - /// Get/Set Label Alignment in Inline Mode. Default is None, equivalent to Left + /// Gets or sets Label Alignment in Inline Mode. Default is None, equivalent to Left /// public Alignment LabelAlign { get; set; } /// /// 获得/设置 查询时是否显示正在加载中动画 默认为 false - /// Get/Set Whether to Show Loading Animation When Querying. Default is false + /// Gets or sets Whether to Show Loading Animation When Querying. Default is false /// public bool ShowLoading { get; set; } /// /// 获得/设置 未分组编辑项布局位置 默认 false 在尾部 - /// Get/Set Unset Group Items Position. Default is false (at the end) + /// Gets or sets Unset Group Items Position. Default is false (at the end) /// public bool ShowUnsetGroupItemsOnTop { get; set; } /// /// 获得/设置 编辑框模型 - /// Get/Set Edit Model + /// Gets or sets Edit Model /// public TModel? Model { get; set; } /// /// 获得/设置 是否禁用表单内回车自动提交功能 默认 null 未设置 - /// Get/Set Whether to Disable Auto Submit Form By Enter. Default is null + /// Gets or sets Whether to Disable Auto Submit Form By Enter. Default is null /// public bool? DisableAutoSubmitFormByEnter { get; set; } @@ -91,19 +91,19 @@ public EditDialogOption() /// /// 获得/设置 EditDialog Body 模板 - /// Get/Set EditDialog Body Template + /// Gets or sets EditDialog Body Template /// public RenderFragment? DialogBodyTemplate { get; set; } /// /// 获得/设置 EditDialog Footer 模板 - /// Get/Set EditDialog Footer Template + /// Gets or sets EditDialog Footer Template /// public RenderFragment? DialogFooterTemplate { get; set; } /// /// 获得/设置 保存回调委托 - /// Get/Set Save Callback Delegate + /// Gets or sets Save Callback Delegate /// public Func>? OnEditAsync { get; set; } } diff --git a/src/BootstrapBlazor/Components/Dialog/IResultDialog.cs b/src/BootstrapBlazor/Components/Dialog/IResultDialog.cs index 5539a56e1cf..a05c611dff7 100644 --- a/src/BootstrapBlazor/Components/Dialog/IResultDialog.cs +++ b/src/BootstrapBlazor/Components/Dialog/IResultDialog.cs @@ -14,13 +14,14 @@ public interface IResultDialog /// /// 关闭之前回调方法 返回 true 时关闭弹窗 返回 false 时阻止关闭弹窗 /// Callback Method Before Closing. Return true to close, false to prevent closing + /// 10.2.2 /// - /// Task OnClosing(DialogResult result) => Task.FromResult(true); /// /// 关闭后回调方法 /// Callback Method After Closing + /// 10.2.2 /// Task OnClose(DialogResult result); } diff --git a/src/BootstrapBlazor/Components/Dialog/IconDialog.razor.cs b/src/BootstrapBlazor/Components/Dialog/IconDialog.razor.cs index 38cf0c8196d..79338ff1f66 100644 --- a/src/BootstrapBlazor/Components/Dialog/IconDialog.razor.cs +++ b/src/BootstrapBlazor/Components/Dialog/IconDialog.razor.cs @@ -15,7 +15,7 @@ public partial class IconDialog { /// /// 获得/设置 Icon 名称 - /// Get/Set Icon Name + /// Gets or sets Icon Name /// 10.2.2 /// [Parameter] @@ -27,7 +27,7 @@ public partial class IconDialog /// /// 获得/设置 Label 显示文字 - /// Get/Set Label Text + /// Gets or sets Label Text /// 10.2.2 /// [Parameter] @@ -35,7 +35,7 @@ public partial class IconDialog /// /// 获得/设置 Label 显示文字 - /// Get/Set Label Text + /// Gets or sets Label Text /// 10.2.2 /// [Parameter] @@ -43,7 +43,7 @@ public partial class IconDialog /// /// 获得/设置 拷贝按钮显示文字 - /// Get/Set Copy Button Text + /// Gets or sets Copy Button Text /// 10.2.2 /// [Parameter] @@ -51,7 +51,7 @@ public partial class IconDialog /// /// 获得/设置 拷贝成功提示文字 - /// Get/Set Copied Tooltip Text + /// Gets or sets Copied Tooltip Text /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Dialog/ResultDialogFooter.razor.cs b/src/BootstrapBlazor/Components/Dialog/ResultDialogFooter.razor.cs index 133eba06451..cc532440cee 100644 --- a/src/BootstrapBlazor/Components/Dialog/ResultDialogFooter.razor.cs +++ b/src/BootstrapBlazor/Components/Dialog/ResultDialogFooter.razor.cs @@ -123,7 +123,7 @@ public partial class ResultDialogFooter /// /// 获得/设置 点击关闭按钮回调方法 - /// Get/Set Click Close Button Callback Method + /// Gets or sets Click Close Button Callback Method /// 10.2.2 /// [Parameter] @@ -133,7 +133,7 @@ public partial class ResultDialogFooter /// /// 获得/设置 点击确认按钮回调方法 - /// Get/Set Click Yes Button Callback Method + /// Gets or sets Click Yes Button Callback Method /// 10.2.2 /// [Parameter] @@ -143,7 +143,7 @@ public partial class ResultDialogFooter /// /// 获得/设置 点击取消按钮回调方法 - /// Get/Set Click No Button Callback Method + /// Gets or sets Click No Button Callback Method /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Dialog/ResultDialogOption.cs b/src/BootstrapBlazor/Components/Dialog/ResultDialogOption.cs index 9518371199d..d90e9b63ff9 100644 --- a/src/BootstrapBlazor/Components/Dialog/ResultDialogOption.cs +++ b/src/BootstrapBlazor/Components/Dialog/ResultDialogOption.cs @@ -23,55 +23,55 @@ public ResultDialogOption() /// /// 获得/设置 显示确认按钮 - /// Get/Set Show Yes Button + /// Gets or sets Show Yes Button /// public bool ShowYesButton { get; set; } = true; /// /// 获得/设置 确认按钮文本 - /// Get/Set Yes Button Text + /// Gets or sets Yes Button Text /// public string? ButtonYesText { get; set; } /// /// 获得/设置 确认按钮图标 - /// Get/Set Yes Button Icon + /// Gets or sets Yes Button Icon /// public string? ButtonYesIcon { get; set; } /// /// 获得/设置 确认按钮颜色 - /// Get/Set Yes Button Color + /// Gets or sets Yes Button Color /// public Color ButtonYesColor { get; set; } = Color.Primary; /// /// 获得/设置 显示取消按钮 - /// Get/Set Show No Button + /// Gets or sets Show No Button /// public bool ShowNoButton { get; set; } = true; /// /// 获得/设置 取消按钮文本 - /// Get/Set No Button Text + /// Gets or sets No Button Text /// public string? ButtonNoText { get; set; } /// /// 获得/设置 取消按钮图标 - /// Get/Set No Button Icon + /// Gets or sets No Button Icon /// public string? ButtonNoIcon { get; set; } /// /// 获得/设置 取消按钮颜色 - /// Get/Set No Button Color + /// Gets or sets No Button Color /// public Color ButtonNoColor { get; set; } = Color.Danger; /// /// 获得/设置 关闭按钮文本 - /// Get/Set Close Button Text + /// Gets or sets Close Button Text /// [Obsolete("已弃用,删除即可; Deprecated. Just delete it.")] [ExcludeFromCodeCoverage] @@ -79,7 +79,7 @@ public ResultDialogOption() /// /// 获得/设置 关闭按钮图标 - /// Get/Set Close Button Icon + /// Gets or sets Close Button Icon /// [Obsolete("已弃用,删除即可; Deprecated. Just delete it.")] [ExcludeFromCodeCoverage] @@ -87,7 +87,7 @@ public ResultDialogOption() /// /// 获得/设置 关闭按钮颜色 - /// Get/Set Close Button Color + /// Gets or sets Close Button Color /// [Obsolete("已弃用,删除即可; Deprecated. Just delete it.")] [ExcludeFromCodeCoverage] @@ -95,7 +95,7 @@ public ResultDialogOption() /// /// 获得/设置 组件参数集合 - /// Get/Set Component Parameters + /// Gets or sets Component Parameters /// [Obsolete("已过期,单词拼写错误。请使用 ComponentParameters 代替 Please use ComponentParameters")] [ExcludeFromCodeCoverage] @@ -107,13 +107,13 @@ public Dictionary? ComponentParamters /// /// 获得/设置 组件参数集合 - /// Get/Set Component Parameters + /// Gets or sets Component Parameters /// public Dictionary? ComponentParameters { get; set; } /// /// 获得/设置 模态弹窗返回值任务实例 - /// Get/Set Modal Result Task Instance + /// Gets or sets Modal Result Task Instance /// internal TaskCompletionSource ResultTask { get; set; } diff --git a/src/BootstrapBlazor/Components/Dialog/SearchDialog.razor.cs b/src/BootstrapBlazor/Components/Dialog/SearchDialog.razor.cs index 701ee2c67a9..55e3ebfa51f 100644 --- a/src/BootstrapBlazor/Components/Dialog/SearchDialog.razor.cs +++ b/src/BootstrapBlazor/Components/Dialog/SearchDialog.razor.cs @@ -15,7 +15,7 @@ public partial class SearchDialog { /// /// 获得/设置 重置回调委托 - /// Get/Set Reset Callback Delegate + /// Gets or sets Reset Callback Delegate /// 10.2.2 /// /// @@ -25,7 +25,7 @@ public partial class SearchDialog /// /// 获得/设置 搜索回调委托 - /// Get/Set Search Callback Delegate + /// Gets or sets Search Callback Delegate /// 10.2.2 /// /// @@ -35,7 +35,7 @@ public partial class SearchDialog /// /// 获得/设置 重置按钮文本 - /// Get/Set Reset Button Text + /// Gets or sets Reset Button Text /// 10.2.2 /// [Parameter] @@ -44,7 +44,7 @@ public partial class SearchDialog /// /// 获得/设置 查询按钮文本 - /// Get/Set Query Button Text + /// Gets or sets Query Button Text /// 10.2.2 /// [Parameter] @@ -53,7 +53,7 @@ public partial class SearchDialog /// /// 获得/设置 清空按钮图标 - /// Get/Set Clear Button Icon + /// Gets or sets Clear Button Icon /// 10.2.2 /// [Parameter] @@ -61,7 +61,7 @@ public partial class SearchDialog /// /// 获得/设置 搜索按钮图标 - /// Get/Set Search Button Icon + /// Gets or sets Search Button Icon /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Dialog/SearchDialogOption.cs b/src/BootstrapBlazor/Components/Dialog/SearchDialogOption.cs index 34b15494a94..290a8a8f361 100644 --- a/src/BootstrapBlazor/Components/Dialog/SearchDialogOption.cs +++ b/src/BootstrapBlazor/Components/Dialog/SearchDialogOption.cs @@ -23,37 +23,37 @@ public SearchDialogOption() /// /// 获得/设置 是否显示标签 默认为 true 显示标签 - /// Get/Set Whether to Show Label. Default is true + /// Gets or sets Whether to Show Label. Default is true /// public bool ShowLabel { get; set; } = true; /// /// 获得/设置 未分组编辑项布局位置 默认 false 在尾部 - /// Get/Set Unset Group Items Position. Default is false (at the end) + /// Gets or sets Unset Group Items Position. Default is false (at the end) /// public bool ShowUnsetGroupItemsOnTop { get; set; } /// /// 获得/设置 每行显示组件数量 默认为 null - /// Get/Set Items Per Row. Default is null + /// Gets or sets Items Per Row. Default is null /// public int? ItemsPerRow { get; set; } /// /// 获得/设置 设置行内组件布局格式 默认 Row 布局 - /// Get/Set Row Layout. Default is Row + /// Gets or sets Row Layout. Default is Row /// public RowType RowType { get; set; } /// /// 获得/设置 设置 Inline 模式下标签对齐方式 默认 None 等效于 Left 左对齐 - /// Get/Set Label Alignment in Inline Mode. Default is None, equivalent to Left + /// Gets or sets Label Alignment in Inline Mode. Default is None, equivalent to Left /// public Alignment LabelAlign { get; set; } /// /// 获得/设置 编辑框模型 - /// Get/Set Search Model + /// Gets or sets Search Model /// public TModel? Model { get; set; } @@ -65,32 +65,32 @@ public SearchDialogOption() /// /// 获得/设置 SearchDialog Body 模板 - /// Get/Set SearchDialog Body Template + /// Gets or sets SearchDialog Body Template /// public RenderFragment? DialogBodyTemplate { get; set; } /// /// 获得/设置 重置按钮文本 - /// Get/Set Reset Button Text + /// Gets or sets Reset Button Text /// public string? ResetButtonText { get; set; } /// /// 获得/设置 查询按钮文本 - /// Get/Set Query Button Text + /// Gets or sets Query Button Text /// public string? QueryButtonText { get; set; } /// /// 获得/设置 重置回调委托 - /// Get/Set Reset Callback Delegate + /// Gets or sets Reset Callback Delegate /// /// public Func? OnResetSearchClick { get; set; } /// /// 获得/设置 搜索回调委托 - /// Get/Set Search Callback Delegate + /// Gets or sets Search Callback Delegate /// /// public Func? OnSearchClick { get; set; } diff --git a/src/BootstrapBlazor/Components/Display/Display.razor.cs b/src/BootstrapBlazor/Components/Display/Display.razor.cs index 4684405dc71..3c2b8bc7d66 100644 --- a/src/BootstrapBlazor/Components/Display/Display.razor.cs +++ b/src/BootstrapBlazor/Components/Display/Display.razor.cs @@ -22,7 +22,7 @@ public partial class Display : ILookup /// /// 获得/设置 异步格式化字符串 - /// Get/Set Async Format String + /// Gets or sets Async Format String /// 10.2.2 /// [Parameter] @@ -30,7 +30,7 @@ public partial class Display : ILookup /// /// 获得/设置 格式化字符串 如时间类型设置 yyyy-MM-dd - /// Get/Set Format String. e.g. yyyy-MM-dd for DateTime + /// Gets or sets Format String. e.g. yyyy-MM-dd for DateTime /// 10.2.2 /// [Parameter] @@ -77,7 +77,7 @@ public partial class Display : ILookup /// /// 获得/设置 类型解析回调方法 组件泛型为 Array 时内部调用 - /// Get/Set Type Resolver Callback Method. Called internally when component generic type is Array + /// Gets or sets Type Resolver Callback Method. Called internally when component generic type is Array /// 10.2.2 /// [Parameter] @@ -85,7 +85,7 @@ public partial class Display : ILookup /// /// 获得/设置 是否显示 Tooltip 多用于标签文字过长导致裁减时使用 默认 false 不显示 - /// Get/Set Whether to Show Tooltip. Default is false + /// Gets or sets Whether to Show Tooltip. Default is false /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Display/DisplayBase.cs b/src/BootstrapBlazor/Components/Display/DisplayBase.cs index 1b11cc01a79..d15109090d6 100644 --- a/src/BootstrapBlazor/Components/Display/DisplayBase.cs +++ b/src/BootstrapBlazor/Components/Display/DisplayBase.cs @@ -28,13 +28,13 @@ public abstract class DisplayBase : BootstrapModuleComponentBase /// /// 获得/设置 泛型参数 TValue 可为空类型 Type 实例,为空时表示类型不可为空 - /// Get/Set Generic Parameter TValue Nullable Type Instance. Null means type is not nullable + /// Gets or sets Generic Parameter TValue Nullable Type Instance. Null means type is not nullable /// protected Type? NullableUnderlyingType { get; set; } /// /// 获得/设置 泛型参数 TValue 可为空类型 Type 实例 - /// Get/Set Generic Parameter TValue Nullable Type Instance + /// Gets or sets Generic Parameter TValue Nullable Type Instance /// [NotNull] protected Type? ValueType { get; set; } @@ -69,7 +69,7 @@ public abstract class DisplayBase : BootstrapModuleComponentBase /// /// 获得/设置 是否显示前置标签 默认值为 null 为空时默认不显示标签 - /// Get/Set Whether to Show Label. Default is null, not show label when null + /// Gets or sets Whether to Show Label. Default is null, not show label when null /// 10.2.2 /// [Parameter] @@ -77,7 +77,7 @@ public abstract class DisplayBase : BootstrapModuleComponentBase /// /// 获得/设置 是否显示 Tooltip 多用于文字过长导致裁减时使用 默认 null - /// Get/Set Whether to Show Tooltip. Default is null + /// Gets or sets Whether to Show Tooltip. Default is null /// 10.2.2 /// [Parameter] @@ -85,7 +85,7 @@ public abstract class DisplayBase : BootstrapModuleComponentBase /// /// 获得/设置 显示名称 - /// Get/Set Display Text + /// Gets or sets Display Text /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Divider/Divider.razor.cs b/src/BootstrapBlazor/Components/Divider/Divider.razor.cs index 8243fdbf6b6..d2842019bd9 100644 --- a/src/BootstrapBlazor/Components/Divider/Divider.razor.cs +++ b/src/BootstrapBlazor/Components/Divider/Divider.razor.cs @@ -32,7 +32,7 @@ public partial class Divider /// /// 获得/设置 是否为垂直显示 默认为 false - /// Get/Set Whether to display vertically. Default is false + /// Gets or sets Whether to display vertically. Default is false /// 10.2.2 /// [Parameter] @@ -40,7 +40,7 @@ public partial class Divider /// /// 获得/设置 组件对齐方式 默认为居中 - /// Get/Set Component Alignment. Default is Center + /// Gets or sets Component Alignment. Default is Center /// 10.2.2 /// [Parameter] @@ -48,7 +48,7 @@ public partial class Divider /// /// 获得/设置 文案显示文字 - /// Get/Set Text + /// Gets or sets Text /// 10.2.2 /// [Parameter] @@ -56,7 +56,7 @@ public partial class Divider /// /// 获得/设置 文案显示图标 - /// Get/Set Icon + /// Gets or sets Icon /// 10.2.2 /// [Parameter] @@ -64,7 +64,7 @@ public partial class Divider /// /// 获得/设置 子内容 - /// Get/Set Child Content + /// Gets or sets Child Content /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Download/DownloadOption.cs b/src/BootstrapBlazor/Components/Download/DownloadOption.cs index 7e301775ecc..956c0023500 100644 --- a/src/BootstrapBlazor/Components/Download/DownloadOption.cs +++ b/src/BootstrapBlazor/Components/Download/DownloadOption.cs @@ -13,19 +13,19 @@ public class DownloadOption { /// /// 获取/设置 要下载的文件数据字节数组 - /// Get/Set File Content Byte Array + /// Gets or sets File Content Byte Array /// public Stream? FileStream { get; set; } /// /// 获得/设置 下载地址 - /// Get/Set Download Url + /// Gets or sets Download Url /// public string? Url { get; set; } /// /// 获取/设置 下载文件另存为文件名 - /// Get/Set Save as Filename + /// Gets or sets Save as Filename /// public string? FileName { get; set; } } diff --git a/src/BootstrapBlazor/Components/DragDrap/Dropzone.razor.cs b/src/BootstrapBlazor/Components/DragDrap/Dropzone.razor.cs index f568813df82..59f91038d38 100644 --- a/src/BootstrapBlazor/Components/DragDrap/Dropzone.razor.cs +++ b/src/BootstrapBlazor/Components/DragDrap/Dropzone.razor.cs @@ -16,7 +16,7 @@ public partial class Dropzone : IDisposable { /// /// 获取/设置 拖拽列表 - /// Get/Set Items to Drag + /// Gets or sets Items to Drag /// 10.2.2 /// [Parameter] @@ -25,7 +25,7 @@ public partial class Dropzone : IDisposable /// /// 获取/设置 最大数量 默认 null 不限制 - /// Get/Set Max Items. Default is null (unlimited) + /// Gets or sets Max Items. Default is null (unlimited) /// 10.2.2 /// [Parameter] @@ -33,7 +33,7 @@ public partial class Dropzone : IDisposable /// /// 获得/设置 子组件 - /// Get/Set Child Content + /// Gets or sets Child Content /// 10.2.2 /// [Parameter] @@ -41,7 +41,7 @@ public partial class Dropzone : IDisposable /// /// 获得/设置 每个 Item 的特殊 class - /// Get/Set Item Wrapper Class + /// Gets or sets Item Wrapper Class /// 10.2.2 /// [Parameter] @@ -49,7 +49,7 @@ public partial class Dropzone : IDisposable /// /// 获得/设置 复制内容 - /// Get/Set Copy Item Delegate + /// Gets or sets Copy Item Delegate /// 10.2.2 /// [Parameter] @@ -57,7 +57,7 @@ public partial class Dropzone : IDisposable /// /// 获得/设置 是否允许拖拽释放 - /// Get/Set Accepts Delegate + /// Gets or sets Accepts Delegate /// 10.2.2 /// [Parameter] @@ -65,7 +65,7 @@ public partial class Dropzone : IDisposable /// /// 获得/设置 当拖拽因为数量超限被禁止时调用 - /// Get/Set Callback for drop rejection by max item limit + /// Gets or sets Callback for drop rejection by max item limit /// 10.2.2 /// [Parameter] @@ -73,7 +73,7 @@ public partial class Dropzone : IDisposable /// /// 获得/设置 当拖拽被禁止时调用 - /// Get/Set Callback for drop rejection + /// Gets or sets Callback for drop rejection /// 10.2.2 /// [Parameter] @@ -81,7 +81,7 @@ public partial class Dropzone : IDisposable /// /// 获得/设置 返回被替换的 Item - /// Get/Set Callback for Replaced Item Drop + /// Gets or sets Callback for Replaced Item Drop /// 10.2.2 /// [Parameter] @@ -89,7 +89,7 @@ public partial class Dropzone : IDisposable /// /// 获得/设置 返回放下的 Item - /// Get/Set Callback for Item Drop + /// Gets or sets Callback for Item Drop /// 10.2.2 /// [Parameter] @@ -97,7 +97,7 @@ public partial class Dropzone : IDisposable /// /// 获得/设置 当前节点是否允许被拖拽 - /// Get/Set Whether current item allows drag + /// Gets or sets Whether current item allows drag /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Drawer/Drawer.razor.cs b/src/BootstrapBlazor/Components/Drawer/Drawer.razor.cs index 4cc81a9a709..030271b0fe6 100644 --- a/src/BootstrapBlazor/Components/Drawer/Drawer.razor.cs +++ b/src/BootstrapBlazor/Components/Drawer/Drawer.razor.cs @@ -50,7 +50,7 @@ public partial class Drawer /// /// 获得/设置 抽屉宽度 左右布局时生效 - /// Get/Set Drawer Width. Effective when layout is Left/Right + /// Gets or sets Drawer Width. Effective when layout is Left/Right /// 10.2.2 /// [Parameter] @@ -58,7 +58,7 @@ public partial class Drawer /// /// 获得/设置 抽屉高度 上下布局时生效 - /// Get/Set Drawer Height. Effective when layout is Top/Bottom + /// Gets or sets Drawer Height. Effective when layout is Top/Bottom /// 10.2.2 /// [Parameter] @@ -66,7 +66,7 @@ public partial class Drawer /// /// 获得/设置 抽屉是否打开 默认 false 未打开 - /// Get/Set Whether Drawer is Open. Default is false + /// Gets or sets Whether Drawer is Open. Default is false /// 10.2.2 /// [Parameter] @@ -74,7 +74,7 @@ public partial class Drawer /// /// 获得/设置 IsOpen 属性改变时回调委托方法 - /// Get/Set Callback for IsOpen Property Change + /// Gets or sets Callback for IsOpen Property Change /// 10.2.2 /// [Parameter] @@ -82,7 +82,7 @@ public partial class Drawer /// /// 获得/设置 点击背景遮罩时回调委托方法 默认为 null - /// Get/Set Callback for Backdrop Click. Default is null + /// Gets or sets Callback for Backdrop Click. Default is null /// 10.2.2 /// [Parameter] @@ -90,7 +90,7 @@ public partial class Drawer /// /// 获得/设置 点击遮罩是否关闭抽屉 默认为 false - /// Get/Set Whether to Close Drawer on Backdrop Click. Default is false + /// Gets or sets Whether to Close Drawer on Backdrop Click. Default is false /// 10.2.2 /// [Parameter] @@ -98,7 +98,7 @@ public partial class Drawer /// /// 获得/设置 是否显示遮罩 默认为 true 显示遮罩 - /// Get/Set Whether to Show Backdrop. Default is true + /// Gets or sets Whether to Show Backdrop. Default is true /// 10.2.2 /// [Parameter] @@ -106,7 +106,7 @@ public partial class Drawer /// /// 获得/设置 组件出现位置 默认显示在 Left 位置 - /// Get/Set Component Placement. Default is Left + /// Gets or sets Component Placement. Default is Left /// 10.2.2 /// [Parameter] @@ -114,7 +114,7 @@ public partial class Drawer /// /// 获得/设置 组件定位位置 默认 null 未设置 使用样式内置定位 fixed 可更改为 absolute - /// Get/Set Component Position. Default is null (Fixed). Can be set to absolute + /// Gets or sets Component Position. Default is null (Fixed). Can be set to absolute /// 10.2.2 /// [Parameter] @@ -122,7 +122,7 @@ public partial class Drawer /// /// 获得/设置 子组件 - /// Get/Set Child Content + /// Gets or sets Child Content /// 10.2.2 /// [Parameter] @@ -130,7 +130,7 @@ public partial class Drawer /// /// 获得/设置 是否允许调整大小 默认 false - /// Get/Set Whether to Allow Resize. Default is false + /// Gets or sets Whether to Allow Resize. Default is false /// 10.2.2 /// [Parameter] @@ -138,7 +138,7 @@ public partial class Drawer /// /// 获得/设置 z-index 参数值 默认 null 未设置 - /// Get/Set z-index parameter. Default is null + /// Gets or sets z-index parameter. Default is null /// 10.2.2 /// [Parameter] @@ -146,7 +146,7 @@ public partial class Drawer /// /// 获得/设置 关闭抽屉回调委托 默认 null - /// Get/Set Close Drawer Callback Delegate. Default is null + /// Gets or sets Close Drawer Callback Delegate. Default is null /// 10.2.2 /// [Parameter] @@ -154,7 +154,7 @@ public partial class Drawer /// /// 获得/设置 抽屉内容相关数据 多用于传值 - /// Get/Set Drawer Context Data. Used for passing values + /// Gets or sets Drawer Context Data. Used for passing values /// 10.2.2 /// [Parameter] @@ -162,7 +162,7 @@ public partial class Drawer /// /// 获得/设置 是否支持键盘 ESC 关闭当前弹窗 默认 false - /// Get/Set Whether to support ESC key to close. Default is false + /// Gets or sets Whether to support ESC key to close. Default is false /// 10.2.2 /// [Parameter] @@ -170,7 +170,7 @@ public partial class Drawer /// /// 获得/设置 抽屉显示时是否允许滚动 body 默认为 false 不滚动 - /// Get/Set Whether to allow body scrolling when drawer is shown. Default is false + /// Gets or sets Whether to allow body scrolling when drawer is shown. Default is false /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Drawer/DrawerOption.cs b/src/BootstrapBlazor/Components/Drawer/DrawerOption.cs index ce0b0332033..239515ba04b 100644 --- a/src/BootstrapBlazor/Components/Drawer/DrawerOption.cs +++ b/src/BootstrapBlazor/Components/Drawer/DrawerOption.cs @@ -13,97 +13,97 @@ public class DrawerOption { /// /// 获得/设置 Drawer 组件样式 - /// Get/Set Drawer Component CSS Class + /// Gets or sets Drawer Component CSS Class /// public string? Class { get; set; } /// /// 获得/设置 抽屉宽度 左右布局时生效 - /// Get/Set Drawer Width. Effective when layout is Left/Right + /// Gets or sets Drawer Width. Effective when layout is Left/Right /// public string? Width { get; set; } /// /// 获得/设置 抽屉高度 上下布局时生效 - /// Get/Set Drawer Height. Effective when layout is Top/Bottom + /// Gets or sets Drawer Height. Effective when layout is Top/Bottom /// public string? Height { get; set; } /// /// 获得/设置 是否支持键盘 ESC 关闭当前弹窗 默认 false - /// Get/Set Whether to support ESC key to close. Default is false + /// Gets or sets Whether to support ESC key to close. Default is false /// public bool IsKeyboard { get; set; } /// /// 获得/设置 点击遮罩是否关闭抽屉 默认为 false - /// Get/Set Whether to Close Drawer on Backdrop Click. Default is false + /// Gets or sets Whether to Close Drawer on Backdrop Click. Default is false /// public bool IsBackdrop { get; set; } /// /// 获得/设置 是否显示遮罩 默认为 true 显示遮罩 - /// Get/Set Whether to Show Backdrop. Default is true + /// Gets or sets Whether to Show Backdrop. Default is true /// public bool ShowBackdrop { get; set; } = true; /// /// 获得/设置 抽屉显示时是否允许滚动 body 默认为 false 不滚动 - /// Get/Set Whether to allow body scrolling when drawer is shown. Default is false + /// Gets or sets Whether to allow body scrolling when drawer is shown. Default is false /// public bool BodyScroll { get; set; } /// /// 获得/设置 组件出现位置 默认显示在 Left 位置 - /// Get/Set Component Placement. Default is Left + /// Gets or sets Component Placement. Default is Left /// public Placement Placement { get; set; } = Placement.Left; /// /// 获得/设置 子组件 - /// Get/Set Child Content + /// Gets or sets Child Content /// public RenderFragment? ChildContent { get; set; } /// /// 获得/设置 自定义组件 - /// Get/Set Custom Component + /// Gets or sets Custom Component /// public BootstrapDynamicComponent? Component { get; set; } /// /// 获得/设置 是否允许调整大小 默认 false - /// Get/Set Whether to Allow Resize. Default is false + /// Gets or sets Whether to Allow Resize. Default is false /// public bool AllowResize { get; set; } /// /// 获得/设置 点击背景遮罩时回调委托方法 默认为 null - /// Get/Set Callback for Backdrop Click. Default is null + /// Gets or sets Callback for Backdrop Click. Default is null /// public Func? OnClickBackdrop { get; set; } /// /// 获得/设置 关闭当前 Drawer 回调委托 默认 null - /// Get/Set Close Drawer Callback Delegate. Default is null + /// Gets or sets Close Drawer Callback Delegate. Default is null /// public Func? OnCloseAsync { get; set; } /// /// 获得/设置 相关连数据,多用于传值使用 - /// Get/Set Context Data. Used for passing values + /// Gets or sets Context Data. Used for passing values /// public object? BodyContext { get; set; } /// /// 获得/设置 z-index 参数值 默认 null 未设置 - /// Get/Set z-index parameter. Default is null + /// Gets or sets z-index parameter. Default is null /// public int? ZIndex { get; set; } /// /// 获得/设置 实例 - /// Get/Set Instance + /// Gets or sets Instance /// internal Drawer? Drawer { get; set; } diff --git a/src/BootstrapBlazor/Components/Dropdown/Dropdown.razor.cs b/src/BootstrapBlazor/Components/Dropdown/Dropdown.razor.cs index 56eda76facc..f0baaf6e60c 100644 --- a/src/BootstrapBlazor/Components/Dropdown/Dropdown.razor.cs +++ b/src/BootstrapBlazor/Components/Dropdown/Dropdown.razor.cs @@ -63,7 +63,7 @@ public partial class Dropdown /// /// 获得/设置 设置当前项是否 Active 方法 - /// Get/Set Set Item Active Method + /// Gets or sets Set Item Active Method /// /// /// @@ -74,7 +74,7 @@ public partial class Dropdown /// /// 获得/设置 颜色 默认 Color.Primary 无设置 - /// Get/Set Color. Default is Color.Primary + /// Gets or sets Color. Default is Color.Primary /// 10.2.2 /// [Parameter] @@ -82,7 +82,7 @@ public partial class Dropdown /// /// 获得/设置 绑定数据集 - /// Get/Set Data Items + /// Gets or sets Data Items /// 10.2.2 /// [Parameter] @@ -91,7 +91,7 @@ public partial class Dropdown /// /// 获得/设置 选项模板 - /// Get/Set Item Template + /// Gets or sets Item Template /// 10.2.2 /// [Parameter] @@ -99,7 +99,7 @@ public partial class Dropdown /// /// 获得/设置 按钮内容模板 - /// Get/Set Button Content Template + /// Gets or sets Button Content Template /// 10.2.2 /// [Parameter] @@ -107,7 +107,7 @@ public partial class Dropdown /// /// 获得/设置 是否开启分裂式 默认 false - /// Get/Set Is Split Button. Default is false + /// Gets or sets Is Split Button. Default is false /// 10.2.2 /// [Parameter] @@ -116,7 +116,7 @@ public partial class Dropdown /// /// 获得/设置 OnClick 事件 /// 为 true 时生效 - /// Get/Set OnClick Event + /// Gets or sets OnClick Event /// Effective when is true /// 10.2.2 /// @@ -126,7 +126,7 @@ public partial class Dropdown /// /// 获得/设置 OnClick 事件不刷新父组件 /// 为 true 时生效 - /// Get/Set OnClick Event without render parent + /// Gets or sets OnClick Event without render parent /// Effective when is true /// 10.2.2 /// @@ -136,7 +136,7 @@ public partial class Dropdown /// /// 获得/设置 是否为异步按钮,默认为 false 如果为 true 表示是异步按钮,点击按钮后禁用自身并且等待异步完成,过程中显示 loading 动画 /// 为 true 时生效 - /// Get/Set Is Async Button. Default is false. If true, button is disabled and shows loading animation on click + /// Gets or sets Is Async Button. Default is false. If true, button is disabled and shows loading animation on click /// Effective when is true /// 10.2.2 /// @@ -145,7 +145,7 @@ public partial class Dropdown /// /// 获得/设置 是否异步结束后是否保持禁用状态,默认为 false - /// Get/Set Keep Disabled after async completion. Default is false + /// Gets or sets Keep Disabled after async completion. Default is false /// 10.2.2 /// /// 开启时有效 @@ -154,7 +154,7 @@ public partial class Dropdown /// /// 获得/设置 显示图标 - /// Get/Set Icon + /// Gets or sets Icon /// 10.2.2 /// [Parameter] @@ -162,7 +162,7 @@ public partial class Dropdown /// /// 获得/设置 正在加载动画图标 默认为 fa-solid fa-spin fa-spinner - /// Get/Set Loading Icon. Default is fa-solid fa-spin fa-spinner + /// Gets or sets Loading Icon. Default is fa-solid fa-spin fa-spinner /// 10.2.2 /// [Parameter] @@ -171,7 +171,7 @@ public partial class Dropdown /// /// 获得/设置 获取菜单对齐方式 默认 none 未设置 - /// Get/Set Menu Alignment. Default is none + /// Gets or sets Menu Alignment. Default is none /// 10.2.2 /// [Parameter] @@ -179,7 +179,7 @@ public partial class Dropdown /// /// 获得/设置 下拉选项方向 默认 Dropdown 向下 - /// Get/Set Dropdown Direction. Default is Dropdown (down) + /// Gets or sets Dropdown Direction. Default is Dropdown (down) /// 10.2.2 /// [Parameter] @@ -187,7 +187,7 @@ public partial class Dropdown /// /// 获得/设置 组件尺寸 默认 none 未设置 - /// Get/Set Size. Default is none + /// Gets or sets Size. Default is none /// 10.2.2 /// [Parameter] @@ -195,7 +195,7 @@ public partial class Dropdown /// /// 获得/设置 是否固定按钮文字 更改下拉框选项时按钮文字保持不变 默认 false 不固定 - /// Get/Set Whether Fixed Button Text. Default is false + /// Gets or sets Whether Fixed Button Text. Default is false /// 10.2.2 /// [Parameter] @@ -203,7 +203,7 @@ public partial class Dropdown /// /// 获得/设置 下拉菜单中是否显示固定文字 默认 false 不显示 - /// Get/Set Whether Show Fixed Button Text in Dropdown. Default is false + /// Gets or sets Whether Show Fixed Button Text in Dropdown. Default is false /// 10.2.2 /// [Parameter] @@ -211,7 +211,7 @@ public partial class Dropdown /// /// 获得/设置 固定按钮显示文字 默认 null - /// Get/Set Fixed Button Text. Default is null + /// Gets or sets Fixed Button Text. Default is null /// 10.2.2 /// [Parameter] @@ -219,7 +219,7 @@ public partial class Dropdown /// /// 获得/设置 Items 模板 默认 null - /// Get/Set Items Template. Default is null + /// Gets or sets Items Template. Default is null /// 10.2.2 /// [Parameter] @@ -252,7 +252,7 @@ public partial class Dropdown /// /// 获得/设置 是否当前正在异步执行操作 - /// Get/Set Is Async Loading + /// Gets or sets Is Async Loading /// private bool _isAsyncLoading; diff --git a/src/BootstrapBlazor/Components/Dropdown/DropdownItem.razor.cs b/src/BootstrapBlazor/Components/Dropdown/DropdownItem.razor.cs index bee7c6137a9..47e558bbed2 100644 --- a/src/BootstrapBlazor/Components/Dropdown/DropdownItem.razor.cs +++ b/src/BootstrapBlazor/Components/Dropdown/DropdownItem.razor.cs @@ -13,7 +13,7 @@ public partial class DropdownItem { /// /// 获得/设置 显示文本 - /// Get/Set Text + /// Gets or sets Text /// 10.2.2 /// [Parameter] @@ -21,7 +21,7 @@ public partial class DropdownItem /// /// 获得/设置 图标 - /// Get/Set Icon + /// Gets or sets Icon /// 10.2.2 /// [Parameter] @@ -29,7 +29,7 @@ public partial class DropdownItem /// /// 获得/设置 是否被禁用 默认 false 优先级低于 - /// Get/Set Disabled. Default is false. Priority lower than + /// Gets or sets Disabled. Default is false. Priority lower than /// 10.2.2 /// [Parameter] @@ -37,7 +37,7 @@ public partial class DropdownItem /// /// 获得/设置 是否被禁用回调方法 默认 null 优先级高于 - /// Get/Set Disabled Callback. Default is null. Priority higher than + /// Gets or sets Disabled Callback. Default is null. Priority higher than /// 10.2.2 /// [Parameter] @@ -45,7 +45,7 @@ public partial class DropdownItem /// /// 获得/设置 点击回调方法 默认 null - /// Get/Set Click Callback. Default is null + /// Gets or sets Click Callback. Default is null /// 10.2.2 /// [Parameter] @@ -53,7 +53,7 @@ public partial class DropdownItem /// /// 获得/设置 组件内容 - /// Get/Set Child Content + /// Gets or sets Child Content /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/DropdownWidget/DropdownWidget.razor.cs b/src/BootstrapBlazor/Components/DropdownWidget/DropdownWidget.razor.cs index f7fcc424ff8..8e201775ad1 100644 --- a/src/BootstrapBlazor/Components/DropdownWidget/DropdownWidget.razor.cs +++ b/src/BootstrapBlazor/Components/DropdownWidget/DropdownWidget.razor.cs @@ -17,7 +17,7 @@ public sealed partial class DropdownWidget /// /// 获得/设置 选项模板支持静态数据 - /// Get/Set Child Content (Static Data) + /// Gets or sets Child Content (Static Data) /// 10.2.2 /// [Parameter] @@ -25,7 +25,7 @@ public sealed partial class DropdownWidget /// /// 获得/设置 挂件数据集合 - /// Get/Set Widget Items + /// Gets or sets Widget Items /// 10.2.2 /// [Parameter] @@ -33,7 +33,7 @@ public sealed partial class DropdownWidget /// /// 获得/设置 下拉项关闭回调方法 - /// Get/Set Item Close Callback + /// Gets or sets Item Close Callback /// 10.2.2 /// [Parameter] @@ -41,7 +41,7 @@ public sealed partial class DropdownWidget /// /// 获得/设置 下拉项显示回调方法 - /// Get/Set Item Shown Callback + /// Gets or sets Item Shown Callback /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/DropdownWidget/DropdownWidgetItem.cs b/src/BootstrapBlazor/Components/DropdownWidget/DropdownWidgetItem.cs index 863bd28fe3e..2c88bf9a54b 100644 --- a/src/BootstrapBlazor/Components/DropdownWidget/DropdownWidgetItem.cs +++ b/src/BootstrapBlazor/Components/DropdownWidget/DropdownWidgetItem.cs @@ -13,7 +13,7 @@ public class DropdownWidgetItem : BootstrapComponentBase { /// /// 获得/设置 挂件图标 - /// Get/Set Widget Icon + /// Gets or sets Widget Icon /// 10.2.2 /// [Parameter] @@ -21,7 +21,7 @@ public class DropdownWidgetItem : BootstrapComponentBase /// /// 获得/设置 DropdownWidgetItem 组件项目的悬浮提示信息 - /// Get/Set Tooltip Title + /// Gets or sets Tooltip Title /// 10.2.2 /// [Parameter] @@ -29,7 +29,7 @@ public class DropdownWidgetItem : BootstrapComponentBase /// /// 获得/设置 徽章颜色 默认为 Color.Success - /// Get/Set Badge Color. Default is Color.Success + /// Gets or sets Badge Color. Default is Color.Success /// 10.2.2 /// [Parameter] @@ -37,7 +37,7 @@ public class DropdownWidgetItem : BootstrapComponentBase /// /// 获得/设置 Header 颜色 默认为 Color.Primary - /// Get/Set Header Color. Default is Color.Primary + /// Gets or sets Header Color. Default is Color.Primary /// 10.2.2 /// [Parameter] @@ -45,7 +45,7 @@ public class DropdownWidgetItem : BootstrapComponentBase /// /// 获得/设置 徽章显示数量 - /// Get/Set Badge Number + /// Gets or sets Badge Number /// 10.2.2 /// [Parameter] @@ -53,7 +53,7 @@ public class DropdownWidgetItem : BootstrapComponentBase /// /// 获得/设置 是否显示小箭头 默认为 true 显示 - /// Get/Set Whether to Show Arrow. Default is true + /// Gets or sets Whether to Show Arrow. Default is true /// 10.2.2 /// [Parameter] @@ -61,7 +61,7 @@ public class DropdownWidgetItem : BootstrapComponentBase /// /// 获得/设置 Header 模板 - /// Get/Set Header Template + /// Gets or sets Header Template /// 10.2.2 /// [Parameter] @@ -69,7 +69,7 @@ public class DropdownWidgetItem : BootstrapComponentBase /// /// 获得/设置 Body 模板 - /// Get/Set Body Template + /// Gets or sets Body Template /// 10.2.2 /// [Parameter] @@ -77,7 +77,7 @@ public class DropdownWidgetItem : BootstrapComponentBase /// /// 获得/设置 Footer 模板 - /// Get/Set Footer Template + /// Gets or sets Footer Template /// 10.2.2 /// [Parameter] @@ -85,7 +85,7 @@ public class DropdownWidgetItem : BootstrapComponentBase /// /// 获得/设置 父组件通过级联参数获得 - /// Get/Set Parent Container + /// Gets or sets Parent Container /// [CascadingParameter] private DropdownWidget? Container { get; set; } diff --git a/src/BootstrapBlazor/Components/EditorForm/EditorForm.razor.cs b/src/BootstrapBlazor/Components/EditorForm/EditorForm.razor.cs index b61885213c1..672a5eb929b 100644 --- a/src/BootstrapBlazor/Components/EditorForm/EditorForm.razor.cs +++ b/src/BootstrapBlazor/Components/EditorForm/EditorForm.razor.cs @@ -51,7 +51,7 @@ public partial class EditorForm : IShowLabel, IDisposable /// /// 获得/设置 每行显示组件数量 默认为 null - /// Get/Set Items Per Row. Default is null + /// Gets or sets Items Per Row. Default is null /// 10.2.2 /// [Parameter] @@ -59,7 +59,7 @@ public partial class EditorForm : IShowLabel, IDisposable /// /// 获得/设置 实体类编辑模式 Add 还是 Update - /// Get/Set Item Changed Type. Add or Update + /// Gets or sets Item Changed Type. Add or Update /// 10.2.2 /// [Parameter] @@ -67,7 +67,7 @@ public partial class EditorForm : IShowLabel, IDisposable /// /// 获得/设置 设置行格式 默认 Row 布局 - /// Get/Set Row Type. Default is Row + /// Gets or sets Row Type. Default is Row /// 10.2.2 /// [Parameter] @@ -75,7 +75,7 @@ public partial class EditorForm : IShowLabel, IDisposable /// /// 获得/设置 设置 Inline 模式下标签对齐方式 默认 None 等效于 Left 左对齐 - /// Get/Set Label Alignment in Inline mode. Default is None, equivalent to Left + /// Gets or sets Label Alignment in Inline mode. Default is None, equivalent to Left /// 10.2.2 /// [Parameter] @@ -83,7 +83,7 @@ public partial class EditorForm : IShowLabel, IDisposable /// /// 获得/设置 标签宽度 默认 null 未设置使用全局设置 --bb-row-label-width - /// Get/Set Label Width. Default is null, use global setting --bb-row-label-width if not set + /// Gets or sets Label Width. Default is null, use global setting --bb-row-label-width if not set /// 10.2.2 /// [Parameter] @@ -91,7 +91,7 @@ public partial class EditorForm : IShowLabel, IDisposable /// /// 获得/设置 列模板 设置 时本参数不生效 - /// Get/Set Field Items Template. Not effective when is set + /// Gets or sets Field Items Template. Not effective when is set /// 10.2.2 /// [Parameter] @@ -99,7 +99,7 @@ public partial class EditorForm : IShowLabel, IDisposable /// /// 获得/设置 按钮模板 - /// Get/Set Buttons Template + /// Gets or sets Buttons Template /// 10.2.2 /// [Parameter] @@ -107,7 +107,7 @@ public partial class EditorForm : IShowLabel, IDisposable /// /// 获得/设置 绑定模型 - /// Get/Set Model + /// Gets or sets Model /// 10.2.2 /// [Parameter] @@ -116,7 +116,7 @@ public partial class EditorForm : IShowLabel, IDisposable /// /// 获得/设置 是否显示前置标签 默认为 null 未设置时默认显示标签 - /// Get/Set Whether to Show Label. Default is null, show label if not set + /// Gets or sets Whether to Show Label. Default is null, show label if not set /// 10.2.2 /// [Parameter] @@ -124,7 +124,7 @@ public partial class EditorForm : IShowLabel, IDisposable /// /// 获得/设置 是否显示标签 Tooltip 多用于标签文字过长导致裁减时使用 默认 null - /// Get/Set Whether to Show Label Tooltip. Default is null + /// Gets or sets Whether to Show Label Tooltip. Default is null /// 10.2.2 /// [Parameter] @@ -132,7 +132,7 @@ public partial class EditorForm : IShowLabel, IDisposable /// /// 获得/设置 是否显示为 Display 组件 默认为 false - /// Get/Set Whether to Show as Display Component. Default is false + /// Gets or sets Whether to Show as Display Component. Default is false /// 10.2.2 /// [Parameter] @@ -140,7 +140,7 @@ public partial class EditorForm : IShowLabel, IDisposable /// /// 获得/设置 是否显示 Display 组件的 Tooltip 默认为 false - /// Get/Set Whether to Show Display Component Tooltip. Default is false + /// Gets or sets Whether to Show Display Component Tooltip. Default is false /// 10.2.2 /// [Parameter] @@ -148,7 +148,7 @@ public partial class EditorForm : IShowLabel, IDisposable /// /// 获得/设置 是否使用 SearchTemplate 默认 false 使用 EditTemplate 模板 - /// Get/Set Whether to use SearchTemplate. Default is false, use EditTemplate + /// Gets or sets Whether to use SearchTemplate. Default is false, use EditTemplate /// /// 多用于表格组件传递 集合给参数 时; Mostly used when passing collection to parameter in Table component [CascadingParameter(Name = "IsSearch")] @@ -157,7 +157,7 @@ public partial class EditorForm : IShowLabel, IDisposable /// /// 获得/设置 是否自动生成模型的所有属性 默认为 true 生成所有属性 - /// Get/Set Whether to Auto Generate All Items. Default is true + /// Gets or sets Whether to Auto Generate All Items. Default is true /// 10.2.2 /// [Parameter] @@ -165,7 +165,7 @@ public partial class EditorForm : IShowLabel, IDisposable /// /// 获得/设置 级联上下文绑定字段信息集合 设置此参数后 模板不生效 - /// Get/Set Context Field Items Collection. template will not be effective if set + /// Gets or sets Context Field Items Collection. template will not be effective if set /// 10.2.2 /// [Parameter] @@ -173,7 +173,7 @@ public partial class EditorForm : IShowLabel, IDisposable /// /// 获得/设置 自定义列排序规则 默认 null 未设置 使用内部排序机制 1 2 3 0 -3 -2 -1 顺序 - /// Get/Set Custom Column Sort Rule. Default is null, use internal sort mechanism + /// Gets or sets Custom Column Sort Rule. Default is null, use internal sort mechanism /// 10.2.2 /// [Parameter] @@ -181,7 +181,7 @@ public partial class EditorForm : IShowLabel, IDisposable /// /// 获得/设置 未设置 GroupName 编辑项是否放置在顶部 默认 false - /// Get/Set Whether to show unset GroupName items on top. Default is false + /// Gets or sets Whether to show unset GroupName items on top. Default is false /// 10.2.2 /// [Parameter] @@ -189,7 +189,7 @@ public partial class EditorForm : IShowLabel, IDisposable /// /// 获得/设置 默认占位符文本 默认 null - /// Get/Set Default Placeholder Text. Default is null + /// Gets or sets Default Placeholder Text. Default is null /// 10.2.2 /// [Parameter] @@ -198,7 +198,7 @@ public partial class EditorForm : IShowLabel, IDisposable /// /// 获得/设置 当值变化时是否重新渲染组件 默认 false - /// Get/Set Whether to Re-render Component when Value Changed. Default is false + /// Gets or sets Whether to Re-render Component when Value Changed. Default is false /// 10.2.2 /// [Parameter] @@ -206,7 +206,7 @@ public partial class EditorForm : IShowLabel, IDisposable /// /// 获得/设置 级联上下文 EditContext 实例 内置于 EditForm 或者 ValidateForm 时有值 - /// Get/Set Cascading EditContext Instance. Available when inside EditForm or ValidateForm + /// Gets or sets Cascading EditContext Instance. Available when inside EditForm or ValidateForm /// [CascadingParameter] private EditContext? CascadedEditContext { get; set; } @@ -228,7 +228,7 @@ public partial class EditorForm : IShowLabel, IDisposable /// /// 获得/设置 配置编辑项目集合 - /// Get/Set Editor Items Cache + /// Gets or sets Editor Items Cache /// private readonly List _editorItems = []; diff --git a/src/BootstrapBlazor/Components/EditorForm/EditorItem.cs b/src/BootstrapBlazor/Components/EditorForm/EditorItem.cs index e034536c661..29d61be5258 100644 --- a/src/BootstrapBlazor/Components/EditorForm/EditorItem.cs +++ b/src/BootstrapBlazor/Components/EditorForm/EditorItem.cs @@ -16,7 +16,7 @@ public class EditorItem : ComponentBase, IEditorItem { /// /// 获得/设置 绑定字段值 - /// Get/Set Field Value + /// Gets or sets Field Value /// 10.2.2 /// [Parameter] @@ -24,7 +24,7 @@ public class EditorItem : ComponentBase, IEditorItem /// /// 获得/设置 绑定字段值变化回调委托 - /// Get/Set Field Value Changed Callback + /// Gets or sets Field Value Changed Callback /// 10.2.2 /// [Parameter] @@ -38,7 +38,7 @@ public class EditorItem : ComponentBase, IEditorItem /// /// 获得/设置 ValueExpression 表达式 - /// Get/Set ValueExpression + /// Gets or sets ValueExpression /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/EditorForm/IShowLabel.cs b/src/BootstrapBlazor/Components/EditorForm/IShowLabel.cs index 1eb3967aeaa..1e09ede56bb 100644 --- a/src/BootstrapBlazor/Components/EditorForm/IShowLabel.cs +++ b/src/BootstrapBlazor/Components/EditorForm/IShowLabel.cs @@ -13,13 +13,13 @@ public interface IShowLabel { /// /// 获得/设置 是否显示标签 默认 null - /// Get/Set Whether to Show Label. Default is null + /// Gets or sets Whether to Show Label. Default is null /// bool? ShowLabel { get; set; } /// /// 获得/设置 是否显示标签 Tooltip 多用于标签文字过长导致裁减时使用 默认 null - /// Get/Set Whether to Show Label Tooltip. Default is null + /// Gets or sets Whether to Show Label Tooltip. Default is null /// bool? ShowLabelTooltip { get; set; } } diff --git a/src/BootstrapBlazor/Components/Empty/Empty.razor.cs b/src/BootstrapBlazor/Components/Empty/Empty.razor.cs index 0a645ced4b6..0b6f896fe82 100644 --- a/src/BootstrapBlazor/Components/Empty/Empty.razor.cs +++ b/src/BootstrapBlazor/Components/Empty/Empty.razor.cs @@ -19,7 +19,7 @@ public partial class Empty /// /// 获得/设置 图片路径 默认为 null - /// Get/Set Image Source. Default is null + /// Gets or sets Image Source. Default is null /// 10.2.2 /// [Parameter] @@ -27,7 +27,7 @@ public partial class Empty /// /// 获得/设置 空状态描述 默认为 无数据 - /// Get/Set Description. Default is No Data + /// Gets or sets Description. Default is No Data /// 10.2.2 /// [Parameter] @@ -35,7 +35,7 @@ public partial class Empty /// /// 获得/设置 自定义模板 - /// Get/Set Custom Template + /// Gets or sets Custom Template /// 10.2.2 /// [Parameter] @@ -43,7 +43,7 @@ public partial class Empty /// /// 获得/设置 子组件 - /// Get/Set Child Content + /// Gets or sets Child Content /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/ErrorLogger/BootstrapBlazorErrorBoundary.cs b/src/BootstrapBlazor/Components/ErrorLogger/BootstrapBlazorErrorBoundary.cs index 5a2f77d1d23..bf92cd8f288 100644 --- a/src/BootstrapBlazor/Components/ErrorLogger/BootstrapBlazorErrorBoundary.cs +++ b/src/BootstrapBlazor/Components/ErrorLogger/BootstrapBlazorErrorBoundary.cs @@ -34,7 +34,7 @@ class BootstrapBlazorErrorBoundary : ErrorBoundaryBase /// /// 获得/设置 自定义错误处理回调方法 - /// Get/Set Custom Error Handler + /// Gets or sets Custom Error Handler /// 10.2.2 /// [Parameter] @@ -42,7 +42,7 @@ class BootstrapBlazorErrorBoundary : ErrorBoundaryBase /// /// 获得/设置 是否启用日志记录功能 默认 true 启用 - /// Get/Set Whether to Enable Logging Default true + /// Gets or sets Whether to Enable Logging Default true /// 10.2.2 /// [Parameter] @@ -50,7 +50,7 @@ class BootstrapBlazorErrorBoundary : ErrorBoundaryBase /// /// 获得/设置 是否显示弹窗 默认 true 显示 - /// Get/Set Whether to Show Toast Default true + /// Gets or sets Whether to Show Toast Default true /// 10.2.2 /// [Parameter] @@ -58,7 +58,7 @@ class BootstrapBlazorErrorBoundary : ErrorBoundaryBase /// /// 获得/设置 Toast 弹窗标题 - /// Get/Set Toast Title + /// Gets or sets Toast Title /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/ErrorLogger/ErrorLogger.cs b/src/BootstrapBlazor/Components/ErrorLogger/ErrorLogger.cs index c1fe911226a..76b5901bbfe 100644 --- a/src/BootstrapBlazor/Components/ErrorLogger/ErrorLogger.cs +++ b/src/BootstrapBlazor/Components/ErrorLogger/ErrorLogger.cs @@ -50,7 +50,7 @@ public class ErrorLogger : ComponentBase, IErrorLogger /// /// 获得/设置 自定义错误处理回调方法 - /// Get/Set Custom Error Handler + /// Gets or sets Custom Error Handler /// 10.2.2 /// [Parameter] @@ -58,7 +58,7 @@ public class ErrorLogger : ComponentBase, IErrorLogger /// /// 获得/设置 子组件 - /// Get/Set Child Content + /// Gets or sets Child Content /// 10.2.2 /// [Parameter] @@ -66,7 +66,7 @@ public class ErrorLogger : ComponentBase, IErrorLogger /// /// 获得/设置 异常显示模板 默认 null - /// Get/Set Exception Display Template Default null + /// Gets or sets Exception Display Template Default null /// 10.2.2 /// /// diff --git a/src/BootstrapBlazor/Components/ErrorLogger/IErrorLogger.cs b/src/BootstrapBlazor/Components/ErrorLogger/IErrorLogger.cs index fc1737fad90..be33233332d 100644 --- a/src/BootstrapBlazor/Components/ErrorLogger/IErrorLogger.cs +++ b/src/BootstrapBlazor/Components/ErrorLogger/IErrorLogger.cs @@ -13,13 +13,13 @@ public interface IErrorLogger { /// /// 获得/设置 是否开启全局异常捕获 默认 true - /// Get/Set Whether to Enable Global Exception Capture Default true + /// Gets or sets Whether to Enable Global Exception Capture Default true /// bool EnableErrorLogger { get; set; } /// /// 获得/设置 是否启用日志记录功能 默认 true 启用 - /// Get/Set Whether to Enable Logging Default true + /// Gets or sets Whether to Enable Logging Default true /// 设置 false 后关闭记录日志功能 /// Set false to disable logging /// @@ -39,7 +39,7 @@ public interface IErrorLogger /// /// 获得/设置 自定义 Error 处理方法 默认 null - /// Get/Set Custom Error Handler Default null + /// Gets or sets Custom Error Handler Default null /// /// Task HandlerExceptionAsync(Exception ex); diff --git a/src/BootstrapBlazor/Components/FileIcon/FileIcon.razor.cs b/src/BootstrapBlazor/Components/FileIcon/FileIcon.razor.cs index 481f7764d02..eb5bd113bcb 100644 --- a/src/BootstrapBlazor/Components/FileIcon/FileIcon.razor.cs +++ b/src/BootstrapBlazor/Components/FileIcon/FileIcon.razor.cs @@ -22,7 +22,7 @@ public partial class FileIcon /// /// 获得/设置 文件类型扩展名 - /// Get/Set File Extension + /// Gets or sets File Extension /// 10.2.2 /// [Parameter] @@ -31,7 +31,7 @@ public partial class FileIcon /// /// 获得/设置 背景图模板 默认 null 使用内部内置的空文件 svg 图 - /// Get/Set Background Template Default null Use Internal Built-in Empty File SVG + /// Gets or sets Background Template Default null Use Internal Built-in Empty File SVG /// 10.2.2 /// [Parameter] @@ -39,7 +39,7 @@ public partial class FileIcon /// /// 获得/设置 图标类型背景色 默认 Color.Primary - /// Get/Set Icon Background Color Default Color.Primary + /// Gets or sets Icon Background Color Default Color.Primary /// 10.2.2 /// [Parameter] @@ -47,7 +47,7 @@ public partial class FileIcon /// /// 获得/设置 图标大小 默认 Color.None - /// Get/Set Icon Size Default Size.None + /// Gets or sets Icon Size Default Size.None /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Filters/EnumFilter.razor.cs b/src/BootstrapBlazor/Components/Filters/EnumFilter.razor.cs index 248104d6832..85ab9cf2251 100644 --- a/src/BootstrapBlazor/Components/Filters/EnumFilter.razor.cs +++ b/src/BootstrapBlazor/Components/Filters/EnumFilter.razor.cs @@ -20,7 +20,7 @@ public partial class EnumFilter /// /// 获得/设置 相关枚举类型 - /// Get/Set Related Enum Type + /// Gets or sets Related Enum Type /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Filters/FilterBase.cs b/src/BootstrapBlazor/Components/Filters/FilterBase.cs index 4254714298e..dc6c985655f 100644 --- a/src/BootstrapBlazor/Components/Filters/FilterBase.cs +++ b/src/BootstrapBlazor/Components/Filters/FilterBase.cs @@ -15,7 +15,7 @@ public abstract class FilterBase : BootstrapModuleComponentBase, IFilterAction { /// /// 获得/设置 实例 - /// Get/Set Instance + /// Gets or sets Instance /// [Inject] [NotNull] @@ -23,7 +23,7 @@ public abstract class FilterBase : BootstrapModuleComponentBase, IFilterAction /// /// 获得/设置 相关 Field 字段名称 - /// Get/Set Related Field Name + /// Gets or sets Related Field Name /// 10.2.2 /// [Parameter] @@ -32,7 +32,7 @@ public abstract class FilterBase : BootstrapModuleComponentBase, IFilterAction /// /// 获得/设置 是否为 HeaderRow 模式 默认 false - /// Get/Set Whether is HeaderRow Mode Default false + /// Gets or sets Whether is HeaderRow Mode Default false /// 10.2.2 /// [Parameter] @@ -40,7 +40,7 @@ public abstract class FilterBase : BootstrapModuleComponentBase, IFilterAction /// /// 获得/设置 条件数量 - /// Get/Set Condition Count + /// Gets or sets Condition Count /// 10.2.2 /// [Parameter] @@ -48,7 +48,7 @@ public abstract class FilterBase : BootstrapModuleComponentBase, IFilterAction /// /// 获得/设置 所属 TableFilter 实例 - /// Get/Set Belonging TableFilter Instance + /// Gets or sets Belonging TableFilter Instance /// [CascadingParameter, NotNull] protected TableColumnFilter? TableColumnFilter { get; set; } @@ -62,7 +62,7 @@ public abstract class FilterBase : BootstrapModuleComponentBase, IFilterAction /// /// 获得/设置 多个条件逻辑关系符号 - /// Get/Set Logical Operator for Multiple Conditions + /// Gets or sets Logical Operator for Multiple Conditions /// protected FilterLogic Logic { get; set; } diff --git a/src/BootstrapBlazor/Components/Filters/FilterButton.razor.cs b/src/BootstrapBlazor/Components/Filters/FilterButton.razor.cs index 972e1b66a95..03202d4a61e 100644 --- a/src/BootstrapBlazor/Components/Filters/FilterButton.razor.cs +++ b/src/BootstrapBlazor/Components/Filters/FilterButton.razor.cs @@ -13,7 +13,7 @@ public partial class FilterButton : Dropdown { /// /// 获得/设置 清除过滤条件时的回调方法 - /// Get/Set Callback Method When Clearing Filter Conditions + /// Gets or sets Callback Method When Clearing Filter Conditions /// 10.2.2 /// [Parameter] @@ -21,7 +21,7 @@ public partial class FilterButton : Dropdown /// /// 获得/设置 过滤按钮图标 - /// Get/Set Filter Button Icon + /// Gets or sets Filter Button Icon /// 10.2.2 /// [Parameter] @@ -29,7 +29,7 @@ public partial class FilterButton : Dropdown /// /// 获得/设置 重置按钮图标 - /// Get/Set Reset Button Icon + /// Gets or sets Reset Button Icon /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Filters/FilterKeyValueAction.cs b/src/BootstrapBlazor/Components/Filters/FilterKeyValueAction.cs index b59bfa16b8d..ded7b29b830 100644 --- a/src/BootstrapBlazor/Components/Filters/FilterKeyValueAction.cs +++ b/src/BootstrapBlazor/Components/Filters/FilterKeyValueAction.cs @@ -16,33 +16,33 @@ public class FilterKeyValueAction { /// /// 获得/设置 Filter 项字段名称 - /// Get/Set Filter Item Field Name + /// Gets or sets Filter Item Field Name /// public string? FieldKey { get; set; } /// /// 获得/设置 Filter 项字段值 - /// Get/Set Filter Item Field Value + /// Gets or sets Filter Item Field Value /// public object? FieldValue { get; set; } /// /// 获得/设置 Filter 项与其他 Filter 逻辑关系 - /// Get/Set Logical Relationship between Filter Item and other Filters + /// Gets or sets Logical Relationship between Filter Item and other Filters /// [JsonConverter(typeof(JsonStringEnumConverter))] public FilterLogic FilterLogic { get; set; } /// /// 获得/设置 Filter 条件行为 - /// Get/Set Filter Condition Behavior + /// Gets or sets Filter Condition Behavior /// [JsonConverter(typeof(JsonStringEnumConverter))] public FilterAction FilterAction { get; set; } /// /// 获得/设置 子过滤条件集合 - /// Get/Set Child Filter Condition Collection + /// Gets or sets Child Filter Condition Collection /// public List Filters { get; set; } = []; } diff --git a/src/BootstrapBlazor/Components/Filters/FilterLogicItem.razor.cs b/src/BootstrapBlazor/Components/Filters/FilterLogicItem.razor.cs index e3df2afd460..3d3073fb0c2 100644 --- a/src/BootstrapBlazor/Components/Filters/FilterLogicItem.razor.cs +++ b/src/BootstrapBlazor/Components/Filters/FilterLogicItem.razor.cs @@ -15,7 +15,7 @@ public partial class FilterLogicItem { /// /// 获得/设置 逻辑运算符 - /// Get/Set Logical Operator + /// Gets or sets Logical Operator /// 10.2.2 /// [Parameter] @@ -23,7 +23,7 @@ public partial class FilterLogicItem /// /// 获得/设置 逻辑运算符改变回调方法 - /// Get/Set Logical Operator Change Callback Method + /// Gets or sets Logical Operator Change Callback Method /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Filters/FilterProvider.razor.cs b/src/BootstrapBlazor/Components/Filters/FilterProvider.razor.cs index 12924a451dd..600a703cfe1 100644 --- a/src/BootstrapBlazor/Components/Filters/FilterProvider.razor.cs +++ b/src/BootstrapBlazor/Components/Filters/FilterProvider.razor.cs @@ -15,7 +15,7 @@ public partial class FilterProvider { /// /// 获得/设置 重置按钮文本 - /// Get/Set Reset Button Text + /// Gets or sets Reset Button Text /// 10.2.2 /// [Parameter] @@ -24,7 +24,7 @@ public partial class FilterProvider /// /// 获得/设置 过滤按钮文本 - /// Get/Set Filter Button Text + /// Gets or sets Filter Button Text /// 10.2.2 /// [Parameter] @@ -33,7 +33,7 @@ public partial class FilterProvider /// /// 获得/设置 增加过滤条件图标 - /// Get/Set Add Filter Condition Icon + /// Gets or sets Add Filter Condition Icon /// 10.2.2 /// [Parameter] @@ -41,7 +41,7 @@ public partial class FilterProvider /// /// 获得/设置 减少过滤条件图标 - /// Get/Set Remove Filter Condition Icon + /// Gets or sets Remove Filter Condition Icon /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Filters/IFilter.cs b/src/BootstrapBlazor/Components/Filters/IFilter.cs index 75d15790417..0ad4a804b1a 100644 --- a/src/BootstrapBlazor/Components/Filters/IFilter.cs +++ b/src/BootstrapBlazor/Components/Filters/IFilter.cs @@ -13,7 +13,7 @@ public interface IFilter { /// /// 获得/设置 本过滤器相关 IFilterAction 实例 - /// Get/Set Related IFilterAction Instance of this Filter + /// Gets or sets Related IFilterAction Instance of this Filter /// [NotNull] IFilterAction? FilterAction { get; set; } diff --git a/src/BootstrapBlazor/Components/Filters/MultiFilter.razor.cs b/src/BootstrapBlazor/Components/Filters/MultiFilter.razor.cs index c05c8a4fd40..9e0e14138d0 100644 --- a/src/BootstrapBlazor/Components/Filters/MultiFilter.razor.cs +++ b/src/BootstrapBlazor/Components/Filters/MultiFilter.razor.cs @@ -13,7 +13,7 @@ public partial class MultiFilter { /// /// 获得/设置 搜索栏占位符 默认 nul 使用资源文件中值 - /// Get/Set Search Placeholder Default null Use Resource File Value + /// Gets or sets Search Placeholder Default null Use Resource File Value /// 10.2.2 /// [Parameter] @@ -21,7 +21,7 @@ public partial class MultiFilter /// /// 获得/设置 全选按钮文本 默认 nul 使用资源文件中值 - /// Get/Set Select All Button Text Default null Use Resource File Value + /// Gets or sets Select All Button Text Default null Use Resource File Value /// 10.2.2 /// [Parameter] @@ -29,7 +29,7 @@ public partial class MultiFilter /// /// 获得/设置 是否显示搜索栏 默认 true - /// Get/Set Whether to Show Search Bar Default true + /// Gets or sets Whether to Show Search Bar Default true /// 10.2.2 /// [Parameter] @@ -53,7 +53,7 @@ public partial class MultiFilter /// /// 获得/设置 Loading 模板 - /// Get/Set Loading Template + /// Gets or sets Loading Template /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Filters/NotSupportFilter.razor.cs b/src/BootstrapBlazor/Components/Filters/NotSupportFilter.razor.cs index 691528b2499..e73ce8bb8b8 100644 --- a/src/BootstrapBlazor/Components/Filters/NotSupportFilter.razor.cs +++ b/src/BootstrapBlazor/Components/Filters/NotSupportFilter.razor.cs @@ -13,7 +13,7 @@ public partial class NotSupportFilter { /// /// 获得/设置 不支持过滤类型提示信息 默认 null 读取资源文件内容 - /// Get/Set Not Supported Filter Type Message Default null Read Resource File Content + /// Gets or sets Not Supported Filter Type Message Default null Read Resource File Content /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Filters/SearchFilterAction.cs b/src/BootstrapBlazor/Components/Filters/SearchFilterAction.cs index cebf6679206..73d1602a31f 100644 --- a/src/BootstrapBlazor/Components/Filters/SearchFilterAction.cs +++ b/src/BootstrapBlazor/Components/Filters/SearchFilterAction.cs @@ -16,19 +16,19 @@ public class SearchFilterAction(string name, object? value, FilterAction action { /// /// 获得/设置 过滤条件名称 - /// Get/Set Filter Condition Name + /// Gets or sets Filter Condition Name /// public string Name { get; set; } = name; /// /// 获得/设置 过滤条件值 - /// Get/Set Filter Condition Value + /// Gets or sets Filter Condition Value /// public object? Value { get; set; } = value; /// /// 获得/设置 过滤条件关系运算符 - /// Get/Set Filter Condition Relation Operator + /// Gets or sets Filter Condition Relation Operator /// public FilterAction Action { get; set; } = action; diff --git a/src/BootstrapBlazor/Components/Filters/SerializeFilterAction.cs b/src/BootstrapBlazor/Components/Filters/SerializeFilterAction.cs index 10024d5bfe4..6f9ea422060 100644 --- a/src/BootstrapBlazor/Components/Filters/SerializeFilterAction.cs +++ b/src/BootstrapBlazor/Components/Filters/SerializeFilterAction.cs @@ -13,7 +13,7 @@ public sealed class SerializeFilterAction : IFilterAction { /// /// 获得/设置 过滤条件集合 - /// Get/Set Filter Condition Collection + /// Gets or sets Filter Condition Collection /// public FilterKeyValueAction? Filter { get; set; } diff --git a/src/BootstrapBlazor/Components/Filters/TableColumnFilter.razor.cs b/src/BootstrapBlazor/Components/Filters/TableColumnFilter.razor.cs index db92cde309b..ad746c5af51 100644 --- a/src/BootstrapBlazor/Components/Filters/TableColumnFilter.razor.cs +++ b/src/BootstrapBlazor/Components/Filters/TableColumnFilter.razor.cs @@ -15,7 +15,7 @@ public partial class TableColumnFilter : IFilter { /// /// 获得/设置 是否 active - /// Get/Set Whether is active + /// Gets or sets Whether is active /// 10.2.2 /// [Parameter] @@ -23,7 +23,7 @@ public partial class TableColumnFilter : IFilter /// /// 获得/设置 过滤图标 - /// Get/Set Filter Icon + /// Gets or sets Filter Icon /// 10.2.2 /// [Parameter] @@ -31,7 +31,7 @@ public partial class TableColumnFilter : IFilter /// /// 获得/设置 不支持过滤类型提示信息 默认 null 读取资源文件内容 - /// Get/Set Not Supported Filter Type Message Default null Read Resource File Content + /// Gets or sets Not Supported Filter Type Message Default null Read Resource File Content /// 10.2.2 /// [Parameter] @@ -41,7 +41,7 @@ public partial class TableColumnFilter : IFilter /// /// 获得/设置 不支持过滤类型提示信息 默认 null 读取资源文件内容 - /// Get/Set Not Supported Filter Type Message Default null Read Resource File Content + /// Gets or sets Not Supported Filter Type Message Default null Read Resource File Content /// 10.2.2 /// [Parameter] @@ -58,7 +58,7 @@ public partial class TableColumnFilter : IFilter /// /// 获得/设置 是否为 HeaderRow 模式 默认 false - /// Get/Set Whether is HeaderRow Mode Default false + /// Gets or sets Whether is HeaderRow Mode Default false /// 10.2.2 /// [Parameter] @@ -66,7 +66,7 @@ public partial class TableColumnFilter : IFilter /// /// 获得/设置 ITable 实例 - /// Get/Set ITable Instance + /// Gets or sets ITable Instance /// 10.2.2 /// [Parameter] @@ -91,7 +91,7 @@ public partial class TableColumnFilter : IFilter /// /// 获得/设置 过滤条件 IFilterAction 接口 - /// Get/Set Filter Condition IFilterAction Interface + /// Gets or sets Filter Condition IFilterAction Interface /// [NotNull] public IFilterAction? FilterAction { get; set; } diff --git a/src/BootstrapBlazor/Components/FlipClock/FlipClock.razor.cs b/src/BootstrapBlazor/Components/FlipClock/FlipClock.razor.cs index 65003caaf28..e9ec52cfced 100644 --- a/src/BootstrapBlazor/Components/FlipClock/FlipClock.razor.cs +++ b/src/BootstrapBlazor/Components/FlipClock/FlipClock.razor.cs @@ -14,7 +14,7 @@ public partial class FlipClock { /// /// 获得/设置 是否显示 Year 默认 false - /// Get/Set Whether to Show Year Default false + /// Gets or sets Whether to Show Year Default false /// 10.2.2 /// [Parameter] @@ -22,7 +22,7 @@ public partial class FlipClock /// /// 获得/设置 是否显示 Month 默认 false - /// Get/Set Whether to Show Month Default false + /// Gets or sets Whether to Show Month Default false /// 10.2.2 /// [Parameter] @@ -30,7 +30,7 @@ public partial class FlipClock /// /// 获得/设置 是否显示 Day 默认 false - /// Get/Set Whether to Show Day Default false + /// Gets or sets Whether to Show Day Default false /// 10.2.2 /// [Parameter] @@ -38,7 +38,7 @@ public partial class FlipClock /// /// 获得/设置 是否显示 Hour 默认 true - /// Get/Set Whether to Show Hour Default true + /// Gets or sets Whether to Show Hour Default true /// 10.2.2 /// [Parameter] @@ -46,7 +46,7 @@ public partial class FlipClock /// /// 获得/设置 是否显示 Minute 默认 true - /// Get/Set Whether to Show Minute Default true + /// Gets or sets Whether to Show Minute Default true /// 10.2.2 /// [Parameter] @@ -54,7 +54,7 @@ public partial class FlipClock /// /// 获得/设置 是否显示 Second 默认 true - /// Get/Set Whether to Show Second Default true + /// Gets or sets Whether to Show Second Default true /// 10.2.2 /// [Parameter] @@ -62,7 +62,7 @@ public partial class FlipClock /// /// 获得/设置 计时结束回调方法 默认 null - /// Get/Set Timer Completed Callback Method Default null + /// Gets or sets Timer Completed Callback Method Default null /// 10.2.2 /// [Parameter] @@ -70,7 +70,7 @@ public partial class FlipClock /// /// 获得/设置 显示模式 默认 - /// Get/Set View Mode Default + /// Gets or sets View Mode Default /// 10.2.2 /// [Parameter] @@ -78,7 +78,7 @@ public partial class FlipClock /// /// 获得/设置 组件高度 默认 null 未设置使用样式默认值 200px; - /// Get/Set Component Height Default null Use Style Default Value if not set 200px; + /// Gets or sets Component Height Default null Use Style Default Value if not set 200px; /// 10.2.2 /// /// 支持多种单位 200px 200em 200pt 100% 等 @@ -87,7 +87,7 @@ public partial class FlipClock /// /// 获得/设置 组件背景色 默认 null 未设置使用样式默认值 radial-gradient(ellipse at center, rgba(150, 150, 150, 1) 0%, rgba(89, 89, 89, 1) 100%); - /// Get/Set Component Background Color Default null Use Style Default Value if not set radial-gradient(ellipse at center, rgba(150, 150, 150, 1) 0%, rgba(89, 89, 89, 1) 100%); + /// Gets or sets Component Background Color Default null Use Style Default Value if not set radial-gradient(ellipse at center, rgba(150, 150, 150, 1) 0%, rgba(89, 89, 89, 1) 100%); /// 10.2.2 /// [Parameter] @@ -95,7 +95,7 @@ public partial class FlipClock /// /// 获得/设置 组件字体大小 默认 null 未设置使用样式默认值 80px; - /// Get/Set Component Font Size Default null Use Style Default Value if not set 80px; + /// Gets or sets Component Font Size Default null Use Style Default Value if not set 80px; /// 10.2.2 /// [Parameter] @@ -103,7 +103,7 @@ public partial class FlipClock /// /// 获得/设置 组件卡片宽度 默认 null 未设置使用样式默认值 60px; - /// Get/Set Component Card Width Default null Use Style Default Value if not set 60px; + /// Gets or sets Component Card Width Default null Use Style Default Value if not set 60px; /// 10.2.2 /// [Parameter] @@ -111,7 +111,7 @@ public partial class FlipClock /// /// 获得/设置 组件卡片高度 默认 null 未设置使用样式默认值 90px; - /// Get/Set Component Card Height Default null Use Style Default Value if not set 90px; + /// Gets or sets Component Card Height Default null Use Style Default Value if not set 90px; /// 10.2.2 /// [Parameter] @@ -119,7 +119,7 @@ public partial class FlipClock /// /// 获得/设置 组件卡片字体颜色 默认 null 未设置使用样式默认值 #ccc; - /// Get/Set Component Card Font Color Default null Use Style Default Value if not set #ccc; + /// Gets or sets Component Card Font Color Default null Use Style Default Value if not set #ccc; /// 10.2.2 /// [Parameter] @@ -127,7 +127,7 @@ public partial class FlipClock /// /// 获得/设置 组件卡片背景颜色 默认 null 未设置使用样式默认值 #333; - /// Get/Set Component Card Background Color Default null Use Style Default Value if not set #333; + /// Gets or sets Component Card Background Color Default null Use Style Default Value if not set #333; /// 10.2.2 /// [Parameter] @@ -135,7 +135,7 @@ public partial class FlipClock /// /// 获得/设置 组件卡片分割线高度 默认 null 未设置使用样式默认值 1px; - /// Get/Set Component Card Divider Height Default null Use Style Default Value if not set 1px; + /// Gets or sets Component Card Divider Height Default null Use Style Default Value if not set 1px; /// 10.2.2 /// [Parameter] @@ -143,7 +143,7 @@ public partial class FlipClock /// /// 获得/设置 组件卡片分割线颜色 默认 null 未设置使用样式默认值 rgba(0, 0, 0, .4); - /// Get/Set Component Card Divider Color Default null Use Style Default Value if not set rgba(0, 0, 0, .4); + /// Gets or sets Component Card Divider Color Default null Use Style Default Value if not set rgba(0, 0, 0, .4); /// 10.2.2 /// [Parameter] @@ -151,7 +151,7 @@ public partial class FlipClock /// /// 获得/设置 组件卡片间隔 默认 null 未设置使用样式默认值 5; - /// Get/Set Component Card Margin Default null Use Style Default Value if not set 5; + /// Gets or sets Component Card Margin Default null Use Style Default Value if not set 5; /// 10.2.2 /// [Parameter] @@ -159,7 +159,7 @@ public partial class FlipClock /// /// 获得/设置 组件卡片组间隔 默认 null 未设置使用样式默认值 20; - /// Get/Set Component Card Group Margin Default null Use Style Default Value if not set 20; + /// Gets or sets Component Card Group Margin Default null Use Style Default Value if not set 20; /// 10.2.2 /// [Parameter] @@ -167,7 +167,7 @@ public partial class FlipClock /// /// 获得/设置 倒计时或者计时的开始时间 默认 模式下生效 - /// Get/Set Start Time for Countdown or Count Default Effective in Mode + /// Gets or sets Start Time for Countdown or Count Default Effective in Mode /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Footer/Footer.razor.cs b/src/BootstrapBlazor/Components/Footer/Footer.razor.cs index 660d8c63ca5..520333a0a4e 100644 --- a/src/BootstrapBlazor/Components/Footer/Footer.razor.cs +++ b/src/BootstrapBlazor/Components/Footer/Footer.razor.cs @@ -22,7 +22,7 @@ public partial class Footer /// /// 获得/设置 Footer 显示文字 - /// Get/Set Footer Text + /// Gets or sets Footer Text /// 10.2.2 /// [Parameter] @@ -30,7 +30,7 @@ public partial class Footer /// /// 获得/设置 Footer 组件中返回顶端按钮控制的滚动条所在组件 设置 为 true 时生效 - /// Get/Set The component where the scrollbar controlled by the back-to-top button in the Footer component is located. Effective when is true + /// Gets or sets The component where the scrollbar controlled by the back-to-top button in the Footer component is located. Effective when is true /// 10.2.2 /// [Parameter] @@ -38,7 +38,7 @@ public partial class Footer /// /// 获得/设置 内容 - /// Get/Set Content + /// Gets or sets Content /// 10.2.2 /// [Parameter] @@ -46,7 +46,7 @@ public partial class Footer /// /// 获得/设置 是否显示 Goto 小组件 默认 true 显示 - /// Get/Set Whether to Show Goto Widget Default true + /// Gets or sets Whether to Show Goto Widget Default true /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/FullScreen/FullScreenButton.razor.cs b/src/BootstrapBlazor/Components/FullScreen/FullScreenButton.razor.cs index bee58dc2334..a65559aa5bb 100644 --- a/src/BootstrapBlazor/Components/FullScreen/FullScreenButton.razor.cs +++ b/src/BootstrapBlazor/Components/FullScreen/FullScreenButton.razor.cs @@ -13,7 +13,7 @@ public partial class FullScreenButton { /// /// 获得/设置 全屏图标 默认 fa-solid fa-maximize - /// Get/Set Full Screen Icon Default fa-solid fa-maximize + /// Gets or sets Full Screen Icon Default fa-solid fa-maximize /// 10.2.2 /// [Parameter] @@ -23,7 +23,7 @@ public partial class FullScreenButton /// /// 获得/设置 退出全屏图标 默认 fa-solid fa-compress - /// Get/Set Exit Full Screen Icon Default fa-solid fa-compress + /// Gets or sets Exit Full Screen Icon Default fa-solid fa-compress /// 10.2.2 /// [Parameter] @@ -31,7 +31,7 @@ public partial class FullScreenButton /// /// 获得/设置 全屏元素 Id 默认为 null - /// Get/Set Full Screen Element Id Default null + /// Gets or sets Full Screen Element Id Default null /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/FullScreen/FullScreenOption.cs b/src/BootstrapBlazor/Components/FullScreen/FullScreenOption.cs index 1951301a113..31d1654f303 100644 --- a/src/BootstrapBlazor/Components/FullScreen/FullScreenOption.cs +++ b/src/BootstrapBlazor/Components/FullScreen/FullScreenOption.cs @@ -13,19 +13,19 @@ public class FullScreenOption { /// /// 获得/设置 要全屏的 HTML Element 实例 - /// Get/Set HTML Element Instance to be Full Screen + /// Gets or sets HTML Element Instance to be Full Screen /// public ElementReference Element { get; set; } /// /// 获得/设置 要全屏的 HTML Element Id - /// Get/Set HTML Element Id to be Full Screen + /// Gets or sets HTML Element Id to be Full Screen /// public string? Id { get; set; } /// /// 获得/设置 要全屏的 HTML css selector - /// Get/Set HTML css selector to be Full Screen + /// Gets or sets HTML css selector to be Full Screen /// public string? Selector { get; set; } } diff --git a/src/BootstrapBlazor/Components/Geolocation/GeolocationPosition.cs b/src/BootstrapBlazor/Components/Geolocation/GeolocationPosition.cs index db7bb2d0387..dc884c38a6d 100644 --- a/src/BootstrapBlazor/Components/Geolocation/GeolocationPosition.cs +++ b/src/BootstrapBlazor/Components/Geolocation/GeolocationPosition.cs @@ -13,81 +13,81 @@ public class GeolocationPosition { /// /// 获得/设置 纬度 - /// Get/Set Latitude + /// Gets or sets Latitude /// /// public decimal Latitude { get; set; } /// /// 获得/设置 经度 - /// Get/Set Longitude + /// Gets or sets Longitude /// /// public decimal Longitude { get; set; } /// /// 获得/设置 位置精度 - /// Get/Set Accuracy + /// Gets or sets Accuracy /// public decimal Accuracy { get; set; } /// /// 获得/设置 海拔高度单位米 - /// Get/Set Altitude (meters) + /// Gets or sets Altitude (meters) /// public decimal Altitude { get; set; } /// /// 获得/设置 海拔精度 - /// Get/Set Altitude Accuracy + /// Gets or sets Altitude Accuracy /// public decimal AltitudeAccuracy { get; set; } /// /// 获得/设置 方向 从正北开始以度计 - /// Get/Set Heading (degrees relative to true north) + /// Gets or sets Heading (degrees relative to true north) /// public decimal Heading { get; set; } /// /// 获得/设置 速度 以米/每秒计 - /// Get/Set Speed (meters/second) + /// Gets or sets Speed (meters/second) /// public decimal Speed { get; set; } /// /// 获得/设置 时间戳 - /// Get/Set Timestamp + /// Gets or sets Timestamp /// public long Timestamp { get; set; } /// /// 获得/设置 时间 - /// Get/Set Time + /// Gets or sets Time /// public DateTime LastUpdateTime { get => UnixTimeStampToDateTime(Timestamp); } /// /// 获得/设置 移动距离 - /// Get/Set Moving Distance + /// Gets or sets Moving Distance /// public decimal CurrentDistance { get; set; } = 0.0M; /// /// 获得/设置 总移动距离 - /// Get/Set Total Moving Distance + /// Gets or sets Total Moving Distance /// public decimal TotalDistance { get; set; } = 0.0M; /// /// 获得/设置 最后一次获取到的纬度 - /// Get/Set Last Acquired Latitude + /// Gets or sets Last Acquired Latitude /// public decimal LastLat { get; set; } /// /// 获得/设置 最后一次获取到的经度 - /// Get/Set Last Acquired Longitude + /// Gets or sets Last Acquired Longitude /// public decimal LastLong { get; set; } diff --git a/src/BootstrapBlazor/Components/GoTop/GoTop.razor.cs b/src/BootstrapBlazor/Components/GoTop/GoTop.razor.cs index 6876dfafaed..722f2aaa6eb 100644 --- a/src/BootstrapBlazor/Components/GoTop/GoTop.razor.cs +++ b/src/BootstrapBlazor/Components/GoTop/GoTop.razor.cs @@ -15,7 +15,7 @@ public partial class GoTop { /// /// 获得/设置 返回顶端 Icon 属性 - /// Get/Set Back to Top Icon + /// Gets or sets Back to Top Icon /// 10.2.2 /// [Parameter] @@ -23,7 +23,7 @@ public partial class GoTop /// /// 获得/设置 滚动条所在组件 - /// Get/Set Scroll Container Component + /// Gets or sets Scroll Container Component /// 10.2.2 /// [Parameter] @@ -31,7 +31,7 @@ public partial class GoTop /// /// 获得/设置 滚动行为 默认 ScrollIntoViewBehavior.Smooth - /// Get/Set Scroll Behavior Default ScrollIntoViewBehavior.Smooth + /// Gets or sets Scroll Behavior Default ScrollIntoViewBehavior.Smooth /// 10.2.2 /// [Parameter] @@ -39,7 +39,7 @@ public partial class GoTop /// /// 获得/设置 鼠标悬停提示文字信息 - /// Get/Set Tooltip Text + /// Gets or sets Tooltip Text /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/GroupBox/GroupBox.razor.cs b/src/BootstrapBlazor/Components/GroupBox/GroupBox.razor.cs index a5fee01513e..5e6c4bf0e26 100644 --- a/src/BootstrapBlazor/Components/GroupBox/GroupBox.razor.cs +++ b/src/BootstrapBlazor/Components/GroupBox/GroupBox.razor.cs @@ -17,7 +17,7 @@ public sealed partial class GroupBox /// /// 获得/设置 子组件 - /// Get/Set Child Content + /// Gets or sets Child Content /// 10.2.2 /// [Parameter] @@ -25,7 +25,7 @@ public sealed partial class GroupBox /// /// 获得/设置 Title 属性 默认为 null - /// Get/Set Title Property Default null + /// Gets or sets Title Property Default null /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/HtmlTag/Link.razor.cs b/src/BootstrapBlazor/Components/HtmlTag/Link.razor.cs index a3a937b7260..19bf4ea4420 100644 --- a/src/BootstrapBlazor/Components/HtmlTag/Link.razor.cs +++ b/src/BootstrapBlazor/Components/HtmlTag/Link.razor.cs @@ -13,7 +13,7 @@ public partial class Link { /// /// 获得/设置 href 属性值 - /// Get/Set href Property Value + /// Gets or sets href Property Value /// 10.2.2 /// [Parameter] @@ -22,7 +22,7 @@ public partial class Link /// /// 获得/设置 Rel 属性值, 默认 stylesheet - /// Get/Set Rel Property Value, Default stylesheet + /// Gets or sets Rel Property Value, Default stylesheet /// 10.2.2 /// [Parameter] @@ -30,7 +30,7 @@ public partial class Link /// /// 获得/设置 版本号 默认 null 自动生成 - /// Get/Set Version Number Default null Auto Generated + /// Gets or sets Version Number Default null Auto Generated /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/HtmlTag/Script.razor.cs b/src/BootstrapBlazor/Components/HtmlTag/Script.razor.cs index 82986bbb116..d6c5c82069f 100644 --- a/src/BootstrapBlazor/Components/HtmlTag/Script.razor.cs +++ b/src/BootstrapBlazor/Components/HtmlTag/Script.razor.cs @@ -13,7 +13,7 @@ public partial class Script { /// /// 获得/设置 src 属性值 - /// Get/Set src Property Value + /// Gets or sets src Property Value /// 10.2.2 /// [Parameter] @@ -22,7 +22,7 @@ public partial class Script /// /// 获得/设置 版本号 默认 null 自动生成 - /// Get/Set Version Number Default null Auto Generated + /// Gets or sets Version Number Default null Auto Generated /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/IPLocator/BaiDuIPLocator.cs b/src/BootstrapBlazor/Components/IPLocator/BaiDuIPLocator.cs index 87cc564ae9a..f4d290f7e17 100644 --- a/src/BootstrapBlazor/Components/IPLocator/BaiDuIPLocator.cs +++ b/src/BootstrapBlazor/Components/IPLocator/BaiDuIPLocator.cs @@ -24,13 +24,13 @@ public BaiDuIPLocator() /// /// 获得/设置 详细地址信息 - /// Get/Set Detailed Address Information + /// Gets or sets Detailed Address Information /// public IEnumerable? Data { get; set; } /// /// 获得/设置 结果状态返回码 为 0 时通讯正常 - /// Get/Set Result Status Return Code. 0 means communication is normal + /// Gets or sets Result Status Return Code. 0 means communication is normal /// public string? Status { get; set; } @@ -63,7 +63,7 @@ public struct LocationInfo { /// /// 获得/设置 定位信息 - /// Get/Set Location Information + /// Gets or sets Location Information /// public string? Location { get; set; } } diff --git a/src/BootstrapBlazor/Components/IPLocator/DefaultIPLocator.cs b/src/BootstrapBlazor/Components/IPLocator/DefaultIPLocator.cs index d0845e44e7c..8043af58599 100644 --- a/src/BootstrapBlazor/Components/IPLocator/DefaultIPLocator.cs +++ b/src/BootstrapBlazor/Components/IPLocator/DefaultIPLocator.cs @@ -25,7 +25,7 @@ public class DefaultIPLocator : IIPLocator /// /// 获得/设置 IP定位器请求地址 - /// Get/Set IP Locator Request URL + /// Gets or sets IP Locator Request URL /// public string? Url { get; set; } diff --git a/src/BootstrapBlazor/Components/IPLocator/IIPLocator.cs b/src/BootstrapBlazor/Components/IPLocator/IIPLocator.cs index a99916ac572..31bfdab4d4d 100644 --- a/src/BootstrapBlazor/Components/IPLocator/IIPLocator.cs +++ b/src/BootstrapBlazor/Components/IPLocator/IIPLocator.cs @@ -22,7 +22,7 @@ public interface IIPLocator /// /// 获得/设置 接口地址 - /// Get/Set Interface URL + /// Gets or sets Interface URL /// public string? Url { get; set; } } diff --git a/src/BootstrapBlazor/Components/IPLocator/IPLocatorOption.cs b/src/BootstrapBlazor/Components/IPLocator/IPLocatorOption.cs index ee75713bd7b..d6bfd202acc 100644 --- a/src/BootstrapBlazor/Components/IPLocator/IPLocatorOption.cs +++ b/src/BootstrapBlazor/Components/IPLocator/IPLocatorOption.cs @@ -17,13 +17,13 @@ public class IPLocatorOption { /// /// 获得/设置 定位器创建方法未设置使用内部定位器 - /// Get/Set Locator Factory Method. Use internal locator if not set + /// Gets or sets Locator Factory Method. Use internal locator if not set /// public Func? LocatorFactory { get; set; } /// /// 获得/设置 IP地址请求超时时间 默认为 3000 毫秒 - /// Get/Set IP Address Request Timeout. Default 3000 ms + /// Gets or sets IP Address Request Timeout. Default 3000 ms /// public int RequestTimeout { get; set; } = 3000; @@ -35,19 +35,19 @@ public class IPLocatorOption /// /// 获得/设置 IP地址 - /// Get/Set IP Address + /// Gets or sets IP Address /// protected internal string? IP { get; set; } /// /// 获得/设置 HttpClient 实体类 - /// Get/Set HttpClient Instance + /// Gets or sets HttpClient Instance /// protected internal HttpClient? HttpClient { get; set; } /// /// 获得/设置 ILogger 实体类 - /// Get/Set ILogger Instance + /// Gets or sets ILogger Instance /// protected internal ILogger? Logger { get; set; } } diff --git a/src/BootstrapBlazor/Components/Icon/BootstrapBlazorIcon.razor.cs b/src/BootstrapBlazor/Components/Icon/BootstrapBlazorIcon.razor.cs index b0093e6b5e7..46f4c2cc55e 100644 --- a/src/BootstrapBlazor/Components/Icon/BootstrapBlazorIcon.razor.cs +++ b/src/BootstrapBlazor/Components/Icon/BootstrapBlazorIcon.razor.cs @@ -13,7 +13,7 @@ public partial class BootstrapBlazorIcon { /// /// 获得/设置 图标名称 - /// Get/Set Icon Name + /// Gets or sets Icon Name /// 10.2.2 /// /// @@ -26,7 +26,7 @@ public partial class BootstrapBlazorIcon /// /// 获得/设置 是否为 svg sprites 默认 false - /// Get/Set Whether is svg sprites Default false + /// Gets or sets Whether is svg sprites Default false /// 10.2.2 /// [Parameter] @@ -34,7 +34,7 @@ public partial class BootstrapBlazorIcon /// /// 获得/设置 Svg Sprites 路径 - /// Get/Set Svg Sprites Path + /// Gets or sets Svg Sprites Path /// 10.2.2 /// [Parameter] @@ -42,7 +42,7 @@ public partial class BootstrapBlazorIcon /// /// 获得/设置 子组件 - /// Get/Set Child Content + /// Gets or sets Child Content /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Icon/SvgIcon.razor.cs b/src/BootstrapBlazor/Components/Icon/SvgIcon.razor.cs index 52550275328..4728d9a60b9 100644 --- a/src/BootstrapBlazor/Components/Icon/SvgIcon.razor.cs +++ b/src/BootstrapBlazor/Components/Icon/SvgIcon.razor.cs @@ -13,7 +13,7 @@ public partial class SvgIcon { /// /// 获得/设置 图标名称 - /// Get/Set Icon Name + /// Gets or sets Icon Name /// [Parameter, NotNull] [EditorRequired] diff --git a/src/BootstrapBlazor/Components/ImagePreviewer/ImagePreviewer.razor.cs b/src/BootstrapBlazor/Components/ImagePreviewer/ImagePreviewer.razor.cs index fe5f86f6343..e34e2ca5590 100644 --- a/src/BootstrapBlazor/Components/ImagePreviewer/ImagePreviewer.razor.cs +++ b/src/BootstrapBlazor/Components/ImagePreviewer/ImagePreviewer.razor.cs @@ -29,7 +29,7 @@ public partial class ImagePreviewer /// /// 获得/设置 原生 z-index 属性 默认 2050 - /// Get/Set z-index property Default 2050 + /// Gets or sets z-index property Default 2050 /// 10.2.2 /// [Parameter] @@ -37,7 +37,7 @@ public partial class ImagePreviewer /// /// 获得/设置 预览大图链接集合 默认 null - /// Get/Set Preview Image List Default null + /// Gets or sets Preview Image List Default null /// 10.2.2 /// [Parameter] @@ -49,7 +49,7 @@ public partial class ImagePreviewer /// /// 获得/设置 上一张图片 Icon 图标 - /// Get/Set Previous Image Icon + /// Gets or sets Previous Image Icon /// 10.2.2 /// [Parameter] @@ -57,7 +57,7 @@ public partial class ImagePreviewer /// /// 获得/设置 下一张图片 Icon 图标 - /// Get/Set Next Image Icon + /// Gets or sets Next Image Icon /// 10.2.2 /// [Parameter] @@ -65,7 +65,7 @@ public partial class ImagePreviewer /// /// 获得/设置 缩小 Icon 图标 - /// Get/Set Zoom Out Icon + /// Gets or sets Zoom Out Icon /// 10.2.2 /// [Parameter] @@ -73,7 +73,7 @@ public partial class ImagePreviewer /// /// 获得/设置 放大 Icon 图标 - /// Get/Set Zoom In Icon + /// Gets or sets Zoom In Icon /// 10.2.2 /// [Parameter] @@ -81,7 +81,7 @@ public partial class ImagePreviewer /// /// 获得/设置 向左旋转 Icon 图标 - /// Get/Set Rotate Left Icon + /// Gets or sets Rotate Left Icon /// 10.2.2 /// [Parameter] @@ -89,7 +89,7 @@ public partial class ImagePreviewer /// /// 获得/设置 向右旋转 Icon 图标 - /// Get/Set Rotate Right Icon + /// Gets or sets Rotate Right Icon /// 10.2.2 /// [Parameter] @@ -97,7 +97,7 @@ public partial class ImagePreviewer /// /// 获得/设置 预览缩放速度 默认 null 未设置取 0.015 值 - /// Get/Set Zoom Speed Default null 0.015 if not set + /// Gets or sets Zoom Speed Default null 0.015 if not set /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/ImageViewer/ImageViewer.razor.cs b/src/BootstrapBlazor/Components/ImageViewer/ImageViewer.razor.cs index 07552a63491..c8b2c05aede 100644 --- a/src/BootstrapBlazor/Components/ImageViewer/ImageViewer.razor.cs +++ b/src/BootstrapBlazor/Components/ImageViewer/ImageViewer.razor.cs @@ -27,7 +27,7 @@ public partial class ImageViewer /// /// 获得/设置 图片 Url 默认 null 必填 - /// Get/Set Image Url Default null Required + /// Gets or sets Image Url Default null Required /// 10.2.2 /// [Parameter] @@ -37,7 +37,7 @@ public partial class ImageViewer /// /// 获得/设置 图片是否异步加载 - /// Get/Set whether the image is loaded asynchronously + /// Gets or sets whether the image is loaded asynchronously /// 10.2.2 /// [Parameter] @@ -45,7 +45,7 @@ public partial class ImageViewer /// /// 获得/设置 原生 alt 属性 默认 null 未设置 - /// Get/Set Native alt Attribute Default null + /// Gets or sets Native alt Attribute Default null /// 10.2.2 /// [Parameter] @@ -53,7 +53,7 @@ public partial class ImageViewer /// /// 获得/设置 是否显示占位符 适用于大图片加载 默认 false - /// Get/Set Whether to show placeholder. Suitable for large image loading. Default false + /// Gets or sets Whether to show placeholder. Suitable for large image loading. Default false /// 10.2.2 /// [Parameter] @@ -61,7 +61,7 @@ public partial class ImageViewer /// /// 获得/设置 加载失败时是否显示错误占位符 默认 false - /// Get/Set Whether to show error placeholder when loading fails. Default false + /// Gets or sets Whether to show error placeholder when loading fails. Default false /// 10.2.2 /// [Parameter] @@ -69,7 +69,7 @@ public partial class ImageViewer /// /// 获得/设置 占位模板 未设置 或者 正在加载时显示 默认 null 未设置 - /// Get/Set Placeholder Template. Default null + /// Gets or sets Placeholder Template. Default null /// 10.2.2 /// [Parameter] @@ -77,7 +77,7 @@ public partial class ImageViewer /// /// 获得/设置 错误模板 默认 null 未设置 - /// Get/Set Error Template. Default null + /// Gets or sets Error Template. Default null /// 10.2.2 /// [Parameter] @@ -85,7 +85,7 @@ public partial class ImageViewer /// /// 获得/设置 原生 object-fit 属性 默认 fill 未设置 - /// Get/Set Native object-fit Attribute. Default fill + /// Gets or sets Native object-fit Attribute. Default fill /// 10.2.2 /// [Parameter] @@ -93,7 +93,7 @@ public partial class ImageViewer /// /// 获得/设置 原生 z-index 属性 默认 2050 - /// Get/Set Native z-index Attribute. Default 2050 + /// Gets or sets Native z-index Attribute. Default 2050 /// 10.2.2 /// [Parameter] @@ -101,7 +101,7 @@ public partial class ImageViewer /// /// 获得/设置 预览大图链接集合 默认 null - /// Get/Set Preview Image List Default null + /// Gets or sets Preview Image List Default null /// 10.2.2 /// [Parameter] @@ -109,7 +109,7 @@ public partial class ImageViewer /// /// 获得/设置 预览大图当前链接集合点开的索引 默认为 0 - /// Get/Set Index of the currently opened link in the preview image list Default 0 + /// Gets or sets Index of the currently opened link in the preview image list Default 0 /// 10.2.2 /// [Parameter] @@ -117,7 +117,7 @@ public partial class ImageViewer /// /// 获得/设置 图片加载失败时回调方法 - /// Get/Set Callback method when image loading fails + /// Gets or sets Callback method when image loading fails /// 10.2.2 /// [Parameter] @@ -125,7 +125,7 @@ public partial class ImageViewer /// /// 获得/设置 图片加载成功时回调方法 - /// Get/Set Callback method when image loading succeeds + /// Gets or sets Callback method when image loading succeeds /// 10.2.2 /// [Parameter] @@ -133,7 +133,7 @@ public partial class ImageViewer /// /// 获得/设置 图片文件图标 - /// Get/Set Image File Icon + /// Gets or sets Image File Icon /// 10.2.2 /// [Parameter] @@ -141,7 +141,7 @@ public partial class ImageViewer /// /// 获得/设置 是否交叉监听 默认 false - /// Get/Set Whether Intersection Observer. Default false + /// Gets or sets Whether Intersection Observer. Default false /// 10.2.2 /// /// @@ -153,7 +153,7 @@ public partial class ImageViewer /// /// 获得/设置 预览缩放速度 默认 null 未设置取 0.015 值 - /// Get/Set Zoom Speed Default null 0.015 if not set + /// Gets or sets Zoom Speed Default null 0.015 if not set /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Input/BootstrapInput.razor.cs b/src/BootstrapBlazor/Components/Input/BootstrapInput.razor.cs index b503f805af1..fc6b88b3793 100644 --- a/src/BootstrapBlazor/Components/Input/BootstrapInput.razor.cs +++ b/src/BootstrapBlazor/Components/Input/BootstrapInput.razor.cs @@ -13,7 +13,7 @@ public partial class BootstrapInput { /// /// 获得/设置 是否为只读 默认 false - /// Get/Set Readonly. Default false + /// Gets or sets Readonly. Default false /// 10.2.2 /// [Parameter] @@ -21,7 +21,7 @@ public partial class BootstrapInput /// /// 获得/设置 用户删除后是否自动更改为默认值 0 默认 false - /// Get/Set Whether to automatically set default value when user deletes. Default false + /// Gets or sets Whether to automatically set default value when user deletes. Default false /// 10.2.2 /// [Parameter] @@ -29,7 +29,7 @@ public partial class BootstrapInput /// /// 获得/设置 是否显示清空小按钮 默认 false - /// Get/Set Whether to show clear button. Default false + /// Gets or sets Whether to show clear button. Default false /// 10.2.2 /// [Parameter] @@ -39,7 +39,7 @@ public partial class BootstrapInput /// /// 获得/设置 是否显示清空小按钮 默认 false - /// Get/Set Whether to show clear button. Default false + /// Gets or sets Whether to show clear button. Default false /// 10.2.2 /// [Parameter] @@ -47,7 +47,7 @@ public partial class BootstrapInput /// /// 获得/设置 清空文本框时回调方法 默认 null - /// Get/Set Callback when clearing text box. Default null + /// Gets or sets Callback when clearing text box. Default null /// 10.2.2 /// [Parameter] @@ -55,7 +55,7 @@ public partial class BootstrapInput /// /// 获得/设置 清空小按钮图标 默认 null - /// Get/Set Clear button icon. Default null + /// Gets or sets Clear button icon. Default null /// 10.2.2 /// [Parameter] @@ -65,7 +65,7 @@ public partial class BootstrapInput /// /// 获得/设置 清空小按钮图标 默认 null - /// Get/Set Clear button icon. Default null + /// Gets or sets Clear button icon. Default null /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Input/BootstrapInputEventBase.cs b/src/BootstrapBlazor/Components/Input/BootstrapInputEventBase.cs index 2b0cff01604..3c87d9dc92a 100644 --- a/src/BootstrapBlazor/Components/Input/BootstrapInputEventBase.cs +++ b/src/BootstrapBlazor/Components/Input/BootstrapInputEventBase.cs @@ -13,7 +13,7 @@ public abstract class BootstrapInputEventBase : BootstrapInputBase /// 获得/设置 是否在文本框输入值时触发 bind-value:event="oninput" 默认 false - /// Get/Set Whether to trigger bind-value:event="oninput" when entering value in text box. Default false + /// Gets or sets Whether to trigger bind-value:event="oninput" when entering value in text box. Default false /// 10.2.2 /// /// diff --git a/src/BootstrapBlazor/Components/Input/BootstrapInputGroup.razor.cs b/src/BootstrapBlazor/Components/Input/BootstrapInputGroup.razor.cs index 3168a0f5d2a..4ad0ea5dd93 100644 --- a/src/BootstrapBlazor/Components/Input/BootstrapInputGroup.razor.cs +++ b/src/BootstrapBlazor/Components/Input/BootstrapInputGroup.razor.cs @@ -17,7 +17,7 @@ public partial class BootstrapInputGroup /// /// 获得/设置 子组件 - /// Get/Set Child Content + /// Gets or sets Child Content /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Input/BootstrapInputGroupIcon.razor.cs b/src/BootstrapBlazor/Components/Input/BootstrapInputGroupIcon.razor.cs index 2dc6f586ed8..37352d1e3b9 100644 --- a/src/BootstrapBlazor/Components/Input/BootstrapInputGroupIcon.razor.cs +++ b/src/BootstrapBlazor/Components/Input/BootstrapInputGroupIcon.razor.cs @@ -17,7 +17,7 @@ public partial class BootstrapInputGroupIcon /// /// 获得/设置 Icon - /// Get/Set Icon + /// Gets or sets Icon /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Input/BootstrapInputGroupLabel.cs b/src/BootstrapBlazor/Components/Input/BootstrapInputGroupLabel.cs index 67334a7c542..8d6c1318e25 100644 --- a/src/BootstrapBlazor/Components/Input/BootstrapInputGroupLabel.cs +++ b/src/BootstrapBlazor/Components/Input/BootstrapInputGroupLabel.cs @@ -30,7 +30,7 @@ public sealed class BootstrapInputGroupLabel : DisplayBase /// /// 获得/设置 标签宽度 默认 null 未设置自动适应 - /// Get/Set Label Width. Default null (Auto Fit) + /// Gets or sets Label Width. Default null (Auto Fit) /// 10.2.2 /// [Parameter] @@ -38,7 +38,7 @@ public sealed class BootstrapInputGroupLabel : DisplayBase /// /// 获得/设置 标签对其方式 默认 null 未设置 star 对齐 - /// Get/Set Label Alignment. Default null (Start Alignment) + /// Gets or sets Label Alignment. Default null (Start Alignment) /// 10.2.2 /// [Parameter] @@ -46,7 +46,7 @@ public sealed class BootstrapInputGroupLabel : DisplayBase /// /// 获得/设置 是否显示必填项标识 默认 false - /// Get/Set Whether to show required mark. Default false + /// Gets or sets Whether to show required mark. Default false /// 10.2.2 /// [Parameter] @@ -62,7 +62,7 @@ public sealed class BootstrapInputGroupLabel : DisplayBase /// /// 获得/设置 是否为 InputGroup 或 TableToolbar 内的标签 默认 null 未设置 - /// Get/Set Whether it is a label inside InputGroup or TableToolbar. Default null (Not set) + /// Gets or sets Whether it is a label inside InputGroup or TableToolbar. Default null (Not set) /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Input/FloatingLabel.razor.cs b/src/BootstrapBlazor/Components/Input/FloatingLabel.razor.cs index 639b0547874..9d1bc96d0aa 100644 --- a/src/BootstrapBlazor/Components/Input/FloatingLabel.razor.cs +++ b/src/BootstrapBlazor/Components/Input/FloatingLabel.razor.cs @@ -18,7 +18,7 @@ public partial class FloatingLabel /// /// 获得/设置 是否为 GroupBox 样式 默认 false - /// Get/Set Whether it is GroupBox style. Default false + /// Gets or sets Whether it is GroupBox style. Default false /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/InputNumber/BootstrapInputNumber.razor.cs b/src/BootstrapBlazor/Components/InputNumber/BootstrapInputNumber.razor.cs index 1480ec16a82..1d6d9c1cd9c 100644 --- a/src/BootstrapBlazor/Components/InputNumber/BootstrapInputNumber.razor.cs +++ b/src/BootstrapBlazor/Components/InputNumber/BootstrapInputNumber.razor.cs @@ -39,7 +39,7 @@ public partial class BootstrapInputNumber /// /// 获得/设置 数值增加时回调委托 - /// Get/Set Callback delegate when value increases + /// Gets or sets Callback delegate when value increases /// 10.2.2 /// [Parameter] @@ -47,7 +47,7 @@ public partial class BootstrapInputNumber /// /// 获得/设置 数值减少时回调委托 - /// Get/Set Callback delegate when value decreases + /// Gets or sets Callback delegate when value decreases /// 10.2.2 /// [Parameter] @@ -55,7 +55,7 @@ public partial class BootstrapInputNumber /// /// 获得/设置 最小值 - /// Get/Set Minimum Value + /// Gets or sets Minimum Value /// 10.2.2 /// [Parameter] @@ -63,7 +63,7 @@ public partial class BootstrapInputNumber /// /// 获得/设置 最大值 - /// Get/Set Maximum Value + /// Gets or sets Maximum Value /// 10.2.2 /// [Parameter] @@ -71,7 +71,7 @@ public partial class BootstrapInputNumber /// /// 获得/设置 步长 默认为 null - /// Get/Set Step. Default null + /// Gets or sets Step. Default null /// 10.2.2 /// [Parameter] @@ -79,7 +79,7 @@ public partial class BootstrapInputNumber /// /// 获得/设置 是否显示加减按钮 - /// Get/Set Whether to show increment/decrement buttons + /// Gets or sets Whether to show increment/decrement buttons /// 10.2.2 /// [Parameter] @@ -87,7 +87,7 @@ public partial class BootstrapInputNumber /// /// 获得/设置 减小数值图标 - /// Get/Set Decrement Icon + /// Gets or sets Decrement Icon /// 10.2.2 /// [Parameter] @@ -95,7 +95,7 @@ public partial class BootstrapInputNumber /// /// 获得/设置 增加数值图标 - /// Get/Set Increment Icon + /// Gets or sets Increment Icon /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Layout/Layout.razor.cs b/src/BootstrapBlazor/Components/Layout/Layout.razor.cs index c8e735ccfaf..ebac7b478c5 100644 --- a/src/BootstrapBlazor/Components/Layout/Layout.razor.cs +++ b/src/BootstrapBlazor/Components/Layout/Layout.razor.cs @@ -21,7 +21,7 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 Tab 标签头文本本地化回调方法 - /// Get/Set Localization callback method for Tab header text + /// Gets or sets Localization callback method for Tab header text /// 10.2.2 /// [Parameter] @@ -109,7 +109,7 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 关闭标签页前回调方法 - /// Get/Set Callback method before closing tab + /// Gets or sets Callback method before closing tab /// 10.2.2 /// /// @@ -121,7 +121,7 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 侧边栏状态 - /// Get/Set Sidebar status + /// Gets or sets Sidebar status /// 10.2.2 /// [Parameter] @@ -129,7 +129,7 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 侧边栏状态 - /// Get/Set Sidebar status + /// Gets or sets Sidebar status /// 10.2.2 /// [Parameter] @@ -137,7 +137,7 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 菜单手风琴效果 - /// Get/Set Menu Accordion effect + /// Gets or sets Menu Accordion effect /// 10.2.2 /// [Parameter] @@ -145,7 +145,7 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 收起展开按钮模板 - /// Get/Set Collapse/Expand button template + /// Gets or sets Collapse/Expand button template /// 10.2.2 /// [Parameter] @@ -153,7 +153,7 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 Header 模板 - /// Get/Set Header Template + /// Gets or sets Header Template /// 10.2.2 /// [Parameter] @@ -161,7 +161,7 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 Footer 模板 - /// Get/Set Footer Template + /// Gets or sets Footer Template /// 10.2.2 /// [Parameter] @@ -169,7 +169,7 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 MenuBar 图标 - /// Get/Set MenuBar Icon + /// Gets or sets MenuBar Icon /// 10.2.2 /// [Parameter] @@ -177,7 +177,7 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 Side 模板 - /// Get/Set Side Template + /// Gets or sets Side Template /// 10.2.2 /// [Parameter] @@ -185,7 +185,7 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 是否显示分割栏 默认 false 不显示 仅在 左右布局时有效 - /// Get/Set Whether to show split bar. Default false Effective only in Left-Right Layout + /// Gets or sets Whether to show split bar. Default false Effective only in Left-Right Layout /// 10.2.2 /// [Parameter] @@ -193,7 +193,7 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 是否显示分割栏 默认 false 不显示 仅在 左右布局时有效 - /// Get/Set Whether to show split bar. Default false Effective only in Left-Right Layout + /// Gets or sets Whether to show split bar. Default false Effective only in Left-Right Layout /// 10.2.2 /// [Parameter] @@ -203,7 +203,7 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 侧边栏最小宽度 默认 null 未设置 - /// Get/Set Sidebar minimum width. Default null + /// Gets or sets Sidebar minimum width. Default null /// 10.2.2 /// [Parameter] @@ -211,7 +211,7 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 侧边栏最大宽度 默认 null 未设置 - /// Get/Set Sidebar maximum width. Default null + /// Gets or sets Sidebar maximum width. Default null /// 10.2.2 /// [Parameter] @@ -219,7 +219,7 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 NotAuthorized 模板 默认 null NET6.0/7.0 有效 - /// Get/Set NotAuthorized Template. Default null. Valid in NET6.0/7.0 + /// Gets or sets NotAuthorized Template. Default null. Valid in NET6.0/7.0 /// 10.2.2 /// [Parameter] @@ -227,7 +227,7 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 NotFound 模板 默认 null NET6.0/7.0 有效 - /// Get/Set NotFound Template. Default null. Valid in NET6.0/7.0 + /// Gets or sets NotFound Template. Default null. Valid in NET6.0/7.0 /// 10.2.2 /// [Parameter] @@ -235,7 +235,7 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 NotFound 标签文本 默认 null NET6.0/7.0 有效 - /// Get/Set NotFound Tab Text. Default null. Valid in NET6.0/7.0 + /// Gets or sets NotFound Tab Text. Default null. Valid in NET6.0/7.0 /// 10.2.2 /// [Parameter] @@ -244,7 +244,7 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 侧边栏宽度,支持百分比,设置 0 时关闭宽度功能 默认值 300 - /// Get/Set Sidebar width. Supports percentage. Disable width function when set to 0. Default 300 + /// Gets or sets Sidebar width. Supports percentage. Disable width function when set to 0. Default 300 /// 10.2.2 /// [Parameter] @@ -252,7 +252,7 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 Main 模板 - /// Get/Set Main Template + /// Gets or sets Main Template /// 10.2.2 /// [Parameter] @@ -261,7 +261,7 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 侧边栏是否占满整个左侧 默认为 false - /// Get/Set Whether the sidebar fills the entire left side. Default false + /// Gets or sets Whether the sidebar fills the entire left side. Default false /// 10.2.2 /// [Parameter] @@ -269,7 +269,7 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 是否为整页面布局 默认为 false - /// Get/Set Whether it is a full page layout. Default false + /// Gets or sets Whether it is a full page layout. Default false /// 10.2.2 /// /// @@ -281,7 +281,7 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 侧边栏菜单集合 - /// Get/Set Sidebar Menu Collection + /// Gets or sets Sidebar Menu Collection /// 10.2.2 /// [Parameter] @@ -289,7 +289,7 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 是否右侧使用 Tab 组件 默认为 false 不使用 - /// Get/Set Whether to use Tab component on the right side. Default false + /// Gets or sets Whether to use Tab component on the right side. Default false /// 10.2.2 /// [Parameter] @@ -297,7 +297,7 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 是否固定多标签 Header 默认 false - /// Get/Set Whether to fix multi-tab Header. Default false + /// Gets or sets Whether to fix multi-tab Header. Default false /// 10.2.2 /// [Parameter] @@ -305,7 +305,7 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 是否仅渲染 Active 标签 - /// Get/Set Whether to render only Active Tab + /// Gets or sets Whether to render only Active Tab /// 10.2.2 /// [Parameter] @@ -313,7 +313,7 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 是否允许拖动标签页 默认 true - /// Get/Set Whether to allow dragging tabs. Default true + /// Gets or sets Whether to allow dragging tabs. Default true /// 10.2.2 /// [Parameter] @@ -321,7 +321,7 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 是否固定 Footer 组件 - /// Get/Set Whether to fix Footer component + /// Gets or sets Whether to fix Footer component /// 10.2.2 /// [Parameter] @@ -329,7 +329,7 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 是否固定 Header 组件 - /// Get/Set Whether to fix Header component + /// Gets or sets Whether to fix Header component /// 10.2.2 /// [Parameter] @@ -337,7 +337,7 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 是否显示收缩展开 Bar 默认 false - /// Get/Set Whether to show Collapse/Expand Bar. Default false + /// Gets or sets Whether to show Collapse/Expand Bar. Default false /// 10.2.2 /// [Parameter] @@ -345,7 +345,7 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 是否显示 Footer 模板 默认 false - /// Get/Set Whether to show Footer Template. Default false + /// Gets or sets Whether to show Footer Template. Default false /// 10.2.2 /// [Parameter] @@ -353,7 +353,7 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 是否显示返回顶端按钮 默认为 false 不显示 - /// Get/Set Whether to show "Back to Top" button. Default false + /// Gets or sets Whether to show "Back to Top" button. Default false /// 10.2.2 /// [Parameter] @@ -361,7 +361,7 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 点击菜单时回调委托方法 默认为 null - /// Get/Set Callback delegate method when menu is clicked. Default null + /// Gets or sets Callback delegate method when menu is clicked. Default null /// 10.2.2 /// [Parameter] @@ -369,7 +369,7 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 收缩展开回调委托 - /// Get/Set Collapse/Expand Callback Delegate + /// Gets or sets Collapse/Expand Callback Delegate /// 10.2.2 /// [Parameter] @@ -377,7 +377,7 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 默认标签页 关闭所有标签页时自动打开此地址 默认 null 未设置 - /// Get/Set Default Tab. Automatically open this address when closing all tabs. Default null + /// Gets or sets Default Tab. Automatically open this address when closing all tabs. Default null /// 10.2.2 /// [Parameter] @@ -385,7 +385,7 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 标签是否显示关闭按钮 默认 true - /// Get/Set Whether to show close button on tab. Default true + /// Gets or sets Whether to show close button on tab. Default true /// 10.2.2 /// [Parameter] @@ -393,7 +393,7 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 标签是否显示扩展按钮 默认 true - /// Get/Set Whether to show extend buttons on tab. Default true + /// Gets or sets Whether to show extend buttons on tab. Default true /// 10.2.2 /// [Parameter] @@ -401,7 +401,7 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 点击标签页是否切换地址栏 默认 true - /// Get/Set Whether to switch address bar when clicking tab. Default true + /// Gets or sets Whether to switch address bar when clicking tab. Default true /// 10.2.2 /// [Parameter] @@ -409,7 +409,7 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 授权回调方法多用于权限控制 - /// Get/Set Authorization callback method, mostly used for permission control + /// Gets or sets Authorization callback method, mostly used for permission control /// 10.2.2 /// [Parameter] @@ -417,7 +417,7 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 未授权导航地址 默认为 "/Account/Login" Cookie 模式登录页 - /// Get/Set Unauthorized navigation address. Default "/Account/Login" Cookie mode login page + /// Gets or sets Unauthorized navigation address. Default "/Account/Login" Cookie mode login page /// 10.2.2 /// [Parameter] @@ -497,7 +497,7 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 是否跳过认证逻辑 默认 false - /// Get/Set Whether to skip authentication logic. Default false + /// Gets or sets Whether to skip authentication logic. Default false /// 10.2.2 /// [Parameter] @@ -515,7 +515,7 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 是否已授权 - /// Get/Set Whether authorized + /// Gets or sets Whether authorized /// private bool _authenticated; @@ -573,7 +573,7 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 排除地址支持通配符 - /// Get/Set Exclude URLs support wildcards + /// Gets or sets Exclude URLs support wildcards /// 10.2.2 /// [Parameter] @@ -581,7 +581,7 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 Gets or sets a collection of additional assemblies that should be searched for components that can match URIs. - /// Get/Set Gets or sets a collection of additional assemblies that should be searched for components that can match URIs. + /// Gets or sets Gets or sets a collection of additional assemblies that should be searched for components that can match URIs. /// 10.2.2 /// [Parameter] @@ -589,7 +589,7 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 鼠标悬停提示文字信息 - /// Get/Set Tooltip Text + /// Gets or sets Tooltip Text /// 10.2.2 /// [Parameter] @@ -597,7 +597,7 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 更新回调方法 默认 null - /// Get/Set Update callback method. Default null + /// Gets or sets Update callback method. Default null /// 10.2.2 /// [Parameter] @@ -605,7 +605,7 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 AuthorizeRouteView 参数 - /// Get/Set AuthorizeRouteView Parameter + /// Gets or sets AuthorizeRouteView Parameter /// 10.2.2 /// [Parameter] @@ -613,7 +613,7 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 是否开启全局异常捕获 默认 null 使用 设置值 - /// Get/Set Whether to enable global exception capture. Default null. Use value. + /// Gets or sets Whether to enable global exception capture. Default null. Use value. /// 10.2.2 /// [Parameter] @@ -621,7 +621,7 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 是否记录异常到 默认 null 使用 设置值 - /// Get/Set Whether to log exceptions to . Default null. Use value. + /// Gets or sets Whether to log exceptions to . Default null. Use value. /// 10.2.2 /// [Parameter] @@ -629,7 +629,7 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 是否显示 Error 提示弹窗 默认 null 使用 设置值 - /// Get/Set Whether to show Error Toast. Default null. Use value. + /// Gets or sets Whether to show Error Toast. Default null. Use value. /// 10.2.2 /// [Parameter] @@ -637,7 +637,7 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 错误日志 弹窗标题 默认 null - /// Get/Set Error Logger Title. Default null. + /// Gets or sets Error Logger Title. Default null. /// 10.2.2 /// [Parameter] @@ -645,7 +645,7 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 自定义错误处理回调方法 - /// Get/Set Custom error handling callback method + /// Gets or sets Custom error handling callback method /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Layout/LayoutSplitBar.razor.cs b/src/BootstrapBlazor/Components/Layout/LayoutSplitBar.razor.cs index e9686feda8b..24420e016a1 100644 --- a/src/BootstrapBlazor/Components/Layout/LayoutSplitBar.razor.cs +++ b/src/BootstrapBlazor/Components/Layout/LayoutSplitBar.razor.cs @@ -13,7 +13,7 @@ public partial class LayoutSplitBar { /// /// 获得/设置 容器选择器 默认 null 未设置 - /// Get/Set Container Selector. Default null + /// Gets or sets Container Selector. Default null /// 组件拖动后设置容器 style="--bb-layout-sidebar-width: 200px;" 用于宽度调整 /// Set container style="--bb-layout-sidebar-width: 200px;" after dragging component for width adjustment /// 10.2.2 @@ -23,7 +23,7 @@ public partial class LayoutSplitBar /// /// 获得/设置 最小宽度 默认 null 未设置 - /// Get/Set Minimum Width. Default null + /// Gets or sets Minimum Width. Default null /// 10.2.2 /// [Parameter] @@ -31,7 +31,7 @@ public partial class LayoutSplitBar /// /// 获得/设置 最大宽度 默认 null 未设置 - /// Get/Set Maximum Width. Default null + /// Gets or sets Maximum Width. Default null /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Light/Light.razor.cs b/src/BootstrapBlazor/Components/Light/Light.razor.cs index b1fcfdf332c..5b30794fe17 100644 --- a/src/BootstrapBlazor/Components/Light/Light.razor.cs +++ b/src/BootstrapBlazor/Components/Light/Light.razor.cs @@ -25,7 +25,7 @@ public partial class Light /// /// 获得/设置 组件是否闪烁 默认为 false 不闪烁 - /// Get/Set Whether the component is flashing. Default is false (No flash) + /// Gets or sets Whether the component is flashing. Default is false (No flash) /// 10.2.2 /// [Parameter] @@ -33,7 +33,7 @@ public partial class Light /// /// 获得/设置 是否为平面图形 默认 false - /// Get/Set Whether it is a flat graphic. Default false + /// Gets or sets Whether it is a flat graphic. Default false /// 10.2.2 /// [Parameter] @@ -41,7 +41,7 @@ public partial class Light /// /// 获得/设置 指示灯颜色 默认为 Success 绿色 - /// Get/Set Indicator Color. Default Success (Green) + /// Gets or sets Indicator Color. Default Success (Green) /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/ListGroup/ListGroup.razor.cs b/src/BootstrapBlazor/Components/ListGroup/ListGroup.razor.cs index f38ee4828ce..fad4fb520bb 100644 --- a/src/BootstrapBlazor/Components/ListGroup/ListGroup.razor.cs +++ b/src/BootstrapBlazor/Components/ListGroup/ListGroup.razor.cs @@ -13,7 +13,7 @@ public partial class ListGroup { /// /// 获得/设置 数据源集合 - /// Get/Set Data source collection + /// Gets or sets Data source collection /// 10.2.2 /// [Parameter] @@ -25,7 +25,7 @@ public partial class ListGroup /// /// 获得/设置 Header 模板 默认 null - /// Get/Set Header Template. Default null + /// Gets or sets Header Template. Default null /// 10.2.2 /// [Parameter] @@ -33,7 +33,7 @@ public partial class ListGroup /// /// 获得/设置 Header 文字 默认 null - /// Get/Set Header Text. Default null + /// Gets or sets Header Text. Default null /// 10.2.2 /// [Parameter] @@ -41,7 +41,7 @@ public partial class ListGroup /// /// 获得/设置 Item 模板 默认 null - /// Get/Set Item Template. Default null + /// Gets or sets Item Template. Default null /// 10.2.2 /// [Parameter] @@ -49,7 +49,7 @@ public partial class ListGroup /// /// 获得/设置 点击 List 项目回调方法 - /// Get/Set Callback method when List item is clicked + /// Gets or sets Callback method when List item is clicked /// 10.2.2 /// [Parameter] @@ -57,7 +57,7 @@ public partial class ListGroup /// /// 获得/设置 双击 List 项目回调方法 - /// Get/Set Callback method when List item is double-clicked + /// Gets or sets Callback method when List item is double-clicked /// 10.2.2 /// [Parameter] @@ -65,7 +65,7 @@ public partial class ListGroup /// /// 获得/设置 获得条目显示文本内容回调方法 - /// Get/Set Callback method to get item display text + /// Gets or sets Callback method to get item display text /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/ListView/ListView.razor.cs b/src/BootstrapBlazor/Components/ListView/ListView.razor.cs index 167f39266d5..1db934e732d 100644 --- a/src/BootstrapBlazor/Components/ListView/ListView.razor.cs +++ b/src/BootstrapBlazor/Components/ListView/ListView.razor.cs @@ -22,7 +22,7 @@ public partial class ListView : BootstrapComponentBase /// /// 获得/设置 CardHeader - /// Get/Set Card Header + /// Gets or sets Card Header /// 10.2.2 /// [Parameter] @@ -30,7 +30,7 @@ public partial class ListView : BootstrapComponentBase /// /// 获得/设置 获得 值 默认 null 使用分组 Key.ToString() 方法获取 - /// Get/Set Get value. Default null. Use Group Key.ToString() method to get + /// Gets or sets Get value. Default null. Use Group Key.ToString() method to get /// 10.2.2 /// [Parameter] @@ -38,7 +38,7 @@ public partial class ListView : BootstrapComponentBase /// /// 获得/设置 组排序回调方法 默认 null 使用内置 - /// Get/Set Group sort callback method. Default null. Use built-in + /// Gets or sets Group sort callback method. Default null. Use built-in /// 10.2.2 /// [Parameter] @@ -46,7 +46,7 @@ public partial class ListView : BootstrapComponentBase /// /// 获得/设置 组内项目排序回调方法 默认 null - /// Get/Set Group item sort callback method. Default null + /// Gets or sets Group item sort callback method. Default null /// 10.2.2 /// [Parameter] @@ -54,7 +54,7 @@ public partial class ListView : BootstrapComponentBase /// /// 获得/设置 BodyTemplate - /// Get/Set Body Template + /// Gets or sets Body Template /// 10.2.2 /// [Parameter] @@ -63,7 +63,7 @@ public partial class ListView : BootstrapComponentBase /// /// 获得/设置 FooterTemplate 默认 null 未设置 设置值后 参数不起作用,请自行实现分页功能 - /// Get/Set Footer Template. Default null. If set, parameter will not work, please implement pagination manually + /// Gets or sets Footer Template. Default null. If set, parameter will not work, please implement pagination manually /// 10.2.2 /// [Parameter] @@ -71,7 +71,7 @@ public partial class ListView : BootstrapComponentBase /// /// 获得/设置 数据源 - /// Get/Set Data Source + /// Gets or sets Data Source /// 10.2.2 /// [Parameter] @@ -79,7 +79,7 @@ public partial class ListView : BootstrapComponentBase /// /// 获得/设置 是否分页 默认为 false 不分页 设置 时分页功能自动被禁用 - /// Get/Set Whether to page. Default false. Paging is automatically disabled when is set + /// Gets or sets Whether to page. Default false. Paging is automatically disabled when is set /// 10.2.2 /// [Parameter] @@ -89,7 +89,7 @@ public partial class ListView : BootstrapComponentBase /// /// 获得/设置 是否分页 默认为 false 不分页 设置 时分页功能自动被禁用 - /// Get/Set Whether to page. Default false. Paging is automatically disabled when is set + /// Gets or sets Whether to page. Default false. Paging is automatically disabled when is set /// 10.2.2 /// [Parameter] @@ -97,7 +97,7 @@ public partial class ListView : BootstrapComponentBase /// /// 获得/设置 分组 Lambda 表达式 默认 null - /// Get/Set Grouping Lambda Expression. Default null + /// Gets or sets Grouping Lambda Expression. Default null /// 10.2.2 /// [Parameter] @@ -105,7 +105,7 @@ public partial class ListView : BootstrapComponentBase /// /// 获得/设置 是否可折叠 默认 false 需要开启分组设置 - /// Get/Set Whether it is collapsible. Default false. Need to enable grouping setting + /// Gets or sets Whether it is collapsible. Default false. Need to enable grouping setting /// 10.2.2 /// [Parameter] @@ -113,7 +113,7 @@ public partial class ListView : BootstrapComponentBase /// /// 获得/设置 是否手风琴效果 默认 false 需要开启可收缩设置 - /// Get/Set Accordion effect. Default false. Need to enable collapsible setting + /// Gets or sets Accordion effect. Default false. Need to enable collapsible setting /// 10.2.2 /// [Parameter] @@ -121,7 +121,7 @@ public partial class ListView : BootstrapComponentBase /// /// 获得/设置 CollapseItem 展开收缩时回调方法 默认 false 需要开启可收缩设置 - /// Get/Set Callback method when CollapseItem is expanded/collapsed. Default false. Need to enable collapsible setting + /// Gets or sets Callback method when CollapseItem is expanded/collapsed. Default false. Need to enable collapsible setting /// 10.2.2 /// [Parameter] @@ -129,7 +129,7 @@ public partial class ListView : BootstrapComponentBase /// /// 获得/设置 首次渲染是否收缩回调委托 - /// Get/Set Callback delegate for whether to collapse on first render + /// Gets or sets Callback delegate for whether to collapse on first render /// 10.2.2 /// [Parameter] @@ -145,7 +145,7 @@ public partial class ListView : BootstrapComponentBase /// /// 获得/设置 ListView组件元素点击时回调委托 - /// Get/Set Callback delegate when ListView component element is clicked + /// Gets or sets Callback delegate when ListView component element is clicked /// 10.2.2 /// [Parameter] @@ -153,7 +153,7 @@ public partial class ListView : BootstrapComponentBase /// /// 获得/设置 是否为竖向排列 默认为 false - /// Get/Set Whether to arrange vertically. Default false + /// Gets or sets Whether to arrange vertically. Default false /// 10.2.2 /// [Parameter] @@ -161,7 +161,7 @@ public partial class ListView : BootstrapComponentBase /// /// 获得/设置 每页数据数量 默认 20 - /// Get/Set Number of items per page. Default 20 + /// Gets or sets Number of items per page. Default 20 /// 10.2.2 /// [Parameter] @@ -169,7 +169,7 @@ public partial class ListView : BootstrapComponentBase /// /// 获得/设置 组件高度 默认 null 未设置高度 如:50% 100px 10rem 10vh 等 - /// Get/Set Component height. Default null. Not set. e.g. 50% 100px 10rem 10vh etc. + /// Gets or sets Component height. Default null. Not set. e.g. 50% 100px 10rem 10vh etc. /// 10.2.2 /// [Parameter] @@ -177,7 +177,7 @@ public partial class ListView : BootstrapComponentBase /// /// 获得/设置 无数据时模板 默认 null 未设置 - /// Get/Set Template when no data. Default null + /// Gets or sets Template when no data. Default null /// 10.2.2 /// [Parameter] @@ -185,7 +185,7 @@ public partial class ListView : BootstrapComponentBase /// /// 获得/设置 无数据时显示文字 默认 null 未设置使用资源文件设置文字 - /// Get/Set Text to display when no data. Default null. Use resource file to set text if not set + /// Gets or sets Text to display when no data. Default null. Use resource file to set text if not set /// 10.2.2 /// [Parameter] @@ -193,13 +193,13 @@ public partial class ListView : BootstrapComponentBase /// /// 获得/设置 当前页码 - /// Get/Set Current Page Index + /// Gets or sets Current Page Index /// private int _pageIndex = 1; /// /// 获得/设置 数据总条目 - /// Get/Set Total items + /// Gets or sets Total items /// private int _totalCount; diff --git a/src/BootstrapBlazor/Components/Mask/MaskOption.cs b/src/BootstrapBlazor/Components/Mask/MaskOption.cs index b1201fe713b..13f416e32e6 100644 --- a/src/BootstrapBlazor/Components/Mask/MaskOption.cs +++ b/src/BootstrapBlazor/Components/Mask/MaskOption.cs @@ -13,37 +13,37 @@ public class MaskOption { /// /// 获得/设置 z-index 值 默认 未设置 使用 样式 1050 - /// Get/Set z-index value. Default not set. Use style 1050 + /// Gets or sets z-index value. Default not set. Use style 1050 /// public int? ZIndex { get; set; } /// /// 获得/设置 opacity 值 默认 未设置 使用 样式 0.5 - /// Get/Set opacity value. Default not set. Use style 0.5 + /// Gets or sets opacity value. Default not set. Use style 0.5 /// public float? Opacity { get; set; } /// /// 获得/设置 background-color 值 默认 未设置 使用 样式 #000 - /// Get/Set background-color value. Default not set. Use style #000 + /// Gets or sets background-color value. Default not set. Use style #000 /// public string? BackgroundColor { get; set; } /// /// 获得/设置 子组件 - /// Get/Set Child Content + /// Gets or sets Child Content /// public RenderFragment? ChildContent { get; set; } /// /// 获得/设置 遮罩父容器 id 默认 null 未设置 - /// Get/Set Mask Parent Container ID. Default null + /// Gets or sets Mask Parent Container ID. Default null /// public string? ContainerId { get; set; } /// /// 获得/设置 遮罩父容器选择器 Selector 默认 null 未设置 - /// Get/Set Mask Parent Container Selector. Default null + /// Gets or sets Mask Parent Container Selector. Default null /// public string? Selector { get; set; } } diff --git a/src/BootstrapBlazor/Components/Menu/Menu.razor.cs b/src/BootstrapBlazor/Components/Menu/Menu.razor.cs index 607f222c9b0..ad4da79c371 100644 --- a/src/BootstrapBlazor/Components/Menu/Menu.razor.cs +++ b/src/BootstrapBlazor/Components/Menu/Menu.razor.cs @@ -37,7 +37,7 @@ public partial class Menu /// /// 获得/设置 菜单数据集合 - /// Get/Set Menu Data Collection + /// Gets or sets Menu Data Collection /// 10.2.2 /// [Parameter] @@ -46,7 +46,7 @@ public partial class Menu /// /// 获得/设置 是否为手风琴效果 默认为 false - /// Get/Set Whether it is accordion effect. Default false + /// Gets or sets Whether it is accordion effect. Default false /// 10.2.2 /// /// @@ -58,7 +58,7 @@ public partial class Menu /// /// 获得/设置 是否全部展开 默认为 false - /// Get/Set Whether to expand all. Default false + /// Gets or sets Whether to expand all. Default false /// 10.2.2 /// /// @@ -70,7 +70,7 @@ public partial class Menu /// /// 获得/设置 侧栏是否收起 默认 false 未收起 - /// Get/Set Whether sidebar is collapsed. Default false (Not collapsed) + /// Gets or sets Whether sidebar is collapsed. Default false (Not collapsed) /// 10.2.2 /// [Parameter] @@ -78,7 +78,7 @@ public partial class Menu /// /// 获得/设置 侧栏垂直模式 默认 false - /// Get/Set Sidebar vertical mode. Default false + /// Gets or sets Sidebar vertical mode. Default false /// 10.2.2 /// /// @@ -87,7 +87,7 @@ public partial class Menu /// /// 获得/设置 自动滚动到可视区域 默认 true 开启时生效 - /// Get/Set Automatically scroll to visible area. Default true. Effective when is enabled + /// Gets or sets Automatically scroll to visible area. Default true. Effective when is enabled /// 10.2.2 /// /// @@ -96,7 +96,7 @@ public partial class Menu /// /// 获得/设置 侧边栏垂直模式在底部 默认 false - /// Get/Set Sidebar vertical mode at bottom. Default false + /// Gets or sets Sidebar vertical mode at bottom. Default false /// 10.2.2 /// [Parameter] @@ -104,7 +104,7 @@ public partial class Menu /// /// 获得/设置 缩进大小 默认为 16 单位 px - /// Get/Set Indent size. Default 16px + /// Gets or sets Indent size. Default 16px /// 10.2.2 /// [Parameter] @@ -112,7 +112,7 @@ public partial class Menu /// /// 获得/设置 是否禁止导航 默认为 false 允许导航 - /// Get/Set Whether to disable navigation. Default false (Allow navigation) + /// Gets or sets Whether to disable navigation. Default false (Allow navigation) /// 10.2.2 /// [Parameter] @@ -120,7 +120,7 @@ public partial class Menu /// /// 获得/设置 菜单项点击回调委托 - /// Get/Set Menu item click callback delegate + /// Gets or sets Menu item click callback delegate /// 10.2.2 /// [Parameter] @@ -128,7 +128,7 @@ public partial class Menu /// /// 获得/设置 NavigationManager 实例 - /// Get/Set NavigationManager Instance + /// Gets or sets NavigationManager Instance /// [Inject] [NotNull] diff --git a/src/BootstrapBlazor/Components/Menu/MenuItem.cs b/src/BootstrapBlazor/Components/Menu/MenuItem.cs index c4c5390b4a2..b6e084176cf 100644 --- a/src/BootstrapBlazor/Components/Menu/MenuItem.cs +++ b/src/BootstrapBlazor/Components/Menu/MenuItem.cs @@ -21,25 +21,25 @@ public class MenuItem : NodeItem /// /// 获得/设置 组件数据源 - /// Get/Set Component Data Source + /// Gets or sets Component Data Source /// public IEnumerable Items { get; set; } = Enumerable.Empty(); /// /// 获得/设置 导航菜单链接地址 - /// Get/Set Navigation Menu Link Address + /// Gets or sets Navigation Menu Link Address /// public string? Url { get; set; } /// /// 获得/设置 A 标签 target 参数 默认 null - /// Get/Set Anchor target parameter. Default null + /// Gets or sets Anchor target parameter. Default null /// public string? Target { get; set; } /// /// 获得/设置 匹配方式 默认 NavLinkMatch.Prefix - /// Get/Set Match mode. Default NavLinkMatch.Prefix + /// Gets or sets Match mode. Default NavLinkMatch.Prefix /// public NavLinkMatch Match { get; set; } = NavLinkMatch.Prefix; diff --git a/src/BootstrapBlazor/Components/Menu/MenuLink.razor.cs b/src/BootstrapBlazor/Components/Menu/MenuLink.razor.cs index 86bb6af90e1..ad2ab238fc8 100644 --- a/src/BootstrapBlazor/Components/Menu/MenuLink.razor.cs +++ b/src/BootstrapBlazor/Components/Menu/MenuLink.razor.cs @@ -35,7 +35,7 @@ public sealed partial class MenuLink /// /// 获得/设置 MenuItem 实例 不可为空 - /// Get/Set MenuItem Instance. Cannot be null + /// Gets or sets MenuItem Instance. Cannot be null /// 10.2.2 /// [Parameter] @@ -44,7 +44,7 @@ public sealed partial class MenuLink /// /// 获得/设置 ArrowIcon 图标 - /// Get/Set ArrowIcon Icon + /// Gets or sets ArrowIcon Icon /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Menu/SideMenu.razor.cs b/src/BootstrapBlazor/Components/Menu/SideMenu.razor.cs index d41dc72933a..5585be97f7d 100644 --- a/src/BootstrapBlazor/Components/Menu/SideMenu.razor.cs +++ b/src/BootstrapBlazor/Components/Menu/SideMenu.razor.cs @@ -26,7 +26,7 @@ public partial class SideMenu /// /// 获得/设置 菜单数据集合 - /// Get/Set Menu Data Collection + /// Gets or sets Menu Data Collection /// 10.2.2 /// [Parameter] @@ -35,7 +35,7 @@ public partial class SideMenu /// /// 获得/设置 DropdownIcon 图标 - /// Get/Set DropdownIcon Icon + /// Gets or sets DropdownIcon Icon /// 10.2.2 /// [Parameter] @@ -44,7 +44,7 @@ public partial class SideMenu /// /// 获得/设置 菜单箭头图标 - /// Get/Set Menu Arrow Icon + /// Gets or sets Menu Arrow Icon /// 10.2.2 /// [Parameter] @@ -53,7 +53,7 @@ public partial class SideMenu /// /// 获得/设置 菜单项点击回调委托 - /// Get/Set Menu item click callback delegate + /// Gets or sets Menu item click callback delegate /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Menu/SubMenu.razor.cs b/src/BootstrapBlazor/Components/Menu/SubMenu.razor.cs index 7bcd5cc16d3..a52d166da51 100644 --- a/src/BootstrapBlazor/Components/Menu/SubMenu.razor.cs +++ b/src/BootstrapBlazor/Components/Menu/SubMenu.razor.cs @@ -32,7 +32,7 @@ public sealed partial class SubMenu /// /// 获得/设置 组件数据源 - /// Get/Set Component Data Source + /// Gets or sets Component Data Source /// 10.2.2 /// [Parameter] @@ -41,7 +41,7 @@ public sealed partial class SubMenu /// /// 获得/设置 DropdownIcon 图标 - /// Get/Set DropdownIcon Icon + /// Gets or sets DropdownIcon Icon /// 10.2.2 /// [Parameter] @@ -49,7 +49,7 @@ public sealed partial class SubMenu /// /// 获得/设置 菜单箭头图标 - /// Get/Set Menu Arrow Icon + /// Gets or sets Menu Arrow Icon /// 10.2.2 /// [Parameter] @@ -57,7 +57,7 @@ public sealed partial class SubMenu /// /// 获得/设置 菜单项点击回调委托 - /// Get/Set Menu item click callback delegate + /// Gets or sets Menu item click callback delegate /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Menu/TopMenu.razor.cs b/src/BootstrapBlazor/Components/Menu/TopMenu.razor.cs index 8f0e7f2d698..73181788922 100644 --- a/src/BootstrapBlazor/Components/Menu/TopMenu.razor.cs +++ b/src/BootstrapBlazor/Components/Menu/TopMenu.razor.cs @@ -26,7 +26,7 @@ public partial class TopMenu /// /// 获得/设置 DropdownIcon 图标 - /// Get/Set DropdownIcon Icon + /// Gets or sets DropdownIcon Icon /// 10.2.2 /// [Parameter] @@ -35,7 +35,7 @@ public partial class TopMenu /// /// 获得/设置 菜单箭头图标 - /// Get/Set Menu Arrow Icon + /// Gets or sets Menu Arrow Icon /// 10.2.2 /// [Parameter] @@ -44,7 +44,7 @@ public partial class TopMenu /// /// 获得/设置 菜单数据集合 - /// Get/Set Menu Data Collection + /// Gets or sets Menu Data Collection /// 10.2.2 /// [Parameter] @@ -53,7 +53,7 @@ public partial class TopMenu /// /// 获得/设置 菜单项点击回调委托 - /// Get/Set Menu item click callback delegate + /// Gets or sets Menu item click callback delegate /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Message/Message.razor.cs b/src/BootstrapBlazor/Components/Message/Message.razor.cs index c76342a8b66..a8a3ac19ace 100644 --- a/src/BootstrapBlazor/Components/Message/Message.razor.cs +++ b/src/BootstrapBlazor/Components/Message/Message.razor.cs @@ -36,7 +36,7 @@ public partial class Message /// /// 获得/设置 显示位置 默认为 Top - /// Get/Set Display placement. Default Top + /// Gets or sets Display placement. Default Top /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Message/MessageOption.cs b/src/BootstrapBlazor/Components/Message/MessageOption.cs index 332b8d0b6ee..423f4fe4242 100644 --- a/src/BootstrapBlazor/Components/Message/MessageOption.cs +++ b/src/BootstrapBlazor/Components/Message/MessageOption.cs @@ -13,67 +13,67 @@ public class MessageOption : PopupOptionBase { /// /// 获得/设置 颜色 默认 Primary - /// Get/Set Color. Default Primary + /// Gets or sets Color. Default Primary /// public Color Color { get; set; } = Color.Primary; /// /// 获得/设置 是否显示关闭按钮 默认 false - /// Get/Set Whether to show dismiss button. Default false + /// Gets or sets Whether to show dismiss button. Default false /// public bool ShowDismiss { get; set; } /// /// 获得/设置 显示图标 默认 null - /// Get/Set Display Icon. Default null + /// Gets or sets Display Icon. Default null /// public string? Icon { get; set; } /// /// 获得/设置 是否显示左侧 Bar 默认 false - /// Get/Set Whether to show left Bar. Default false + /// Gets or sets Whether to show left Bar. Default false /// public bool ShowBar { get; set; } /// /// 获得/设置 是否显示边框 默认 false 不显示 - /// Get/Set Whether to show border. Default false (Not shown) + /// Gets or sets Whether to show border. Default false (Not shown) /// public bool ShowBorder { get; set; } /// /// 获得/设置 是否显示阴影 默认 false 不显示 - /// Get/Set Whether to show shadow. Default false (Not shown) + /// Gets or sets Whether to show shadow. Default false (Not shown) /// public bool ShowShadow { get; set; } /// /// 获得/设置 关闭当前 MessageItem 回调委托 默认 null - /// Get/Set Callback delegate for closing current MessageItem. Default null + /// Gets or sets Callback delegate for closing current MessageItem. Default null /// public Func? OnDismiss { get; set; } /// /// 获得/设置 内容模板 默认 null 设置此参数后 将失效 - /// Get/Set Content Template. Default null. will be invalid if this parameter is set + /// Gets or sets Content Template. Default null. will be invalid if this parameter is set /// public RenderFragment? ChildContent { get; set; } /// /// 获得/设置 消息显示模式,默认为 - /// Get/Set Message show mode. Default + /// Gets or sets Message show mode. Default /// public MessageShowMode ShowMode { get; set; } = MessageShowMode.Multiple; /// /// 获得/设置 附加 style 字符串到 元素上 - /// Get/Set Attach style string to element + /// Gets or sets Attach style string to element /// public string? StyleString { get; set; } /// /// 获得/设置 附加 class 字符串到 元素上 - /// Get/Set Attach class string to element + /// Gets or sets Attach class string to element /// public string? ClassString { get; set; } } diff --git a/src/BootstrapBlazor/Components/Modal/ModalDialog.razor.cs b/src/BootstrapBlazor/Components/Modal/ModalDialog.razor.cs index 9465ebee86a..651c2001383 100644 --- a/src/BootstrapBlazor/Components/Modal/ModalDialog.razor.cs +++ b/src/BootstrapBlazor/Components/Modal/ModalDialog.razor.cs @@ -34,13 +34,13 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 是否显示对话框 - /// Get/Set Whether to show dialog + /// Gets or sets Whether to show dialog /// internal bool IsShown { get; set; } /// /// 获得/设置 弹窗标题 - /// Get/Set Popup Title + /// Gets or sets Popup Title /// 10.2.2 /// [Parameter] @@ -48,7 +48,7 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 弹窗自定义样式 - /// Get/Set Popup Custom Style + /// Gets or sets Popup Custom Style /// 10.2.2 /// [Parameter] @@ -56,7 +56,7 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 是否可以 Resize 弹窗 默认 false - /// Get/Set Whether popup can be resized. Default false + /// Gets or sets Whether popup can be resized. Default false /// 10.2.2 /// [Parameter] @@ -64,7 +64,7 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 弹窗大小 默认为 - /// Get/Set Popup Size. Default + /// Gets or sets Popup Size. Default /// 10.2.2 /// [Parameter] @@ -72,7 +72,7 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 弹窗大小 默认为 - /// Get/Set Popup Full Screen Size. Default + /// Gets or sets Popup Full Screen Size. Default /// 10.2.2 /// /// @@ -84,7 +84,7 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 是否垂直居中 默认为 true - /// Get/Set Whether to center vertically. Default true + /// Gets or sets Whether to center vertically. Default true /// 10.2.2 /// [Parameter] @@ -92,7 +92,7 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 是否弹窗正文超长时滚动 默认为 false - /// Get/Set Whether to scroll when popup body is too long. Default false + /// Gets or sets Whether to scroll when popup body is too long. Default false /// 10.2.2 /// [Parameter] @@ -108,7 +108,7 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 是否可以拖拽弹窗 默认 false 不可以拖动 - /// Get/Set Whether popup can be dragged. Default false + /// Gets or sets Whether popup can be dragged. Default false /// 10.2.2 /// [Parameter] @@ -116,7 +116,7 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 是否显示最大化按钮 默认为 false - /// Get/Set Whether to show maximize button. Default false + /// Gets or sets Whether to show maximize button. Default false /// 10.2.2 /// /// @@ -128,7 +128,7 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 是否显示关闭按钮 默认为 true 显示 - /// Get/Set Whether to show close button. Default true (Show) + /// Gets or sets Whether to show close button. Default true (Show) /// 10.2.2 /// [Parameter] @@ -136,7 +136,7 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 是否显示保存按钮 默认为 false 不显示 - /// Get/Set Whether to show save button. Default false (Not shown) + /// Gets or sets Whether to show save button. Default false (Not shown) /// 10.2.2 /// [Parameter] @@ -144,7 +144,7 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 是否显示打印按钮 默认为 false 不显示 - /// Get/Set Whether to show print button. Default false (Not shown) + /// Gets or sets Whether to show print button. Default false (Not shown) /// 10.2.2 /// [Parameter] @@ -152,7 +152,7 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 Header 中是否显示打印按钮 默认 false 不显示 - /// Get/Set Whether to show print button in Header. Default false (Not shown) + /// Gets or sets Whether to show print button in Header. Default false (Not shown) /// 10.2.2 /// [Parameter] @@ -160,7 +160,7 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 Header 中打印按钮显示文字 默认为资源文件中 打印 - /// Get/Set Print button text in Header. Default from resource file "Print" + /// Gets or sets Print button text in Header. Default from resource file "Print" /// 10.2.2 /// [Parameter] @@ -168,7 +168,7 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 打印按钮图标 未设置 取当前图标主题下打印图标 - /// Get/Set Print button icon. If not set, use print icon from current icon theme + /// Gets or sets Print button icon. If not set, use print icon from current icon theme /// 10.2.2 /// [Parameter] @@ -176,7 +176,7 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 打印按钮颜色 默认 Color.Primary - /// Get/Set Print button color. Default Color.Primary + /// Gets or sets Print button color. Default Color.Primary /// 10.2.2 /// [Parameter] @@ -184,7 +184,7 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 是否显示导出 Pdf 按钮 默认为 false 不显示 - /// Get/Set Whether to show Export PDF button. Default false (Not shown) + /// Gets or sets Whether to show Export PDF button. Default false (Not shown) /// 10.2.2 /// [Parameter] @@ -192,7 +192,7 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 Header 中是否显示导出 Pdf 按钮 默认 false 不显示 - /// Get/Set Whether to show Export PDF button in Header. Default false (Not shown) + /// Gets or sets Whether to show Export PDF button in Header. Default false (Not shown) /// 10.2.2 /// [Parameter] @@ -200,7 +200,7 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 导出 Pdf 按钮配置项 - /// Get/Set Export PDF button options + /// Gets or sets Export PDF button options /// 10.2.2 /// [Parameter] @@ -209,7 +209,7 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 是否显示 Header 关闭按钮 - /// Get/Set Whether to show Header Close Button + /// Gets or sets Whether to show Header Close Button /// 10.2.2 /// [Parameter] @@ -217,7 +217,7 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 是否显示 Header 默认为 true - /// Get/Set Whether to show Header. Default true + /// Gets or sets Whether to show Header. Default true /// 10.2.2 /// [Parameter] @@ -225,7 +225,7 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 是否显示 Footer 默认为 true - /// Get/Set Whether to show Footer. Default true + /// Gets or sets Whether to show Footer. Default true /// 10.2.2 /// [Parameter] @@ -233,7 +233,7 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 弹窗内容相关数据 多用于传值 - /// Get/Set Data related to popup content. Often used for passing values + /// Gets or sets Data related to popup content. Often used for passing values /// 10.2.2 /// [Parameter] @@ -241,7 +241,7 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 Header 中按钮模板 - /// Get/Set Button template in Header + /// Gets or sets Button template in Header /// 10.2.2 /// [Parameter] @@ -249,7 +249,7 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 ModalBody 组件 - /// Get/Set ModalBody Component + /// Gets or sets ModalBody Component /// 10.2.2 /// [Parameter] @@ -257,7 +257,7 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 ModalFooter 组件 - /// Get/Set ModalFooter Component + /// Gets or sets ModalFooter Component /// 10.2.2 /// [Parameter] @@ -273,7 +273,7 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 ModalHeader 组件 - /// Get/Set ModalHeader Component + /// Gets or sets ModalHeader Component /// 10.2.2 /// [Parameter] @@ -281,7 +281,7 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 保存按钮回调委托 返回 true 并且设置 true 时自动关闭弹窗 - /// Get/Set Save button callback delegate. Returns true and automatically closes popup if is true + /// Gets or sets Save button callback delegate. Returns true and automatically closes popup if is true /// 10.2.2 /// [Parameter] @@ -289,7 +289,7 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 保存成功后是否自动关闭弹窗 默认 true 自动关闭 - /// Get/Set Whether to automatically close popup after successful save. Default true + /// Gets or sets Whether to automatically close popup after successful save. Default true /// 10.2.2 /// [Parameter] @@ -297,7 +297,7 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 关闭按钮显示文字 资源文件设置为 关闭 - /// Get/Set Close button text. Resource file set to Close + /// Gets or sets Close button text. Resource file set to Close /// 10.2.2 /// [Parameter] @@ -306,7 +306,7 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 关闭按钮显示图标 未设置时 使用 fa-solid fa-fw fa-xmark - /// Get/Set Close button icon. Use fa-solid fa-fw fa-xmark if not set + /// Gets or sets Close button icon. Use fa-solid fa-fw fa-xmark if not set /// 10.2.2 /// [Parameter] @@ -315,7 +315,7 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 保存按钮显示文字 资源文件设置为 保存 - /// Get/Set Save button text. Resource file set to Save + /// Gets or sets Save button text. Resource file set to Save /// 10.2.2 /// [Parameter] @@ -324,7 +324,7 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 保存按钮显示图标 未设置时 使用主题图标 - /// Get/Set Save button icon. Use theme icon if not set + /// Gets or sets Save button icon. Use theme icon if not set /// 10.2.2 /// [Parameter] @@ -333,7 +333,7 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 最大化按钮图标 - /// Get/Set Maximize button icon + /// Gets or sets Maximize button icon /// 10.2.2 /// [Parameter] @@ -342,7 +342,7 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 恢复按钮图标 - /// Get/Set Restore button icon + /// Gets or sets Restore button icon /// 10.2.2 /// [Parameter] @@ -351,7 +351,7 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 保存按钮图标 - /// Get/Set Save button icon + /// Gets or sets Save button icon /// 10.2.2 /// [Parameter] @@ -362,7 +362,7 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 模态弹窗任务 实例 默认 null - /// Get/Set Modal Popup Task Instance. Default null + /// Gets or sets Modal Popup Task Instance. Default null /// 10.2.2 /// [Parameter] @@ -370,7 +370,7 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 获得模态弹窗方法 默认 null - /// Get/Set Get Modal Popup Method. Default null + /// Gets or sets Get Modal Popup Method. Default null /// 10.2.2 /// [Parameter] @@ -378,7 +378,7 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 弹窗容器实例 - /// Get/Set Popup Container Instance + /// Gets or sets Popup Container Instance /// [CascadingParameter] [NotNull] diff --git a/src/BootstrapBlazor/Components/Nav/Nav.razor.cs b/src/BootstrapBlazor/Components/Nav/Nav.razor.cs index 070dec7907c..72021147010 100644 --- a/src/BootstrapBlazor/Components/Nav/Nav.razor.cs +++ b/src/BootstrapBlazor/Components/Nav/Nav.razor.cs @@ -30,7 +30,7 @@ public partial class Nav /// /// 获得/设置 组件数据源 - /// Get/Set Component Data Source + /// Gets or sets Component Data Source /// 10.2.2 /// [Parameter] @@ -39,7 +39,7 @@ public partial class Nav /// /// 获得/设置 组件对齐方式 - /// Get/Set Component Alignment + /// Gets or sets Component Alignment /// 10.2.2 /// [Parameter] @@ -47,7 +47,7 @@ public partial class Nav /// /// 获得/设置 是否垂直分布 - /// Get/Set Whether to distribute vertically + /// Gets or sets Whether to distribute vertically /// 10.2.2 /// [Parameter] @@ -55,7 +55,7 @@ public partial class Nav /// /// 获得/设置 是否为胶囊 - /// Get/Set Whether it is pills + /// Gets or sets Whether it is pills /// 10.2.2 /// [Parameter] @@ -63,7 +63,7 @@ public partial class Nav /// /// 获得/设置 是否填充 - /// Get/Set Whether to fill + /// Gets or sets Whether to fill /// 10.2.2 /// [Parameter] @@ -71,7 +71,7 @@ public partial class Nav /// /// 获得/设置 是否等宽 - /// Get/Set Whether to be equal width + /// Gets or sets Whether to be equal width /// 10.2.2 /// [Parameter] @@ -79,7 +79,7 @@ public partial class Nav /// /// 获得/设置 组件内容 - /// Get/Set Component Content + /// Gets or sets Component Content /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Pagination/GotoNavigator.razor.cs b/src/BootstrapBlazor/Components/Pagination/GotoNavigator.razor.cs index 124b1281297..ea00b61ce01 100644 --- a/src/BootstrapBlazor/Components/Pagination/GotoNavigator.razor.cs +++ b/src/BootstrapBlazor/Components/Pagination/GotoNavigator.razor.cs @@ -15,7 +15,7 @@ public partial class GotoNavigator { /// /// 获得/设置 跳转页码 默认 null - /// Get/Set Navigation Index. Default null + /// Gets or sets Navigation Index. Default null /// 10.2.2 /// [Parameter] @@ -23,7 +23,7 @@ public partial class GotoNavigator /// /// 获得/设置 跳转文本 默认 null - /// Get/Set Goto Text. Default null + /// Gets or sets Goto Text. Default null /// 10.2.2 /// [Parameter] @@ -31,7 +31,7 @@ public partial class GotoNavigator /// /// 获得/设置 导航回调方法 默认 null - /// Get/Set Navigation Callback. Default null + /// Gets or sets Navigation Callback. Default null /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Pagination/Pagination.razor.cs b/src/BootstrapBlazor/Components/Pagination/Pagination.razor.cs index fe38dc8653e..4b9d778d6c1 100644 --- a/src/BootstrapBlazor/Components/Pagination/Pagination.razor.cs +++ b/src/BootstrapBlazor/Components/Pagination/Pagination.razor.cs @@ -15,7 +15,7 @@ public partial class Pagination { /// /// 获得/设置 页码总数 - /// Get/Set Total Page Count + /// Gets or sets Total Page Count /// protected int InternalPageCount => Math.Max(1, PageCount); @@ -37,19 +37,19 @@ public partial class Pagination /// /// 获得/设置 开始页码 - /// Get/Set Start Page Index + /// Gets or sets Start Page Index /// protected int StartPageIndex => Math.Max(2, Math.Min(InternalPageCount - MaxPageLinkCount, InternalPageIndex - MaxPageLinkCount / 2)); /// /// 获得/设置 结束页码 - /// Get/Set End Page Index + /// Gets or sets End Page Index /// protected int EndPageIndex => Math.Min(InternalPageCount - 1, StartPageIndex + MaxPageLinkCount - 1); /// /// 获得/设置 对齐方式 默认 Alignment.Right - /// Get/Set Alignment. Default Alignment.Right + /// Gets or sets Alignment. Default Alignment.Right /// 10.2.2 /// [Parameter] @@ -57,7 +57,7 @@ public partial class Pagination /// /// 获得/设置 上一页图标 - /// Get/Set Previous Page Icon + /// Gets or sets Previous Page Icon /// 10.2.2 /// [Parameter] @@ -65,7 +65,7 @@ public partial class Pagination /// /// 获得/设置 上一页图标 - /// Get/Set Previous Page Icon + /// Gets or sets Previous Page Icon /// 10.2.2 /// [Parameter] @@ -73,7 +73,7 @@ public partial class Pagination /// /// 获得/设置 下一页图标 - /// Get/Set Next Page Icon + /// Gets or sets Next Page Icon /// 10.2.2 /// [Parameter] @@ -81,7 +81,7 @@ public partial class Pagination /// /// 获得/设置 上一页图标 - /// Get/Set Previous Page Icon + /// Gets or sets Previous Page Icon /// 10.2.2 /// [Parameter] @@ -89,7 +89,7 @@ public partial class Pagination /// /// 获得/设置 当前页码 - /// Get/Set Current Page Index + /// Gets or sets Current Page Index /// 10.2.2 /// [Parameter] @@ -97,7 +97,7 @@ public partial class Pagination /// /// 获得/设置 页码总数 - /// Get/Set Total Page Count + /// Gets or sets Total Page Count /// 10.2.2 /// [Parameter] @@ -108,7 +108,7 @@ public partial class Pagination /// /// 获得/设置 Page up/down 页码数量 默认 5 - /// Get/Set Page up/down link count. Default 5 + /// Gets or sets Page up/down link count. Default 5 /// 10.2.2 /// [Parameter] @@ -128,7 +128,7 @@ public partial class Pagination /// /// 获得/设置 显示分页信息文字 默认为 null - /// Get/Set Pagination Info Text. Default null + /// Gets or sets Pagination Info Text. Default null /// 10.2.2 /// [Parameter] @@ -137,7 +137,7 @@ public partial class Pagination /// /// 获得/设置 Goto 导航模板 默认 null - /// Get/Set Goto Navigation Template. Default null + /// Gets or sets Goto Navigation Template. Default null /// 10.2.2 /// [Parameter] @@ -145,7 +145,7 @@ public partial class Pagination /// /// 获得/设置 是否显示 Goto 跳转导航器 默认 false - /// Get/Set Whether to show Goto Navigator. Default false + /// Gets or sets Whether to show Goto Navigator. Default false /// 10.2.2 /// [Parameter] @@ -153,7 +153,7 @@ public partial class Pagination /// /// 获得/设置 Goto 导航标签显示文字 默认 导航到/Goto - /// Get/Set Goto Navigator Label Text. Default Goto + /// Gets or sets Goto Navigator Label Text. Default Goto /// 10.2.2 /// [Parameter] @@ -161,7 +161,7 @@ public partial class Pagination /// /// 获得/设置 是否显示 分页信息 默认 true - /// Get/Set Whether to show Page Info. Default true + /// Gets or sets Whether to show Page Info. Default true /// 10.2.2 /// [Parameter] @@ -169,7 +169,7 @@ public partial class Pagination /// /// 获得/设置 分页信息模板 默认 null - /// Get/Set Page Info Template. Default null + /// Gets or sets Page Info Template. Default null /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Pagination/PaginationItem.razor.cs b/src/BootstrapBlazor/Components/Pagination/PaginationItem.razor.cs index ce250bad657..14771e818d7 100644 --- a/src/BootstrapBlazor/Components/Pagination/PaginationItem.razor.cs +++ b/src/BootstrapBlazor/Components/Pagination/PaginationItem.razor.cs @@ -21,7 +21,7 @@ public partial class PaginationItem /// /// 获得/设置 当前页码 - /// Get/Set Current Page Index + /// Gets or sets Current Page Index /// 10.2.2 /// [Parameter] @@ -29,7 +29,7 @@ public partial class PaginationItem /// /// 获得/设置 是否激活 默认 false - /// Get/Set Whether active. Default false + /// Gets or sets Whether active. Default false /// 10.2.2 /// [Parameter] @@ -37,7 +37,7 @@ public partial class PaginationItem /// /// 获得/设置 是否禁用 默认 false - /// Get/Set Whether disabled. Default false + /// Gets or sets Whether disabled. Default false /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Popover/Popover.razor.cs b/src/BootstrapBlazor/Components/Popover/Popover.razor.cs index 02e57c101d3..b0361067bdc 100644 --- a/src/BootstrapBlazor/Components/Popover/Popover.razor.cs +++ b/src/BootstrapBlazor/Components/Popover/Popover.razor.cs @@ -13,7 +13,7 @@ public partial class Popover { /// /// 获得/设置 显示文字,复杂内容可通过 自定义 - /// Get/Set Display text. Complex content can be customized via + /// Gets or sets Display text. Complex content can be customized via /// 10.2.2 /// [Parameter] @@ -21,7 +21,7 @@ public partial class Popover /// /// 获得/设置 是否显示阴影 默认 true - /// Get/Set Whether to show shadow. Default true + /// Gets or sets Whether to show shadow. Default true /// 10.2.2 /// [Parameter] @@ -29,7 +29,7 @@ public partial class Popover /// /// 获得/设置 内容模板 默认 null 设置值后 参数失效 - /// Get/Set Content Template. Default null. parameter is invalid if set + /// Gets or sets Content Template. Default null. parameter is invalid if set /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Popover/PopupOptionBase.cs b/src/BootstrapBlazor/Components/Popover/PopupOptionBase.cs index 099bcc99e2e..4189652a6cc 100644 --- a/src/BootstrapBlazor/Components/Popover/PopupOptionBase.cs +++ b/src/BootstrapBlazor/Components/Popover/PopupOptionBase.cs @@ -13,25 +13,25 @@ public abstract class PopupOptionBase { /// /// 获得/设置 Toast Body 子组件 - /// Get/Set Toast Body Child Component + /// Gets or sets Toast Body Child Component /// public string? Content { get; set; } /// /// 获得/设置 是否自动隐藏 默认 true 自动关闭 默认 true - /// Get/Set Whether to auto hide. Default true + /// Gets or sets Whether to auto hide. Default true /// public bool IsAutoHide { get; set; } = true; /// /// 获得/设置 自动隐藏时间间隔 单位毫秒 默认 4000 可通过全局配置进行统一更改 - /// Get/Set Auto hide interval in milliseconds. Default 4000. Can be configured globally + /// Gets or sets Auto hide interval in milliseconds. Default 4000. Can be configured globally /// public int Delay { get; set; } = 4000; /// /// 获得/设置 是否强制使用本实例的延时时间,防止值被全局配置覆盖 默认 false - /// Get/Set Whether to force use the delay time of this instance to prevent the value from being overwritten by global configuration. Default false + /// Gets or sets Whether to force use the delay time of this instance to prevent the value from being overwritten by global configuration. Default false /// 组件使用 值进行自动关闭,可通过 类相关参数进行全局设置延时关闭时间,可通过本参数强制使用 /// Component uses value for automatic closing, global setting of delay closing time can be done through related parameters of class, this parameter can force usage of value /// diff --git a/src/BootstrapBlazor/Components/Print/PrintButton.razor.cs b/src/BootstrapBlazor/Components/Print/PrintButton.razor.cs index e51b553bf6e..8dedf42a7d8 100644 --- a/src/BootstrapBlazor/Components/Print/PrintButton.razor.cs +++ b/src/BootstrapBlazor/Components/Print/PrintButton.razor.cs @@ -15,7 +15,7 @@ public partial class PrintButton { /// /// 获得/设置 预览模板地址 默认为空 - /// Get/Set Preview template URL. Default empty + /// Gets or sets Preview template URL. Default empty /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Progress/Progress.razor.cs b/src/BootstrapBlazor/Components/Progress/Progress.razor.cs index 7945458ffd0..98090aafc5b 100644 --- a/src/BootstrapBlazor/Components/Progress/Progress.razor.cs +++ b/src/BootstrapBlazor/Components/Progress/Progress.razor.cs @@ -15,7 +15,7 @@ public partial class Progress { /// /// 获得/设置 控件高度 默认 null 未设置 - /// Get/Set Control Height. Default null + /// Gets or sets Control Height. Default null /// 10.2.2 /// [Parameter] @@ -23,7 +23,7 @@ public partial class Progress /// /// 获得/设置 颜色 默认为 Color.Primary - /// Get/Set Color. Default Color.Primary + /// Gets or sets Color. Default Color.Primary /// 10.2.2 /// [Parameter] @@ -31,7 +31,7 @@ public partial class Progress /// /// 获得/设置 是否显示进度条值 默认 false - /// Get/Set Whether to show progress value. Default false + /// Gets or sets Whether to show progress value. Default false /// 10.2.2 /// /// @@ -40,7 +40,7 @@ public partial class Progress /// /// 获得/设置 是否显示为条纹 默认 false - /// Get/Set Whether to show striped. Default false + /// Gets or sets Whether to show striped. Default false /// 10.2.2 /// /// @@ -49,7 +49,7 @@ public partial class Progress /// /// 获得/设置 是否动画 默认 false - /// Get/Set Whether to show animated. Default false + /// Gets or sets Whether to show animated. Default false /// 10.2.2 /// /// @@ -58,7 +58,7 @@ public partial class Progress /// /// 获得/设置 组件进度值 - /// Get/Set Progress Value + /// Gets or sets Progress Value /// 10.2.2 /// [Parameter] @@ -66,7 +66,7 @@ public partial class Progress /// /// 获得/设置 进度值修约小数位数, 默认 0 (即保留为整数) - /// Get/Set Rounding decimal places. Default 0 (Keep integer) + /// Gets or sets Rounding decimal places. Default 0 (Keep integer) /// 10.2.2 /// [Parameter] @@ -74,7 +74,7 @@ public partial class Progress /// /// 获得/设置 保留小数点模式 默认为 AwayFromZero - /// Get/Set Rounding mode. Default AwayFromZero + /// Gets or sets Rounding mode. Default AwayFromZero /// 10.2.2 /// [Parameter] @@ -82,7 +82,7 @@ public partial class Progress /// /// 获得/设置 进度标签文本 - /// Get/Set Progress Label Text + /// Gets or sets Progress Label Text /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/QueryBuilder/QueryBuilder.razor.cs b/src/BootstrapBlazor/Components/QueryBuilder/QueryBuilder.razor.cs index cb683c3ee1f..6e0ff2521a5 100644 --- a/src/BootstrapBlazor/Components/QueryBuilder/QueryBuilder.razor.cs +++ b/src/BootstrapBlazor/Components/QueryBuilder/QueryBuilder.razor.cs @@ -22,7 +22,7 @@ namespace BootstrapBlazor.Components; /// /// 获得/设置 过滤模型 实例值 - /// Get/Set Filter Model Value + /// Gets or sets Filter Model Value /// 10.2.2 /// [Parameter] @@ -32,7 +32,7 @@ namespace BootstrapBlazor.Components; /// /// 获得/设置 Filter 回调方法 支持双向绑定 - /// Get/Set Filter Callback Method. Supports Two-way Binding + /// Gets or sets Filter Callback Method. Supports Two-way Binding /// 10.2.2 /// [Parameter] @@ -40,7 +40,7 @@ namespace BootstrapBlazor.Components; /// /// 获得/设置 逻辑运算符 - /// Get/Set Logic Operator + /// Gets or sets Logic Operator /// 10.2.2 /// [Parameter] @@ -48,7 +48,7 @@ namespace BootstrapBlazor.Components; /// /// 获得/设置 模板 - /// Get/Set Template + /// Gets or sets Template /// 10.2.2 /// [Parameter] @@ -56,7 +56,7 @@ namespace BootstrapBlazor.Components; /// /// 获得/设置 是否显示 Header 区域 默认 true 显示 - /// Get/Set Whether to show Header area. Default true + /// Gets or sets Whether to show Header area. Default true /// 10.2.2 /// [Parameter] @@ -64,7 +64,7 @@ namespace BootstrapBlazor.Components; /// /// 获得/设置 Header 模板 默认 null - /// Get/Set Header Template. Default null + /// Gets or sets Header Template. Default null /// 10.2.2 /// [Parameter] @@ -72,7 +72,7 @@ namespace BootstrapBlazor.Components; /// /// 获得/设置 增加过滤条件图标 - /// Get/Set Add Filter Condition Icon + /// Gets or sets Add Filter Condition Icon /// 10.2.2 /// [Parameter] @@ -80,7 +80,7 @@ namespace BootstrapBlazor.Components; /// /// 获得/设置 移除过滤条件图标 - /// Get/Set Remove Filter Condition Icon + /// Gets or sets Remove Filter Condition Icon /// 10.2.2 /// [Parameter] @@ -88,7 +88,7 @@ namespace BootstrapBlazor.Components; /// /// 获得/设置 减少过滤条件图标 - /// Get/Set Reduce Filter Condition Icon + /// Gets or sets Reduce Filter Condition Icon /// 10.2.2 /// [Parameter] @@ -96,7 +96,7 @@ namespace BootstrapBlazor.Components; /// /// 获得/设置 组合过滤条件文本 - /// Get/Set Group Filter Condition Text + /// Gets or sets Group Filter Condition Text /// 10.2.2 /// [Parameter] @@ -104,7 +104,7 @@ namespace BootstrapBlazor.Components; /// /// 获得/设置 过滤条件文本 - /// Get/Set Filter Condition Text + /// Gets or sets Filter Condition Text /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/QueryBuilder/QueryColumn.cs b/src/BootstrapBlazor/Components/QueryBuilder/QueryColumn.cs index 33422812243..a48454f337c 100644 --- a/src/BootstrapBlazor/Components/QueryBuilder/QueryColumn.cs +++ b/src/BootstrapBlazor/Components/QueryBuilder/QueryColumn.cs @@ -16,7 +16,7 @@ public class QueryColumn : QueryGroup { /// /// 获得/设置 条件字段名称 - /// Get/Set Condition Field Name + /// Gets or sets Condition Field Name /// 10.2.2 /// [Parameter] @@ -24,7 +24,7 @@ public class QueryColumn : QueryGroup /// /// 获得/设置 FieldExpression 表达式 - /// Get/Set FieldExpression + /// Gets or sets FieldExpression /// 10.2.2 /// [Parameter] @@ -32,7 +32,7 @@ public class QueryColumn : QueryGroup /// /// 获得/设置 条件操作符号 - /// Get/Set Condition Operator + /// Gets or sets Condition Operator /// 10.2.2 /// [Parameter] @@ -40,7 +40,7 @@ public class QueryColumn : QueryGroup /// /// 获得/设置 条件值 - /// Get/Set Condition Value + /// Gets or sets Condition Value /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/QueryBuilder/QueryGroup.razor.cs b/src/BootstrapBlazor/Components/QueryBuilder/QueryGroup.razor.cs index 60af5e4f643..89e10261685 100644 --- a/src/BootstrapBlazor/Components/QueryBuilder/QueryGroup.razor.cs +++ b/src/BootstrapBlazor/Components/QueryBuilder/QueryGroup.razor.cs @@ -13,7 +13,7 @@ public partial class QueryGroup : IDisposable { /// /// 获得/设置 子组件 - /// Get/Set Child Content + /// Gets or sets Child Content /// 10.2.2 /// [Parameter] @@ -21,7 +21,7 @@ public partial class QueryGroup : IDisposable /// /// 获得/设置 逻辑运算符 - /// Get/Set Logic Operator + /// Gets or sets Logic Operator /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Radio/Radio.razor.cs b/src/BootstrapBlazor/Components/Radio/Radio.razor.cs index e76e4343f01..eed6b19fc1b 100644 --- a/src/BootstrapBlazor/Components/Radio/Radio.razor.cs +++ b/src/BootstrapBlazor/Components/Radio/Radio.razor.cs @@ -14,7 +14,7 @@ public partial class Radio : Checkbox { /// /// 获得/设置 点击回调方法 - /// Get/Set Click Callback Method + /// Gets or sets Click Callback Method /// 10.2.2 /// [Parameter] @@ -22,7 +22,7 @@ public partial class Radio : Checkbox /// /// 获得/设置 Radio 组名称一般来讲需要设置 默认为 null 未设置 - /// Get/Set Radio Group Name. Default null + /// Gets or sets Radio Group Name. Default null /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Radio/RadioList.razor.cs b/src/BootstrapBlazor/Components/Radio/RadioList.razor.cs index 0cea5891d6a..28d3d1cfea6 100644 --- a/src/BootstrapBlazor/Components/Radio/RadioList.razor.cs +++ b/src/BootstrapBlazor/Components/Radio/RadioList.razor.cs @@ -15,7 +15,7 @@ public partial class RadioList { /// /// 获得/设置 值为可为空枚举类型时是否自动添加空值 默认 false 自定义空值显示文本请参考 - /// Get/Set Whether to auto add null value when value is nullable enum. Default false. Custom null value display text, please refer to + /// Gets or sets Whether to auto add null value when value is nullable enum. Default false. Custom null value display text, please refer to /// 10.2.2 /// [Parameter] @@ -23,7 +23,7 @@ public partial class RadioList /// /// 获得/设置 空值项显示文字 默认为 "" 是否自动添加空值请参考 - /// Get/Set Null item display text. Default "". Whether to auto add null value, please refer to + /// Gets or sets Null item display text. Default "". Whether to auto add null value, please refer to /// 10.2.2 /// [Parameter] @@ -32,7 +32,7 @@ public partial class RadioList /// /// 获得/设置 未设置选中项时是否自动选择第一项 默认 true - /// Get/Set Whether to auto select first item when no item is selected. Default true + /// Gets or sets Whether to auto select first item when no item is selected. Default true /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Radio/RadioListGeneric.razor.cs b/src/BootstrapBlazor/Components/Radio/RadioListGeneric.razor.cs index 80c97b593cc..314e094f44b 100644 --- a/src/BootstrapBlazor/Components/Radio/RadioListGeneric.razor.cs +++ b/src/BootstrapBlazor/Components/Radio/RadioListGeneric.razor.cs @@ -13,7 +13,7 @@ public partial class RadioListGeneric : IModelEqualityComparer { /// /// 获得/设置 值为可为空枚举类型时是否自动添加空值 默认 false 自定义空值显示文本请参考 - /// Get/Set Whether to auto add null value when value is nullable enum. Default false. Custom null value display text, please refer to + /// Gets or sets Whether to auto add null value when value is nullable enum. Default false. Custom null value display text, please refer to /// 10.2.2 /// [Parameter] @@ -21,7 +21,7 @@ public partial class RadioListGeneric : IModelEqualityComparer /// /// 获得/设置 空值项显示文字 默认为 "" 是否自动添加空值请参考 - /// Get/Set Null item display text. Default "". Whether to auto add null value, please refer to + /// Gets or sets Null item display text. Default "". Whether to auto add null value, please refer to /// 10.2.2 /// [Parameter] @@ -30,7 +30,7 @@ public partial class RadioListGeneric : IModelEqualityComparer /// /// 获得/设置 项模板 - /// Get/Set Item Template + /// Gets or sets Item Template /// 10.2.2 /// [Parameter] @@ -38,7 +38,7 @@ public partial class RadioListGeneric : IModelEqualityComparer /// /// 获得/设置 是否为按钮样式 默认 false - /// Get/Set Whether to be button style. Default false + /// Gets or sets Whether to be button style. Default false /// 10.2.2 /// [Parameter] @@ -46,7 +46,7 @@ public partial class RadioListGeneric : IModelEqualityComparer /// /// 获得/设置 是否显示边框 默认为 true - /// Get/Set Whether to show border. Default true + /// Gets or sets Whether to show border. Default true /// 10.2.2 /// [Parameter] @@ -54,7 +54,7 @@ public partial class RadioListGeneric : IModelEqualityComparer /// /// 获得/设置 是否为竖向排列 默认为 false - /// Get/Set Whether to be vertical layout. Default false + /// Gets or sets Whether to be vertical layout. Default false /// 10.2.2 /// [Parameter] @@ -62,7 +62,7 @@ public partial class RadioListGeneric : IModelEqualityComparer /// /// 获得/设置 按钮颜色 默认为 None 未设置 - /// Get/Set Button Color. Default None + /// Gets or sets Button Color. Default None /// 10.2.2 /// [Parameter] @@ -70,7 +70,7 @@ public partial class RadioListGeneric : IModelEqualityComparer /// /// 获得/设置 数据源 - /// Get/Set Items + /// Gets or sets Items /// 10.2.2 /// [Parameter] @@ -79,7 +79,7 @@ public partial class RadioListGeneric : IModelEqualityComparer /// /// 获得/设置 SelectedItemChanged 方法 - /// Get/Set OnSelectedChanged Method + /// Gets or sets OnSelectedChanged Method /// 10.2.2 /// [Parameter] @@ -87,7 +87,7 @@ public partial class RadioListGeneric : IModelEqualityComparer /// /// 获得/设置 数据主键标识标签 默认为
用于判断数据主键标签,如果模型未设置主键时可使用 参数自定义判断
数据模型支持联合主键
- /// Get/Set Data primary key identification attribute. Default
Used to identify data primary key attribute, if model does not set primary key, you can use parameter to customize judgment
Data model supports composite primary keys
+ /// Gets or sets Data primary key identification attribute. Default
Used to identify data primary key attribute, if model does not set primary key, you can use parameter to customize judgment
Data model supports composite primary keys
/// 10.2.2 ///
[Parameter] @@ -96,7 +96,7 @@ public partial class RadioListGeneric : IModelEqualityComparer /// /// 获得/设置 比较数据是否相同回调方法 默认为 null - /// Get/Set Callback method for comparing whether data is the same. Default null + /// Gets or sets Callback method for comparing whether data is the same. Default null /// 提供此回调方法时忽略 属性 /// Ignore property when providing this callback method /// 10.2.2 diff --git a/src/BootstrapBlazor/Components/Rate/Rate.razor.cs b/src/BootstrapBlazor/Components/Rate/Rate.razor.cs index 5fe1a9aad5a..0811964041e 100644 --- a/src/BootstrapBlazor/Components/Rate/Rate.razor.cs +++ b/src/BootstrapBlazor/Components/Rate/Rate.razor.cs @@ -40,7 +40,7 @@ public partial class Rate /// /// 获得/设置 选中图标 - /// Get/Set Checked Icon + /// Gets or sets Checked Icon /// 10.2.2 /// [Parameter] @@ -49,7 +49,7 @@ public partial class Rate /// /// 获得/设置 未选中图标 - /// Get/Set Unchecked Icon + /// Gets or sets Unchecked Icon /// 10.2.2 /// [Parameter] @@ -58,7 +58,7 @@ public partial class Rate /// /// 获得/设置 组件值 - /// Get/Set Value + /// Gets or sets Value /// 10.2.2 /// [Parameter] @@ -66,7 +66,7 @@ public partial class Rate /// /// 获得/设置 是否禁用 默认为 false - /// Get/Set Whether disabled. Default false + /// Gets or sets Whether disabled. Default false /// 10.2.2 /// /// 禁用模式下图标颜色为灰色,不可点击 @@ -75,7 +75,7 @@ public partial class Rate /// /// 获得/设置 是否只读 默认为 false - /// Get/Set Whether readonly. Default false + /// Gets or sets Whether readonly. Default false /// 10.2.2 /// /// 只读情况下图标为彩色,仅不可点击 @@ -84,7 +84,7 @@ public partial class Rate /// /// 获得/设置 是否禁止换行 默认为 true - /// Get/Set Whether to disable wrap. Default true + /// Gets or sets Whether to disable wrap. Default true /// 10.2.2 /// [Parameter] @@ -92,7 +92,7 @@ public partial class Rate /// /// 获得/设置 是否显示 Value 默认为 false - /// Get/Set Whether to show Value. Default false + /// Gets or sets Whether to show Value. Default false /// 10.2.2 /// [Parameter] @@ -100,7 +100,7 @@ public partial class Rate /// /// 获得/设置 子项模板 - /// Get/Set Item Template + /// Gets or sets Item Template /// 10.2.2 /// [Parameter] @@ -108,7 +108,7 @@ public partial class Rate /// /// 获得/设置 组件值变化时回调委托 - /// Get/Set Value Changed Callback Delegate + /// Gets or sets Value Changed Callback Delegate /// 10.2.2 /// [Parameter] @@ -116,7 +116,7 @@ public partial class Rate /// /// 获得/设置 组件值变化时回调委托 - /// Get/Set Value Changed Callback Delegate + /// Gets or sets Value Changed Callback Delegate /// 10.2.2 /// [Parameter] @@ -124,7 +124,7 @@ public partial class Rate /// /// 获得/设置 最大值 默认 5 - /// Get/Set Max Value. Default 5 + /// Gets or sets Max Value. Default 5 /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Reconnector/IReconnector.cs b/src/BootstrapBlazor/Components/Reconnector/IReconnector.cs index e9fc7df04df..c9b3a7a44bf 100644 --- a/src/BootstrapBlazor/Components/Reconnector/IReconnector.cs +++ b/src/BootstrapBlazor/Components/Reconnector/IReconnector.cs @@ -13,19 +13,19 @@ public interface IReconnector { /// /// 获得/设置 正在尝试重试连接对话框的模板 - /// Get/Set Reconnecting Template + /// Gets or sets Reconnecting Template /// RenderFragment? ReconnectingTemplate { get; set; } /// /// 获得/设置 连接失败对话框的模板 - /// Get/Set Reconnect Failed Template + /// Gets or sets Reconnect Failed Template /// RenderFragment? ReconnectFailedTemplate { get; set; } /// /// 获得/设置 连接被拒绝对话框的模板 - /// Get/Set Reconnect Rejected Template + /// Gets or sets Reconnect Rejected Template /// RenderFragment? ReconnectRejectedTemplate { get; set; } } diff --git a/src/BootstrapBlazor/Components/Reconnector/Reconnector.cs b/src/BootstrapBlazor/Components/Reconnector/Reconnector.cs index 1b09b2ac0b7..090a455ed91 100644 --- a/src/BootstrapBlazor/Components/Reconnector/Reconnector.cs +++ b/src/BootstrapBlazor/Components/Reconnector/Reconnector.cs @@ -13,7 +13,7 @@ public class Reconnector : ComponentBase, IReconnector { /// /// 获得/设置 正在尝试重试连接对话框的模板 - /// Get/Set Reconnecting Template + /// Gets or sets Reconnecting Template /// 10.2.2 /// [Parameter] @@ -21,7 +21,7 @@ public class Reconnector : ComponentBase, IReconnector /// /// 获得/设置 连接失败对话框的模板 - /// Get/Set Reconnect Failed Template + /// Gets or sets Reconnect Failed Template /// 10.2.2 /// [Parameter] @@ -29,7 +29,7 @@ public class Reconnector : ComponentBase, IReconnector /// /// 获得/设置 连接被拒绝对话框的模板 - /// Get/Set Reconnect Rejected Template + /// Gets or sets Reconnect Rejected Template /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Reconnector/ReconnectorContent.razor.cs b/src/BootstrapBlazor/Components/Reconnector/ReconnectorContent.razor.cs index 0b267d35c8b..75ab25f52d5 100644 --- a/src/BootstrapBlazor/Components/Reconnector/ReconnectorContent.razor.cs +++ b/src/BootstrapBlazor/Components/Reconnector/ReconnectorContent.razor.cs @@ -13,7 +13,7 @@ public partial class ReconnectorContent { /// /// 获得/设置 ReconnectingTemplate 模板 - /// Get/Set ReconnectingTemplate + /// Gets or sets ReconnectingTemplate /// 10.2.2 /// [Parameter] @@ -21,7 +21,7 @@ public partial class ReconnectorContent /// /// 获得/设置 ReconnectFailedTemplate 模板 - /// Get/Set ReconnectFailedTemplate + /// Gets or sets ReconnectFailedTemplate /// 10.2.2 /// [Parameter] @@ -29,7 +29,7 @@ public partial class ReconnectorContent /// /// 获得/设置 ReconnectRejectedTemplate 模板 - /// Get/Set ReconnectRejectedTemplate + /// Gets or sets ReconnectRejectedTemplate /// 10.2.2 /// [Parameter] @@ -37,7 +37,7 @@ public partial class ReconnectorContent /// /// 获得/设置 是否自动尝试重连 默认 true - /// Get/Set Whether to auto reconnect. Default true + /// Gets or sets Whether to auto reconnect. Default true /// 10.2.2 /// [Parameter] @@ -45,7 +45,7 @@ public partial class ReconnectorContent /// /// 获得/设置 自动重连间隔 默认 5000 毫秒 最小值为 1000 毫秒 - /// Get/Set Auto reconnect interval. Default 5000ms. Min 1000ms + /// Gets or sets Auto reconnect interval. Default 5000ms. Min 1000ms /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Reconnector/ReconnectorOutlet.cs b/src/BootstrapBlazor/Components/Reconnector/ReconnectorOutlet.cs index b6924a9c4e7..7ffa2d924be 100644 --- a/src/BootstrapBlazor/Components/Reconnector/ReconnectorOutlet.cs +++ b/src/BootstrapBlazor/Components/Reconnector/ReconnectorOutlet.cs @@ -15,7 +15,7 @@ public class ReconnectorOutlet : ComponentBase { /// /// 获得/设置 是否自动尝试重连 默认 true - /// Get/Set Whether to auto reconnect. Default true + /// Gets or sets Whether to auto reconnect. Default true /// 10.2.2 /// [Parameter] @@ -23,7 +23,7 @@ public class ReconnectorOutlet : ComponentBase /// /// 获得/设置 自动重连间隔 默认 5000 毫秒 最小值为 1000 毫秒 - /// Get/Set Auto reconnect interval. Default 5000ms. Min 1000ms + /// Gets or sets Auto reconnect interval. Default 5000ms. Min 1000ms /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Redirect/Redirect.cs b/src/BootstrapBlazor/Components/Redirect/Redirect.cs index dc96b8aa6b4..b6df374ed94 100644 --- a/src/BootstrapBlazor/Components/Redirect/Redirect.cs +++ b/src/BootstrapBlazor/Components/Redirect/Redirect.cs @@ -17,7 +17,7 @@ public class Redirect : ComponentBase /// /// 获得/设置 登录地址 默认 Account/Login - /// Get/Set Login URL. Default Account/Login + /// Gets or sets Login URL. Default Account/Login /// 10.2.2 /// [Parameter] @@ -25,7 +25,7 @@ public class Redirect : ComponentBase /// /// 获得/设置 是否强制导航 默认 true - /// Get/Set Whether to force load. Default true + /// Gets or sets Whether to force load. Default true /// 10.2.2 /// /// diff --git a/src/BootstrapBlazor/Components/Repeater/Repeater.razor.cs b/src/BootstrapBlazor/Components/Repeater/Repeater.razor.cs index b32e0fc5c1e..c1e8a60a917 100644 --- a/src/BootstrapBlazor/Components/Repeater/Repeater.razor.cs +++ b/src/BootstrapBlazor/Components/Repeater/Repeater.razor.cs @@ -20,7 +20,7 @@ public partial class Repeater /// /// 获得/设置 数据源 - /// Get/Set Items + /// Gets or sets Items /// 10.2.2 /// [Parameter] @@ -28,7 +28,7 @@ public partial class Repeater /// /// 获得/设置 是否显示正在加载信息 默认 true 显示 - /// Get/Set Whether to show loading info. Default true + /// Gets or sets Whether to show loading info. Default true /// 10.2.2 /// [Parameter] @@ -36,7 +36,7 @@ public partial class Repeater /// /// 获得/设置 正在加载模板 - /// Get/Set Loading Template + /// Gets or sets Loading Template /// 10.2.2 /// [Parameter] @@ -44,7 +44,7 @@ public partial class Repeater /// /// 获得/设置 是否显示无数据信息 默认 true 显示 - /// Get/Set Whether to show empty info. Default true + /// Gets or sets Whether to show empty info. Default true /// 10.2.2 /// [Parameter] @@ -52,7 +52,7 @@ public partial class Repeater /// /// 获得/设置 无数据时提示信息 默认 null - /// Get/Set Empty Text. Default null + /// Gets or sets Empty Text. Default null /// 10.2.2 /// [Parameter] @@ -60,7 +60,7 @@ public partial class Repeater /// /// 获得/设置 正在加载模板 - /// Get/Set Empty Template + /// Gets or sets Empty Template /// 10.2.2 /// [Parameter] @@ -68,7 +68,7 @@ public partial class Repeater /// /// 获得/设置 容器模板 - /// Get/Set Container Template + /// Gets or sets Container Template /// 10.2.2 /// [Parameter] @@ -76,7 +76,7 @@ public partial class Repeater /// /// 获得/设置 模板 - /// Get/Set Item Template + /// Gets or sets Item Template /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Responsive/Responsive.cs b/src/BootstrapBlazor/Components/Responsive/Responsive.cs index 6b416141cd9..3d72404c6fc 100644 --- a/src/BootstrapBlazor/Components/Responsive/Responsive.cs +++ b/src/BootstrapBlazor/Components/Responsive/Responsive.cs @@ -14,7 +14,7 @@ public class Responsive : BootstrapModuleComponentBase { /// /// 获得/设置 浏览器断点阈值改变时触发 默认 null - /// Get/Set Trigger when browser breakpoint threshold changes. Default null + /// Gets or sets Trigger when browser breakpoint threshold changes. Default null /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/RibbonTab/RibbonTab.razor.cs b/src/BootstrapBlazor/Components/RibbonTab/RibbonTab.razor.cs index 3e78a11722c..96b0108d0d0 100644 --- a/src/BootstrapBlazor/Components/RibbonTab/RibbonTab.razor.cs +++ b/src/BootstrapBlazor/Components/RibbonTab/RibbonTab.razor.cs @@ -13,7 +13,7 @@ public partial class RibbonTab { /// /// 获得/设置 是否显示悬浮小箭头 默认 false 不显示 - /// Get/Set Whether to show float button. Default false + /// Gets or sets Whether to show float button. Default false /// 10.2.2 /// [Parameter] @@ -21,7 +21,7 @@ public partial class RibbonTab /// /// 获得/设置 组件是否悬浮状态改变时回调方法 默认 null - /// Get/Set Callback method when float state changes. Default null + /// Gets or sets Callback method when float state changes. Default null /// 10.2.2 /// [Parameter] @@ -29,7 +29,7 @@ public partial class RibbonTab /// /// 获得/设置 选项卡向上箭头图标 - /// Get/Set Tab Arrow Up Icon + /// Gets or sets Tab Arrow Up Icon /// 10.2.2 /// [Parameter] @@ -37,7 +37,7 @@ public partial class RibbonTab /// /// 获得/设置 选项卡向下箭头图标 - /// Get/Set Tab Arrow Down Icon + /// Gets or sets Tab Arrow Down Icon /// 10.2.2 /// [Parameter] @@ -45,7 +45,7 @@ public partial class RibbonTab /// /// 获得/设置 选项卡可固定图标 - /// Get/Set Tab Pin Icon + /// Gets or sets Tab Pin Icon /// 10.2.2 /// [Parameter] @@ -53,7 +53,7 @@ public partial class RibbonTab /// /// 获得/设置 是否开启 Url 锚点 - /// Get/Set Whether to enable Url Anchor + /// Gets or sets Whether to enable Url Anchor /// 10.2.2 /// [Parameter] @@ -77,7 +77,7 @@ public partial class RibbonTab /// /// 获得/设置 数据源 - /// Get/Set Items + /// Gets or sets Items /// 10.2.2 /// [Parameter] @@ -89,7 +89,7 @@ public partial class RibbonTab /// /// 获得/设置 点击命令按钮回调方法 - /// Get/Set Click Command Button Callback Method + /// Gets or sets Click Command Button Callback Method /// 10.2.2 /// [Parameter] @@ -97,7 +97,7 @@ public partial class RibbonTab /// /// 获得/设置 点击标签 Menu 回调方法 - /// Get/Set Click Tab Menu Callback Method + /// Gets or sets Click Tab Menu Callback Method /// 10.2.2 /// [Parameter] @@ -105,7 +105,7 @@ public partial class RibbonTab /// /// 获得/设置 右侧按钮模板 - /// Get/Set Right Buttons Template + /// Gets or sets Right Buttons Template /// 10.2.2 /// [Parameter] @@ -113,7 +113,7 @@ public partial class RibbonTab /// /// 获得/设置 内容模板 - /// Get/Set Child Content + /// Gets or sets Child Content /// 10.2.2 /// [Parameter] @@ -121,7 +121,7 @@ public partial class RibbonTab /// /// 获得/设置 是否为带边框卡片样式 默认 true - /// Get/Set Whether to have border. Default true + /// Gets or sets Whether to have border. Default true /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/RibbonTab/RibbonTabHeader.razor.cs b/src/BootstrapBlazor/Components/RibbonTab/RibbonTabHeader.razor.cs index 1f413a7d9a8..f1d44025507 100644 --- a/src/BootstrapBlazor/Components/RibbonTab/RibbonTabHeader.razor.cs +++ b/src/BootstrapBlazor/Components/RibbonTab/RibbonTabHeader.razor.cs @@ -15,7 +15,7 @@ public partial class RibbonTabHeader { /// /// 获得/设置 数据源 - /// Get/Set Items + /// Gets or sets Items /// 10.2.2 /// [Parameter] @@ -25,7 +25,7 @@ public partial class RibbonTabHeader /// /// 获得/设置 是否显示悬浮小箭头 默认 false 不显示 - /// Get/Set Whether to show float button. Default false + /// Gets or sets Whether to show float button. Default false /// 10.2.2 /// [Parameter] @@ -33,7 +33,7 @@ public partial class RibbonTabHeader /// /// 获得/设置 是否开启 Url 锚点 - /// Get/Set Whether to enable Url Anchor + /// Gets or sets Whether to enable Url Anchor /// 10.2.2 /// [Parameter] @@ -41,7 +41,7 @@ public partial class RibbonTabHeader /// /// 获得/设置 点击命令按钮回调方法 - /// Get/Set Click Command Button Callback Method + /// Gets or sets Click Command Button Callback Method /// 10.2.2 /// [Parameter] @@ -49,7 +49,7 @@ public partial class RibbonTabHeader /// /// 获得/设置 点击标签 Menu 回调方法 - /// Get/Set Click Tab Menu Callback Method + /// Gets or sets Click Tab Menu Callback Method /// 10.2.2 /// [Parameter] @@ -73,7 +73,7 @@ public partial class RibbonTabHeader /// /// 获得/设置 组件是否悬浮状态改变时回调方法 默认 null - /// Get/Set Callback method when float state changes. Default null + /// Gets or sets Callback method when float state changes. Default null /// 10.2.2 /// [Parameter] @@ -81,7 +81,7 @@ public partial class RibbonTabHeader /// /// 获得/设置 选项卡向上箭头图标 - /// Get/Set Tab Arrow Up Icon + /// Gets or sets Tab Arrow Up Icon /// 10.2.2 /// [Parameter] @@ -89,7 +89,7 @@ public partial class RibbonTabHeader /// /// 获得/设置 选项卡向下箭头图标 - /// Get/Set Tab Arrow Down Icon + /// Gets or sets Tab Arrow Down Icon /// 10.2.2 /// [Parameter] @@ -97,7 +97,7 @@ public partial class RibbonTabHeader /// /// 获得/设置 选项卡可固定图标 - /// Get/Set Tab Pin Icon + /// Gets or sets Tab Pin Icon /// 10.2.2 /// [Parameter] @@ -105,7 +105,7 @@ public partial class RibbonTabHeader /// /// 获得/设置 右侧按钮模板 - /// Get/Set Right Buttons Template + /// Gets or sets Right Buttons Template /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/RibbonTab/RibbonTabItem.cs b/src/BootstrapBlazor/Components/RibbonTab/RibbonTabItem.cs index 1a57b077554..cb10289668c 100644 --- a/src/BootstrapBlazor/Components/RibbonTab/RibbonTabItem.cs +++ b/src/BootstrapBlazor/Components/RibbonTab/RibbonTabItem.cs @@ -13,14 +13,14 @@ public class RibbonTabItem { /// /// 获得/设置 当前节点 Id 默认为 null - /// Get/Set Node Id. Default null + /// Gets or sets Node Id. Default null /// /// 一般配合数据库使用 public string? Id { get; set; } /// /// 获得/设置 父级节点 Id 默认为 null - /// Get/Set Parent Node Id. Default null + /// Gets or sets Parent Node Id. Default null /// /// 一般配合数据库使用 public string? ParentId { get; set; } @@ -33,91 +33,91 @@ public class RibbonTabItem /// /// 获得/设置 导航菜单链接地址 - /// Get/Set Navigation URL + /// Gets or sets Navigation URL /// public string? Url { get; set; } /// /// 获得/设置 A 标签 target 参数 默认 null - /// Get/Set Target parameter for A tag. Default null + /// Gets or sets Target parameter for A tag. Default null /// public string? Target { get; set; } /// /// 获得/设置 图片路径 - /// Get/Set Image URL + /// Gets or sets Image URL /// public string? ImageUrl { get; set; } /// /// 获得/设置 分组名称 - /// Get/Set Group Name + /// Gets or sets Group Name /// public string? GroupName { get; set; } /// /// 获得/设置 按钮标识 - /// Get/Set Button Identifier + /// Gets or sets Button Identifier /// public string? Command { get; set; } /// /// 获得/设置 显示文字 - /// Get/Set Display Text + /// Gets or sets Display Text /// public string? Text { get; set; } /// /// 获得/设置 图标 - /// Get/Set Icon + /// Gets or sets Icon /// public string? Icon { get; set; } /// /// 获得/设置 自定义样式名 - /// Get/Set Custom CSS Class + /// Gets or sets Custom CSS Class /// public string? CssClass { get; set; } /// /// 获得/设置 是否收缩 默认 true 收缩 - /// Get/Set Whether collapsed. Default true + /// Gets or sets Whether collapsed. Default true /// public bool IsCollapsed { get; set; } = true; /// /// 获得/设置 是否被禁用 默认 false - /// Get/Set Whether disabled. Default false + /// Gets or sets Whether disabled. Default false /// public bool IsDisabled { get; set; } /// /// 获得/设置 是否为默认按钮 默认 false - /// Get/Set Whether Default Button. Default false + /// Gets or sets Whether Default Button. Default false /// public bool IsDefault { get; set; } /// /// 获得/设置 是否选中当前节点 默认 false - /// Get/Set Whether current node is selected. Default false + /// Gets or sets Whether current node is selected. Default false /// public bool IsActive { get; set; } /// /// 获得/设置 组件数据源 - /// Get/Set Component Items + /// Gets or sets Component Items /// public List Items { get; } = []; /// /// 获得/设置 子组件模板 默认为 null - /// Get/Set Child Template. Default null + /// Gets or sets Child Template. Default null /// public RenderFragment? Template { get; set; } /// /// 获得/设置 动态组件实例 - /// Get/Set Dynamic Component Instance + /// Gets or sets Dynamic Component Instance /// public BootstrapDynamicComponent? Component { get; set; } } diff --git a/src/BootstrapBlazor/Components/Row/Row.razor.cs b/src/BootstrapBlazor/Components/Row/Row.razor.cs index a8949309566..310bb7b4593 100644 --- a/src/BootstrapBlazor/Components/Row/Row.razor.cs +++ b/src/BootstrapBlazor/Components/Row/Row.razor.cs @@ -13,7 +13,7 @@ public partial class Row { /// /// 获得/设置 设置一行显示多少个子组件 - /// Get/Set Items per row + /// Gets or sets Items per row /// 10.2.2 /// [Parameter] @@ -21,7 +21,7 @@ public partial class Row /// /// 获得/设置 设置行格式 默认 Row 布局 - /// Get/Set Row Type. Default Row Layout + /// Gets or sets Row Type. Default Row Layout /// 10.2.2 /// [Parameter] @@ -29,7 +29,7 @@ public partial class Row /// /// 获得/设置 子 Row 跨父 Row 列数 默认为 null - /// Get/Set Child Row span parent Row columns. Default null + /// Gets or sets Child Row span parent Row columns. Default null /// 10.2.2 /// [Parameter] @@ -37,7 +37,7 @@ public partial class Row /// /// 获得/设置 子组件 - /// Get/Set Child Content + /// Gets or sets Child Content /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Scroll/Scroll.razor.cs b/src/BootstrapBlazor/Components/Scroll/Scroll.razor.cs index ce35b4d5e94..5a74fcf0eb8 100644 --- a/src/BootstrapBlazor/Components/Scroll/Scroll.razor.cs +++ b/src/BootstrapBlazor/Components/Scroll/Scroll.razor.cs @@ -29,7 +29,7 @@ public partial class Scroll /// /// 获得/设置 子组件 - /// Get/Set Child Content + /// Gets or sets Child Content /// 10.2.2 /// [Parameter] @@ -37,7 +37,7 @@ public partial class Scroll /// /// 获得/设置 组件高度 - /// Get/Set Height + /// Gets or sets Height /// 10.2.2 /// [Parameter] @@ -45,7 +45,7 @@ public partial class Scroll /// /// 获得/设置 组件宽度 - /// Get/Set Width + /// Gets or sets Width /// 10.2.2 /// [Parameter] @@ -53,7 +53,7 @@ public partial class Scroll /// /// 获得/设置 滚动条宽度 默认 null 未设置使用 配置类中的 - /// Get/Set Scroll Width. Default null. Use in config class if not set + /// Gets or sets Scroll Width. Default null. Use in config class if not set /// 10.2.2 /// [Parameter] @@ -61,7 +61,7 @@ public partial class Scroll /// /// 获得/设置 滚动条 hover 状态下宽度 默认 null 未设置使用 配置类中的 - /// Get/Set Scroll Hover Width. Default null. Use in config class if not set + /// Gets or sets Scroll Hover Width. Default null. Use in config class if not set /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Search/SearchContext.cs b/src/BootstrapBlazor/Components/Search/SearchContext.cs index bf02c3651b7..cdf2e2e188c 100644 --- a/src/BootstrapBlazor/Components/Search/SearchContext.cs +++ b/src/BootstrapBlazor/Components/Search/SearchContext.cs @@ -13,19 +13,19 @@ public class SearchContext(Search search, Func onSearchAsy { /// /// 获得/设置 搜索组件实例 - /// Get/Set Search Component Instance + /// Gets or sets Search Component Instance /// public Search Search { get; } = search; /// /// 获得/设置 清空按钮回调方法 - /// Get/Set Clear Button Callback Method + /// Gets or sets Clear Button Callback Method /// public Func OnClearAsync { get; } = onClearAsync; /// /// 获得/设置 搜索按钮回调方法 - /// Get/Set Search Button Callback Method + /// Gets or sets Search Button Callback Method /// public Func OnSearchAsync { get; } = onSearchAsync; } diff --git a/src/BootstrapBlazor/Components/Segmented/Segmented.razor.cs b/src/BootstrapBlazor/Components/Segmented/Segmented.razor.cs index f0c12b5475a..3d44dc95b29 100644 --- a/src/BootstrapBlazor/Components/Segmented/Segmented.razor.cs +++ b/src/BootstrapBlazor/Components/Segmented/Segmented.razor.cs @@ -30,7 +30,7 @@ public partial class Segmented /// /// 获得/设置 选项集合 默认 null - /// Get/Set Items. Default null + /// Gets or sets Items. Default null /// 10.2.2 /// [Parameter] @@ -39,7 +39,7 @@ public partial class Segmented /// /// 获得/设置 选中值 默认 null - /// Get/Set Value. Default null + /// Gets or sets Value. Default null /// 10.2.2 /// [Parameter] @@ -48,7 +48,7 @@ public partial class Segmented /// /// 获得/设置 选中值回调委托 默认 null - /// Get/Set Value Changed Callback Delegate. Default null + /// Gets or sets Value Changed Callback Delegate. Default null /// 10.2.2 /// [Parameter] @@ -56,7 +56,7 @@ public partial class Segmented /// /// 获得/设置 选中值改变后回调委托方法 默认 null - /// Get/Set Value Changed Callback Method. Default null + /// Gets or sets Value Changed Callback Method. Default null /// 10.2.2 /// [Parameter] @@ -64,7 +64,7 @@ public partial class Segmented /// /// 获得/设置 是否禁用 默认 false - /// Get/Set Whether disabled. Default false + /// Gets or sets Whether disabled. Default false /// 10.2.2 /// [Parameter] @@ -72,7 +72,7 @@ public partial class Segmented /// /// 获得/设置 是否充满父元素 默认 false - /// Get/Set Whether is block. Default false + /// Gets or sets Whether is block. Default false /// 10.2.2 /// [Parameter] @@ -80,7 +80,7 @@ public partial class Segmented /// /// 获得/设置 是否自动显示 Tooltip 默认 false - /// Get/Set Whether to show tooltip. Default false + /// Gets or sets Whether to show tooltip. Default false /// 10.2.2 /// [Parameter] @@ -88,7 +88,7 @@ public partial class Segmented /// /// 获得/设置 组件内容 - /// Get/Set Child Content + /// Gets or sets Child Content /// 10.2.2 /// [Parameter] @@ -96,7 +96,7 @@ public partial class Segmented /// /// 获得/设置 组件大小 默认值 - /// Get/Set Size. Default + /// Gets or sets Size. Default /// 10.2.2 /// [Parameter] @@ -105,7 +105,7 @@ public partial class Segmented /// /// 获得/设置 候选项模板 默认 null - /// Get/Set Item Template. Default null + /// Gets or sets Item Template. Default null /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Segmented/SegmentedItem.cs b/src/BootstrapBlazor/Components/Segmented/SegmentedItem.cs index 79c97cdda19..60d9c9460a5 100644 --- a/src/BootstrapBlazor/Components/Segmented/SegmentedItem.cs +++ b/src/BootstrapBlazor/Components/Segmented/SegmentedItem.cs @@ -21,7 +21,7 @@ public class SegmentedItem : ComponentBase, IDisposable /// /// 获得/设置 是否禁用 默认 false - /// Get/Set Whether disabled. Default false + /// Gets or sets Whether disabled. Default false /// 10.2.2 /// [Parameter] @@ -29,7 +29,7 @@ public class SegmentedItem : ComponentBase, IDisposable /// /// 获得/设置 是否选中 默认 false - /// Get/Set Whether active. Default false + /// Gets or sets Whether active. Default false /// 10.2.2 /// [Parameter] @@ -37,7 +37,7 @@ public class SegmentedItem : ComponentBase, IDisposable /// /// 获得/设置 图标 默认 null - /// Get/Set Icon. Default null + /// Gets or sets Icon. Default null /// 10.2.2 /// [Parameter] @@ -45,7 +45,7 @@ public class SegmentedItem : ComponentBase, IDisposable /// /// 获得/设置 文字 默认 null - /// Get/Set Text. Default null + /// Gets or sets Text. Default null /// 10.2.2 /// [Parameter] @@ -53,7 +53,7 @@ public class SegmentedItem : ComponentBase, IDisposable /// /// 获得/设置 组件值 默认 null - /// Get/Set Value. Default null + /// Gets or sets Value. Default null /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Segmented/SegmentedOption.cs b/src/BootstrapBlazor/Components/Segmented/SegmentedOption.cs index 58c9dd02cfd..e7e101ab471 100644 --- a/src/BootstrapBlazor/Components/Segmented/SegmentedOption.cs +++ b/src/BootstrapBlazor/Components/Segmented/SegmentedOption.cs @@ -13,31 +13,31 @@ public class SegmentedOption { /// /// 获得/设置 显示名称 - /// Get/Set Display Text + /// Gets or sets Display Text /// public string? Text { get; set; } /// /// 获得/设置 选项值 - /// Get/Set Value + /// Gets or sets Value /// public TValue? Value { get; set; } /// /// 获得/设置 是否选中 - /// Get/Set Whether Active + /// Gets or sets Whether Active /// public bool Active { get; set; } /// /// 获得/设置 是否禁用 默认 false - /// Get/Set Whether disabled. Default false + /// Gets or sets Whether disabled. Default false /// public bool IsDisabled { get; set; } /// /// 获得/设置 图标 - /// Get/Set Icon + /// Gets or sets Icon /// public string? Icon { get; set; } diff --git a/src/BootstrapBlazor/Components/Select/ISelectObjectContext.cs b/src/BootstrapBlazor/Components/Select/ISelectObjectContext.cs index 66d50ccba4b..e37b3c78e6c 100644 --- a/src/BootstrapBlazor/Components/Select/ISelectObjectContext.cs +++ b/src/BootstrapBlazor/Components/Select/ISelectObjectContext.cs @@ -13,7 +13,7 @@ public interface ISelectObjectContext { /// /// 获得/设置 SelectObject 组件实例对象引用 - /// Get/Set SelectObject Component Instance + /// Gets or sets SelectObject Component Instance /// [NotNull] SelectObject? Component { get; set; } diff --git a/src/BootstrapBlazor/Components/Select/MultiSelect.razor.cs b/src/BootstrapBlazor/Components/Select/MultiSelect.razor.cs index b3a7ea0a4dd..f085545da7f 100644 --- a/src/BootstrapBlazor/Components/Select/MultiSelect.razor.cs +++ b/src/BootstrapBlazor/Components/Select/MultiSelect.razor.cs @@ -47,7 +47,7 @@ public partial class MultiSelect /// /// 获得/设置 显示部分模板 默认 null - /// Get/Set Display Template. Default null + /// Gets or sets Display Template. Default null /// 10.2.2 /// [Parameter] @@ -55,7 +55,7 @@ public partial class MultiSelect /// /// 获得/设置 是否显示关闭按钮 默认为 true 显示 - /// Get/Set Whether to show close button. Default true + /// Gets or sets Whether to show close button. Default true /// 10.2.2 /// [Parameter] @@ -63,7 +63,7 @@ public partial class MultiSelect /// /// 获得/设置 关闭按钮图标 默认为 null - /// Get/Set Close Button Icon. Default null + /// Gets or sets Close Button Icon. Default null /// 10.2.2 /// [Parameter] @@ -71,7 +71,7 @@ public partial class MultiSelect /// /// 获得/设置 是否显示功能按钮 默认为 false 不显示 - /// Get/Set Whether to show toolbar. Default false + /// Gets or sets Whether to show toolbar. Default false /// 10.2.2 /// [Parameter] @@ -79,7 +79,7 @@ public partial class MultiSelect /// /// 获得/设置 是否显示默认功能按钮 默认为 true 显示 - /// Get/Set Whether to show default buttons. Default true + /// Gets or sets Whether to show default buttons. Default true /// 10.2.2 /// [Parameter] @@ -87,7 +87,7 @@ public partial class MultiSelect /// /// 获得/设置 是否固定高度 默认 false - /// Get/Set Whether fixed height. Default false + /// Gets or sets Whether fixed height. Default false /// 10.2.2 /// [Parameter] @@ -95,7 +95,7 @@ public partial class MultiSelect /// /// 获得/设置 是否为单行模式 默认 false - /// Get/Set Whether single line mode. Default false + /// Gets or sets Whether single line mode. Default false /// 10.2.2 /// [Parameter] @@ -103,7 +103,7 @@ public partial class MultiSelect /// /// 获得/设置 编辑模式下输入选项更新后回调方法 默认 null - /// Get/Set Callback method after input option updated in edit mode. Default null + /// Gets or sets Callback method after input option updated in edit mode. Default null /// 返回 实例时输入选项生效,返回 null 时选项不生效进行舍弃操作,建议在回调方法中自行提示 /// Return instance to take effect, return null to discard, recommend prompt in callback method /// 10.2.2 @@ -114,7 +114,7 @@ public partial class MultiSelect /// /// 获得/设置 编辑提交按键 默认 Enter - /// Get/Set Edit Submit Key. Default Enter + /// Gets or sets Edit Submit Key. Default Enter /// 10.2.2 /// [Parameter] @@ -122,7 +122,7 @@ public partial class MultiSelect /// /// 获得/设置 扩展按钮模板 - /// Get/Set Extension Button Template + /// Gets or sets Extension Button Template /// 10.2.2 /// [Parameter] @@ -130,7 +130,7 @@ public partial class MultiSelect /// /// 获得/设置 选中项集合发生改变时回调委托方法 - /// Get/Set Selected Items Changed Callback Method + /// Gets or sets Selected Items Changed Callback Method /// 10.2.2 /// [Parameter] @@ -146,7 +146,7 @@ public partial class MultiSelect /// /// 获得/设置 全选按钮显示文本 - /// Get/Set Select All Text + /// Gets or sets Select All Text /// 10.2.2 /// [Parameter] @@ -155,7 +155,7 @@ public partial class MultiSelect /// /// 获得/设置 全选按钮显示文本 - /// Get/Set Reverse Select Text + /// Gets or sets Reverse Select Text /// 10.2.2 /// [Parameter] @@ -164,7 +164,7 @@ public partial class MultiSelect /// /// 获得/设置 全选按钮显示文本 - /// Get/Set Clear Text + /// Gets or sets Clear Text /// 10.2.2 /// [Parameter] @@ -173,7 +173,7 @@ public partial class MultiSelect /// /// 获得/设置 选项最大数 默认为 0 不限制 - /// Get/Set Max items. Default 0 (unlimited) + /// Gets or sets Max items. Default 0 (unlimited) /// 10.2.2 /// [Parameter] @@ -181,7 +181,7 @@ public partial class MultiSelect /// /// 获得/设置 设置最大值时错误消息文字 - /// Get/Set Max Error Message + /// Gets or sets Max Error Message /// 10.2.2 /// [Parameter] @@ -190,7 +190,7 @@ public partial class MultiSelect /// /// 获得/设置 选项最小数 默认为 0 不限制 - /// Get/Set Min items. Default 0 (unlimited) + /// Gets or sets Min items. Default 0 (unlimited) /// 10.2.2 /// [Parameter] @@ -198,7 +198,7 @@ public partial class MultiSelect /// /// 获得/设置 设置最小值时错误消息文字 - /// Get/Set Min Error Message + /// Gets or sets Min Error Message /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Select/PopoverSelectBase.cs b/src/BootstrapBlazor/Components/Select/PopoverSelectBase.cs index eb3737c768d..205456efd81 100644 --- a/src/BootstrapBlazor/Components/Select/PopoverSelectBase.cs +++ b/src/BootstrapBlazor/Components/Select/PopoverSelectBase.cs @@ -14,7 +14,7 @@ public abstract class PopoverSelectBase : PopoverDropdownBase { /// /// 获得/设置 是否使用 Popover 渲染下拉框 默认 false - /// Get/Set Whether to use Popover to render dropdown. Default false + /// Gets or sets Whether to use Popover to render dropdown. Default false /// 10.2.2 /// [Parameter] @@ -22,7 +22,7 @@ public abstract class PopoverSelectBase : PopoverDropdownBase /// /// 获得/设置 弹窗偏移量 默认 [0, 10] - /// Get/Set Popover Offset. Default [0, 10] + /// Gets or sets Popover Offset. Default [0, 10] /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Select/SelectObject.razor.cs b/src/BootstrapBlazor/Components/Select/SelectObject.razor.cs index 97f65473311..0eec926728d 100644 --- a/src/BootstrapBlazor/Components/Select/SelectObject.razor.cs +++ b/src/BootstrapBlazor/Components/Select/SelectObject.razor.cs @@ -16,7 +16,7 @@ public partial class SelectObject { /// /// 获得/设置 颜色 默认 Color.None 无设置 - /// Get/Set Color. Default Color.None + /// Gets or sets Color. Default Color.None /// 10.2.2 /// [Parameter] @@ -24,7 +24,7 @@ public partial class SelectObject /// /// 获得/设置 是否显示组件右侧扩展箭头 默认 true 显示 - /// Get/Set Whether to show the component right extension arrow. Default true + /// Gets or sets Whether to show the component right extension arrow. Default true /// 10.2.2 /// [Parameter] @@ -32,7 +32,7 @@ public partial class SelectObject /// /// 获得/设置 弹窗最小宽度 默认为 null 未设置使用样式中的默认值 - /// Get/Set Dropdown Min Width. Default null (use style default) + /// Gets or sets Dropdown Min Width. Default null (use style default) /// 10.2.2 /// [Parameter] @@ -50,7 +50,7 @@ public partial class SelectObject /// /// 获得/设置 右侧下拉箭头图标 默认 fa-solid fa-angle-up - /// Get/Set Dropdown Icon. Default fa-solid fa-angle-up + /// Gets or sets Dropdown Icon. Default fa-solid fa-angle-up /// 10.2.2 /// [Parameter] @@ -59,7 +59,7 @@ public partial class SelectObject /// /// 获得/设置 是否可清除 默认 false - /// Get/Set Whether clearable. Default false + /// Gets or sets Whether clearable. Default false /// 10.2.2 /// [Parameter] @@ -67,7 +67,7 @@ public partial class SelectObject /// /// 获得/设置 右侧清除图标 默认 fa-solid fa-angle-up - /// Get/Set Clear Icon. Default fa-solid fa-angle-up + /// Gets or sets Clear Icon. Default fa-solid fa-angle-up /// 10.2.2 /// [Parameter] @@ -76,7 +76,7 @@ public partial class SelectObject /// /// 获得/设置 下拉列表内容模板 - /// Get/Set Dropdown Content Template + /// Gets or sets Dropdown Content Template /// 10.2.2 /// [Parameter] @@ -86,7 +86,7 @@ public partial class SelectObject /// /// 获得/设置 IIconTheme 服务实例 - /// Get/Set IIconTheme Service Instance + /// Gets or sets IIconTheme Service Instance /// [Inject] [NotNull] @@ -140,7 +140,7 @@ public partial class SelectObject /// /// 获得/设置 弹窗高度 默认 486px; - /// Get/Set Dropdown Height. Default 486px + /// Gets or sets Dropdown Height. Default 486px /// 10.2.2 /// [Parameter] @@ -148,7 +148,7 @@ public partial class SelectObject /// /// 获得/设置 Value 显示模板 默认 null - /// Get/Set Value Display Template. Default null + /// Gets or sets Value Display Template. Default null /// 10.2.2 /// [Parameter] @@ -156,7 +156,7 @@ public partial class SelectObject /// /// 获得/设置 清除文本内容 OnClear 回调方法 默认 null - /// Get/Set OnClear Callback Method. Default null + /// Gets or sets OnClear Callback Method. Default null /// 10.2.2 /// [Parameter] @@ -175,7 +175,7 @@ public partial class SelectObject /// /// 获得/设置 内部 Input 组件 Id - /// Get/Set Internal Input Component Id + /// Gets or sets Internal Input Component Id /// private string InputId => $"{Id}_input"; diff --git a/src/BootstrapBlazor/Components/Select/SelectTable.razor.cs b/src/BootstrapBlazor/Components/Select/SelectTable.razor.cs index eb1b7d905fc..c2c5a866c0e 100644 --- a/src/BootstrapBlazor/Components/Select/SelectTable.razor.cs +++ b/src/BootstrapBlazor/Components/Select/SelectTable.razor.cs @@ -17,7 +17,7 @@ namespace BootstrapBlazor.Components; { /// /// 获得/设置 TableHeader 实例 - /// Get/Set TableHeader Instance + /// Gets or sets TableHeader Instance /// 10.2.2 /// [Parameter] @@ -35,7 +35,7 @@ namespace BootstrapBlazor.Components; /// /// 获得/设置 颜色 默认 Color.None 无设置 - /// Get/Set Color. Default Color.None + /// Gets or sets Color. Default Color.None /// 10.2.2 /// [Parameter] @@ -43,7 +43,7 @@ namespace BootstrapBlazor.Components; /// /// 获得/设置 是否显示组件右侧扩展箭头 默认 true 显示 - /// Get/Set Whether to show the component right extension arrow. Default true + /// Gets or sets Whether to show the component right extension arrow. Default true /// 10.2.2 /// [Parameter] @@ -51,7 +51,7 @@ namespace BootstrapBlazor.Components; /// /// 获得/设置 弹窗表格最小宽度 默认为 null 未设置使用样式中的默认值 - /// Get/Set Dropdown Table Min Width. Default null (use style default) + /// Gets or sets Dropdown Table Min Width. Default null (use style default) /// 10.2.2 /// [Parameter] @@ -69,7 +69,7 @@ namespace BootstrapBlazor.Components; /// /// 获得/设置 右侧下拉箭头图标 默认 fa-solid fa-angle-up - /// Get/Set Dropdown Icon. Default fa-solid fa-angle-up + /// Gets or sets Dropdown Icon. Default fa-solid fa-angle-up /// 10.2.2 /// [Parameter] @@ -78,7 +78,7 @@ namespace BootstrapBlazor.Components; /// /// 获得/设置 是否可清除 默认 false - /// Get/Set Whether clearable. Default false + /// Gets or sets Whether clearable. Default false /// 10.2.2 /// [Parameter] @@ -86,7 +86,7 @@ namespace BootstrapBlazor.Components; /// /// 获得/设置 是否显示无数据空记录 默认 false 不显示 - /// Get/Set Whether to show empty record when no data. Default false + /// Gets or sets Whether to show empty record when no data. Default false /// 10.2.2 /// [Parameter] @@ -94,7 +94,7 @@ namespace BootstrapBlazor.Components; /// /// 获得/设置 无数据时显示模板 默认 null - /// Get/Set Empty Template. Default null + /// Gets or sets Empty Template. Default null /// 10.2.2 /// [Parameter] @@ -102,7 +102,7 @@ namespace BootstrapBlazor.Components; /// /// 获得/设置 IIconTheme 服务实例 - /// Get/Set IIconTheme Service Instance + /// Gets or sets IIconTheme Service Instance /// [Inject] [NotNull] @@ -150,7 +150,7 @@ namespace BootstrapBlazor.Components; /// /// 获得/设置 右侧清除图标 默认 fa-solid fa-angle-up - /// Get/Set Clear Icon. Default fa-solid fa-angle-up + /// Gets or sets Clear Icon. Default fa-solid fa-angle-up /// 10.2.2 /// [Parameter] @@ -167,7 +167,7 @@ namespace BootstrapBlazor.Components; /// /// 获得/设置 表格高度 默认 486px - /// Get/Set Table Height. Default 486px + /// Gets or sets Table Height. Default 486px /// 10.2.2 /// [Parameter] @@ -175,7 +175,7 @@ namespace BootstrapBlazor.Components; /// /// 获得/设置 Value 显示模板 默认 null - /// Get/Set Value Display Template. Default null + /// Gets or sets Value Display Template. Default null /// 10.2.2 /// [Parameter] @@ -183,7 +183,7 @@ namespace BootstrapBlazor.Components; /// /// 获得/设置 是否显示搜索框 默认为 false 不显示搜索框 - /// Get/Set Whether to show search box. Default false + /// Gets or sets Whether to show search box. Default false /// 10.2.2 /// [Parameter] @@ -191,7 +191,7 @@ namespace BootstrapBlazor.Components; /// /// 获得/设置 SearchTemplate 实例 - /// Get/Set SearchTemplate Instance + /// Gets or sets SearchTemplate Instance /// 10.2.2 /// [Parameter] @@ -199,7 +199,7 @@ namespace BootstrapBlazor.Components; /// /// 获得/设置 是否收缩顶部搜索框 默认为 false 不收缩搜索框 是否显示搜索框请设置 值 Top - /// Get/Set Whether to collapse top search box. Default false. Please set to Top if show search box + /// Gets or sets Whether to collapse top search box. Default false. Please set to Top if show search box /// 10.2.2 /// [Parameter] @@ -207,7 +207,7 @@ namespace BootstrapBlazor.Components; /// /// 获得/设置 SearchModel 实例 - /// Get/Set SearchModel Instance + /// Gets or sets SearchModel Instance /// 10.2.2 /// [Parameter] @@ -215,7 +215,7 @@ namespace BootstrapBlazor.Components; /// /// 获得/设置 自定义搜索模型 - /// Get/Set Custom Search Model + /// Gets or sets Custom Search Model /// 10.2.2 /// [Parameter] @@ -223,7 +223,7 @@ namespace BootstrapBlazor.Components; /// /// 获得/设置 自定义搜索模型模板 - /// Get/Set Custom Search Model Template + /// Gets or sets Custom Search Model Template /// 10.2.2 /// [Parameter] @@ -231,7 +231,7 @@ namespace BootstrapBlazor.Components; /// /// 获得/设置 是否分页 默认为 false - /// Get/Set Whether pagination. Default false + /// Gets or sets Whether pagination. Default false /// 10.2.2 /// [Parameter] @@ -239,7 +239,7 @@ namespace BootstrapBlazor.Components; /// /// 获得/设置 每页显示数据数量的外部数据源 - /// Get/Set PageItems Source + /// Gets or sets PageItems Source /// 10.2.2 /// [Parameter] @@ -248,7 +248,7 @@ namespace BootstrapBlazor.Components; /// /// 获得/设置 是否自动生成列信息 默认为 false - /// Get/Set Whether to auto generate columns. Default false + /// Gets or sets Whether to auto generate columns. Default false /// 10.2.2 /// [Parameter] @@ -256,7 +256,7 @@ namespace BootstrapBlazor.Components; /// /// 获得/设置 清除文本内容 OnClear 回调方法 默认 null - /// Get/Set OnClear Callback Method. Default null + /// Gets or sets OnClear Callback Method. Default null /// 10.2.2 /// [Parameter] @@ -275,7 +275,7 @@ namespace BootstrapBlazor.Components; /// /// 获得/设置 内部 Input 组件 Id - /// Get/Set Internal Input Component Id + /// Gets or sets Internal Input Component Id /// private string InputId => $"{Id}_input"; diff --git a/src/BootstrapBlazor/Components/Select/SelectTree.razor.cs b/src/BootstrapBlazor/Components/Select/SelectTree.razor.cs index 1d6791de0d2..a14866e5a02 100644 --- a/src/BootstrapBlazor/Components/Select/SelectTree.razor.cs +++ b/src/BootstrapBlazor/Components/Select/SelectTree.razor.cs @@ -45,7 +45,7 @@ public partial class SelectTree : IModelEqualityComparer /// /// 获得/设置 颜色 默认 Color.None 无设置 - /// Get/Set Color. Default Color.None + /// Gets or sets Color. Default Color.None /// 10.2.2 /// [Parameter] @@ -69,7 +69,7 @@ public partial class SelectTree : IModelEqualityComparer /// /// 获得/设置 字符串比较规则 默认 StringComparison.OrdinalIgnoreCase 大小写不敏感 - /// Get/Set String Comparison. Default StringComparison.OrdinalIgnoreCase + /// Gets or sets String Comparison. Default StringComparison.OrdinalIgnoreCase /// 10.2.2 /// [Parameter] @@ -77,7 +77,7 @@ public partial class SelectTree : IModelEqualityComparer /// /// 获得/设置 带层次数据集合 - /// Get/Set Hierarchical Data Collection + /// Gets or sets Hierarchical Data Collection /// 10.2.2 /// [Parameter] @@ -95,7 +95,7 @@ public partial class SelectTree : IModelEqualityComparer /// /// 获得/设置 点击节点获取子数据集合回调方法 - /// Get/Set OnExpandNodeAsync Callback Method + /// Gets or sets OnExpandNodeAsync Callback Method /// 10.2.2 /// [Parameter] @@ -111,7 +111,7 @@ public partial class SelectTree : IModelEqualityComparer /// /// 获得/设置 比较数据是否相同回调方法 默认为 null - /// Get/Set Model Equality Comparer. Default null + /// Gets or sets Model Equality Comparer. Default null /// 提供此回调方法时忽略 属性 /// Ignore when providing this callback /// 10.2.2 @@ -122,7 +122,7 @@ public partial class SelectTree : IModelEqualityComparer /// /// 获得/设置 是否显示 Icon 图标 默认 false 不显示 - /// Get/Set Whether to show Icon. Default false + /// Gets or sets Whether to show Icon. Default false /// 10.2.2 /// [Parameter] @@ -130,7 +130,7 @@ public partial class SelectTree : IModelEqualityComparer /// /// 获得/设置 下拉箭头 Icon 图标 - /// Get/Set Dropdown Icon + /// Gets or sets Dropdown Icon /// 10.2.2 /// [Parameter] @@ -138,7 +138,7 @@ public partial class SelectTree : IModelEqualityComparer /// /// 获得/设置 是否可编辑 默认 false - /// Get/Set Whether editable. Default false + /// Gets or sets Whether editable. Default false /// 10.2.2 /// [Parameter] @@ -148,7 +148,7 @@ public partial class SelectTree : IModelEqualityComparer /// /// 获得/设置 是否可编辑 默认 false - /// Get/Set Whether editable. Default false + /// Gets or sets Whether editable. Default false /// 10.2.2 /// [Parameter] @@ -156,7 +156,7 @@ public partial class SelectTree : IModelEqualityComparer /// /// 获得/设置 是否显示搜索栏 默认 false 不显示 - /// Get/Set Whether to show search box. Default false + /// Gets or sets Whether to show search box. Default false /// 10.2.2 /// [Parameter] @@ -164,7 +164,7 @@ public partial class SelectTree : IModelEqualityComparer /// /// 获得/设置 是否固定搜索栏 默认 false 不固定 - /// Get/Set Whether fixed search box. Default false + /// Gets or sets Whether fixed search box. Default false /// 10.2.2 /// [Parameter] @@ -174,7 +174,7 @@ public partial class SelectTree : IModelEqualityComparer /// /// 获得/设置 是否显示重置搜索栏按钮 默认 true 显示 - /// Get/Set Whether to show reset search button. Default true + /// Gets or sets Whether to show reset search button. Default true /// 10.2.2 /// [Parameter] @@ -197,7 +197,7 @@ public partial class SelectTree : IModelEqualityComparer /// /// 获得/设置 Select 内部 Input 组件 Id - /// Get/Set Select Internal Input Component Id + /// Gets or sets Select Internal Input Component Id /// private string? InputId => $"{Id}_input"; diff --git a/src/BootstrapBlazor/Components/SelectGeneric/MultiSelectGeneric.razor.cs b/src/BootstrapBlazor/Components/SelectGeneric/MultiSelectGeneric.razor.cs index 8252bc9f0f1..0aa43ef63d7 100644 --- a/src/BootstrapBlazor/Components/SelectGeneric/MultiSelectGeneric.razor.cs +++ b/src/BootstrapBlazor/Components/SelectGeneric/MultiSelectGeneric.razor.cs @@ -45,7 +45,7 @@ public partial class MultiSelectGeneric : IModelEqualityComparer /// /// 获得/设置 显示部分模板 默认 null - /// Get/Set Display Template. Default null + /// Gets or sets Display Template. Default null /// 10.2.2 /// [Parameter] @@ -53,7 +53,7 @@ public partial class MultiSelectGeneric : IModelEqualityComparer /// /// 获得/设置 是否显示关闭按钮 默认为 true 显示 - /// Get/Set Whether to show close button. Default true + /// Gets or sets Whether to show close button. Default true /// 10.2.2 /// [Parameter] @@ -61,7 +61,7 @@ public partial class MultiSelectGeneric : IModelEqualityComparer /// /// 获得/设置 关闭按钮图标 默认为 null - /// Get/Set Close button icon. Default null + /// Gets or sets Close button icon. Default null /// 10.2.2 /// [Parameter] @@ -69,7 +69,7 @@ public partial class MultiSelectGeneric : IModelEqualityComparer /// /// 获得/设置 是否显示功能按钮 默认为 false 不显示 - /// Get/Set Whether to show toolbar. Default false + /// Gets or sets Whether to show toolbar. Default false /// 10.2.2 /// [Parameter] @@ -77,7 +77,7 @@ public partial class MultiSelectGeneric : IModelEqualityComparer /// /// 获得/设置 是否显示默认功能按钮 默认为 true 显示 - /// Get/Set Whether to show default buttons. Default true + /// Gets or sets Whether to show default buttons. Default true /// 10.2.2 /// [Parameter] @@ -85,7 +85,7 @@ public partial class MultiSelectGeneric : IModelEqualityComparer /// /// 获得/设置 是否固定高度 默认 false - /// Get/Set Whether fixed height. Default false + /// Gets or sets Whether fixed height. Default false /// 10.2.2 /// [Parameter] @@ -93,7 +93,7 @@ public partial class MultiSelectGeneric : IModelEqualityComparer /// /// 获得/设置 是否为单行模式 默认 false - /// Get/Set Whether single line mode. Default false + /// Gets or sets Whether single line mode. Default false /// 10.2.2 /// [Parameter] @@ -101,7 +101,7 @@ public partial class MultiSelectGeneric : IModelEqualityComparer /// /// 获得/设置 编辑模式下输入选项更新后回调方法 默认 null - /// Get/Set Callback method when input option is updated in edit mode. Default null + /// Gets or sets Callback method when input option is updated in edit mode. Default null /// 返回 实例时输入选项生效,返回 null 时选项不生效进行舍弃操作,建议在回调方法中自行提示 /// Return instance to take effect, return null to discard, it is recommended to prompt in the callback method /// 10.2.2 @@ -112,7 +112,7 @@ public partial class MultiSelectGeneric : IModelEqualityComparer /// /// 获得/设置 编辑提交按键 默认 Enter - /// Get/Set Edit Submit Key. Default Enter + /// Gets or sets Edit Submit Key. Default Enter /// 10.2.2 /// [Parameter] @@ -120,7 +120,7 @@ public partial class MultiSelectGeneric : IModelEqualityComparer /// /// 获得/设置 扩展按钮模板 - /// Get/Set Button Template + /// Gets or sets Button Template /// 10.2.2 /// [Parameter] @@ -144,7 +144,7 @@ public partial class MultiSelectGeneric : IModelEqualityComparer /// /// 获得/设置 全选按钮显示文本 - /// Get/Set Select All Text + /// Gets or sets Select All Text /// 10.2.2 /// [Parameter] @@ -153,7 +153,7 @@ public partial class MultiSelectGeneric : IModelEqualityComparer /// /// 获得/设置 全选按钮显示文本 - /// Get/Set Reverse Select Text + /// Gets or sets Reverse Select Text /// 10.2.2 /// [Parameter] @@ -162,7 +162,7 @@ public partial class MultiSelectGeneric : IModelEqualityComparer /// /// 获得/设置 全选按钮显示文本 - /// Get/Set Clear Text + /// Gets or sets Clear Text /// 10.2.2 /// [Parameter] @@ -171,7 +171,7 @@ public partial class MultiSelectGeneric : IModelEqualityComparer /// /// 获得/设置 选项最大数 默认为 0 不限制 - /// Get/Set Max items. Default 0 (no limit) + /// Gets or sets Max items. Default 0 (no limit) /// 10.2.2 /// [Parameter] @@ -179,7 +179,7 @@ public partial class MultiSelectGeneric : IModelEqualityComparer /// /// 获得/设置 设置最大值时错误消息文字 - /// Get/Set Error message when max value is set + /// Gets or sets Error message when max value is set /// 10.2.2 /// [Parameter] @@ -188,7 +188,7 @@ public partial class MultiSelectGeneric : IModelEqualityComparer /// /// 获得/设置 选项最小数 默认为 0 不限制 - /// Get/Set Min items. Default 0 (no limit) + /// Gets or sets Min items. Default 0 (no limit) /// 10.2.2 /// [Parameter] @@ -196,7 +196,7 @@ public partial class MultiSelectGeneric : IModelEqualityComparer /// /// 获得/设置 设置最小值时错误消息文字 - /// Get/Set Error message when min value is set + /// Gets or sets Error message when min value is set /// 10.2.2 /// [Parameter] @@ -239,7 +239,7 @@ public partial class MultiSelectGeneric : IModelEqualityComparer /// /// 获得/设置 比较数据是否相同回调方法 默认为 null - /// Get/Set Value Equality Comparer. Default null + /// Gets or sets Value Equality Comparer. Default null /// 提供此回调方法时忽略 属性 /// Ignore when providing this callback /// 10.2.2 @@ -255,7 +255,7 @@ public partial class MultiSelectGeneric : IModelEqualityComparer /// /// 获得/设置 数据主键标识标签 默认为 用于判断数据主键标签,如果模型未设置主键时可使用 参数自定义判断数据模型支持联合主键 - /// Get/Set Identifier tag for data primary key. Default is . Used to determine date primary key tag. If the model does not set a primary key, you can use the parameter to customize the judgment of the data model supporting joint primary keys + /// Gets or sets Identifier tag for data primary key. Default is . Used to determine date primary key tag. If the model does not set a primary key, you can use the parameter to customize the judgment of the data model supporting joint primary keys /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/SelectGeneric/SelectGeneric.razor.cs b/src/BootstrapBlazor/Components/SelectGeneric/SelectGeneric.razor.cs index 40e12f3f315..58e4a8c8af5 100644 --- a/src/BootstrapBlazor/Components/SelectGeneric/SelectGeneric.razor.cs +++ b/src/BootstrapBlazor/Components/SelectGeneric/SelectGeneric.razor.cs @@ -63,7 +63,7 @@ public partial class SelectGeneric : ISelectGeneric, IModelEqual /// /// 获得/设置 是否可编辑 默认 false - /// Get/Set Whether editable. Default false + /// Gets or sets Whether editable. Default false /// 10.2.2 /// [Parameter] @@ -91,7 +91,7 @@ public partial class SelectGeneric : ISelectGeneric, IModelEqual /// /// 获得/设置 选项模板支持静态数据 - /// Get/Set Option template supports static data + /// Gets or sets Option template supports static data /// 10.2.2 /// [Parameter] @@ -99,7 +99,7 @@ public partial class SelectGeneric : ISelectGeneric, IModelEqual /// /// 获得/设置 显示部分模板 默认 null - /// Get/Set Display Template. Default null + /// Gets or sets Display Template. Default null /// 10.2.2 /// [Parameter] @@ -107,7 +107,7 @@ public partial class SelectGeneric : ISelectGeneric, IModelEqual /// /// 获得/设置 禁止首次加载时触发 OnSelectedItemChanged 回调方法 默认 false - /// Get/Set Disable triggering OnSelectedItemChanged callback on first load. Default false + /// Gets or sets Disable triggering OnSelectedItemChanged callback on first load. Default false /// 10.2.2 /// [Parameter] @@ -115,7 +115,7 @@ public partial class SelectGeneric : ISelectGeneric, IModelEqual /// /// 获得/设置 比较数据是否相同回调方法 默认为 null - /// Get/Set Value Equality Comparer. Default null + /// Gets or sets Value Equality Comparer. Default null /// 提供此回调方法时忽略 属性 /// Ignore when providing this callback /// 10.2.2 @@ -131,7 +131,7 @@ public partial class SelectGeneric : ISelectGeneric, IModelEqual /// /// 获得/设置 数据主键标识标签 默认为 用于判断数据主键标签,如果模型未设置主键时可使用 参数自定义判断数据模型支持联合主键 - /// Get/Set Identifier tag for data primary key. Default is . Used to determine date primary key tag. If the model does not set a primary key, you can use the parameter to customize the judgment of the data model supporting joint primary keys + /// Gets or sets Identifier tag for data primary key. Default is . Used to determine date primary key tag. If the model does not set a primary key, you can use the parameter to customize the judgment of the data model supporting joint primary keys /// 10.2.2 /// [Parameter] @@ -143,7 +143,7 @@ public partial class SelectGeneric : ISelectGeneric, IModelEqual /// /// 获得/设置 绑定数据集 - /// Get/Set Bound Dataset + /// Gets or sets Bound Dataset /// 10.2.2 /// [Parameter] @@ -152,7 +152,7 @@ public partial class SelectGeneric : ISelectGeneric, IModelEqual /// /// 获得/设置 选项模板 - /// Get/Set Item Template + /// Gets or sets Item Template /// 10.2.2 /// [Parameter] @@ -160,7 +160,7 @@ public partial class SelectGeneric : ISelectGeneric, IModelEqual /// /// 获得/设置 下拉框项目改变前回调委托方法 返回 true 时选项值改变,否则选项值不变 - /// Get/Set Callback delegate before dropdown item changes. Return true to change option value, otherwise value remains unchanged + /// Gets or sets Callback delegate before dropdown item changes. Return true to change option value, otherwise value remains unchanged /// 10.2.2 /// [Parameter] @@ -176,7 +176,7 @@ public partial class SelectGeneric : ISelectGeneric, IModelEqual /// /// 获得/设置 Swal 图标 默认 Question - /// Get/Set Swal Icon. Default Question + /// Gets or sets Swal Icon. Default Question /// 10.2.2 /// [Parameter] @@ -184,7 +184,7 @@ public partial class SelectGeneric : ISelectGeneric, IModelEqual /// /// 获得/设置 Swal 标题 默认 null - /// Get/Set Swal Title. Default null + /// Gets or sets Swal Title. Default null /// 10.2.2 /// [Parameter] @@ -192,7 +192,7 @@ public partial class SelectGeneric : ISelectGeneric, IModelEqual /// /// 获得/设置 Swal 内容 默认 null - /// Get/Set Swal Content. Default null + /// Gets or sets Swal Content. Default null /// 10.2.2 /// [Parameter] @@ -200,7 +200,7 @@ public partial class SelectGeneric : ISelectGeneric, IModelEqual /// /// 获得/设置 Footer 默认 null - /// Get/Set Footer. Default null + /// Gets or sets Footer. Default null /// 10.2.2 /// [Parameter] @@ -219,7 +219,7 @@ public partial class SelectGeneric : ISelectGeneric, IModelEqual /// /// 获得/设置 Select 内部 Input 组件 Id - /// Get/Set Select Internal Input Component Id + /// Gets or sets Select Internal Input Component Id /// private string? InputId => $"{Id}_input"; @@ -350,7 +350,7 @@ protected override async Task OnAfterRenderAsync(bool firstRender) /// /// 获得/设置 数据总条目 - /// Get/Set Total Count + /// Gets or sets Total Count /// private int TotalCount { get; set; } diff --git a/src/BootstrapBlazor/Components/SelectGeneric/SelectOptionGeneric.cs b/src/BootstrapBlazor/Components/SelectGeneric/SelectOptionGeneric.cs index 6cbebd3df76..cac43017fd0 100644 --- a/src/BootstrapBlazor/Components/SelectGeneric/SelectOptionGeneric.cs +++ b/src/BootstrapBlazor/Components/SelectGeneric/SelectOptionGeneric.cs @@ -13,7 +13,7 @@ public class SelectOptionGeneric : ComponentBase { /// /// 获得/设置 显示名称 - /// Get/Set Display Name + /// Gets or sets Display Name /// 10.2.2 /// [Parameter] @@ -21,7 +21,7 @@ public class SelectOptionGeneric : ComponentBase /// /// 获得/设置 选项值 - /// Get/Set Option Value + /// Gets or sets Option Value /// 10.2.2 /// [Parameter] @@ -29,7 +29,7 @@ public class SelectOptionGeneric : ComponentBase /// /// 获得/设置 是否选中 默认 false - /// Get/Set Whether selected. Default false + /// Gets or sets Whether selected. Default false /// 10.2.2 /// [Parameter] @@ -37,7 +37,7 @@ public class SelectOptionGeneric : ComponentBase /// /// 获得/设置 是否禁用 默认 false - /// Get/Set Whether disabled. Default false + /// Gets or sets Whether disabled. Default false /// 10.2.2 /// [Parameter] @@ -45,7 +45,7 @@ public class SelectOptionGeneric : ComponentBase /// /// 获得/设置 分组名称 - /// Get/Set Group Name + /// Gets or sets Group Name /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Skeleton/SkeletonAvatar.razor.cs b/src/BootstrapBlazor/Components/Skeleton/SkeletonAvatar.razor.cs index 42c082fee4c..8271990d35f 100644 --- a/src/BootstrapBlazor/Components/Skeleton/SkeletonAvatar.razor.cs +++ b/src/BootstrapBlazor/Components/Skeleton/SkeletonAvatar.razor.cs @@ -17,7 +17,7 @@ public sealed partial class SkeletonAvatar /// /// 获得/设置 是否为圆形 默认为 false - /// Get/Set Whether circle. Default false + /// Gets or sets Whether circle. Default false /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Skeleton/SkeletonBase.cs b/src/BootstrapBlazor/Components/Skeleton/SkeletonBase.cs index c1c2db94307..ba8473b4605 100644 --- a/src/BootstrapBlazor/Components/Skeleton/SkeletonBase.cs +++ b/src/BootstrapBlazor/Components/Skeleton/SkeletonBase.cs @@ -13,7 +13,7 @@ public abstract class SkeletonBase : BootstrapComponentBase { /// /// 获得/设置 是否圆角 默认为 true - /// Get/Set Whether round. Default true + /// Gets or sets Whether round. Default true /// 10.2.2 /// [Parameter] @@ -21,7 +21,7 @@ public abstract class SkeletonBase : BootstrapComponentBase /// /// 获得/设置 是否显示动画 默认为 true - /// Get/Set Whether active. Default true + /// Gets or sets Whether active. Default true /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Skeleton/SkeletonTable.razor.cs b/src/BootstrapBlazor/Components/Skeleton/SkeletonTable.razor.cs index b3fb67e2dc1..ab5da9f59ee 100644 --- a/src/BootstrapBlazor/Components/Skeleton/SkeletonTable.razor.cs +++ b/src/BootstrapBlazor/Components/Skeleton/SkeletonTable.razor.cs @@ -13,7 +13,7 @@ public partial class SkeletonTable { /// /// 获得/设置 行数 默认 7 行 - /// Get/Set Rows. Default 7 + /// Gets or sets Rows. Default 7 /// 10.2.2 /// [Parameter] @@ -21,7 +21,7 @@ public partial class SkeletonTable /// /// 获得/设置 行数 默认 3 列 - /// Get/Set Columns. Default 3 + /// Gets or sets Columns. Default 3 /// 10.2.2 /// [Parameter] @@ -29,7 +29,7 @@ public partial class SkeletonTable /// /// 获得/设置 是否显示工具栏 - /// Get/Set Whether to show toolbar + /// Gets or sets Whether to show toolbar /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Skeleton/SkeletonTree.razor.cs b/src/BootstrapBlazor/Components/Skeleton/SkeletonTree.razor.cs index 9e104181bb7..d9ab30f3bbf 100644 --- a/src/BootstrapBlazor/Components/Skeleton/SkeletonTree.razor.cs +++ b/src/BootstrapBlazor/Components/Skeleton/SkeletonTree.razor.cs @@ -18,7 +18,7 @@ public partial class SkeletonTree /// /// 获得/设置 Loading 图标 - /// Get/Set Loading Icon + /// Gets or sets Loading Icon /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Slider/Slider.razor.cs b/src/BootstrapBlazor/Components/Slider/Slider.razor.cs index e7d31657500..f24faa3a1e4 100644 --- a/src/BootstrapBlazor/Components/Slider/Slider.razor.cs +++ b/src/BootstrapBlazor/Components/Slider/Slider.razor.cs @@ -21,7 +21,7 @@ public partial class Slider /// /// 获得/设置 最小值 默认为 null 未设置 - /// Get/Set Min Value. Default null + /// Gets or sets Min Value. Default null /// 10.2.2 /// [Parameter] @@ -30,7 +30,7 @@ public partial class Slider /// /// 获得/设置 最大值 默认为 null 未设置 - /// Get/Set Max Value. Default null + /// Gets or sets Max Value. Default null /// 10.2.2 /// [Parameter] @@ -39,7 +39,7 @@ public partial class Slider /// /// 获得/设置 步长 默认为 null 未设置 - /// Get/Set Step. Default null + /// Gets or sets Step. Default null /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Speech/RecognizerOption.cs b/src/BootstrapBlazor/Components/Speech/RecognizerOption.cs index 6b011f70aa8..ec458e411d0 100644 --- a/src/BootstrapBlazor/Components/Speech/RecognizerOption.cs +++ b/src/BootstrapBlazor/Components/Speech/RecognizerOption.cs @@ -13,31 +13,31 @@ public class RecognizerOption { /// /// 获得/设置 语音识别指令名称 默认 null - /// Get/Set Speech Recognition Command Name. Default null + /// Gets or sets Speech Recognition Command Name. Default null /// public string? MethodName { get; set; } /// /// 获得/设置 回调方法 默认 null - /// Get/Set Callback Method. Default null + /// Gets or sets Callback Method. Default null /// public Func? Callback { get; set; } /// /// 获得/设置 识别语音文化 默认 zh-CN - /// Get/Set Speech Recognition Culture. Default zh-CN + /// Gets or sets Speech Recognition Culture. Default zh-CN /// public string SpeechRecognitionLanguage { get; set; } = "zh-CN"; /// /// 获得/设置 结果文化 默认 zh-CN - /// Get/Set Result Culture. Default zh-CN + /// Gets or sets Result Culture. Default zh-CN /// public string TargetLanguage { get; set; } = "zh-CN"; /// /// 获得/设置 自动识别时间 默认 5000 设置 0 时禁用需要手动关闭 - /// Get/Set Auto Recognition Time. Default 5000. Set 0 to disable and need to close manually + /// Gets or sets Auto Recognition Time. Default 5000. Set 0 to disable and need to close manually /// public int AutoRecoginzerElapsedMilliseconds { get; set; } = 5000; } diff --git a/src/BootstrapBlazor/Components/Speech/SpeechWave.razor.cs b/src/BootstrapBlazor/Components/Speech/SpeechWave.razor.cs index 24d40678b1f..3feb0c359f7 100644 --- a/src/BootstrapBlazor/Components/Speech/SpeechWave.razor.cs +++ b/src/BootstrapBlazor/Components/Speech/SpeechWave.razor.cs @@ -13,7 +13,7 @@ public partial class SpeechWave : IDisposable { /// /// 获得/设置 是否显示波形图 默认 false - /// Get/Set Whether to show waveform. Default false + /// Gets or sets Whether to show waveform. Default false /// 10.2.2 /// [Parameter] @@ -21,7 +21,7 @@ public partial class SpeechWave : IDisposable /// /// 获得/设置 是否显示已用时长 默认 true - /// Get/Set Whether to show used time. Default true + /// Gets or sets Whether to show used time. Default true /// 10.2.2 /// [Parameter] @@ -29,7 +29,7 @@ public partial class SpeechWave : IDisposable /// /// 获得/设置 倒计时结束时回调委托 - /// Get/Set Callback delegate when countdown ends + /// Gets or sets Callback delegate when countdown ends /// 10.2.2 /// [Parameter] @@ -37,7 +37,7 @@ public partial class SpeechWave : IDisposable /// /// 获得/设置 总时长 默认 60 000 毫秒 - /// Get/Set Total Time. Default 60000 ms + /// Gets or sets Total Time. Default 60000 ms /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Speech/SynthesizerOption.cs b/src/BootstrapBlazor/Components/Speech/SynthesizerOption.cs index d8b906a205b..9858e01092d 100644 --- a/src/BootstrapBlazor/Components/Speech/SynthesizerOption.cs +++ b/src/BootstrapBlazor/Components/Speech/SynthesizerOption.cs @@ -13,31 +13,31 @@ public class SynthesizerOption { /// /// 获得/设置 语音识别指令名称 默认 null - /// Get/Set Speech Recognition Command Name. Default null + /// Gets or sets Speech Recognition Command Name. Default null /// public string? MethodName { get; set; } /// /// 获得/设置 语音合成文本内容 默认 null - /// Get/Set Speech Synthesis Text Content. Default null + /// Gets or sets Speech Synthesis Text Content. Default null /// public string? Text { get; set; } /// /// 获得/设置 回调方法 默认 null - /// Get/Set Callback Method. Default null + /// Gets or sets Callback Method. Default null /// public Func? Callback { get; set; } /// /// 获得/设置 识别语音文化 默认 zh-CN - /// Get/Set Speech Synthesis Culture. Default zh-CN + /// Gets or sets Speech Synthesis Culture. Default zh-CN /// public string SpeechSynthesisLanguage { get; set; } = "zh-CN"; /// /// 获得/设置 结果文化 默认 zh-CN - /// Get/Set Result Culture. Default zh-CN + /// Gets or sets Result Culture. Default zh-CN /// public string SpeechSynthesisVoiceName { get; set; } = "zh-CN-XiaoxiaoNeural"; } diff --git a/src/BootstrapBlazor/Components/Spinner/Spinner.razor.cs b/src/BootstrapBlazor/Components/Spinner/Spinner.razor.cs index dcd04454f73..26092469833 100644 --- a/src/BootstrapBlazor/Components/Spinner/Spinner.razor.cs +++ b/src/BootstrapBlazor/Components/Spinner/Spinner.razor.cs @@ -24,7 +24,7 @@ public partial class Spinner /// /// 获得/设置 Spinner 颜色 默认 None 无设置 - /// Get/Set Spinner Color. Default None + /// Gets or sets Spinner Color. Default None /// 10.2.2 /// [Parameter] @@ -32,7 +32,7 @@ public partial class Spinner /// /// 获得 / 设置 Spinner 大小 默认 None 无设置 - /// Get/Set Spinner Size. Default None + /// Gets or sets Spinner Size. Default None /// 10.2.2 /// [Parameter] @@ -40,7 +40,7 @@ public partial class Spinner /// /// 获得/设置 Spinner 类型 默认为 Border - /// Get/Set Spinner Type. Default Border + /// Gets or sets Spinner Type. Default Border /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Split/Split.razor.cs b/src/BootstrapBlazor/Components/Split/Split.razor.cs index a3de2cea6db..e7e7b84da8a 100644 --- a/src/BootstrapBlazor/Components/Split/Split.razor.cs +++ b/src/BootstrapBlazor/Components/Split/Split.razor.cs @@ -13,7 +13,7 @@ public sealed partial class Split { /// /// 获取 是否开启折叠功能 默认 false - /// Get/Set Whether to enable collapsible function. Default false + /// Gets or sets Whether to enable collapsible function. Default false /// 10.2.2 /// [Parameter] @@ -21,7 +21,7 @@ public sealed partial class Split /// /// 获取 是否显示拖动条 默认 true - /// Get/Set Whether to show drag bar. Default true + /// Gets or sets Whether to show drag bar. Default true /// 10.2.2 /// [Parameter] @@ -29,7 +29,7 @@ public sealed partial class Split /// /// 获得/设置 开启 后,恢复时是否保持原始大小 默认 true - /// Get/Set Whether to keep original size when restoring after enabling . Default true + /// Gets or sets Whether to keep original size when restoring after enabling . Default true /// 10.2.2 /// [Parameter] @@ -37,7 +37,7 @@ public sealed partial class Split /// /// 获得/设置 是否垂直分割 - /// Get/Set Whether vertical split + /// Gets or sets Whether vertical split /// 10.2.2 /// [Parameter] @@ -45,7 +45,7 @@ public sealed partial class Split /// /// 获得/设置 第一个窗格初始化位置占比 默认为 50% - /// Get/Set First panel initial position ratio. Default 50% + /// Gets or sets First panel initial position ratio. Default 50% /// 10.2.2 /// [Parameter] @@ -53,7 +53,7 @@ public sealed partial class Split /// /// 获得/设置 第一个窗格模板 - /// Get/Set First Panel Template + /// Gets or sets First Panel Template /// 10.2.2 /// [Parameter] @@ -61,7 +61,7 @@ public sealed partial class Split /// /// 获得/设置 第一个窗格最小宽度 支持任意单位如 10px 20% 5em 1rem 未提供单位时默认为 px - /// Get/Set First Panel Minimum Size. Supports any unit e.g. 10px 20% 5em 1rem. Default unit is px + /// Gets or sets First Panel Minimum Size. Supports any unit e.g. 10px 20% 5em 1rem. Default unit is px /// 10.2.2 /// [Parameter] @@ -69,7 +69,7 @@ public sealed partial class Split /// /// 获得/设置 第二个窗格模板 - /// Get/Set Second Panel Template + /// Gets or sets Second Panel Template /// 10.2.2 /// [Parameter] @@ -77,7 +77,7 @@ public sealed partial class Split /// /// 获得/设置 第二个窗格最小宽度 - /// Get/Set Second Panel Minimum Size + /// Gets or sets Second Panel Minimum Size /// 10.2.2 /// [Parameter] @@ -85,7 +85,7 @@ public sealed partial class Split /// /// 获得/设置 窗格折叠时回调方法 参数 bool 值为 true 是表示已折叠 值为 false 表示第二个已折叠 - /// Get/Set Callback method when panel is collapsed. parameter bool value true means collapsed, false means second panel collapsed + /// Gets or sets Callback method when panel is collapsed. parameter bool value true means collapsed, false means second panel collapsed /// 10.2.2 /// [Parameter] @@ -95,7 +95,7 @@ public sealed partial class Split /// /// 获得/设置 窗格尺寸改变时回调方法 可参阅 - /// Get/Set Callback method when panel size changes. Refer to + /// Gets or sets Callback method when panel size changes. Refer to /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Stack/Stack.razor.cs b/src/BootstrapBlazor/Components/Stack/Stack.razor.cs index 8abb4f95424..59ec150e304 100644 --- a/src/BootstrapBlazor/Components/Stack/Stack.razor.cs +++ b/src/BootstrapBlazor/Components/Stack/Stack.razor.cs @@ -32,7 +32,7 @@ public partial class Stack /// /// 获得/设置 内容 - /// Get/Set Content + /// Gets or sets Content /// 10.2.2 /// [Parameter] @@ -40,7 +40,7 @@ public partial class Stack /// /// 获得/设置 是否为行布局 默认 false - /// Get/Set Is Row Layout. Default false + /// Gets or sets Is Row Layout. Default false /// 10.2.2 /// [Parameter] @@ -48,7 +48,7 @@ public partial class Stack /// /// 获得/设置 是否反向布局 默认 false - /// Get/Set Is Reverse Layout. Default false + /// Gets or sets Is Reverse Layout. Default false /// 10.2.2 /// [Parameter] @@ -56,7 +56,7 @@ public partial class Stack /// /// 获得/设置 是否允许折行 默认 false - /// Get/Set Is Wrap. Default false + /// Gets or sets Is Wrap. Default false /// 10.2.2 /// [Parameter] @@ -64,7 +64,7 @@ public partial class Stack /// /// 获得/设置 垂直布局模式 默认 StackAlignItems.Stretch - /// Get/Set Align Items. Default StackAlignItems.Stretch + /// Gets or sets Align Items. Default StackAlignItems.Stretch /// 10.2.2 /// [Parameter] @@ -72,7 +72,7 @@ public partial class Stack /// /// 获得/设置 水平布局调整 默认 StackJustifyContent.Start - /// Get/Set Justify Content. Default StackJustifyContent.Start + /// Gets or sets Justify Content. Default StackJustifyContent.Start /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Stack/StackItem.cs b/src/BootstrapBlazor/Components/Stack/StackItem.cs index c50d15a456f..253be2b1f0c 100644 --- a/src/BootstrapBlazor/Components/Stack/StackItem.cs +++ b/src/BootstrapBlazor/Components/Stack/StackItem.cs @@ -18,7 +18,7 @@ public class StackItem : BootstrapComponentBase, IDisposable /// /// 获得/设置 内容 - /// Get/Set Content + /// Gets or sets Content /// 10.2.2 /// [Parameter] @@ -26,7 +26,7 @@ public class StackItem : BootstrapComponentBase, IDisposable /// /// 获得/设置 是否自动充满 默认 false - /// Get/Set Is Fill. Default false + /// Gets or sets Is Fill. Default false /// 10.2.2 /// [Parameter] @@ -34,7 +34,7 @@ public class StackItem : BootstrapComponentBase, IDisposable /// /// 获得/设置 垂直布局模式 默认 StackAlignItems.Stretch - /// Get/Set Align Self. Default StackAlignItems.Stretch + /// Gets or sets Align Self. Default StackAlignItems.Stretch /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Step/Step.razor.cs b/src/BootstrapBlazor/Components/Step/Step.razor.cs index 9702fedcbc6..e90a5734ade 100644 --- a/src/BootstrapBlazor/Components/Step/Step.razor.cs +++ b/src/BootstrapBlazor/Components/Step/Step.razor.cs @@ -13,7 +13,7 @@ public partial class Step { /// /// 获得/设置 步骤集合 - /// Get/Set Items + /// Gets or sets Items /// 10.2.2 /// [Parameter] @@ -22,7 +22,7 @@ public partial class Step /// /// 获得/设置 是否垂直渲染 默认 false 水平渲染 - /// Get/Set Is Vertical. Default false (Horizontal) + /// Gets or sets Is Vertical. Default false (Horizontal) /// 10.2.2 /// [Parameter] @@ -30,7 +30,7 @@ public partial class Step /// /// 获得/设置 当前步骤索引 默认 0 - /// Get/Set Current Step Index. Default 0 + /// Gets or sets Current Step Index. Default 0 /// 10.2.2 /// [Parameter] @@ -38,7 +38,7 @@ public partial class Step /// /// 获得/设置 组件内容实例 - /// Get/Set Child Content + /// Gets or sets Child Content /// 10.2.2 /// [Parameter] @@ -46,7 +46,7 @@ public partial class Step /// /// 获得/设置 步骤全部完成时模板 默认 null - /// Get/Set Finished Template. Default null + /// Gets or sets Finished Template. Default null /// 10.2.2 /// [Parameter] @@ -54,7 +54,7 @@ public partial class Step /// /// 获得/设置 步骤全部完成时回调方法 - /// Get/Set Callback method when all steps are finished + /// Gets or sets Callback method when all steps are finished /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Step/StepItem.cs b/src/BootstrapBlazor/Components/Step/StepItem.cs index 2dd6fadd3d5..7075bb4ad4d 100644 --- a/src/BootstrapBlazor/Components/Step/StepItem.cs +++ b/src/BootstrapBlazor/Components/Step/StepItem.cs @@ -13,7 +13,7 @@ public class StepItem : ComponentBase, IDisposable { /// /// 获得/设置 步骤显示文字 - /// Get/Set Text + /// Gets or sets Text /// 10.2.2 /// [Parameter] @@ -21,7 +21,7 @@ public class StepItem : ComponentBase, IDisposable /// /// 获得/设置 步骤显示文字 - /// Get/Set Title + /// Gets or sets Title /// 10.2.2 /// [Parameter] @@ -29,7 +29,7 @@ public class StepItem : ComponentBase, IDisposable /// /// 获得/设置 步骤显示图标 - /// Get/Set Icon + /// Gets or sets Icon /// 10.2.2 /// [Parameter] @@ -37,7 +37,7 @@ public class StepItem : ComponentBase, IDisposable /// /// 获得/设置 步骤完成显示图标 - /// Get/Set Finished Icon + /// Gets or sets Finished Icon /// 10.2.2 /// [Parameter] @@ -45,7 +45,7 @@ public class StepItem : ComponentBase, IDisposable /// /// 获得/设置 描述信息 - /// Get/Set Description + /// Gets or sets Description /// 10.2.2 /// [Parameter] @@ -53,7 +53,7 @@ public class StepItem : ComponentBase, IDisposable /// /// 获得/设置 Header 模板 - /// Get/Set Header Template + /// Gets or sets Header Template /// 10.2.2 /// [Parameter] @@ -61,7 +61,7 @@ public class StepItem : ComponentBase, IDisposable /// /// 获得/设置 Title 模板 - /// Get/Set Title Template + /// Gets or sets Title Template /// 10.2.2 /// [Parameter] @@ -69,7 +69,7 @@ public class StepItem : ComponentBase, IDisposable /// /// 获得/设置 组件内容实例 - /// Get/Set Child Content + /// Gets or sets Child Content /// 10.2.2 /// [Parameter] @@ -77,7 +77,7 @@ public class StepItem : ComponentBase, IDisposable /// /// 获得/设置 父级组件 Step 实例 - /// Get/Set Parent Step Component Instance + /// Gets or sets Parent Step Component Instance /// [CascadingParameter] private Step? Step { get; set; } diff --git a/src/BootstrapBlazor/Components/Step/StepOption.cs b/src/BootstrapBlazor/Components/Step/StepOption.cs index c02945f9914..63c2ae19ab1 100644 --- a/src/BootstrapBlazor/Components/Step/StepOption.cs +++ b/src/BootstrapBlazor/Components/Step/StepOption.cs @@ -13,49 +13,49 @@ public class StepOption { /// /// 获得/设置 步骤显示文字 - /// Get/Set Text + /// Gets or sets Text /// public string? Text { get; set; } /// /// 获得/设置 步骤显示图标 - /// Get/Set Icon + /// Gets or sets Icon /// public string? Icon { get; set; } /// /// 获得/设置 步骤完成显示图标 - /// Get/Set Finished Icon + /// Gets or sets Finished Icon /// public string? FinishedIcon { get; set; } /// /// 获得/设置 步骤显示标题 - /// Get/Set Title + /// Gets or sets Title /// public string? Title { get; set; } /// /// 获得/设置 描述信息 - /// Get/Set Description + /// Gets or sets Description /// public string? Description { get; set; } /// /// 获得/设置 Header 模板 - /// Get/Set Header Template + /// Gets or sets Header Template /// public RenderFragment? HeaderTemplate { get; set; } /// /// 获得/设置 Title 模板 - /// Get/Set Title Template + /// Gets or sets Title Template /// public RenderFragment? TitleTemplate { get; set; } /// /// 获得/设置 每个 step 内容模板 - /// Get/Set Template + /// Gets or sets Template /// public RenderFragment? Template { get; set; } } diff --git a/src/BootstrapBlazor/Components/SweetAlert/SwalOption.cs b/src/BootstrapBlazor/Components/SweetAlert/SwalOption.cs index f265c39f140..32b29073ff4 100644 --- a/src/BootstrapBlazor/Components/SweetAlert/SwalOption.cs +++ b/src/BootstrapBlazor/Components/SweetAlert/SwalOption.cs @@ -13,110 +13,110 @@ public class SwalOption : PopupOptionBase { /// /// 获得/设置 相关弹窗实例 - /// Get/Set Modal Instance + /// Gets or sets Modal Instance /// internal Modal? Modal { get; set; } /// /// 获得/设置 模态弹窗任务上下文 - /// Get/Set Modal Task Context + /// Gets or sets Modal Task Context /// [NotNull] internal SweetContext? ConfirmContext { get; set; } /// /// 获得/设置 是否为确认弹窗模式 此属性给模态弹窗时使用 默认为 false - /// Get/Set Whether is confirm dialog mode. Used for modal dialog. Default false + /// Gets or sets Whether is confirm dialog mode. Used for modal dialog. Default false /// public bool IsConfirm { get; set; } /// /// 获得/设置 提示类型 默认为 Success - /// Get/Set Category. Default Success + /// Gets or sets Category. Default Success /// public SwalCategory Category { get; set; } /// /// 获得/设置 弹窗标题 - /// Get/Set Title + /// Gets or sets Title /// public string? Title { get; set; } /// /// 获得/设置 ModalBody 组件 - /// Get/Set ModalBody Component + /// Gets or sets ModalBody Component /// public RenderFragment? BodyTemplate { get; set; } /// /// 获得/设置 Footer 组件 - /// Get/Set Footer Component + /// Gets or sets Footer Component /// public RenderFragment? FooterTemplate { get; set; } /// /// 获得/设置 是否显示关闭按钮 默认为 true 显示 - /// Get/Set Whether to show close button. Default true + /// Gets or sets Whether to show close button. Default true /// public bool ShowClose { get; set; } = true; /// /// 获得/设置 是否显示 Footer 默认 false 不显示 - /// Get/Set Whether to show footer. Default false + /// Gets or sets Whether to show footer. Default false /// public bool ShowFooter { get; set; } /// /// 获得/设置 按钮模板 - /// Get/Set Button Template + /// Gets or sets Button Template /// public RenderFragment? ButtonTemplate { get; set; } /// /// 获得/设置 关闭按钮图标 默认 fa-solid fa-xmark - /// Get/Set Close Button Icon. Default fa-solid fa-xmark + /// Gets or sets Close Button Icon. Default fa-solid fa-xmark /// public string? CloseButtonIcon { get; set; } /// /// 获得/设置 确认按钮图标 默认 fa-solid fa-check - /// Get/Set Confirm Button Icon. Default fa-solid fa-check + /// Gets or sets Confirm Button Icon. Default fa-solid fa-check /// public string? ConfirmButtonIcon { get; set; } /// /// 获得/设置 关闭按钮文字 默认为 关闭 - /// Get/Set Close Button Text. Default Close + /// Gets or sets Close Button Text. Default Close /// public string? CloseButtonText { get; set; } /// /// 获得/设置 确认按钮文字 默认为 确认 - /// Get/Set Confirm Button Text. Default Confirm + /// Gets or sets Confirm Button Text. Default Confirm /// public string? ConfirmButtonText { get; set; } /// /// 获得/设置 取消按钮文字 默认为 取消 - /// Get/Set Cancel Button Text. Default Cancel + /// Gets or sets Cancel Button Text. Default Cancel /// public string? CancelButtonText { get; set; } /// /// 获得/设置 弹窗自定义样式 - /// Get/Set Custom Class + /// Gets or sets Custom Class /// public string? Class { get; set; } /// /// 获得/设置 关闭弹窗回调方法 - /// Get/Set Callback method when closing + /// Gets or sets Callback method when closing /// public Func? OnCloseAsync { get; set; } /// /// 获得/设置 点击 Confirm 按钮回调方法 用于模态对话框 - /// Get/Set Callback method when clicking Confirm button. Used for modal dialog + /// Gets or sets Callback method when clicking Confirm button. Used for modal dialog /// public Func? OnConfirmAsync { get; set; } diff --git a/src/BootstrapBlazor/Components/SweetAlert/SweetAlertBody.razor.cs b/src/BootstrapBlazor/Components/SweetAlert/SweetAlertBody.razor.cs index bd394bd2e75..34d8b951569 100644 --- a/src/BootstrapBlazor/Components/SweetAlert/SweetAlertBody.razor.cs +++ b/src/BootstrapBlazor/Components/SweetAlert/SweetAlertBody.razor.cs @@ -21,7 +21,7 @@ public partial class SweetAlertBody /// /// 获得/设置 关闭按钮文字 默认为 关闭 - /// Get/Set Close Button Text. Default Close + /// Gets or sets Close Button Text. Default Close /// 10.2.2 /// [Parameter] @@ -30,7 +30,7 @@ public partial class SweetAlertBody /// /// 获得/设置 确认按钮文字 默认为 确认 - /// Get/Set Confirm Button Text. Default Confirm + /// Gets or sets Confirm Button Text. Default Confirm /// 10.2.2 /// [Parameter] @@ -39,7 +39,7 @@ public partial class SweetAlertBody /// /// 获得/设置 取消按钮文字 默认为 取消 - /// Get/Set Cancel Button Text. Default Cancel + /// Gets or sets Cancel Button Text. Default Cancel /// 10.2.2 /// [Parameter] @@ -48,7 +48,7 @@ public partial class SweetAlertBody /// /// 获得/设置 弹窗类别默认为 Success - /// Get/Set Category. Default Success + /// Gets or sets Category. Default Success /// 10.2.2 /// [Parameter] @@ -56,7 +56,7 @@ public partial class SweetAlertBody /// /// 获得/设置 显示标题 - /// Get/Set Title + /// Gets or sets Title /// 10.2.2 /// [Parameter] @@ -64,7 +64,7 @@ public partial class SweetAlertBody /// /// 获得/设置 显示内容 - /// Get/Set Content + /// Gets or sets Content /// 10.2.2 /// [Parameter] @@ -72,7 +72,7 @@ public partial class SweetAlertBody /// /// 获得/设置 是否显示关闭按钮 默认 true 显示 - /// Get/Set Whether to show close button. Default true + /// Gets or sets Whether to show close button. Default true /// 10.2.2 /// [Parameter] @@ -80,7 +80,7 @@ public partial class SweetAlertBody /// /// 获得/设置 是否显示 Footer 默认 false 不显示 - /// Get/Set Whether to show footer. Default false + /// Gets or sets Whether to show footer. Default false /// 10.2.2 /// [Parameter] @@ -88,7 +88,7 @@ public partial class SweetAlertBody /// /// 获得/设置 是否为确认弹窗模式 默认为 false - /// Get/Set Whether is confirm dialog mode. Default false + /// Gets or sets Whether is confirm dialog mode. Default false /// 10.2.2 /// [Parameter] @@ -96,7 +96,7 @@ public partial class SweetAlertBody /// /// 获得/设置 关闭按钮图标 - /// Get/Set Close Button Icon + /// Gets or sets Close Button Icon /// 10.2.2 /// [Parameter] @@ -105,7 +105,7 @@ public partial class SweetAlertBody /// /// 获得/设置 确认按钮图标 - /// Get/Set Confirm Button Icon + /// Gets or sets Confirm Button Icon /// 10.2.2 /// [Parameter] @@ -114,7 +114,7 @@ public partial class SweetAlertBody /// /// 获得/设置 关闭按钮回调方法 - /// Get/Set Close Callback Method + /// Gets or sets Close Callback Method /// 10.2.2 /// [Parameter] @@ -122,7 +122,7 @@ public partial class SweetAlertBody /// /// 获得/设置 确认按钮回调方法 - /// Get/Set Confirm Callback Method + /// Gets or sets Confirm Callback Method /// 10.2.2 /// [Parameter] @@ -130,7 +130,7 @@ public partial class SweetAlertBody /// /// 获得/设置 显示内容模板 - /// Get/Set Body Template + /// Gets or sets Body Template /// 10.2.2 /// [Parameter] @@ -138,7 +138,7 @@ public partial class SweetAlertBody /// /// 获得/设置 Footer 模板 - /// Get/Set Footer Template + /// Gets or sets Footer Template /// 10.2.2 /// [Parameter] @@ -146,7 +146,7 @@ public partial class SweetAlertBody /// /// 获得/设置 按钮模板 - /// Get/Set Button Template + /// Gets or sets Button Template /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/SweetAlert/SweetContext.cs b/src/BootstrapBlazor/Components/SweetAlert/SweetContext.cs index ece2b7a1606..ac034db0d1c 100644 --- a/src/BootstrapBlazor/Components/SweetAlert/SweetContext.cs +++ b/src/BootstrapBlazor/Components/SweetAlert/SweetContext.cs @@ -9,13 +9,13 @@ internal class SweetContext { /// /// 获得/设置 弹窗返回值 - /// Get/Set Dialog Return Value + /// Gets or sets Dialog Return Value /// public bool Value { get; set; } /// /// 获得/设置 弹窗任务上下文 - /// Get/Set Dialog Task Context + /// Gets or sets Dialog Task Context /// [NotNull] public TaskCompletionSource? ConfirmTask { get; init; } diff --git a/src/BootstrapBlazor/Components/Switch/NullSwitch.razor.cs b/src/BootstrapBlazor/Components/Switch/NullSwitch.razor.cs index 31a1957b2d0..1862820b3c4 100644 --- a/src/BootstrapBlazor/Components/Switch/NullSwitch.razor.cs +++ b/src/BootstrapBlazor/Components/Switch/NullSwitch.razor.cs @@ -13,10 +13,6 @@ namespace BootstrapBlazor.Components; /// public partial class NullSwitch { - /// - /// 获得 样式集合 - /// Get Class Name - /// private string? ClassName => CssBuilder.Default("switch") .AddClass("is-checked", ComponentValue) .AddClass("disabled", IsDisabled) @@ -40,16 +36,8 @@ public partial class NullSwitch return ret; } - /// - /// 获得 显示文字 - /// Get Text - /// private string? Text => ComponentValue ? OnText : OffText; - /// - /// 获得 组件最小宽度 - /// Get Component Minimum Width - /// private string? SwitchStyleName => CssBuilder.Default() .AddClass($"min-width: {Width}px;", Width > 0) .AddStyleFromAttributes(AdditionalAttributes) @@ -66,7 +54,7 @@ public partial class NullSwitch /// /// 获得/设置 开颜色 - /// Get/Set On Color + /// Gets or sets On Color /// 10.2.2 /// [Parameter] @@ -74,7 +62,7 @@ public partial class NullSwitch /// /// 获得/设置 关颜色 - /// Get/Set Off Color + /// Gets or sets Off Color /// 10.2.2 /// [Parameter] @@ -82,7 +70,7 @@ public partial class NullSwitch /// /// 获得/设置 组件宽度 默认 40 - /// Get/Set Component Width. Default 40 + /// Gets or sets Component Width. Default 40 /// 10.2.2 /// [Parameter] @@ -90,7 +78,7 @@ public partial class NullSwitch /// /// 获得/设置 控件高度默认 20px - /// Get/Set Component Height. Default 20px + /// Gets or sets Component Height. Default 20px /// 10.2.2 /// [Parameter] @@ -98,7 +86,7 @@ public partial class NullSwitch /// /// 获得/设置 组件 On 时内置显示文本 - /// Get/Set On Inner Text + /// Gets or sets On Inner Text /// 10.2.2 /// [Parameter] @@ -107,7 +95,7 @@ public partial class NullSwitch /// /// 获得/设置 组件 Off 时内置显示文本 - /// Get/Set Off Inner Text + /// Gets or sets Off Inner Text /// 10.2.2 /// [Parameter] @@ -116,7 +104,7 @@ public partial class NullSwitch /// /// 获得/设置 是否显示内置文字 默认 false 显示 - /// Get/Set Whether to show inner text. Default false + /// Gets or sets Whether to show inner text. Default false /// 10.2.2 /// [Parameter] @@ -128,7 +116,7 @@ public partial class NullSwitch /// /// 获得/设置 绑定值为空时的默认值 默认为 false - /// Get/Set Default value when null. Default false + /// Gets or sets Default value when null. Default false /// 10.2.2 /// [Parameter] @@ -136,13 +124,12 @@ public partial class NullSwitch /// /// 获得/设置 组件 Value 值 - /// Get/Set Component Value + /// Gets or Sets Component Value /// protected bool ComponentValue => Value ?? DefaultValueWhenNull; /// - /// OnInitialized 方法 - /// OnInitialized Method + /// /// protected override void OnInitialized() { @@ -152,10 +139,6 @@ protected override void OnInitialized() OffInnerText ??= Localizer[nameof(OffInnerText)]; } - /// - /// 点击控件时触发此方法 - /// Method triggered when clicking the control - /// private async Task OnClick() { if (!IsDisabled) diff --git a/src/BootstrapBlazor/Components/Switch/Switch.razor.cs b/src/BootstrapBlazor/Components/Switch/Switch.razor.cs index 7028feb8002..f62521727f0 100644 --- a/src/BootstrapBlazor/Components/Switch/Switch.razor.cs +++ b/src/BootstrapBlazor/Components/Switch/Switch.razor.cs @@ -63,7 +63,7 @@ public partial class Switch /// /// 获得/设置 开颜色 - /// Get/Set On Color + /// Gets or sets On Color /// 10.2.2 /// [Parameter] @@ -71,7 +71,7 @@ public partial class Switch /// /// 获得/设置 关颜色 - /// Get/Set Off Color + /// Gets or sets Off Color /// 10.2.2 /// [Parameter] @@ -79,7 +79,7 @@ public partial class Switch /// /// 获得/设置 组件宽度 默认 40 - /// Get/Set Component Width. Default 40 + /// Gets or sets Component Width. Default 40 /// 10.2.2 /// [Parameter] @@ -87,7 +87,7 @@ public partial class Switch /// /// 获得/设置 控件高度默认 20px - /// Get/Set Component Height. Default 20px + /// Gets or sets Component Height. Default 20px /// 10.2.2 /// [Parameter] @@ -95,7 +95,7 @@ public partial class Switch /// /// 获得/设置 组件 On 时内置显示文本 - /// Get/Set On Inner Text + /// Gets or sets On Inner Text /// 10.2.2 /// [Parameter] @@ -104,7 +104,7 @@ public partial class Switch /// /// 获得/设置 组件 Off 时内置显示文本 - /// Get/Set Off Inner Text + /// Gets or sets Off Inner Text /// 10.2.2 /// [Parameter] @@ -113,7 +113,7 @@ public partial class Switch /// /// 获得/设置 是否显示内置文字 默认 false 显示 - /// Get/Set Whether to show inner text. Default false + /// Gets or sets Whether to show inner text. Default false /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Tab/BootstrapBlazorAuthorizeView.cs b/src/BootstrapBlazor/Components/Tab/BootstrapBlazorAuthorizeView.cs index 90c8cbf3b52..43bc484722d 100644 --- a/src/BootstrapBlazor/Components/Tab/BootstrapBlazorAuthorizeView.cs +++ b/src/BootstrapBlazor/Components/Tab/BootstrapBlazorAuthorizeView.cs @@ -11,14 +11,14 @@ namespace BootstrapBlazor.Components; /// -/// BootstrapBlazorAuthorizeView component -/// BootstrapBlazorAuthorizeView component +/// BootstrapBlazorAuthorizeView 组件 +/// BootstrapBlazorAuthorizeView Component /// public class BootstrapBlazorAuthorizeView : ComponentBase { /// - /// 获得/设置 the 类型 associated with the route. default is null - /// Gets or sets the type associated with the route. default is null + /// 获得/设置 与路由关联的类型,默认为 null + /// Gets or sets the type associated with the route. Default is null. /// 10.2.2 /// [Parameter] @@ -26,24 +26,24 @@ public class BootstrapBlazorAuthorizeView : ComponentBase public Type? Type { get; set; } /// - /// 获得/设置 the parameters associated with the route. default is null - /// Gets or sets the parameters associated with the route. default is null + /// 获得/设置 与路由关联的参数,默认为 null + /// Gets or sets the parameters associated with the route. Default is null. /// 10.2.2 /// [Parameter] public IReadOnlyDictionary? Parameters { get; set; } /// - /// 获得/设置 the 模板 to 显示 when the user is not authorized. default is null - /// Gets or sets the template to display when the user is not authorized. default is null + /// 获得/设置 用户未授权时显示的模板,默认为 null + /// Gets or sets the template to display when the user is not authorized. Default is null. /// 10.2.2 /// [Parameter] public RenderFragment? NotAuthorized { get; set; } /// - /// 获得/设置 the resource to which access is being controlled. default is null - /// Gets or sets the resource to which access is being controlled. default is null + /// 获得/设置 访问控制的资源,默认为 null + /// Gets or sets the resource to which access is being controlled. Default is null. /// 10.2.2 /// [Parameter] @@ -64,7 +64,6 @@ 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); diff --git a/src/BootstrapBlazor/Components/Tab/ITabHeader.cs b/src/BootstrapBlazor/Components/Tab/ITabHeader.cs index d87150bd459..2cdbfb87600 100644 --- a/src/BootstrapBlazor/Components/Tab/ITabHeader.cs +++ b/src/BootstrapBlazor/Components/Tab/ITabHeader.cs @@ -6,22 +6,21 @@ namespace BootstrapBlazor.Components; /// -/// ITabHeader interface -/// ITabHeader interface +/// ITabHeader 接口 +/// ITabHeader Interface /// public interface ITabHeader { /// - /// Render method + /// 呈现标签头的方法 /// Render method /// /// void Render(RenderFragment renderFragment); /// - /// Get the id of the tab header - /// Get the id of the tab header + /// 获取标签头的 id + /// Gets the id of the tab header /// - /// string GetId(); } diff --git a/src/BootstrapBlazor/Components/Tab/Tab.razor.cs b/src/BootstrapBlazor/Components/Tab/Tab.razor.cs index 96500d63555..bbbfe1a7afb 100644 --- a/src/BootstrapBlazor/Components/Tab/Tab.razor.cs +++ b/src/BootstrapBlazor/Components/Tab/Tab.razor.cs @@ -12,7 +12,7 @@ namespace BootstrapBlazor.Components; /// -/// Tab component +/// Tab 组件 /// Tab component /// public partial class Tab @@ -57,21 +57,21 @@ public partial class Tab private readonly List _draggedItems = new(50); /// - /// 获得 the 集合 of tab items. - /// Gets the collection of tab items. + /// 获得 标签项集合 + /// Gets the collection of tab items /// public IEnumerable Items => TabItems; private List TabItems => _dragged ? _draggedItems : _items; /// - /// 获得/设置 the excluded link. 默认为 false. + /// 获得/设置 是否排除的链接,默认为 false /// Gets or sets the excluded link. Default is false. /// private bool Excluded { get; set; } /// - /// 获得/设置 是否 card 样式. 默认为 false. + /// 获得/设置 是否为卡片样式,默认为 false /// Gets or sets whether card style. Default is false. /// 10.2.2 /// @@ -79,7 +79,7 @@ public partial class Tab public bool IsCard { get; set; } /// - /// 获得/设置 是否 border card 样式. 默认为 false. + /// 获得/设置 是否为边框卡片样式,默认为 false /// Gets or sets whether border card style. Default is false. /// 10.2.2 /// @@ -87,16 +87,16 @@ public partial class Tab public bool IsBorderCard { get; set; } /// - /// 获得/设置 是否仅渲染 Active 标签 默认 false - /// Get/Set whether to render only active tab. Default false + /// 获得/设置 是否仅渲染活动标签,默认为 false + /// Gets or sets whether to render only active tab. Default is false. /// 10.2.2 /// [Parameter] public bool IsOnlyRenderActiveTab { get; set; } /// - /// 获得/设置 懒加载 TabItem, 首次不渲染 默认 false - /// Get/Set lazy load TabItem. Default false + /// 获得/设置 是否懒加载 TabItem,首次不渲染,默认为 false + /// Gets or sets lazy load TabItem. Default is false. /// 10.2.2 /// [Parameter] @@ -104,99 +104,99 @@ public partial class Tab /// /// 获得/设置 Tab 标签头文本本地化回调方法 - /// Get/Set Tab Header Text Localizer Callback + /// Gets or sets Tab header text localizer callback /// 10.2.2 /// [Parameter] public Func? OnTabHeaderTextLocalizer { get; set; } /// - /// 获得/设置 组件高度 默认值为 0 高度自动 - /// Get/Set Component Height. Default 0 (Auto) + /// 获得/设置 组件高度,默认值为 0 自动高度 + /// Gets or sets component height. Default is 0 (auto). /// 10.2.2 /// [Parameter] public int Height { get; set; } /// - /// 获得/设置 组件标签显示位置 默认显示在 Top 位置 - /// Get/Set Placement. Default Top + /// 获得/设置 组件标签显示位置,默认显示在 Top + /// Gets or sets placement. Default is Top. /// 10.2.2 /// [Parameter] public Placement Placement { get; set; } = Placement.Top; /// - /// 获得/设置 是否显示关闭按钮 默认为 false 不显示 - /// Get/Set Whether to show close button. Default false + /// 获得/设置 是否显示关闭按钮,默认为 false + /// Gets or sets whether to show close button. Default is false. /// 10.2.2 /// [Parameter] public bool ShowClose { get; set; } /// - /// 获得/设置 是否显示全屏按钮 默认为 false 不显示 - /// Get/Set Whether to show full screen button. Default false + /// 获得/设置 是否显示全屏按钮,默认为 false + /// Gets or sets whether to show full screen button. Default is false. /// 10.2.2 /// [Parameter] public bool ShowFullScreen { get; set; } /// - /// 获得/设置 是否 show the full screen 按钮 on context menu. 默认为 true. - /// Gets or sets whether show the full screen button on context menu. Default is true. + /// 获得/设置 是否在右键菜单上显示全屏按钮,默认为 true + /// Gets or sets whether to show the full screen button on context menu. Default is true. /// 10.2.2 /// [Parameter] public bool ShowContextMenuFullScreen { get; set; } = true; /// - /// 关闭标签页回调方法 - /// Close Tab Item Callback + /// 获得/设置 关闭标签页回调方法 + /// Gets or sets close tab item callback /// 10.2.2 /// /// - /// 返回 false 时不关闭 标签页 + /// 返回 false 时不关闭 TabItem 标签页 /// Return false to cancel closing /// [Parameter] public Func>? OnCloseTabItemAsync { get; set; } /// - /// 获得/设置 是否显示扩展功能按钮 默认为 false 不显示 - /// Get/Set Whether to show extend buttons. Default false + /// 获得/设置 是否显示扩展功能按钮,默认为 false + /// Gets or sets whether to show extend buttons. Default is false. /// 10.2.2 /// [Parameter] public bool ShowExtendButtons { get; set; } /// - /// 获得/设置 是否显示前后导航按钮 默认为 true 显示 - /// Get/Set Whether to show navigation buttons. Default true + /// 获得/设置 是否显示前后导航按钮,默认为 true + /// Gets or sets whether to show navigation buttons. Default is true. /// 10.2.2 /// [Parameter] public bool ShowNavigatorButtons { get; set; } = true; /// - /// 获得/设置 是否 auto reset tab item 索引. 默认为 true. - /// Gets or sets whether auto reset tab item index. Default is true. + /// 获得/设置 是否自动重置标签项索引,默认为 true + /// Gets or sets whether to auto reset tab item index. Default is true. /// 10.2.2 /// [Parameter] public bool IsLoopSwitchTabItem { get; set; } = true; /// - /// 获得/设置 是否显示活动标签 默认为 true 显示 - /// Get/Set Whether to show active bar. Default true + /// 获得/设置 是否显示活动标签栏,默认为 true + /// Gets or sets whether to show active bar. Default is true. /// 10.2.2 /// [Parameter] public bool ShowActiveBar { get; set; } = true; /// - /// 获得/设置 点击 TabItem 时是否自动导航 默认为 false 不导航 - /// Get/Set whether to navigate when clicking TabItem. Default false + /// 获得/设置 点击 TabItem 时是否自动导航,默认为 false + /// Gets or sets whether to navigate when clicking TabItem. Default is false. /// 10.2.2 /// [Parameter] @@ -204,71 +204,71 @@ public partial class Tab /// /// 获得/设置 TabItems 模板 - /// Get/Set TabItems Template + /// Gets or sets TabItems template /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } /// - /// 获得/设置 NotAuthorized 模板 默认 null NET6.0/7.0 有效 - /// Get/Set NotAuthorized Template. Default null (Valid for NET6.0/7.0) + /// 获得/设置 未授权模板,默认 null (NET6.0/7.0 有效) + /// Gets or sets NotAuthorized template. Default is null (Valid for NET6.0/7.0). /// 10.2.2 /// [Parameter] public RenderFragment? NotAuthorized { get; set; } /// - /// 获得/设置 NotFound 模板 默认 null NET6.0/7.0 有效 - /// Get/Set NotFound Template. Default null (Valid for NET6.0/7.0) + /// 获得/设置 未找到模板,默认 null (NET6.0/7.0 有效) + /// Gets or sets NotFound template. Default is null (Valid for NET6.0/7.0). /// 10.2.2 /// [Parameter] public RenderFragment? NotFound { get; set; } /// - /// 获得/设置 NotFound 标签文本 默认 null NET6.0/7.0 有效 - /// Get/Set NotFound Tab Text. Default null (Valid for NET6.0/7.0) + /// 获得/设置 未找到标签文本,默认 null (NET6.0/7.0 有效) + /// Gets or sets NotFound tab text. Default is null (Valid for NET6.0/7.0). /// 10.2.2 /// [Parameter] public string? NotFoundTabText { get; set; } /// - /// 获得/设置 TabItems 模板 - /// Get/Set TabItems Template + /// 获得/设置 TabItems 主体模板 + /// Gets or sets TabItems body template /// 10.2.2 /// [Parameter] public RenderFragment? Body { get; set; } /// - /// 获得/设置 Gets or sets a collection of additional assemblies that should be searched for components that can match URIs. - /// Gets or sets Gets or sets a collection of additional assemblies that should be searched for components that can match URIs. + /// 获得/设置 应搜索的其他程序集的集合 + /// Gets or sets a collection of additional assemblies that should be searched for components that can match URIs /// 10.2.2 /// [Parameter] public IEnumerable? AdditionalAssemblies { get; set; } /// - /// 获得/设置 排除地址支持通配符 - /// Get/Set Exclude Urls. Support wildcard + /// 获得/设置 排除地址,支持通配符 + /// Gets or sets exclude URLs. Support wildcard. /// 10.2.2 /// [Parameter] public IEnumerable? ExcludeUrls { get; set; } /// - /// 获得/设置 默认标签页 关闭所有标签页时自动打开此地址 默认 null 未设置 - /// Get/Set Default Url. Open this url when all tabs closed. Default null + /// 获得/设置 默认标签页,关闭所有标签页时自动打开此地址,默认 null + /// Gets or sets default URL. Open this url when all tabs closed. Default is null. /// 10.2.2 /// [Parameter] public string? DefaultUrl { get; set; } /// - /// 获得/设置 点击 TabItem 时回调方法 - /// Get/Set Callback method when clicking TabItem + /// 获得/设置 点击 TabItem 时的回调方法 + /// Gets or sets callback method when clicking TabItem /// 10.2.2 /// [Parameter] @@ -276,7 +276,7 @@ public partial class Tab /// /// 获得/设置 关闭当前 TabItem 菜单文本 - /// Get/Set Close Current Tab Menu Text + /// Gets or sets close current tab menu text /// 10.2.2 /// [Parameter] @@ -284,7 +284,7 @@ public partial class Tab /// /// 获得/设置 关闭所有 TabItem 菜单文本 - /// Get/Set Close All Tabs Menu Text + /// Gets or sets close all tabs menu text /// 10.2.2 /// [Parameter] @@ -292,22 +292,22 @@ public partial class Tab /// /// 获得/设置 关闭其他 TabItem 菜单文本 - /// Get/Set Close Other Tabs Menu Text + /// Gets or sets close other tabs menu text /// 10.2.2 /// [Parameter] public string? CloseOtherTabsText { get; set; } /// - /// 获得/设置 按钮模板 默认 null - /// Get/Set Button Template. Default null + /// 获得/设置 按钮模板,默认 null + /// Gets or sets button template. Default is null. /// 10.2.2 /// [Parameter] public RenderFragment? ButtonTemplate { get; set; } /// - /// 获得/设置 the 模板 of the toolbar 按钮. 默认为 null. + /// 获得/设置 工具栏按钮的模板,默认为 null /// Gets or sets the template of the toolbar button. Default is null. /// 10.2.2 /// @@ -315,20 +315,16 @@ public partial class Tab public RenderFragment? ToolbarTemplate { get; set; } /// - /// 获得/设置 标签页前置模板 默认 null - /// Get/Set Before Navigator Template. Default null - /// 在向前移动标签页按钮前 - /// Before previous button + /// 获得/设置 导航器前置模板,默认 null (在向前移动标签页按钮前) + /// Gets or sets before navigator template. Default is null (before previous button). /// 10.2.2 /// [Parameter] public RenderFragment? BeforeNavigatorTemplate { get; set; } /// - /// 获得/设置 标签页后置模板 默认 null - /// Get/Set After Navigator Template. Default null - /// 在向后移动标签页按钮前 - /// Before next button + /// 获得/设置 导航器后置模板,默认 null (在向后移动标签页按钮前) + /// Gets or sets after navigator template. Default is null (before next button). /// 10.2.2 /// [Parameter] @@ -336,7 +332,7 @@ public partial class Tab /// /// 获得/设置 上一个标签图标 - /// Get/Set Previous Icon + /// Gets or sets previous icon /// 10.2.2 /// [Parameter] @@ -344,15 +340,15 @@ public partial class Tab /// /// 获得/设置 下一个标签图标 - /// Get/Set Next Icon + /// Gets or sets next icon /// 10.2.2 /// [Parameter] public string? NextIcon { get; set; } /// - /// 获得/设置 下拉菜单标签图标 - /// Get/Set Dropdown Icon + /// 获得/设置 下拉菜单图标 + /// Gets or sets dropdown icon /// 10.2.2 /// [Parameter] @@ -360,66 +356,66 @@ public partial class Tab /// /// 获得/设置 关闭标签图标 - /// Get/Set Close Icon + /// Gets or sets close icon /// 10.2.2 /// [Parameter] public string? CloseIcon { get; set; } /// - /// 获得/设置 导航菜单集合 默认 null - /// Get/Set Menus. Default null + /// 获得/设置 导航菜单集合,默认 null + /// Gets or sets menus. Default is null. /// 10.2.2 /// /// - /// 使用自定义布局时,需要 Tab 导航标签显示为菜单项时设置,已内置 默认 null - /// Used for custom layout to show menus in Tab navigation. Built-in . Default null + /// 使用自定义布局时,需要 Tab 导航标签显示为菜单项时设置,已内置 Layout.Menus 默认 null + /// Used for custom layout to show menus in Tab navigation. Built-in Layout.Menus. Default is null. /// [Parameter] public IEnumerable? Menus { get; set; } /// /// 获得/设置 是否允许拖放标题栏更改栏位顺序,默认为 false - /// Get/Set whether to allow drag tab header to change order. Default false + /// Gets or sets whether to allow drag tab header to change order. Default is false. /// 10.2.2 /// [Parameter] public bool AllowDrag { get; set; } /// - /// 获得/设置 拖动标签页结束回调方法 - /// Get/Set Callback method when drag item end + /// 获得/设置 拖动标签页结束的回调方法 + /// Gets or sets callback method when drag item ends /// 10.2.2 /// [Parameter] public Func? OnDragItemEndAsync { get; set; } /// - /// 获得/设置 the tab 样式. 默认为 . - /// Gets or sets the tab style. Default is . + /// 获得/设置 标签页样式,默认为 TabStyle.Default + /// Gets or sets the tab style. Default is TabStyle.Default. /// 10.2.2 /// [Parameter] public TabStyle TabStyle { get; set; } /// - /// 获得/设置 是否 show the toolbar. 默认为 false. - /// Gets or sets whether show the toolbar. Default is false. + /// 获得/设置 是否显示工具栏,默认为 false + /// Gets or sets whether to show the toolbar. Default is false. /// 10.2.2 /// [Parameter] public bool ShowToolbar { get; set; } /// - /// 获得/设置 是否 show the full screen 按钮. 默认为 true. - /// Gets or sets whether show the full screen button. Default is true. + /// 获得/设置 是否显示全屏按钮,默认为 true + /// Gets or sets whether to show the full screen button. Default is true. /// 10.2.2 /// [Parameter] public bool ShowFullscreenToolbarButton { get; set; } = true; /// - /// 获得/设置 the full screen toolbar 按钮 图标 string. 默认为 null. + /// 获得/设置 全屏工具栏按钮图标字符串,默认为 null /// Gets or sets the full screen toolbar button icon string. Default is null. /// 10.2.2 /// @@ -427,7 +423,7 @@ public partial class Tab public string? FullscreenToolbarButtonIcon { get; set; } /// - /// 获得/设置 the full screen toolbar 按钮 tooltip string. 默认为 null. + /// 获得/设置 全屏工具栏按钮提示字符串,默认为 null /// Gets or sets the full screen toolbar button tooltip string. Default is null. /// 10.2.2 /// @@ -435,15 +431,15 @@ public partial class Tab public string? FullscreenToolbarTooltipText { get; set; } /// - /// 获得/设置 是否 show the full screen 按钮. 默认为 true. - /// Gets or sets whether show the full screen button. Default is true. + /// 获得/设置 是否显示刷新按钮,默认为 true + /// Gets or sets whether to show the refresh button. Default is true. /// 10.2.2 /// [Parameter] public bool ShowRefreshToolbarButton { get; set; } = true; /// - /// 获得/设置 the refresh toolbar 按钮 图标 string. 默认为 null. + /// 获得/设置 刷新工具栏按钮图标字符串,默认为 null /// Gets or sets the refresh toolbar button icon string. Default is null. /// 10.2.2 /// @@ -451,7 +447,7 @@ public partial class Tab public string? RefreshToolbarButtonIcon { get; set; } /// - /// 获得/设置 the refresh toolbar 按钮 tooltip string. 默认为 null. + /// 获得/设置 刷新工具栏按钮提示字符串,默认为 null /// Gets or sets the refresh toolbar button tooltip string. Default is null. /// 10.2.2 /// @@ -459,7 +455,7 @@ public partial class Tab public string? RefreshToolbarTooltipText { get; set; } /// - /// 获得/设置 the refresh toolbar 按钮 click event 回调. 默认为 null. + /// 获得/设置 刷新工具栏按钮单击事件回调,默认为 null /// Gets or sets the refresh toolbar button click event callback. Default is null. /// 10.2.2 /// @@ -467,7 +463,7 @@ public partial class Tab public Func? OnToolbarRefreshCallback { get; set; } /// - /// 获得/设置 the previous tab navigation link tooltip text. 默认为 null. + /// 获得/设置 上一个标签导航链接提示文本,默认为 null /// Gets or sets the previous tab navigation link tooltip text. Default is null. /// 10.2.2 /// @@ -475,7 +471,7 @@ public partial class Tab public string? PrevTabNavLinkTooltipText { get; set; } /// - /// 获得/设置 the next tab navigation link tooltip text. 默认为 null. + /// 获得/设置 下一个标签导航链接提示文本,默认为 null /// Gets or sets the next tab navigation link tooltip text. Default is null. /// 10.2.2 /// @@ -483,7 +479,7 @@ public partial class Tab public string? NextTabNavLinkTooltipText { get; set; } /// - /// 获得/设置 the close tab navigation link tooltip text. 默认为 null. + /// 获得/设置 关闭标签导航链接提示文本,默认为 null /// Gets or sets the close tab navigation link tooltip text. Default is null. /// 10.2.2 /// @@ -491,15 +487,15 @@ public partial class Tab public string? CloseTabNavLinkTooltipText { get; set; } /// - /// 获得/设置 是否 enable tab context menu. 默认为 false. - /// Gets or sets whether enable tab context menu. Default is false. + /// 获得/设置 是否启用标签页右键菜单,默认为 false + /// Gets or sets whether to enable tab context menu. Default is false. /// 10.2.2 /// [Parameter] public bool ShowContextMenu { get; set; } /// - /// 获得/设置 the 模板 of before context menu. 默认为 null. + /// 获得/设置 右键菜单前置模板,默认为 null /// Gets or sets the template of before context menu. Default is null. /// 10.2.2 /// @@ -507,7 +503,7 @@ public partial class Tab public RenderFragment? BeforeContextMenuTemplate { get; set; } /// - /// 获得/设置 the 模板 of context menu. 默认为 null. + /// 获得/设置 右键菜单模板,默认为 null /// Gets or sets the template of context menu. Default is null. /// 10.2.2 /// @@ -515,7 +511,7 @@ public partial class Tab public RenderFragment? ContextMenuTemplate { get; set; } /// - /// 获得/设置 the 图标 of tab item context menu refresh 按钮. 默认为 null. + /// 获得/设置 标签项右键菜单刷新按钮的图标,默认为 null /// Gets or sets the icon of tab item context menu refresh button. Default is null. /// 10.2.2 /// @@ -523,7 +519,7 @@ public partial class Tab public string? ContextMenuRefreshIcon { get; set; } /// - /// 获得/设置 the 图标 of tab item context menu close 按钮. 默认为 null. + /// 获得/设置 标签项右键菜单关闭按钮的图标,默认为 null /// Gets or sets the icon of tab item context menu close button. Default is null. /// 10.2.2 /// @@ -531,7 +527,7 @@ public partial class Tab public string? ContextMenuCloseIcon { get; set; } /// - /// 获得/设置 the 图标 of tab item context menu close other 按钮. 默认为 null. + /// 获得/设置 标签项右键菜单关闭其他按钮的图标,默认为 null /// Gets or sets the icon of tab item context menu close other button. Default is null. /// 10.2.2 /// @@ -539,7 +535,7 @@ public partial class Tab public string? ContextMenuCloseOtherIcon { get; set; } /// - /// 获得/设置 the 图标 of tab item context menu close all 按钮. 默认为 null. + /// 获得/设置 标签项右键菜单关闭全部按钮的图标,默认为 null /// Gets or sets the icon of tab item context menu close all button. Default is null. /// 10.2.2 /// @@ -547,7 +543,7 @@ public partial class Tab public string? ContextMenuCloseAllIcon { get; set; } /// - /// 获得/设置 the 图标 of tab item context menu full screen 按钮. 默认为 null. + /// 获得/设置 标签项右键菜单全屏按钮的图标,默认为 null /// Gets or sets the icon of tab item context menu full screen button. Default is null. /// 10.2.2 /// @@ -555,7 +551,7 @@ public partial class Tab public string? ContextMenuFullScreenIcon { get; set; } /// - /// 获得/设置 before popup context menu 回调. 默认为 null. + /// 获得/设置 显示右键菜单前回调,默认为 null /// Gets or sets before popup context menu callback. Default is null. /// 10.2.2 /// @@ -563,40 +559,40 @@ public partial class Tab public Func>? OnBeforeShowContextMenu { get; set; } /// - /// 获得/设置 the 实例. 默认为 null. - /// Gets or sets the instance. Default is null. + /// 获得/设置 ITabHeader 实例,默认为 null + /// Gets or sets the ITabHeader instance. Default is null. /// 10.2.2 /// [Parameter] public ITabHeader? TabHeader { get; set; } /// - /// 获得/设置 是否开启全局异常捕获 默认 null 读取配置文件 - /// Get/Set whether to enable global error logger. Default null (Read from ) + /// 获得/设置 是否开启全局异常捕获,默认 null 读取配置文件 BootstrapBlazorOptions.EnableErrorLogger 值 + /// Gets or sets whether to enable global error logger. Default is null (Read from BootstrapBlazorOptions.EnableErrorLogger). /// 10.2.2 /// [Parameter] public bool? EnableErrorLogger { get; set; } /// - /// 获得/设置 是否记录异常到 默认 null 使用 设置值 - /// Get/Set whether to log error to . Default null (Use ) + /// 获得/设置 是否记录异常到 ILogger,默认 null 使用 BootstrapBlazorOptions.EnableErrorLoggerILogger 设置值 + /// Gets or sets whether to log error to ILogger. Default is null (Use BootstrapBlazorOptions.EnableErrorLoggerILogger). /// 10.2.2 /// [Parameter] public bool? EnableErrorLoggerILogger { get; set; } /// - /// 获得/设置 是否显示 Error 提示弹窗 默认 null 使用 设置值 - /// Get/Set whether to show error toast. Default null (Use ) + /// 获得/设置 是否显示 Error 提示弹窗,默认 null 使用 BootstrapBlazorOptions.ShowErrorLoggerToast 设置值 + /// Gets or sets whether to show error toast. Default is null (Use BootstrapBlazorOptions.ShowErrorLoggerToast). /// 10.2.2 /// [Parameter] public bool? ShowErrorLoggerToast { get; set; } /// - /// 获得/设置 错误日志 弹窗标题 默认 null - /// Get/Set Error Logger Title. Default null + /// 获得/设置 错误日志 Toast 弹窗标题,默认 null + /// Gets or sets error logger Toast title. Default is null. /// 10.2.2 /// [Parameter] @@ -604,7 +600,7 @@ public partial class Tab /// /// 获得/设置 自定义错误处理回调方法 - /// Get/Set Custom Error Handle Callback + /// Gets or sets custom error handle callback /// 10.2.2 /// [Parameter] @@ -739,7 +735,6 @@ protected override async Task OnAfterRenderAsync(bool firstRender) /// /// /// - /// protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id, Interop, nameof(DragItemCallback)); private void RemoveLocationChanged() @@ -1204,8 +1199,8 @@ private RenderFragment RenderTabItemContent(TabItem item) => builder => private bool _dragged; /// - /// 拖动 TabItem 回调方法有 JS 调用 - /// Drag TabItem Callback method called by JS + /// 拖动标签项回调方法由 JS 调用 + /// Drag tab item callback method called by JS /// /// /// @@ -1246,7 +1241,7 @@ private async Task OnRefreshAsync() } /// - /// Refresh the tab item method + /// 刷新标签项方法 /// Refresh the tab item method /// /// diff --git a/src/BootstrapBlazor/Components/Tab/TabItem.cs b/src/BootstrapBlazor/Components/Tab/TabItem.cs index 8f1137f6b6c..9e21d28c199 100644 --- a/src/BootstrapBlazor/Components/Tab/TabItem.cs +++ b/src/BootstrapBlazor/Components/Tab/TabItem.cs @@ -6,30 +6,30 @@ namespace BootstrapBlazor.Components; /// -/// TabItem component -/// TabItem component +/// TabItem 组件 +/// TabItem Component /// public class TabItem : IdComponentBase { /// - /// 获得/设置 the text. 默认为 null - /// Gets or sets the text. Default is null + /// 获得/设置 标签项文本,默认为 null + /// Gets or sets the text. Default is null. /// 10.2.2 /// [Parameter] public string? Text { get; set; } /// - /// 获得/设置 the TabItem Header 模板. 默认为 null - /// Gets or sets the TabItem Header template. Default is null + /// 获得/设置 TabItem 头部模板,默认为 null + /// Gets or sets the TabItem Header template. Default is null. /// 10.2.2 /// [Parameter] public RenderFragment? HeaderTemplate { get; set; } /// - /// 获得/设置 the request URL. 默认为 null - /// Gets or sets the request URL. Default is null + /// 获得/设置 请求 URL,默认为 null + /// Gets or sets the request URL. Default is null. /// 10.2.2 /// [Parameter] @@ -37,71 +37,71 @@ public class TabItem : IdComponentBase public string? Url { get; set; } /// - /// 获得/设置 是否 the current state is active. 默认为 false - /// Gets or sets whether the current state is active. Default is false + /// 获得/设置 当前状态是否为活跃,默认为 false + /// Gets or sets whether the current state is active. Default is false. /// 10.2.2 /// [Parameter] public bool IsActive { get; set; } /// - /// 获得/设置 是否 the current state is disabled, default is false - /// Gets or sets whether the current state is disabled, default is false + /// 获得/设置 当前状态是否被禁用,默认为 false + /// Gets or sets whether the current state is disabled. Default is false. /// 10.2.2 /// [Parameter] public bool IsDisabled { get; set; } /// - /// 获得/设置 是否 the current TabItem is closable, default is true - /// Gets or sets whether the current TabItem is closable, default is true + /// 获得/设置 当前 TabItem 是否可关闭,默认为 true + /// Gets or sets whether the current TabItem is closable. Default is true. /// 10.2.2 /// [Parameter] public bool Closable { get; set; } = true; /// - /// 获得/设置 是否 the current TabItem is always loaded, this parameter is used to set , default is false - /// Gets or sets whether the current TabItem is always loaded, this parameter is used to set , default is false + /// 获得/设置 当前 TabItem 是否始终被加载,此参数用于设置 Tab.IsLazyLoadTabItem,默认为 false + /// Gets or sets whether the current TabItem is always loaded. This parameter is used to set Tab.IsLazyLoadTabItem. Default is false. /// 10.2.2 /// [Parameter] public bool AlwaysLoad { get; set; } /// - /// 获得/设置 the custom CSS class. 默认为 null - /// Gets or sets the custom CSS class. Default is null + /// 获得/设置 自定义 CSS 类,默认为 null + /// Gets or sets the custom CSS class. Default is null. /// 10.2.2 /// [Parameter] public string? CssClass { get; set; } /// - /// 获得/设置 the 图标 string. 默认为 null - /// Gets or sets the icon string. Default is null + /// 获得/设置 图标字符串,默认为 null + /// Gets or sets the icon string. Default is null. /// 10.2.2 /// [Parameter] public string? Icon { get; set; } /// - /// 获得/设置 是否 to show the full screen 按钮, default is true - /// Gets or sets whether to show the full screen button, default is true + /// 获得/设置 是否显示全屏按钮,默认为 true + /// Gets or sets whether to show the full screen button. Default is true. /// 10.2.2 /// [Parameter] public bool ShowFullScreen { get; set; } = true; /// - /// 获得/设置 the component 内容. 默认为 null - /// Gets or sets the component content. Default is null + /// 获得/设置 组件内容,默认为 null + /// Gets or sets the component content. Default is null. /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } /// - /// 获得/设置 the associated Tab 实例 + /// 获得/设置 关联的 Tab 实例 /// Gets or sets the associated Tab instance /// [CascadingParameter] @@ -134,15 +134,15 @@ protected override void OnParametersSet() } /// - /// Method to set 是否 it is active - /// Method to set whether it is active + /// 设置是否为活跃的方法 + /// Sets whether it is active /// /// public void SetActive(bool active) => IsActive = active; /// - /// Method to set 是否 it is disabled - /// Method to set whether it is disabled + /// 设置是否被禁用的方法 + /// Sets whether it is disabled /// /// public void SetDisabled(bool disabled) @@ -151,14 +151,14 @@ public void SetDisabled(bool disabled) } /// - /// Method to set 是否 it is disabled without rendering + /// 设置是否被禁用而不重新渲染的方法 /// 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 + /// 方法重置标签文本和其他参数 /// Method to reset the tab text and other parameters /// /// @@ -183,11 +183,10 @@ public void SetHeader(string text, string? icon = null, bool? closable = null) } /// - /// 获得 a TabItem 实例 by specifying a set of parameters + /// 通过指定一组参数获得 TabItem 实例 /// Gets a TabItem instance by specifying a set of parameters /// /// - /// public static TabItem Create(Dictionary parameters) { var item = new TabItem(); diff --git a/src/BootstrapBlazor/Components/Tab/TabItemContent.cs b/src/BootstrapBlazor/Components/Tab/TabItemContent.cs index 21c8d03bf7e..d91e68b2b60 100644 --- a/src/BootstrapBlazor/Components/Tab/TabItemContent.cs +++ b/src/BootstrapBlazor/Components/Tab/TabItemContent.cs @@ -11,8 +11,9 @@ namespace BootstrapBlazor.Components; class TabItemContent : IComponent, IHandlerException, IDisposable { /// - /// 获得/设置 the component 内容. 默认为 null - /// Gets or sets the component content. Default is null + /// 获得/设置 标签项,默认为 null + /// Gets or sets the component content. Default is null. + /// 10.2.2 /// [Parameter, NotNull] public TabItem? Item { get; set; } @@ -84,7 +85,7 @@ private void BuildRenderTree(RenderTreeBuilder builder) } /// - /// Render method + /// 重新呈现内容方法 /// Render method /// public void Render() @@ -95,6 +96,7 @@ public void Render() private bool _detailedErrorsLoaded; private bool _showDetailedErrors; + /// /// /// @@ -120,7 +122,7 @@ public async Task HandlerExceptionAsync(Exception ex, RenderFragment } /// - /// IDispose 方法用于释放资源 + /// Dispose 方法用于释放资源 /// Dispose method /// public void Dispose() diff --git a/src/BootstrapBlazor/Components/Tab/TabLink.razor.cs b/src/BootstrapBlazor/Components/Tab/TabLink.razor.cs index cf991195616..9f1aec2b12f 100644 --- a/src/BootstrapBlazor/Components/Tab/TabLink.razor.cs +++ b/src/BootstrapBlazor/Components/Tab/TabLink.razor.cs @@ -6,37 +6,37 @@ namespace BootstrapBlazor.Components; /// -/// Represents a link within a tab component. -/// Represents a link within a tab component. +/// 表示标签页组件内的链接 +/// Represents a link within a tab component /// public sealed partial class TabLink { /// - /// 获得/设置 the text of the link. 默认为 null - /// Gets or sets the text of the link. Default is null + /// 获得/设置 链接的文本,默认为 null + /// Gets or sets the text of the link. Default is null. /// 10.2.2 /// [Parameter] public string? Text { get; set; } /// - /// 获得/设置 the URL of the link. 默认为 null - /// Gets or sets the URL of the link. Default is null + /// 获得/设置 链接的 URL,默认为 null + /// Gets or sets the URL of the link. Default is null. /// 10.2.2 /// [Parameter] public string? Url { get; set; } /// - /// 获得/设置 the 图标 of the link. 默认为 null - /// Gets or sets the icon of the link. Default is null + /// 获得/设置 链接的图标,默认为 null + /// Gets or sets the icon of the link. Default is null. /// 10.2.2 /// [Parameter] public string? Icon { get; set; } /// - /// 获得/设置 a value indicating 是否 the tab item is closable. 默认为 true. + /// 获得/设置 标签项是否可关闭的值,默认为 true /// Gets or sets a value indicating whether the tab item is closable. Default is true. /// 10.2.2 /// @@ -44,7 +44,7 @@ public sealed partial class TabLink public bool Closable { get; set; } = true; /// - /// 获得/设置 the 回调方法 when the link is clicked. 默认为 null. + /// 获得/设置 链接被单击时的回调方法,默认为 null /// Gets or sets the callback method when the link is clicked. Default is null. /// 10.2.2 /// @@ -56,8 +56,8 @@ public sealed partial class TabLink private TabItemTextOptions? TabItemOptions { get; set; } /// - /// 获得/设置 the 内容 of the component. 默认为 null - /// Gets or sets the content of the component. Default is null + /// 获得/设置 组件的内容,默认为 null + /// Gets or sets the content of the component. Default is null. /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Tab/TabToolbarButton.razor.cs b/src/BootstrapBlazor/Components/Tab/TabToolbarButton.razor.cs index a33a18a1f28..377e9a1495f 100644 --- a/src/BootstrapBlazor/Components/Tab/TabToolbarButton.razor.cs +++ b/src/BootstrapBlazor/Components/Tab/TabToolbarButton.razor.cs @@ -6,13 +6,13 @@ namespace BootstrapBlazor.Components; /// -/// TabToolbarButton component -/// TabToolbarButton component +/// TabToolbarButton 组件 +/// TabToolbarButton Component /// public partial class TabToolbarButton { /// - /// 获得/设置 the 按钮 图标 string. 默认为 null. + /// 获得/设置 按钮图标,默认为 null /// Gets or sets the button icon string. Default is null. /// 10.2.2 /// @@ -20,7 +20,7 @@ public partial class TabToolbarButton public string? Icon { get; set; } /// - /// 获得/设置 the 按钮 click event handler. 默认为 null. + /// 获得/设置 按钮单击事件处理程序,默认为 null /// Gets or sets the button click event handler. Default is null. /// 10.2.2 /// @@ -28,7 +28,7 @@ public partial class TabToolbarButton public Func? OnClickAsync { get; set; } /// - /// 获得/设置 the tooltip text. 默认为 null. + /// 获得/设置 提示文本,默认为 null /// Gets or sets the tooltip text. Default is null. /// 10.2.2 /// diff --git a/src/BootstrapBlazor/Components/Table/ColumnVisibleItem.cs b/src/BootstrapBlazor/Components/Table/ColumnVisibleItem.cs index 5f7c45fd3ab..bc33be008df 100644 --- a/src/BootstrapBlazor/Components/Table/ColumnVisibleItem.cs +++ b/src/BootstrapBlazor/Components/Table/ColumnVisibleItem.cs @@ -8,8 +8,8 @@ namespace BootstrapBlazor.Components; /// -/// Table 组件列可见性类 -/// Table component列可见性类 +/// Table 组件列可见性类 +/// Table component column visibility class /// /// /// @@ -17,21 +17,21 @@ namespace BootstrapBlazor.Components; public class ColumnVisibleItem(string name, bool visible) { /// - /// 获得 列名称 - /// Gets 列名称 + /// 获得 列名称 + /// Gets column name /// public string Name { get; } = name; /// - /// 获得 列名称 - /// Gets 列名称 + /// 获得 列显示名称 + /// Gets column display name /// [JsonIgnore] public string? DisplayName { get; set; } /// - /// 获得 列可见性 - /// Gets 列可见性 + /// 获得 列可见性 + /// Gets column visibility /// public bool Visible { get; set; } = visible; } diff --git a/src/BootstrapBlazor/Components/Table/ColumnWidth.cs b/src/BootstrapBlazor/Components/Table/ColumnWidth.cs index 09ce354b970..78eba9b3aea 100644 --- a/src/BootstrapBlazor/Components/Table/ColumnWidth.cs +++ b/src/BootstrapBlazor/Components/Table/ColumnWidth.cs @@ -5,21 +5,22 @@ namespace BootstrapBlazor.Components; + /// -/// 列宽设置类 -/// 列宽Sets类 +/// 列宽设置类 +/// Column width setting class /// struct ColumnWidth { /// - /// 获得/设置 列名称 - /// Gets or sets 列名称 + /// 获得/设置 列名称 + /// Gets or sets column name /// public string? Name { get; set; } /// - /// 获得/设置 列宽 - /// Gets or sets 列宽 + /// 获得/设置 列宽 + /// Gets or sets column width /// public int Width { get; set; } } diff --git a/src/BootstrapBlazor/Components/Table/IColumnCollection.cs b/src/BootstrapBlazor/Components/Table/IColumnCollection.cs index 5acf61f9d38..3e3cff8fe4c 100644 --- a/src/BootstrapBlazor/Components/Table/IColumnCollection.cs +++ b/src/BootstrapBlazor/Components/Table/IColumnCollection.cs @@ -7,7 +7,7 @@ namespace BootstrapBlazor.Components; /// /// 列集合接口 -/// 列collection接口 +/// Column collection interface /// public interface IColumnCollection { diff --git a/src/BootstrapBlazor/Components/Table/ITable.cs b/src/BootstrapBlazor/Components/Table/ITable.cs index 598ad01258e..f9288db74e5 100644 --- a/src/BootstrapBlazor/Components/Table/ITable.cs +++ b/src/BootstrapBlazor/Components/Table/ITable.cs @@ -6,26 +6,26 @@ namespace BootstrapBlazor.Components; /// -/// ITable 接口 -/// ITable 接口 +/// ITable 接口 +/// ITable interface /// public interface ITable : IColumnCollection { /// - /// 获得 ITable 实例配置的可见列集合 - /// Gets ITable instance配置的可见列collection + /// 获得 ITable 实例配置的可见列集合 + /// Gets visible columns collection configured in ITable instance /// IEnumerable GetVisibleColumns(); /// - /// 获得 过滤条件集合 - /// Gets 过滤条件collection + /// 获得 过滤条件集合 + /// Gets filter conditions collection /// Dictionary Filters { get; } /// - /// 获得 过滤异步回调方法 - /// Gets 过滤异步callback method + /// 获得 过滤异步回调方法 + /// Gets filter async callback method /// Func? OnFilterAsync { get; } } diff --git a/src/BootstrapBlazor/Components/Table/ITableCellButton.cs b/src/BootstrapBlazor/Components/Table/ITableCellButton.cs index 82b5b617466..7f066ceee67 100644 --- a/src/BootstrapBlazor/Components/Table/ITableCellButton.cs +++ b/src/BootstrapBlazor/Components/Table/ITableCellButton.cs @@ -6,20 +6,20 @@ namespace BootstrapBlazor.Components; /// -/// ITableCellButton 接口 -/// ITableCellButton Interface +/// ITableCellButton 接口 +/// ITableCellButton interface /// public interface ITableCellButton : ITableCellComponent { /// - /// 获得/设置 点击按钮是否选中正行 默认 true 选中 - /// Gets or sets whether select current row. Default is true + /// 获得/设置 点击按钮是否选中正行,默认为 true 选中 + /// Gets or sets whether to select current row when button clicked. Default is true. /// bool AutoSelectedRowWhenClick { get; set; } /// - /// 获得/设置 点击按钮是否重新渲染 Table 组件 默认 false 不重新渲染 设置 true 时会调用 方法,触发 回调 - /// Gets or sets 点击buttonwhether重新渲染 Table component Default is false 不重新渲染 Sets true 时会调用 方法,触发 回调 + /// 获得/设置 点击按钮是否重新渲染 Table 组件,默认为 false 不重新渲染,设置 true 时会调用 Table 的 QueryAsync(int?) 方法,触发 OnQueryAsync 回调 + /// Gets or sets whether to re-render Table component when button clicked. Default is false. When set to true, it calls Table.QueryAsync(int?) method and triggers OnQueryAsync callback. /// bool AutoRenderTableWhenClick { get; set; } } diff --git a/src/BootstrapBlazor/Components/Table/ITableCellComponent.cs b/src/BootstrapBlazor/Components/Table/ITableCellComponent.cs index 08c4b1766b4..03220a8e9b8 100644 --- a/src/BootstrapBlazor/Components/Table/ITableCellComponent.cs +++ b/src/BootstrapBlazor/Components/Table/ITableCellComponent.cs @@ -6,8 +6,8 @@ namespace BootstrapBlazor.Components; /// -/// ITableCellComponent 单元格组件接口 -/// ITableCellComponent 单元格component接口 +/// ITableCellComponent 单元格组件接口 +/// ITableCellComponent table cell component interface /// public interface ITableCellComponent { diff --git a/src/BootstrapBlazor/Components/Table/ITableColumn.cs b/src/BootstrapBlazor/Components/Table/ITableColumn.cs index 70098eca1b1..748318715f1 100644 --- a/src/BootstrapBlazor/Components/Table/ITableColumn.cs +++ b/src/BootstrapBlazor/Components/Table/ITableColumn.cs @@ -6,236 +6,269 @@ namespace BootstrapBlazor.Components; /// -/// ITableHeader interface -/// ITableHeader interface +/// ITableColumn 接口 +/// ITableColumn interface /// public interface ITableColumn : IEditorItem { /// - /// 获得/设置 是否 the current item is ignored when export operation. 默认为 false. - /// Gets or sets whether the current item is ignored when export operation. Default is false. + /// 获得/设置 导出时是否忽略当前项,默认为 false + /// Gets or sets whether to ignore current item when exporting. Default is false. + /// 10.2.2 /// bool? IgnoreWhenExport { get; set; } /// - /// 获得/设置 是否 sorting is allowed. 默认为 null. - /// Gets or sets whether sorting is allowed. Default is null. + /// 获得/设置 是否允许排序,默认为 null + /// Gets or sets whether sorting is allowed. Default is null. + /// 10.2.2 /// bool? Sortable { get; set; } /// - /// 获得/设置 是否 it is the default sort column. 默认为 false. - /// Gets or sets whether it is the default sort column. Default is false. + /// 获得/设置 是否为默认排序列,默认为 false + /// Gets or sets whether it is the default sort column. Default is false. + /// 10.2.2 /// bool DefaultSort { get; set; } /// - /// 获得/设置 the default sort order. 默认为 SortOrder.Unset. - /// Gets or sets the default sort order. Default is SortOrder.Unset. + /// 获得/设置 默认排序顺序,默认为 SortOrder.Unset + /// Gets or sets the default sort order. Default is SortOrder.Unset. + /// 10.2.2 /// SortOrder DefaultSortOrder { get; set; } /// - /// 获得/设置 是否 数据 filtering is allowed. 默认为 null. - /// Gets or sets whether data filtering is allowed. Default is null. + /// 获得/设置 是否允许数据过滤,默认为 null + /// Gets or sets whether data filtering is allowed. Default is null. + /// 10.2.2 /// bool? Filterable { get; set; } /// - /// 获得/设置 是否 the column participates in search. 默认为 null. - /// Gets or sets whether the column participates in search. Default is null. + /// 获得/设置 是否允许在搜索中参与,默认为 null + /// Gets or sets whether the column participates in search. Default is null. + /// 10.2.2 /// bool? Searchable { get; set; } /// - /// 获得/设置 the column 宽度. - /// Gets or sets the column width. + /// 获得/设置 列宽 + /// Gets or sets the column width. + /// 10.2.2 /// int? Width { get; set; } /// - /// 获得/设置 是否 the column is fixed. 默认为 false. - /// Gets or sets whether the column is fixed. Default is false. + /// 获得/设置 是否列固定,默认为 false + /// Gets or sets whether the column is fixed. Default is false. + /// 10.2.2 /// bool Fixed { get; set; } /// - /// 获得/设置 是否 text wrapping is allowed in this column. 默认为 null. - /// Gets or sets whether text wrapping is allowed in this column. Default is null. + /// 获得/设置 是否允许此列中文本换行,默认为 null + /// Gets or sets whether text wrapping is allowed in this column. Default is null. + /// 10.2.2 /// bool? TextWrap { get; set; } /// - /// 获得/设置 是否 text overflow is ellipsis in this column. 默认为 null. - /// Gets or sets whether text overflow is ellipsis in this column. Default is null. + /// 获得/设置 是否此列中文本溢出省略号,默认为 null + /// Gets or sets whether text overflow is ellipsis in this column. Default is null. + /// 10.2.2 /// bool? TextEllipsis { get; set; } /// - /// 获得/设置 是否 the header text is allowed to wrap. 默认为 false. - /// Gets or sets whether the header text is allowed to wrap. Default is false. + /// 获得/设置 是否允许表头文本换行,默认为 false + /// Gets or sets whether the header text is allowed to wrap. Default is false. + /// 10.2.2 /// bool HeaderTextWrap { get; set; } /// - /// 获得/设置 是否 the header shows a tooltip. 默认为 false. Can be used with . This parameter is not effective when is set to true. - /// Gets or sets whether the header shows a tooltip. Default is false. Can be used with . This parameter is not effective when is set to true. + /// 获得/设置 是否显示表头提示,默认为 false,可配合 HeaderTextEllipsis 使用,当 HeaderTextWrap 为 true 时此参数无效 + /// Gets or sets whether the header shows a tooltip. Default is false. Can be used with HeaderTextEllipsis. This parameter is not effective when HeaderTextWrap is true. + /// 10.2.2 /// bool ShowHeaderTooltip { get; set; } /// - /// 获得/设置 the header tooltip 内容. - /// Gets or sets the header tooltip content. + /// 获得/设置 表头提示内容 + /// Gets or sets the header tooltip content. + /// 10.2.2 /// string? HeaderTextTooltip { get; set; } /// - /// 获得/设置 是否 the header text is truncated when overflowing. 默认为 false. Can be used with . This parameter is not effective when is set to true. - /// Gets or sets whether the header text is truncated when overflowing. Default is false. Can be used with . This parameter is not effective when is set to true. + /// 获得/设置 是否表头文本溢出时省略,默认为 false,可配合 HeaderTextTooltip 使用,当 HeaderTextWrap 为 true 时此参数无效 + /// Gets or sets whether the header text is truncated when overflowing. Default is false. Can be used with HeaderTextTooltip. This parameter is not effective when HeaderTextWrap is true. + /// 10.2.2 /// bool HeaderTextEllipsis { get; set; } /// - /// 获得/设置 the custom CSS class for the column td. 默认为 null. - /// Gets or sets the custom CSS class for the column td. Default is null. + /// 获得/设置 列 td 的自定义 CSS 类,默认为 null + /// Gets or sets the custom CSS class for the column td. Default is null. + /// 10.2.2 /// string? CssClass { get; set; } /// - /// 获得/设置 the breakpoint at which the column is shown. 默认为 BreakPoint.None. - /// Gets or sets the breakpoint at which the column is shown. Default is BreakPoint.None. + /// 获得/设置 显示列的断点,默认为 BreakPoint.None + /// Gets or sets the breakpoint at which the column is shown. Default is BreakPoint.None. + /// 10.2.2 /// BreakPoint ShownWithBreakPoint { get; set; } /// - /// 获得/设置 是否 the column can be copied. 默认为 null. - /// Gets or sets whether the column can be copied. Default is null. + /// 获得/设置 是否可以复制列,默认为 null + /// Gets or sets whether the column can be copied. Default is null. + /// 10.2.2 /// bool? ShowCopyColumn { get; set; } /// - /// 获得/设置 the 显示 模板. - /// Gets or sets the display template. + /// 获得/设置 显示模板 + /// Gets or sets the display template. + /// 10.2.2 /// RenderFragment? Template { get; set; } /// - /// 获得/设置 the search 模板. - /// Gets or sets the search template. + /// 获得/设置 搜索模板 + /// Gets or sets the search template. + /// 10.2.2 /// RenderFragment? SearchTemplate { get; set; } /// - /// 获得/设置 the filter 模板. - /// Gets or sets the filter template. + /// 获得/设置 过滤模板 + /// Gets or sets the filter template. + /// 10.2.2 /// RenderFragment? FilterTemplate { get; set; } /// - /// 获得/设置 the header 模板. - /// Gets or sets the header template. + /// 获得/设置 表头模板 + /// Gets or sets the header template. + /// 10.2.2 /// RenderFragment? HeaderTemplate { get; set; } /// - /// 获得/设置 the toolbox 模板. 默认为 null. - /// Gets or sets the toolbox template. Default is null. + /// 获得/设置 工具栏模板,默认为 null + /// Gets or sets the toolbox template. Default is null. /// RenderFragment? ToolboxTemplate { get; set; } /// - /// 获得/设置 the column filter. - /// Gets or sets the column filter. + /// 获得/设置 列过滤器 + /// Gets or sets the column filter. + /// 10.2.2 /// IFilter? Filter { get; set; } /// - /// 获得/设置 the format string, such as "yyyy-MM-dd" for date 类型s. - /// Gets or sets the format string, such as "yyyy-MM-dd" for date types. + /// 获得/设置 格式字符串,例如日期类型的 "yyyy-MM-dd" + /// Gets or sets the format string, such as "yyyy-MM-dd" for date types. + /// 10.2.2 /// string? FormatString { get; set; } /// - /// 获得/设置 the column format 回调 委托 . - /// Gets or sets the column format callback delegate . + /// 获得/设置 列格式回调委托 + /// Gets or sets the column format callback delegate. + /// 10.2.2 /// Func>? Formatter { get; set; } /// - /// 获得/设置 the text alignment. 默认为 null, using Alignment.None. - /// Gets or sets the text alignment. Default is null, using Alignment.None. + /// 获得/设置 文本对齐方式,默认为 null,使用 Alignment.None + /// Gets or sets the text alignment. Default is null, using Alignment.None. /// Alignment? Align { get; set; } /// - /// 获得/设置 是否 to show tooltips on mouse hover. 默认为 null, using false value. - /// Gets or sets whether to show tooltips on mouse hover. Default is null, using false value. + /// 获得/设置 鼠标悬停时是否显示提示,默认为 null,使用 false 值 + /// Gets or sets whether to show tooltips on mouse hover. Default is null, using false value. + /// 10.2.2 /// bool? ShowTips { get; set; } /// - /// 获得/设置 the custom tooltip 内容 回调 委托. 默认为 null, using the current value. - /// Gets or sets the custom tooltip content callback delegate. Default is null, using the current value. + /// 获得/设置 自定义提示内容回调委托,默认为 null,使用当前值 + /// Gets or sets the custom tooltip content callback delegate. Default is null, using the current value. /// Func>? GetTooltipTextCallback { get; set; } /// - /// 获得/设置 the cell render 回调方法. - /// Gets or sets the cell render callback method. + /// 获得/设置 单元格渲染回调方法 + /// Gets or sets the cell render callback method. + /// 10.2.2 /// Action? OnCellRender { get; set; } /// - /// 获得/设置 是否 the column is a MarkupString. 默认为 false. - /// Gets or sets whether the column is a MarkupString. Default is false. + /// 获得/设置 列是否为 MarkupString,默认为 false + /// Gets or sets whether the column is a MarkupString. Default is false. + /// 10.2.2 /// bool IsMarkupString { get; set; } /// - /// 获得/设置 是否 the column is required when adding a new item. 默认为 null. - /// Gets or sets whether the column is required when adding a new item. Default is null. + /// 获得/设置 添加新项时列是否必需,默认为 null + /// Gets or sets whether the column is required when adding a new item. Default is null. /// bool? IsRequiredWhenAdd { get; set; } /// - /// 获得/设置 是否 the column is required when editing an item. 默认为 null. - /// Gets or sets whether the column is required when editing an item. Default is null. + /// 获得/设置 编辑项时列是否必需,默认为 null + /// Gets or sets whether the column is required when editing an item. Default is null. + /// 10.2.2 /// bool? IsRequiredWhenEdit { get; set; } /// - /// 获得/设置 是否 the column is read-only when adding a new item. 默认为 null, using the value. - /// Gets or sets whether the column is read-only when adding a new item. Default is null, using the value. + /// 获得/设置 添加新项时列是否为只读,默认为 null,使用 IEditorItem.Readonly 值 + /// Gets or sets whether the column is read-only when adding a new item. Default is null, using the value. + /// 10.2.2 /// bool? IsReadonlyWhenAdd { get; set; } /// - /// 获得/设置 是否 the column is read-only when editing an item. 默认为 null, using the value. - /// Gets or sets whether the column is read-only when editing an item. Default is null, using the value. + /// 获得/设置 编辑项时列是否为只读,默认为 null,使用 IEditorItem.Readonly 值 + /// Gets or sets whether the column is read-only when editing an item. Default is null, using the value. + /// 10.2.2 /// bool? IsReadonlyWhenEdit { get; set; } /// - /// 获得/设置 是否 the current edit item is visible. 默认为 null, using true value. - /// Gets or sets whether the current edit item is visible. Default is null, using true value. + /// 获得/设置 当前编辑项是否可见,默认为 null,使用 true 值 + /// Gets or sets whether the current edit item is visible. Default is null, using true value. + /// 10.2.2 /// bool? Visible { get; set; } /// - /// 获得/设置 是否 the column is visible when adding a new item. 默认为 null, using the value. - /// Gets or sets whether the column is visible when adding a new item. Default is null, using the value. + /// 获得/设置 添加新项时列是否可见,默认为 null,使用 Visible 值 + /// Gets or sets whether the column is visible when adding a new item. Default is null, using the value. + /// 10.2.2 /// bool? IsVisibleWhenAdd { get; set; } /// - /// 获得/设置 是否 the column is visible when editing an item. 默认为 null, using the value. - /// Gets or sets whether the column is visible when editing an item. Default is null, using the value. + /// 获得/设置 编辑项时列是否可见,默认为 null,使用 Visible 值 + /// Gets or sets whether the column is visible when editing an item. Default is null, using the value. /// bool? IsVisibleWhenEdit { get; set; } /// - /// 获得/设置 the custom search logic. - /// Gets or sets the custom search logic. + /// 获得/设置 自定义搜索逻辑 + /// Gets or sets the custom search logic. + /// 10.2.2 /// Func? CustomSearch { get; set; } } diff --git a/src/BootstrapBlazor/Components/Table/ITableEditDialogOption.cs b/src/BootstrapBlazor/Components/Table/ITableEditDialogOption.cs index 6b827c680d7..594019bc7a6 100644 --- a/src/BootstrapBlazor/Components/Table/ITableEditDialogOption.cs +++ b/src/BootstrapBlazor/Components/Table/ITableEditDialogOption.cs @@ -8,122 +8,137 @@ namespace BootstrapBlazor.Components; /// -/// Table 编辑配置接口 -/// Table 编辑配置接口 +/// Table 编辑配置接口 +/// Table edit configuration interface /// public interface ITableEditDialogOption { /// - /// 获得/设置 组件是否采用 Tracking 模式对编辑项进行直接更新 默认 false - /// Gets or sets componentwhether采用 Tracking 模式对编辑项进行直接更新 Default is false + /// 获得/设置 组件是否采用 Tracking 模式对编辑项进行直接更新,默认为 false + /// Gets or sets whether to use Tracking mode to directly update edited items. Default is false. + /// 10.2.2 /// bool IsTracking { get; set; } /// - /// 获得/设置 是否显示标签 默认为 true 显示标签 - /// Gets or sets whetherdisplay标签 Default is为 true display标签 + /// 获得/设置 是否显示标签,默认为 true + /// Gets or sets whether to display label. Default is true. + /// 10.2.2 /// bool ShowLabel { get; set; } /// - /// 获得/设置 实体类编辑模式 Add 还是 Update - /// Gets or sets 实体类编辑模式 Add 还是 Update + /// 获得/设置 实体类编辑模式 Add 还是 Update + /// Gets or sets entity class edit mode, Add or Update + /// 10.2.2 /// ItemChangedType ItemChangedType { get; set; } /// - /// 获得/设置 每行显示组件数量 默认为 null - /// Gets or sets 每行displaycomponent数量 Default is为 null + /// 获得/设置 每行显示组件数量,默认为 null + /// Gets or sets the number of components displayed per row. Default is null. + /// 10.2.2 /// int? ItemsPerRow { get; set; } /// - /// 获得/设置 设置行内组件布局格式 默认 Row 布局 - /// Gets or sets Sets行内component布局格式 Default is Row 布局 + /// 获得/设置 设置行内组件布局格式,默认为 Row 布局 + /// Gets or sets the layout format of inline components. Default is Row layout. /// RowType RowType { get; set; } /// - /// 获得/设置 设置 Inline 模式下标签对齐方式 默认 None 等效于 Left 左对齐 - /// Gets or sets Sets Inline 模式下标签对齐方式 Default is None 等效于 Left 左对齐 + /// 获得/设置 在 RowType Inline 模式下标签对齐方式,默认为 None(等效于 Left 左对齐) + /// Gets or sets the label alignment in RowType Inline mode. Default is None (equivalent to Left). + /// 10.2.2 /// Alignment LabelAlign { get; set; } /// - /// 获得/设置 查询时是否显示正在加载中动画 默认为 false - /// Gets or sets 查询时whetherdisplay正在加载中动画 Default is为 false + /// 获得/设置 查询时是否显示正在加载中动画,默认为 false + /// Gets or sets whether to display loading animation when querying. Default is false. + /// 10.2.2 /// bool ShowLoading { get; set; } /// - /// 获得/设置 未分组编辑项布局位置 默认 false 在尾部 - /// Gets or sets 未分组编辑项布局位置 Default is false 在尾部 + /// 获得/设置 未分组编辑项布局位置,默认为 false 在尾部 + /// Gets or sets the layout position of ungrouped edit items. Default is false (at the end). + /// 10.2.2 /// bool ShowUnsetGroupItemsOnTop { get; set; } /// - /// 获得/设置 编辑框模型 - /// Gets or sets 编辑框模型 + /// 获得/设置 编辑框模型 + /// Gets or sets edit form model /// TModel? Model { get; set; } /// - /// 获得/设置 是否禁用表单内回车自动提交功能 默认 null 未设置 - /// Gets or sets whether禁用表单内回车自动提交功能 Default is null 未Sets + /// 获得/设置 是否禁用表单内回车自动提交功能,默认为 null 未设置 + /// Gets or sets whether to disable auto submit form by Enter key. Default is null. + /// 10.2.2 /// bool? DisableAutoSubmitFormByEnter { get; set; } /// - /// 获得/设置 保存按钮文本 - /// Gets or sets 保存button文本 + /// 获得/设置 保存按钮文本 + /// Gets or sets save button text /// string? SaveButtonText { get; set; } /// - /// 获得/设置 保存按钮图标 默认 null 使用当前主题图标 - /// Gets or sets 保存buttonicon Default is null 使用当前主题icon + /// 获得/设置 保存按钮图标 默认 null 使用当前主题图标 + /// Gets or sets save button icon. Default is null, using the current theme icon. + /// 10.2.2 /// string? SaveButtonIcon { get; set; } /// - /// 获得/设置 关闭按钮文本 - /// Gets or sets 关闭button文本 + /// 获得/设置 关闭按钮文本 + /// Gets or sets close button text + /// 10.2.2 /// string? CloseButtonText { get; set; } /// - /// 获得/设置 关闭按钮图标 默认 null 使用当前主题图标 - /// Gets or sets 关闭buttonicon Default is null 使用当前主题icon + /// 获得/设置 关闭按钮图标 默认 null 使用当前主题图标 + /// Gets or sets close button icon. Default is null, using the current theme icon. /// string? CloseButtonIcon { get; set; } /// - /// 获得 编辑项集合 - /// Gets 编辑项collection + /// 获得 编辑项集合 + /// Gets edit item collection + /// 10.2.2 /// IEnumerable? Items { get; set; } /// - /// 获得/设置 保存回调委托 - /// Gets or sets 保存回调delegate + /// 获得/设置 保存回调委托 + /// Gets or sets save callback delegate + /// 10.2.2 /// Func>? OnEditAsync { get; set; } /// - /// 获得/设置 关闭弹窗回调方法 - /// Gets or sets 关闭弹窗callback method + /// 获得/设置 关闭弹窗回调方法 + /// Gets or sets close dialog callback method + /// 10.2.2 /// Func? OnCloseAsync { get; set; } /// - /// 获得/设置 EditDialog Body 模板 - /// Gets or sets EditDialog Body template + /// 获得/设置 EditDialog Body 模板 + /// Gets or sets EditDialog Body template + /// 10.2.2 /// RenderFragment? DialogBodyTemplate { get; set; } /// - /// 获得/设置 EditDialog Footer 模板 - /// Gets or sets EditDialog Footer template + /// 获得/设置 EditDialog Footer 模板 + /// Gets or sets EditDialog Footer template + /// 10.2.2 /// RenderFragment? DialogFooterTemplate { get; set; } } diff --git a/src/BootstrapBlazor/Components/Table/ITableExportContext.cs b/src/BootstrapBlazor/Components/Table/ITableExportContext.cs index 0a3fbe19d56..37a8b4d2136 100644 --- a/src/BootstrapBlazor/Components/Table/ITableExportContext.cs +++ b/src/BootstrapBlazor/Components/Table/ITableExportContext.cs @@ -6,41 +6,44 @@ namespace BootstrapBlazor.Components; /// -/// Table 导出数据上下文接口 -/// Table 导出data上下文接口 +/// Table 导出数据上下文接口 +/// Table export data context interface /// /// public interface ITableExportContext { /// - /// 获得 Table 实例所有列集合 - /// Gets Table instance所有列collection + /// 获得 Table 实例所有列集合 + /// Gets all columns collection of Table instance + /// 10.2.2 /// IEnumerable Columns { get; } /// - /// 获得 当前 行数据集合 - /// Gets 当前 行datacollection + /// 获得 当前行数据集合 + /// Gets current row data collection + /// 10.2.2 /// IEnumerable Rows { get; } /// - /// 获得 当前 Table 内置查询条件方法 - /// Gets 当前 Table 内置查询条件方法 + /// 获得 当前 Table 内置查询条件方法 + /// Gets the built-in query condition builder method of current Table + /// 10.2.2 /// - /// QueryPageOptions BuildQueryPageOptions(); /// - /// 获得 当前 Table 内置 ExportAsync 方法 - /// Gets 当前 Table 内置 ExportAsync 方法 + /// 获得 当前 Table 内置 ExportAsync 方法 + /// Gets the built-in ExportAsync method of current Table + /// 10.2.2 /// Task ExportAsync(); /// - /// 获得 当前 Table 显示列集合 - /// Gets 当前 Table display列collection + /// 获得 当前 Table 显示列集合 + /// Gets display columns collection of current Table + /// 10.2.2 /// - /// IEnumerable GetVisibleColumns(); } diff --git a/src/BootstrapBlazor/Components/Table/ITableExportDataContext.cs b/src/BootstrapBlazor/Components/Table/ITableExportDataContext.cs index ef2a5da5383..749979da8ad 100644 --- a/src/BootstrapBlazor/Components/Table/ITableExportDataContext.cs +++ b/src/BootstrapBlazor/Components/Table/ITableExportDataContext.cs @@ -6,33 +6,37 @@ namespace BootstrapBlazor.Components; /// -/// Table 导出数据上下文接口 -/// Table 导出data上下文接口 +/// Table 导出数据上下文接口 +/// Table export data context interface /// /// public interface ITableExportDataContext { /// - /// 获得 导出类型 枚举类型 - /// Gets 导出type enumtype + /// 获得 导出类型 TableExportType 枚举类型 + /// Gets export type TableExportType enumeration type + /// 10.2.2 /// TableExportType ExportType { get; } /// - /// 获得 当前 行数据集合 - /// Gets 当前 行datacollection + /// 获得 当前行数据集合 + /// Gets current row data collection + /// 10.2.2 /// IEnumerable Rows { get; } /// - /// 获得 当前表格可见列集合 - /// Gets 当前表格可见列collection + /// 获得 当前表格可见列集合 + /// Gets current table visible columns collection + /// 10.2.2 /// IEnumerable Columns { get; } /// - /// 获得 当前 Table 内置查询条件方法 - /// Gets 当前 Table 内置查询条件方法 + /// 获得 当前 Table 内置查询条件 + /// Gets the built-in query condition of current Table + /// 10.2.2 /// QueryPageOptions Options { get; } } diff --git a/src/BootstrapBlazor/Components/Table/ITableSearchModel.cs b/src/BootstrapBlazor/Components/Table/ITableSearchModel.cs index f8ae0e3d202..493d56a5134 100644 --- a/src/BootstrapBlazor/Components/Table/ITableSearchModel.cs +++ b/src/BootstrapBlazor/Components/Table/ITableSearchModel.cs @@ -6,28 +6,30 @@ namespace BootstrapBlazor.Components; /// -/// Table 组件自定义搜索模型接口定义 -/// Table component自定义搜索模型接口定义 +/// Table 组件自定义搜索模型接口定义 +/// Table component custom search model interface definition /// public interface ITableSearchModel { /// - /// 获得 搜索集合 - /// Gets 搜索collection + /// 获得 搜索集合 + /// Gets search collection /// [Obsolete("This method is obsolete. Use GetSearches instead. 已过期,请使用 GetSearches 方法")] [ExcludeFromCodeCoverage] IEnumerable GetSearchs() => GetSearches(); /// - /// 获得 搜索集合 - /// Gets 搜索collection + /// 获得 搜索集合 + /// Gets search collection + /// 10.2.2 /// IEnumerable GetSearches(); /// - /// 重置操作 - /// 重置操作 + /// 重置操作 + /// Reset operation + /// 10.2.2 /// void Reset(); } diff --git a/src/BootstrapBlazor/Components/Table/ITableToolbarButton.cs b/src/BootstrapBlazor/Components/Table/ITableToolbarButton.cs index dfb949f8dd2..5ed490499c0 100644 --- a/src/BootstrapBlazor/Components/Table/ITableToolbarButton.cs +++ b/src/BootstrapBlazor/Components/Table/ITableToolbarButton.cs @@ -7,19 +7,21 @@ namespace BootstrapBlazor.Components; /// /// ITableToolbarButton 接口 -/// ITableToolbarButton 接口 +/// ITableToolbarButton interface /// public interface ITableToolbarButton : IToolbarComponent { /// - /// 获得/设置 选中一行时启用按钮 默认 false 均可用 - /// Gets or sets 选中一行时启用button Default is false 均可用 + /// 获得/设置 选中一行时启用按钮,默认为 false + /// Gets or sets whether to enable button when one row is selected. Default is false. + /// 10.2.2 /// bool IsEnableWhenSelectedOneRow { get; set; } /// - /// 获得/设置 按钮是否被禁用回调方法 - /// Gets or sets buttonwhether被禁用callback method + /// 获得/设置 按钮是否被禁用的回调方法 + /// Gets or sets the callback method for button disabled state + /// 10.2.2 /// Func, bool>? IsDisabledCallback { get; set; } } diff --git a/src/BootstrapBlazor/Components/Table/IToolbarComponent.cs b/src/BootstrapBlazor/Components/Table/IToolbarComponent.cs index 1b3b5437f56..fc747ce64bf 100644 --- a/src/BootstrapBlazor/Components/Table/IToolbarComponent.cs +++ b/src/BootstrapBlazor/Components/Table/IToolbarComponent.cs @@ -12,8 +12,9 @@ namespace BootstrapBlazor.Components; public interface IToolbarComponent { /// - /// 获得/设置 是否显示 默认 true 显示 - /// Gets or sets whether display Default is true display + /// 获得/设置 是否显示,默认为 true 显示 + /// Gets or sets whether to display. Default is true. + /// 10.2.2 /// bool IsShow { get; set; } } diff --git a/src/BootstrapBlazor/Components/Table/ItemChangedType.cs b/src/BootstrapBlazor/Components/Table/ItemChangedType.cs index 6eb8604f4b5..2889b9c3dce 100644 --- a/src/BootstrapBlazor/Components/Table/ItemChangedType.cs +++ b/src/BootstrapBlazor/Components/Table/ItemChangedType.cs @@ -6,20 +6,20 @@ namespace BootstrapBlazor.Components; /// -/// 数据变化类型 -/// data变化type +/// 数据变化类型 +/// Data change type /// public enum ItemChangedType { /// - /// 新建 - /// 新建 + /// 新建 + /// Add /// Add, /// - /// 更新 - /// 更新 + /// 更新 + /// Update /// Update, } diff --git a/src/BootstrapBlazor/Components/Table/LookupContent.cs b/src/BootstrapBlazor/Components/Table/LookupContent.cs index 894e687acf4..fc870213c61 100644 --- a/src/BootstrapBlazor/Components/Table/LookupContent.cs +++ b/src/BootstrapBlazor/Components/Table/LookupContent.cs @@ -11,35 +11,30 @@ internal class LookupContent : ComponentBase, ILookup { /// /// - /// 10.2.2 /// [Parameter] public IEnumerable? Lookup { get; set; } /// /// - /// 10.2.2 /// [Parameter] public ILookupService? LookupService { get; set; } /// /// - /// 10.2.2 /// [Parameter] public string? LookupServiceKey { get; set; } /// /// - /// 10.2.2 /// [Parameter] public object? LookupServiceData { get; set; } /// /// - /// 10.2.2 /// [Parameter] public StringComparison LookupStringComparison { get; set; } = StringComparison.OrdinalIgnoreCase; @@ -63,7 +58,6 @@ internal class LookupContent : ComponentBase, ILookup /// /// /// - /// protected override async Task OnParametersSetAsync() { await base.OnParametersSetAsync(); diff --git a/src/BootstrapBlazor/Components/Table/Table.razor.Checkbox.cs b/src/BootstrapBlazor/Components/Table/Table.razor.Checkbox.cs index c2227ca6271..928cdbbf845 100644 --- a/src/BootstrapBlazor/Components/Table/Table.razor.Checkbox.cs +++ b/src/BootstrapBlazor/Components/Table/Table.razor.Checkbox.cs @@ -14,7 +14,7 @@ public partial class Table protected string? CheckboxDisplayTextString => ShowCheckboxText ? CheckboxDisplayText : null; /// - /// 获得 thead 样式表集合 + /// 获得 表头行样式表集合 /// Get thead style sheet collection /// protected string? HeaderClass => CssBuilder.Default() @@ -22,16 +22,16 @@ public partial class Table .Build(); /// - /// 获得/设置 是否保持选择行,默认为 false 不保持 - /// Get/Set Whether to keep selected rows. Default false + /// 获得/设置 是否保持选择行,默认值为 false + /// Gets or sets Whether to keep selected rows. Default false /// 10.2.2 /// [Parameter] public bool IsKeepSelectedRows { get; set; } /// - /// 获得/设置 新建数据是否保持原选择行,默认为 false 不保持 - /// Get/Set Keep selected rows after adding data. Default false + /// 获得/设置 新建数据是否保持原选择行,默认值为 false + /// Gets or sets Keep selected rows after adding data. Default false /// 10.2.2 /// [Parameter] @@ -41,27 +41,18 @@ public partial class Table /// 获得 表头行是否选中状态 /// Get Header Row Check State /// - /// protected CheckboxState HeaderCheckState() { var ret = CheckboxState.UnChecked; - // 过滤掉不可选择的记录 - // Filter out unselectable records var filterRows = ShowRowCheckboxCallback == null ? Rows : Rows.Where(ShowRowCheckboxCallback); if (filterRows.Any()) { if (!filterRows.Except(SelectedRows).Any()) { - // 所有行被选中 - // All rows are selected - // all rows are selected ret = CheckboxState.Checked; } else if (filterRows.Any(row => SelectedRows.Any(i => Equals(i, row)))) { - // 任意一行被选中 - // Any one row is selected - // any one row is selected ret = CheckboxState.Indeterminate; } } @@ -73,12 +64,11 @@ protected CheckboxState HeaderCheckState() /// Get whether current row is selected /// /// - /// protected CheckboxState RowCheckState(TItem item) => SelectedRows.Any(i => Equals(i, item)) ? CheckboxState.Checked : CheckboxState.UnChecked; /// - /// 获得/设置 是否为多选模式 默认为 false - /// Get/Set Multiple Selection Mode. Default false + /// 获得/设置 是否为多选模式,默认值为 false + /// Gets or sets Multiple Selection Mode. Default false /// 10.2.2 /// /// 此参数在 模式下为 true @@ -86,17 +76,16 @@ protected CheckboxState HeaderCheckState() public bool IsMultipleSelect { get; set; } /// - /// 获得/设置 是否显示选择框文字 默认为 false - /// Get/Set Show Checkbox Text. Default false + /// 获得/设置 是否显示选择框文字,默认值为 false + /// Gets or sets Show Checkbox Text. Default false /// 10.2.2 /// - /// [Parameter] public bool ShowCheckboxText { get; set; } /// /// 获得/设置 显示选择框文字 默认为 选择 - /// Get/Set Checkbox Display Text. Default "Select" + /// Gets or sets Checkbox Display Text. Default "Select" /// 10.2.2 /// /// @@ -106,7 +95,7 @@ protected CheckboxState HeaderCheckState() /// /// 获得/设置 表格行是否显示选择框 默认全部显示 此属性在 参数为 true 时生效 - /// Get/Set Whether to show row checkbox. Default show all. This property is effective when is true + /// Gets or sets Whether to show row checkbox. Default show all. This property is effective when is true /// 10.2.2 /// [Parameter] @@ -115,7 +104,7 @@ protected CheckboxState HeaderCheckState() private bool GetShowRowCheckbox(TItem item) => ShowRowCheckboxCallback == null || ShowRowCheckboxCallback(item); /// - /// 点击 Header 选择复选框时触发此方法 + /// 点击表头选择复选框时触发此方法 /// Header Checkbox Click Method /// /// @@ -159,21 +148,12 @@ protected async Task OnCheck(CheckboxState state, TItem val) await OnSelectedRowsChanged(); } - /// - /// 是否重置列变量 方法中重置为 false - /// Whether to reset column variables. Reset to false in method - /// private bool _resetColumns; - - /// - /// 是否重置列拖拽事件 方法中重置为 false - /// Whether to reset column drag listener. Reset to false in method - /// private bool _resetColDragListener; /// /// 获得/设置 列改变显示状态回调方法 - /// Get/Set Column Visible Changed Callback + /// Gets or sets Column Visible Changed Callback /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Table/Table.razor.Edit.cs b/src/BootstrapBlazor/Components/Table/Table.razor.Edit.cs index a854557c175..871b4808c31 100644 --- a/src/BootstrapBlazor/Components/Table/Table.razor.Edit.cs +++ b/src/BootstrapBlazor/Components/Table/Table.razor.Edit.cs @@ -11,14 +11,14 @@ public partial class Table { /// /// 获得/设置 编辑弹窗 Title 文字 - /// Get/Set Edit Dialog Title Text + /// Gets or sets Edit Dialog Title Text /// [NotNull] protected string? EditModalTitleString { get; set; } /// /// 获得/设置 被选中数据集合 - /// Get/Set Selected Rows Collection + /// Gets or sets Selected Rows Collection /// 10.2.2 /// [Parameter] @@ -26,15 +26,15 @@ public partial class Table /// /// 获得/设置 选中行变化回调方法 - /// Get/Set Selected Rows Changed Callback + /// Gets or sets Selected Rows Changed Callback /// 10.2.2 /// [Parameter] public EventCallback> SelectedRowsChanged { get; set; } /// - /// 获得/设置 新建行位置枚举 默认为 Last 最后 - /// Get/Set Insert Row Mode. Default Last + /// 获得/设置 新建行位置枚举,默认为最后插入 + /// Gets or sets Insert Row Mode. Default Last /// 10.2.2 /// [Parameter] @@ -42,7 +42,7 @@ public partial class Table /// /// 获得/设置 是否正在查询数据 - /// Get/Set Whether is querying data + /// Gets or sets Whether is querying data /// private bool IsLoading { get; set; } @@ -58,13 +58,13 @@ public partial class Table /// /// 获得/设置 客户端屏幕宽度 - /// Get/Set Client Screen Width + /// Gets or sets Client Screen Width /// protected BreakPoint ScreenSize { get; set; } /// /// 获得/设置 组件编辑模式 默认为弹窗编辑行数据 PopupEditForm - /// Get/Set Edit Mode. Default PopupEditForm + /// Gets or sets Edit Mode. Default PopupEditForm /// 10.2.2 /// [Parameter] @@ -72,7 +72,7 @@ public partial class Table /// /// 获得/设置 组件布局方式 默认为 Auto - /// Get/Set Render Mode. Default Auto + /// Gets or sets Render Mode. Default Auto /// 10.2.2 /// [Parameter] @@ -80,7 +80,7 @@ public partial class Table /// /// 获得/设置 组件布局自适应切换阈值 默认为 768 - /// Get/Set Render Mode Responsive Width. Default 768 + /// Gets or sets Render Mode Responsive Width. Default 768 /// 10.2.2 /// [Parameter] @@ -88,7 +88,7 @@ public partial class Table /// /// 获得/设置 编辑弹框是否 Body 出现滚动条 默认 false - /// Get/Set Whether to show scrollbar in Edit Dialog Body. Default false + /// Gets or sets Whether to show scrollbar in Edit Dialog Body. Default false /// 10.2.2 /// [Parameter] @@ -96,7 +96,7 @@ public partial class Table /// /// 获得/设置 是否支持键盘 ESC 关闭当前弹窗 默认 true 支持 - /// Get/Set Whether to support ESC key to close current dialog. Default true + /// Gets or sets Whether to support ESC key to close current dialog. Default true /// 10.2.2 /// [Parameter] @@ -104,7 +104,7 @@ public partial class Table /// /// 获得/设置 行样式格式回调委托 - /// Get/Set Row Class Formatter Callback + /// Gets or sets Row Class Formatter Callback /// 10.2.2 /// [Parameter] @@ -112,7 +112,7 @@ public partial class Table /// /// 获得/设置 取消保存后回调委托方法 - /// Get/Set After Cancel Save Callback + /// Gets or sets After Cancel Save Callback /// 10.2.2 /// [Parameter] @@ -120,7 +120,7 @@ public partial class Table /// /// 获得/设置 保存后回调委托方法 - /// Get/Set After Save Callback + /// Gets or sets After Save Callback /// 10.2.2 /// [Parameter] @@ -128,7 +128,7 @@ public partial class Table /// /// 获得/设置 删除后回调委托方法 - /// Get/Set After Delete Callback + /// Gets or sets After Delete Callback /// 10.2.2 /// [Parameter] @@ -136,7 +136,7 @@ public partial class Table /// /// 获得/设置 保存删除后回调委托方法 - /// Get/Set After Modify Callback + /// Gets or sets After Modify Callback /// 10.2.2 /// [Parameter] @@ -144,7 +144,7 @@ public partial class Table /// /// 获得/设置 编辑数据弹窗 Title - /// Get/Set Edit Dialog Title + /// Gets or sets Edit Dialog Title /// 10.2.2 /// [Parameter] @@ -153,7 +153,7 @@ public partial class Table /// /// 获得/设置 新建数据弹窗 Title - /// Get/Set Add Dialog Title + /// Gets or sets Add Dialog Title /// 10.2.2 /// [Parameter] @@ -162,7 +162,7 @@ public partial class Table /// /// 获得/设置 EditModel 实例 - /// Get/Set EditModel Instance + /// Gets or sets EditModel Instance /// 10.2.2 /// [Parameter] @@ -171,23 +171,23 @@ public partial class Table /// /// 获得/设置 EditTemplate 实例 - /// Get/Set EditTemplate Instance + /// Gets or sets EditTemplate Instance /// 10.2.2 /// [Parameter] public RenderFragment? EditTemplate { get; set; } /// - /// 获得/设置 BeforeRowButtonTemplate 实例 此模板生成的按钮默认放置到按钮前面如需放置前面 请查看 - /// Get/Set BeforeRowButtonTemplate Instance. The buttons generated by this template are placed before the button by default. If you need to place them in front, please check + /// 获得/设置 BeforeRowButtonTemplate 实例,此模板生成的按钮默认放置到按钮前面,如需放置后面请查看 + /// Gets or sets BeforeRowButtonTemplate Instance. The buttons generated by this template are placed before the button by default. If you need to place them in front, please check /// 10.2.2 /// [Parameter] public RenderFragment? BeforeRowButtonTemplate { get; set; } /// - /// 获得/设置 RowButtonTemplate 实例 此模板生成的按钮默认放置到按钮后面如需放置前面 请查看 - /// Get/Set RowButtonTemplate Instance. The buttons generated by this template are placed after the button by default. If you need to place them in front, please check + /// 获得/设置 RowButtonTemplate 实例,此模板生成的按钮默认放置到按钮后面,如需放置前面请查看 + /// Gets or sets RowButtonTemplate Instance. The buttons generated by this template are placed after the button by default. If you need to place them in front, please check /// 10.2.2 /// [Parameter] @@ -195,7 +195,7 @@ public partial class Table /// /// 获得/设置 是否显示 行内更多按钮 默认 false 不显示 - /// Get/Set Whether to show inline more button. Default false + /// Gets or sets Whether to show inline more button. Default false /// 10.2.2 /// [Parameter] @@ -203,7 +203,7 @@ public partial class Table /// /// 获得/设置 更多按钮颜色 默认 - /// Get/Set More Button Color. Default + /// Gets or sets More Button Color. Default /// 10.2.2 /// [Parameter] @@ -211,7 +211,7 @@ public partial class Table /// /// 获得/设置 更多按钮文本 默认 null 读取资源文件设置文本 - /// Get/Set More Button Text. Default null (Read from resource file) + /// Gets or sets More Button Text. Default null (Read from resource file) /// 10.2.2 /// [Parameter] @@ -219,7 +219,7 @@ public partial class Table /// /// 获得/设置 行内更多按钮下拉框模板 默认 null - /// Get/Set Inline More Button Dropdown Template. Default null + /// Gets or sets Inline More Button Dropdown Template. Default null /// 10.2.2 /// [Parameter] @@ -227,7 +227,7 @@ public partial class Table /// /// 获得/设置 行内功能按钮列头文本 默认为 操作 - /// Get/Set Column Button Header Text. Default "Operation" + /// Gets or sets Column Button Header Text. Default "Operation" /// 10.2.2 /// [Parameter] @@ -236,7 +236,7 @@ public partial class Table /// /// 获得/设置 点击行即选中本行 默认为 false - /// Get/Set Click Row to Select. Default false + /// Gets or sets Click Row to Select. Default false /// 10.2.2 /// [Parameter] @@ -244,7 +244,7 @@ public partial class Table /// /// 获得/设置 单选模式下双击即编辑本行 默认为 false - /// Get/Set Double Click Row to Edit in Single Select Mode. Default false + /// Gets or sets Double Click Row to Edit in Single Select Mode. Default false /// 10.2.2 /// [Parameter] @@ -252,7 +252,7 @@ public partial class Table /// /// 获得/设置 是否自动生成列信息 默认为 false - /// Get/Set Whether to auto generate columns. Default false + /// Gets or sets Whether to auto generate columns. Default false /// 10.2.2 /// [Parameter] @@ -260,7 +260,7 @@ public partial class Table /// /// 获得/设置 查询时是否显示正在加载中动画 默认为 false - /// Get/Set Whether to show loading animation when querying. Default false + /// Gets or sets Whether to show loading animation when querying. Default false /// 10.2.2 /// [Parameter] @@ -271,7 +271,7 @@ public partial class Table /// /// 获得/设置 数据服务参数 组件采用就近原则 如果提供了 Items > OnQueryAsync > DataService > 全局注入的数据服务 IDataService - /// Get/Set Data Service. Use nearby principle. Items > OnQueryAsync > DataService > Global Data Service + /// Gets or sets Data Service. Use nearby principle. Items > OnQueryAsync > DataService > Global Data Service /// 10.2.2 /// [Parameter] @@ -279,7 +279,7 @@ public partial class Table /// /// 获得/设置 注入数据服务 - /// Get/Set Injected Data Service + /// Gets or sets Injected Data Service /// [Inject] [NotNull] @@ -377,7 +377,7 @@ private async Task InternalOnAddAsync() /// /// 获得/设置 新建模型回调方法 默认 null 未设置时使用默认无参构造函数创建 - /// Get/Set Create Item Callback. Default null. Use default parameterless constructor if not set + /// Gets or sets Create Item Callback. Default null. Use default parameterless constructor if not set /// 10.2.2 /// [Parameter] @@ -411,7 +411,7 @@ private TItem CreateInstance() /// /// 获得/设置 新建搜索模型回调方法 默认 null 未设置时先 尝试使用 回调,再使用默认无参构造函数创建 - /// Get/Set Create Search Model Callback. Default null. Try to use callback first, then use default parameterless constructor + /// Gets or sets Create Search Model Callback. Default null. Try to use callback first, then use default parameterless constructor /// 10.2.2 /// [Parameter] @@ -533,7 +533,7 @@ private async Task QueryAsync(bool shouldRender, int? pageIndex = null, bool tri /// 显示/隐藏 Loading 遮罩 /// Show/Hide Loading Mask /// - /// true 时显示,false 时隐藏true 时display,false 时隐藏 + /// true 时显示,false 时隐藏true to display, false to hide /// public async ValueTask ToggleLoading(bool state) { @@ -548,7 +548,7 @@ public async ValueTask ToggleLoading(bool state) /// 显示/隐藏 Loading 遮罩 /// Show/Hide Loading Mask /// - /// true 时显示,false 时隐藏true 时display,false 时隐藏 + /// true 时显示,false 时隐藏true to display, false to hide /// protected async ValueTask InternalToggleLoading(bool state) { @@ -564,15 +564,11 @@ protected async ValueTask InternalToggleLoading(bool state) /// protected async Task QueryData(bool triggerByPagination = false) { - // 目前设计使用 Items 参数后不回调 OnQueryAsync 方法 - // Currently designed so that OnQueryAsync is not called when Items parameter is used + // Design: Items parameter is used without calling OnQueryAsync method if (Items == null) { var queryOption = BuildQueryPageOptions(); - // 是否为分页查询 - // Is triggered by pagination - // 设置是否为首次查询 - // Set whether it is the first query + // Set whether it is the first query queryOption.IsFirstQuery = _firstQuery; if (OnQueryAsync == null && typeof(TItem).IsAssignableTo(typeof(IDynamicObject))) @@ -603,13 +599,11 @@ async Task OnQuery(QueryPageOptions queryOption) if (!IsKeepSelectedRows) { - // 处理选中行逻辑 - // Process selected row logic + // Process selected row logic ResetSelectedRows(QueryItems); } - // 分页情况下内部不做处理防止页码错乱 - // Do not process internally in pagination case to prevent page number disorder + // Do not process internally in pagination case to prevent page number disorder ProcessData(); if (IsTree) @@ -617,8 +611,7 @@ async Task OnQuery(QueryPageOptions queryOption) await ProcessTreeData(); } - // 更新数据后清除缓存防止新数据不显示 - // Clear cache after updating data to prevent new data from not showing + // Clear cache after updating data to prevent new data from not showing _rowsCache = null; return; @@ -628,16 +621,14 @@ void ProcessData() var sorted = queryData.IsSorted; var searched = queryData.IsSearch; - // 外部未处理 SearchText 模糊查询 - // External not handled SearchText fuzzy query + // External not handled SearchText fuzzy query if (!searched && queryOption.Searches.Count > 0) { QueryItems = QueryItems.Where(queryOption.Searches.GetFilterFunc(FilterLogic.Or)); TotalCount = QueryItems.Count(); } - // 外部未处理自定义高级搜索 内部进行高级自定义搜索过滤 - // External not handled custom advanced search, internal advanced custom search filtering + // External not handled custom advanced search, internal advanced custom search filtering if (!IsAdvanceSearch && queryOption.CustomerSearches.Count > 0) { QueryItems = QueryItems.Where(queryOption.CustomerSearches.GetFilterFunc()); @@ -645,18 +636,15 @@ void ProcessData() IsAdvanceSearch = true; } - // 外部未过滤,内部自行过滤 - // External not filtered, internal filtering + // External not filtered, internal filtering if (!filtered && queryOption.Filters.Count > 0) { QueryItems = QueryItems.Where(queryOption.Filters.GetFilterFunc()); TotalCount = QueryItems.Count(); } - // 外部未处理排序,内部自行排序 - // External not handled sorting, internal sorting - // 先处理列头排序 再处理默认多列排序 - // Process column header sort first, then default multi-column sort + // External not handled sorting, internal sorting + // Process column header sort first, then default multi-column sort if (!sorted) { if (OnSort == null && queryOption.SortOrder != SortOrder.Unset && !string.IsNullOrEmpty(queryOption.SortName)) @@ -691,8 +679,7 @@ async Task ProcessTreeData() async Task CheckExpand(IEnumerable> nodes) { - // 恢复当前节点状态 - // Restore current node state + // 恢复当前节点状态 foreach (var node in nodes) { await TreeNodeCache.CheckExpandAsync(node, GetChildrenRowAsync); @@ -781,8 +768,7 @@ private async Task ClickEditButton(TItem item) SelectedRows.Add(item); await OnSelectedRowsChanged(); - // 更新行选中状态 - // Update row selection state + // 更新行选中状态 await EditAsync(); } @@ -792,8 +778,7 @@ private async Task ClickEditButton(TItem item) private async Task ClickUpdateButtonCallback() { - // 验证 InCell 模式下的表单 - // Validate form in InCell mode + // 验证 InCell 模式下的表单 var valid = await _inCellValidateForm.ValidateAsync(); if (!valid) { diff --git a/src/BootstrapBlazor/Components/Table/Table.razor.Localization.cs b/src/BootstrapBlazor/Components/Table/Table.razor.Localization.cs index dca02f06e05..c7e3f308e1c 100644 --- a/src/BootstrapBlazor/Components/Table/Table.razor.Localization.cs +++ b/src/BootstrapBlazor/Components/Table/Table.razor.Localization.cs @@ -11,7 +11,7 @@ public partial class Table { /// /// 获得/设置 新建按钮文本 - /// Get/Set Add Button Text + /// Gets or sets Add Button Text /// 10.2.2 /// [Parameter] @@ -20,7 +20,7 @@ public partial class Table /// /// 获得/设置 新建按钮图标 - /// Get/Set Add Button Icon + /// Gets or sets Add Button Icon /// 10.2.2 /// [Parameter] @@ -28,7 +28,7 @@ public partial class Table /// /// 获得/设置 编辑按钮文本 - /// Get/Set Edit Button Text + /// Gets or sets Edit Button Text /// 10.2.2 /// [Parameter] @@ -37,7 +37,7 @@ public partial class Table /// /// 获得/设置 编辑按钮图标 - /// Get/Set Edit Button Icon + /// Gets or sets Edit Button Icon /// 10.2.2 /// [Parameter] @@ -45,7 +45,7 @@ public partial class Table /// /// 获得/设置 更多按钮图标 - /// Get/Set More Button Icon + /// Gets or sets More Button Icon /// 10.2.2 /// [Parameter] @@ -53,7 +53,7 @@ public partial class Table /// /// 获得/设置 更新按钮文本 - /// Get/Set Update Button Text + /// Gets or sets Update Button Text /// 10.2.2 /// [Parameter] @@ -62,7 +62,7 @@ public partial class Table /// /// 获得/设置 取消按钮文本 - /// Get/Set Cancel Button Text + /// Gets or sets Cancel Button Text /// 10.2.2 /// [Parameter] @@ -71,7 +71,7 @@ public partial class Table /// /// 获得/设置 取消按钮图标 - /// Get/Set Cancel Button Icon + /// Gets or sets Cancel Button Icon /// 10.2.2 /// [Parameter] @@ -79,7 +79,7 @@ public partial class Table /// /// 获得/设置 删除按钮文本 - /// Get/Set Delete Button Text + /// Gets or sets Delete Button Text /// 10.2.2 /// [Parameter] @@ -88,7 +88,7 @@ public partial class Table /// /// 获得/设置 删除按钮图标 - /// Get/Set Delete Button Icon + /// Gets or sets Delete Button Icon /// 10.2.2 /// [Parameter] @@ -96,7 +96,7 @@ public partial class Table /// /// 获得/设置 取消删除按钮文本 - /// Get/Set Cancel Delete Button Text + /// Gets or sets Cancel Delete Button Text /// 10.2.2 /// [Parameter] @@ -105,7 +105,7 @@ public partial class Table /// /// 获得/设置 保存按钮文本 - /// Get/Set Save Button Text + /// Gets or sets Save Button Text /// 10.2.2 /// [Parameter] @@ -114,7 +114,7 @@ public partial class Table /// /// 获得/设置 保存按钮图标 - /// Get/Set Save Button Icon + /// Gets or sets Save Button Icon /// 10.2.2 /// [Parameter] @@ -122,7 +122,7 @@ public partial class Table /// /// 获得/设置 关闭按钮文本 - /// Get/Set Close Button Text + /// Gets or sets Close Button Text /// 10.2.2 /// [Parameter] @@ -131,7 +131,7 @@ public partial class Table /// /// 获得/设置 关闭按钮图标 - /// Get/Set Close Button Icon + /// Gets or sets Close Button Icon /// 10.2.2 /// [Parameter] @@ -139,7 +139,7 @@ public partial class Table /// /// 获得/设置 确认删除按钮文本 - /// Get/Set Confirm Delete Button Text + /// Gets or sets Confirm Delete Button Text /// 10.2.2 /// [Parameter] @@ -148,7 +148,7 @@ public partial class Table /// /// 获得/设置 确认删除弹窗文本 - /// Get/Set Confirm Delete Dialog Text + /// Gets or sets Confirm Delete Dialog Text /// 10.2.2 /// [Parameter] @@ -157,7 +157,7 @@ public partial class Table /// /// 获得/设置 刷新按钮文本 - /// Get/Set Refresh Button Text + /// Gets or sets Refresh Button Text /// 10.2.2 /// [Parameter] @@ -166,7 +166,7 @@ public partial class Table /// /// 获得/设置 刷新按钮图标 - /// Get/Set Refresh Button Icon + /// Gets or sets Refresh Button Icon /// 10.2.2 /// [Parameter] @@ -174,7 +174,7 @@ public partial class Table /// /// 获得/设置 视图按钮文本 - /// Get/Set Card View Button Text + /// Gets or sets Card View Button Text /// 10.2.2 /// [Parameter] @@ -183,7 +183,7 @@ public partial class Table /// /// 获得/设置 视图按钮图标 - /// Get/Set Card View Button Icon + /// Gets or sets Card View Button Icon /// 10.2.2 /// [Parameter] @@ -191,7 +191,7 @@ public partial class Table /// /// 获得/设置 列显示隐藏按钮提示信息文本 - /// Get/Set Column Button Title Text + /// Gets or sets Column Button Title Text /// 10.2.2 /// [Parameter] @@ -200,7 +200,7 @@ public partial class Table /// /// 获得/设置 列按钮文本 - /// Get/Set Column Button Text + /// Gets or sets Column Button Text /// 10.2.2 /// [Parameter] @@ -209,7 +209,7 @@ public partial class Table /// /// 获得/设置 列拷贝按钮图标 - /// Get/Set Copy Column Button Icon + /// Gets or sets Copy Column Button Icon /// 10.2.2 /// [Parameter] @@ -217,7 +217,7 @@ public partial class Table /// /// 获得/设置 导出按钮文本 - /// Get/Set Export Button Text + /// Gets or sets Export Button Text /// 10.2.2 /// [Parameter] @@ -226,7 +226,7 @@ public partial class Table /// /// 获得/设置 搜索栏 Placeholder 文本 - /// Get/Set Search Placeholder Text + /// Gets or sets Search Placeholder Text /// 10.2.2 /// [Parameter] @@ -235,7 +235,7 @@ public partial class Table /// /// 获得/设置 搜索按钮文本 - /// Get/Set Search Button Text + /// Gets or sets Search Button Text /// 10.2.2 /// [Parameter] @@ -244,7 +244,7 @@ public partial class Table /// /// 获得/设置 搜索按钮图标 - /// Get/Set Search Button Icon + /// Gets or sets Search Button Icon /// 10.2.2 /// [Parameter] @@ -252,7 +252,7 @@ public partial class Table /// /// 获得/设置 搜索弹窗文本 - /// Get/Set Search Dialog Text + /// Gets or sets Search Dialog Text /// 10.2.2 /// [Parameter] @@ -261,7 +261,7 @@ public partial class Table /// /// 获得/设置 搜索框提示文字 - /// Get/Set Search Tooltip + /// Gets or sets Search Tooltip /// 10.2.2 /// [Parameter] @@ -270,7 +270,7 @@ public partial class Table /// /// 获得/设置 重置按钮文本 - /// Get/Set Reset Search Button Text + /// Gets or sets Reset Search Button Text /// 10.2.2 /// [Parameter] @@ -279,7 +279,7 @@ public partial class Table /// /// 获得/设置 重置按钮图标 - /// Get/Set Reset Search Button Icon + /// Gets or sets Reset Search Button Icon /// 10.2.2 /// [Parameter] @@ -287,7 +287,7 @@ public partial class Table /// /// 获得/设置 高级搜索按钮文本 - /// Get/Set Advance Search Button Text + /// Gets or sets Advance Search Button Text /// 10.2.2 /// [Parameter] @@ -296,7 +296,7 @@ public partial class Table /// /// 获得/设置 高级搜索按钮图标 - /// Get/Set Advance Search Button Icon + /// Gets or sets Advance Search Button Icon /// 10.2.2 /// [Parameter] @@ -304,7 +304,7 @@ public partial class Table /// /// 获得/设置 新增按钮 Toast 提示 Title 文字 - /// Get/Set Add Button Toast Title + /// Gets or sets Add Button Toast Title /// 10.2.2 /// [Parameter] @@ -313,7 +313,7 @@ public partial class Table /// /// 获得/设置 新增按钮 Toast 提示 Content 文字 - /// Get/Set Add Button Toast Content + /// Gets or sets Add Button Toast Content /// 10.2.2 /// [Parameter] @@ -322,7 +322,7 @@ public partial class Table /// /// 获得/设置 编辑按钮 Toast 提示 Title 文字 - /// Get/Set Edit Button Toast Title + /// Gets or sets Edit Button Toast Title /// 10.2.2 /// [Parameter] @@ -331,7 +331,7 @@ public partial class Table /// /// 获得/设置 编辑按钮 Toast 未选择时提示 Content 文字 - /// Get/Set Edit Button Toast Not Selected Content + /// Gets or sets Edit Button Toast Not Selected Content /// 10.2.2 /// [Parameter] @@ -340,7 +340,7 @@ public partial class Table /// /// 获得/设置 编辑按钮 Toast 选择项设置不可编辑时提示 Content 文字 - /// Get/Set Edit Button Toast Read Only Content + /// Gets or sets Edit Button Toast Read Only Content /// 10.2.2 /// [Parameter] @@ -349,7 +349,7 @@ public partial class Table /// /// 获得/设置 编辑按钮 Toast 多项选择时提示 Content 文字 - /// Get/Set Edit Button Toast Multiple Selected Content + /// Gets or sets Edit Button Toast Multiple Selected Content /// 10.2.2 /// [Parameter] @@ -358,7 +358,7 @@ public partial class Table /// /// 获得/设置 编辑按钮 Toast 未提供 Save 方法时提示 Content 文字 - /// Get/Set Edit Button Toast No Save Method Content + /// Gets or sets Edit Button Toast No Save Method Content /// 10.2.2 /// [Parameter] @@ -367,7 +367,7 @@ public partial class Table /// /// 获得/设置 保存按钮 Toast 提示 Title 文字 - /// Get/Set Save Button Toast Title + /// Gets or sets Save Button Toast Title /// 10.2.2 /// [Parameter] @@ -376,7 +376,7 @@ public partial class Table /// /// 获得/设置 保存按钮 Toast 提示 Content 文字 - /// Get/Set Save Button Toast Content + /// Gets or sets Save Button Toast Content /// 10.2.2 /// [Parameter] @@ -385,7 +385,7 @@ public partial class Table /// /// 获得/设置 保存按钮结果 Toast 提示 Content 文字 - /// Get/Set Save Button Toast Result Content + /// Gets or sets Save Button Toast Result Content /// 10.2.2 /// [Parameter] @@ -394,7 +394,7 @@ public partial class Table /// /// 获得/设置 保存成功文字 - /// Get/Set Success Text + /// Gets or sets Success Text /// 10.2.2 /// [Parameter] @@ -403,7 +403,7 @@ public partial class Table /// /// 获得/设置 保存失败 - /// Get/Set Fail Text + /// Gets or sets Fail Text /// 10.2.2 /// [Parameter] @@ -412,7 +412,7 @@ public partial class Table /// /// 获得/设置 删除按钮 Toast 提示 Title 文字 - /// Get/Set Delete Button Toast Title + /// Gets or sets Delete Button Toast Title /// 10.2.2 /// [Parameter] @@ -421,7 +421,7 @@ public partial class Table /// /// 获得/设置 删除按钮选项中有无法删除项时 Toast 提示文字 - /// Get/Set Delete Button Toast Can Not Delete Content + /// Gets or sets Delete Button Toast Can Not Delete Content /// 10.2.2 /// [Parameter] @@ -430,7 +430,7 @@ public partial class Table /// /// 获得/设置 删除按钮 Toast 提示 Content 文字 - /// Get/Set Delete Button Toast Content + /// Gets or sets Delete Button Toast Content /// 10.2.2 /// [Parameter] @@ -439,7 +439,7 @@ public partial class Table /// /// 获得/设置 删除按钮结果 Toast 提示 Content 文字 - /// Get/Set Delete Button Toast Result Content + /// Gets or sets Delete Button Toast Result Content /// 10.2.2 /// [Parameter] @@ -448,7 +448,7 @@ public partial class Table /// /// 获得/设置 高级排序按钮文本 - /// Get/Set Advanced Sort Button Text + /// Gets or sets Advanced Sort Button Text /// 10.2.2 /// [Parameter] @@ -457,7 +457,7 @@ public partial class Table /// /// 获得/设置 高级排序弹窗文本 - /// Get/Set Advanced Sort Modal Title + /// Gets or sets Advanced Sort Modal Title /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Table/Table.razor.Pagination.cs b/src/BootstrapBlazor/Components/Table/Table.razor.Pagination.cs index 8892fc92df3..a67c2874a10 100644 --- a/src/BootstrapBlazor/Components/Table/Table.razor.Pagination.cs +++ b/src/BootstrapBlazor/Components/Table/Table.razor.Pagination.cs @@ -8,24 +8,24 @@ namespace BootstrapBlazor.Components; public partial class Table { /// - /// 获得/设置 是否分页 默认为 false - /// Get/Set Whether to allow pagination. Default false + /// 获得/设置 是否分页,默认值为 false + /// Gets or sets Whether to allow pagination. Default false /// 10.2.2 /// [Parameter] public bool IsPagination { get; set; } /// - /// 获得/设置 Page up/down 页码数量 默认 5 - /// Get/Set Page up/down page link count. Default 5 + /// 获得/设置 分页上下翻页的页码数量,默认为 5 + /// Gets or sets Page up/down page link count. Default 5 /// 10.2.2 /// [Parameter] public int MaxPageLinkCount { get; set; } = 5; /// - /// 获得/设置 是否在顶端显示分页 默认为 false - /// Get/Set Whether to show pagination at top. Default false + /// 获得/设置 是否在顶端显示分页,默认值为 false + /// Gets or sets Whether to show pagination at top. Default false /// 10.2.2 /// [Parameter] @@ -33,7 +33,7 @@ public partial class Table /// /// 获得/设置 是否显示行号列 默认为 false - /// Get/Set Whether to show line number column. Default false + /// Gets or sets Whether to show line number column. Default false /// 10.2.2 /// [Parameter] @@ -41,7 +41,7 @@ public partial class Table /// /// 获得/设置 行号列标题文字 默认为 行号 - /// Get/Set Line Number Column Header Text. Default "Line No" + /// Gets or sets Line Number Column Header Text. Default "Line No" /// 10.2.2 /// [Parameter] @@ -50,7 +50,7 @@ public partial class Table /// /// 获得/设置 每页显示数据数量的外部数据源 - /// Get/Set External data source for items per page + /// Gets or sets External data source for items per page /// 10.2.2 /// [Parameter] @@ -67,25 +67,25 @@ public partial class Table /// /// 获得/设置 数据总条目 - /// Get/Set Total items count + /// Gets or sets Total items count /// protected int TotalCount { get; set; } /// /// 获得/设置 分页页码总数 内置规则 PageCount > 1 时显示分页组件 - /// Get/Set Total page count. Internal rule: show pagination when PageCount > 1 + /// Gets or sets Total page count. Internal rule: show pagination when PageCount > 1 /// protected int PageCount { get; set; } /// /// 获得/设置 当前页码 默认 1 - /// Get/Set Current page index. Default 1 + /// Gets or sets Current page index. Default 1 /// protected int PageIndex { get; set; } = 1; /// /// 获得/设置 默认每页数据数量 默认 null 使用 第一个值 - /// Get/Set Default items per page. Default null (Use first value of ) + /// Gets or sets Default items per page. Default null (Use first value of ) /// 10.2.2 /// [Parameter] @@ -93,7 +93,7 @@ public partial class Table /// /// 获得/设置 是否显示 Goto 跳转导航 - /// Get/Set Whether to show Goto navigator + /// Gets or sets Whether to show Goto navigator /// 10.2.2 /// [Parameter] @@ -101,7 +101,7 @@ public partial class Table /// /// 获得/设置 是否显示 Goto 跳转导航文本信息 默认 null - /// Get/Set Whether to show Goto navigator label text. Default null + /// Gets or sets Whether to show Goto navigator label text. Default null /// 10.2.2 /// [Parameter] @@ -109,7 +109,7 @@ public partial class Table /// /// 获得/设置 Goto 导航模板 - /// Get/Set Goto navigator template + /// Gets or sets Goto navigator template /// 10.2.2 /// [Parameter] @@ -117,7 +117,7 @@ public partial class Table /// /// 获得/设置 是否显示 PageInfo 内容 默认 true 显示 - /// Get/Set Whether to show PageInfo. Default true + /// Gets or sets Whether to show PageInfo. Default true /// 10.2.2 /// [Parameter] @@ -125,7 +125,7 @@ public partial class Table /// /// 获得/设置 分页信息文字 默认 null - /// Get/Set Page Info Text. Default null + /// Gets or sets Page Info Text. Default null /// 10.2.2 /// [Parameter] @@ -133,7 +133,7 @@ public partial class Table /// /// 获得/设置 分页信息模板 - /// Get/Set Page Info Template + /// Gets or sets Page Info Template /// 10.2.2 /// [Parameter] @@ -141,7 +141,7 @@ public partial class Table /// /// 获得/设置 分页信息内容模板 默认 null - /// Get/Set Page Info Body Template. Default null + /// Gets or sets Page Info Body Template. Default null /// 10.2.2 /// [Parameter] @@ -149,12 +149,12 @@ public partial class Table /// /// 获得/设置 当前行 - /// Get/Set Start Index + /// Gets or sets Start Index /// protected int StartIndex { get; set; } /// - /// 当前每页项目数量设置 默认 null 内部使用 + /// 当前每页项目数量设置,默认值为 null,内部使用 /// Current items per page setting. Default null (Internal Use) /// private int _pageItems; @@ -198,21 +198,12 @@ protected async Task OnPageLinkClick(int pageIndex) if (!IsKeepSelectedRows) { - // 清空选中行 - // Clear selected rows SelectedRows.Clear(); } - // 无刷新查询数据 - // Query data without refresh await QueryAsync(false, triggerByPagination: true); - - // 通知 SelectedRow 双向绑定集合改变 - // Notify SelectedRow two-way binding collection changed await OnSelectedRowsChanged(); - // 通知 UI 滚动到顶端 - // Notify UI scroll to top if (IsAutoScrollTopWhenClickPage) { _shouldScrollTop = true; @@ -221,7 +212,7 @@ protected async Task OnPageLinkClick(int pageIndex) } /// - /// 每页记录条数变化是调用此方法 + /// 每页记录条数变化时调用此方法 /// Page Items Value Changed Callback /// protected async Task OnPageItemsValueChanged(int pageItems) diff --git a/src/BootstrapBlazor/Components/Table/Table.razor.Search.cs b/src/BootstrapBlazor/Components/Table/Table.razor.Search.cs index 4cf95165924..8b13dee5661 100644 --- a/src/BootstrapBlazor/Components/Table/Table.razor.Search.cs +++ b/src/BootstrapBlazor/Components/Table/Table.razor.Search.cs @@ -20,13 +20,13 @@ public partial class Table /// /// 获得/设置 是否已经处理高级搜索 默认 false - /// Get/Set Whether processed advanced search. Default false + /// Gets or sets Whether processed advanced search. Default false /// protected bool IsAdvanceSearch { get; set; } /// /// 获得/设置 SearchTemplate 实例 - /// Get/Set SearchTemplate Instance + /// Gets or sets SearchTemplate Instance /// 10.2.2 /// [Parameter] @@ -34,14 +34,15 @@ public partial class Table /// /// 获得/设置 SearchModel 实例 - /// Get/Set SearchModel Instance + /// Gets or sets SearchModel Instance + /// 10.2.2 /// [Parameter, NotNull] public TItem? SearchModel { get; set; } /// /// 获得/设置 自定义搜索模型 - /// Get/Set Customer Search Model + /// Gets or sets Customer Search Model /// 10.2.2 /// [Parameter] @@ -49,7 +50,7 @@ public partial class Table /// /// 获得/设置 自定义搜索模型模板 - /// Get/Set Customer Search Model Template + /// Gets or sets Customer Search Model Template /// 10.2.2 /// [Parameter] @@ -57,23 +58,23 @@ public partial class Table /// /// 获得/设置 是否显示搜索框 默认为 false 不显示搜索框 - /// Get/Set Whether to show search box. Default false + /// Gets or sets Whether to show search box. Default false /// 10.2.2 /// [Parameter] public bool ShowSearch { get; set; } /// - /// 获得/设置 是否收缩顶部搜索框 默认为 false 不收缩搜索框 是否显示搜索框请设置 值 Top - /// Get/Set Whether to collapse top search box. Default false. Set to Top if needed + /// 获得/设置 是否收缩顶部搜索框,默认值为 false,是否显示搜索框请设置 值为 Top + /// Gets or sets Whether to collapse top search box. Default false. Set to Top if needed /// 10.2.2 /// [Parameter] public bool CollapsedTopSearch { get; set; } /// - /// 获得/设置 是否显示搜索文本框 默认为 true 显示搜索文本框 - /// Get/Set Whether to show search text box. Default true. + /// 获得/设置 是否显示搜索文本框,默认值为 true + /// Gets or sets Whether to show search text box. Default true. /// 10.2.2 /// [Parameter] @@ -81,7 +82,7 @@ public partial class Table /// /// 获得/设置 是否显示搜索框提示文本 默认 true - /// Get/Set Whether to show search text tooltip. Default true + /// Gets or sets Whether to show search text tooltip. Default true /// 10.2.2 /// [Parameter] @@ -89,23 +90,23 @@ public partial class Table /// /// 获得/设置 是否显示清空搜索按钮 默认 true 显示 - /// Get/Set Whether to show reset search button. Default true. + /// Gets or sets Whether to show reset search button. Default true. /// 10.2.2 /// [Parameter] public bool ShowResetButton { get; set; } = true; /// - /// 获得/设置 是否显示搜索按钮 默认 true 显示 - /// Get/Set Whether to show search button. Default true. + /// 获得/设置 是否显示搜索按钮,默认值为 true + /// Gets or sets Whether to show search button. Default true. /// 10.2.2 /// [Parameter] public bool ShowSearchButton { get; set; } = true; /// - /// 获得/设置 是否显示高级搜索按钮 默认 true 显示 - /// Get/Set Whether to show advanced search button. Default true. + /// 获得/设置 是否显示高级搜索按钮,默认值为 true + /// Gets or sets Whether to show advanced search button. Default true. /// 10.2.2 /// [Parameter] @@ -113,7 +114,7 @@ public partial class Table /// /// 获得/设置 搜索关键字 通过列设置的 Searchable 自动生成搜索拉姆达表达式 - /// Get/Set Search Keyword. Automatically generate search lambda expression based on Searchable set on columns + /// Gets or sets Search Keyword. Automatically generate search lambda expression based on Searchable set on columns /// 10.2.2 /// [Parameter] @@ -121,7 +122,7 @@ public partial class Table /// /// 获得/设置 搜索栏渲染方式 默认 Popup 弹窗模式 - /// Get/Set Search Mode. Default Popup + /// Gets or sets Search Mode. Default Popup /// 10.2.2 /// [Parameter] @@ -129,7 +130,7 @@ public partial class Table /// /// 获得/设置 每行显示组件数量 默认为 2 - /// Get/Set Items per row. Default 2 + /// Gets or sets Items per row. Default 2 /// 10.2.2 /// [Parameter] @@ -137,7 +138,7 @@ public partial class Table /// /// 获得/设置 设置行内组件布局格式 默认 Inline 布局 - /// Get/Set Row Layout Type. Default Inline + /// Gets or sets Row Layout Type. Default Inline /// 10.2.2 /// [Parameter] @@ -145,7 +146,7 @@ public partial class Table /// /// 获得/设置 设置 Inline 模式下标签对齐方式 默认 None 等效于 Left 左对齐 - /// Get/Set Label Alignment in Inline mode of . Default None (Left) + /// Gets or sets Label Alignment in Inline mode of . Default None (Left) /// 10.2.2 /// [Parameter] @@ -196,7 +197,7 @@ protected async Task SearchClick() /// /// 获得/设置 搜索框的大小 - /// Get/Set Search Dialog Size + /// Gets or sets Search Dialog Size /// 10.2.2 /// [Parameter] @@ -204,15 +205,15 @@ protected async Task SearchClick() /// /// 获得/设置 搜索框是否可以拖拽 默认 false 不可以拖拽 - /// Get/Set Whether search dialog is draggable. Default false + /// Gets or sets Whether search dialog is draggable. Default false /// 10.2.2 /// [Parameter] public bool SearchDialogIsDraggable { get; set; } /// - /// 获得/设置 搜索框是否显示最大化按钮 默认 true 不显示 - /// Get/Set Whether to show maximize button on search dialog. Default true (Note: Comment says true but default is true. Text says 'Default true No Show'? No, usually true means show. Code says true. Adjusted English to match code logic) + /// 获得/设置 搜索框是否显示最大化按钮,默认值为 true + /// Gets or sets Whether to show maximize button on search dialog. Default true /// 10.2.2 /// [Parameter] @@ -277,8 +278,7 @@ protected async Task ShowSearchDialog() protected IEnumerable GetCustomerSearches() { var searches = new List(); - // 处理自定义 SearchModel 条件 - // Process custom SearchModel conditions + // Process custom SearchModel conditions if (CustomerSearchModel != null) { searches.AddRange(CustomerSearchModel.GetSearches()); @@ -356,10 +356,5 @@ protected async Task ClearSearchClick() await ResetSearchClick(); } - /// - /// - /// - /// - /// private IEnumerable GetSearchColumns() => Columns.Where(c => c.GetSearchable()); } diff --git a/src/BootstrapBlazor/Components/Table/Table.razor.Sort.cs b/src/BootstrapBlazor/Components/Table/Table.razor.Sort.cs index 6e4d45b414d..293488a7871 100644 --- a/src/BootstrapBlazor/Components/Table/Table.razor.Sort.cs +++ b/src/BootstrapBlazor/Components/Table/Table.razor.Sort.cs @@ -7,27 +7,23 @@ namespace BootstrapBlazor.Components; -/// -/// -/// -/// public partial class Table { /// /// 获得/设置 排序字段名称 - /// Get/Set Sort Column Name + /// Gets or sets Sort Column Name /// protected string? SortName { get; set; } /// /// 获得/设置 排序方式 - /// Get/Set Sort Order + /// Gets or sets Sort Order /// protected SortOrder SortOrder { get; set; } /// - /// 获得/设置 升序图标 fa-solid fa-sort-up - /// Get/Set Sort Ascending Icon fa-solid fa-sort-up + /// 获得/设置 升序图标 + /// Gets or sets Sort Ascending Icon /// 10.2.2 /// [Parameter] @@ -35,8 +31,8 @@ public partial class Table public string? SortIconAsc { get; set; } /// - /// 获得/设置 降序图标 fa-solid fa-sort-down - /// Get/Set Sort Descending Icon fa-solid fa-sort-down + /// 获得/设置 降序图标 + /// Gets or sets Sort Descending Icon /// 10.2.2 /// [Parameter] @@ -44,8 +40,8 @@ public partial class Table public string? SortIconDesc { get; set; } /// - /// 获得/设置 默认图标 fa-solid fa-sort - /// Get/Set Default Icon fa-solid fa-sort + /// 获得/设置 默认排序图标 + /// Gets or sets Default sort Icon /// 10.2.2 /// [Parameter] @@ -53,16 +49,16 @@ public partial class Table public string? SortIcon { get; set; } /// - /// 获得/设置 过滤图标 默认 fa-solid fa-filter - /// Get/Set Filter Icon Default fa-solid fa-filter + /// 获得/设置 过滤图标 + /// Gets or sets Filter Icon Default fa-solid fa-filter /// 10.2.2 /// [Parameter] public string? FilterIcon { get; set; } /// - /// 获得/设置 多列排序顺序 默认为空 多列时使用逗号分割 如:"Name, Age desc" - /// Get/Set Multi-column sort order. Default empty. Separated by comma, e.g., "Name, Age desc" + /// 获得/设置 多列排序顺序,默认为空,多列时使用逗号分割,如:"Name, Age desc" + /// Gets or sets Multi-column sort order. Default empty. Separated by comma, e.g., "Name, Age desc" /// 10.2.2 /// [Parameter] @@ -70,7 +66,7 @@ public partial class Table /// /// 获得/设置 点击表头排序时回调方法 - /// Get/Set Callback method when clicking header to sort + /// Gets or sets Callback method when clicking header to sort /// 10.2.2 /// [Parameter] @@ -78,7 +74,7 @@ public partial class Table /// /// 获得/设置 内部表头排序时回调方法 - /// Get/Set Callback method when internal header sort + /// Gets or sets Callback method when internal header sort /// [NotNull] protected Func? InternalOnSortAsync { get; set; } @@ -106,12 +102,8 @@ protected Func OnClickHeader(ITableColumn col) => async () => SortName = col.GetFieldName(); - // 清除高级排序 (保证点击 Header 排序的优先级最高) - // Clear advanced sort (Ensure the highest priority of clicking header sort) AdvancedSortItems.Clear(); - // 通知 Table 组件刷新数据 - // Notify Table component to refresh data await InternalOnSortAsync(SortName, SortOrder); }; @@ -279,8 +271,6 @@ private bool IsFirstColumn(ITableColumn col) => FirstFixedColumnCache.GetOrAdd(c var ret = false; if (col.Fixed && IsTail(col)) { - // 查找前一列是否固定 - // Check if the previous column is fixed var index = Columns.IndexOf(col) - 1; if (index > 0) { @@ -427,7 +417,7 @@ string GetFixedHeaderStyleString() => IsFixedHeader } /// - /// 获取指定列头样式字符串 + /// 获取指定列头的样式字符串 /// Get style string for specified column header /// /// @@ -470,8 +460,8 @@ string GetFixedHeaderStyleString() => IsFixedHeader .Build(); /// - /// 获取指定列头样式字符串 - /// 获取指定列头style字符串 + /// 获取列工具箱图标的样式字符串 + /// Get column toolbox icon style string /// /// protected string? GetColumnToolboxIconClassString() => CssBuilder.Default(ColumnToolboxIcon) @@ -483,12 +473,12 @@ string GetFixedHeaderStyleString() => IsFixedHeader /// Get Advanced Sort Style /// protected string? AdvancedSortClass => CssBuilder.Default("btn btn-secondary") - .AddClass("btn-info", AdvancedSortItems.Any()) + .AddClass("btn-info", AdvancedSortItems.Count > 0) .Build(); /// /// 获得/设置 是否显示高级排序按钮 默认 false 不显示 - /// Get/Set Whether to show advanced sort button. Default false + /// Gets or sets Whether to show advanced sort button. Default false /// 10.2.2 /// [Parameter] @@ -496,7 +486,7 @@ string GetFixedHeaderStyleString() => IsFixedHeader /// /// 获得/设置 高级排序按钮图标 - /// Get/Set Advanced Sort Button Icon + /// Gets or sets Advanced Sort Button Icon /// 10.2.2 /// [Parameter] @@ -504,7 +494,7 @@ string GetFixedHeaderStyleString() => IsFixedHeader /// /// 获得/设置 高级排序框的大小 默认 Medium - /// Get/Set Advanced Sort Dialog Size. Default Medium + /// Gets or sets Advanced Sort Dialog Size. Default Medium /// 10.2.2 /// [Parameter] @@ -512,7 +502,7 @@ string GetFixedHeaderStyleString() => IsFixedHeader /// /// 获得/设置 高级排序框是否可以拖拽 默认 false 不可以拖拽 - /// Get/Set Whether advanced sort dialog is draggable. Default false + /// Gets or sets Whether advanced sort dialog is draggable. Default false /// 10.2.2 /// [Parameter] @@ -520,7 +510,7 @@ string GetFixedHeaderStyleString() => IsFixedHeader /// /// 获得/设置 高级排序框是否显示最大化按钮 默认 false 不显示 - /// Get/Set Whether to show maximize button on advanced sort dialog. Default false + /// Gets or sets Whether to show maximize button on advanced sort dialog. Default false /// 10.2.2 /// [Parameter] @@ -528,7 +518,7 @@ string GetFixedHeaderStyleString() => IsFixedHeader /// /// 获得/设置 高级排序,默认为 Empty - /// Get/Set Advanced Sort Items. Default Empty + /// Gets or sets Advanced Sort Items. Default Empty /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Table/Table.razor.Toolbar.cs b/src/BootstrapBlazor/Components/Table/Table.razor.Toolbar.cs index bdd40ab1bf7..0f3df4dfcd9 100644 --- a/src/BootstrapBlazor/Components/Table/Table.razor.Toolbar.cs +++ b/src/BootstrapBlazor/Components/Table/Table.razor.Toolbar.cs @@ -11,7 +11,7 @@ public partial class Table { /// /// 获得/设置 是否显示工具栏 默认 false 不显示 - /// Get/Set Whether to show toolbar. Default false + /// Gets or sets Whether to show toolbar. Default false /// 10.2.2 /// [Parameter] @@ -27,7 +27,7 @@ public partial class Table /// /// 获得/设置 首次加载是否显示加载骨架屏 默认 false 不显示 使用 参数值 - /// Get/Set Whether to show skeleton when first loading. Default false. Use parameter value + /// Gets or sets Whether to show skeleton when first loading. Default false. Use parameter value /// 10.2.2 /// [Parameter] @@ -35,7 +35,7 @@ public partial class Table /// /// 获得/设置 首次加载是否显示加载动画 默认 true 显示 设置 值覆盖此参数 - /// Get/Set Whether to show loading animation when first loading. Default true. Setting value covers this parameter + /// Gets or sets Whether to show loading animation when first loading. Default true. Setting value covers this parameter /// 10.2.2 /// [Parameter] @@ -43,7 +43,7 @@ public partial class Table /// /// 获得/设置 是否显示按钮列 默认为 true - /// Get/Set Whether to show Button Column. Default true + /// Gets or sets Whether to show Button Column. Default true /// 10.2.2 /// /// 本属性设置为 true 新建编辑删除按钮设置为 false 可单独控制每个按钮是否显示 @@ -52,7 +52,7 @@ public partial class Table /// /// 获得/设置 是否显示新建按钮 默认为 true 显示 - /// Get/Set Whether to show Add Button. Default true + /// Gets or sets Whether to show Add Button. Default true /// 10.2.2 /// [Parameter] @@ -60,7 +60,7 @@ public partial class Table /// /// 获得/设置 是否显示编辑按钮 默认为 true 行内是否显示请使用 - /// Get/Set Whether to show Edit Button. Default true. Use and for in-row display + /// Gets or sets Whether to show Edit Button. Default true. Use and for in-row display /// 10.2.2 /// [Parameter] @@ -68,7 +68,7 @@ public partial class Table /// /// 获得/设置 是否显示删除按钮 默认为 true 行内是否显示请使用 - /// Get/Set Whether to show Delete Button. Default true. Use and for in-row display + /// Gets or sets Whether to show Delete Button. Default true. Use and for in-row display /// 10.2.2 /// [Parameter] @@ -76,7 +76,7 @@ public partial class Table /// /// 获得/设置 是否显示导出按钮 默认为 false 不显示 - /// Get/Set Whether to show Export Button. Default false + /// Gets or sets Whether to show Export Button. Default false /// 10.2.2 /// [Parameter] @@ -84,7 +84,7 @@ public partial class Table /// /// 获得/设置 是否显示 Excel 导出按钮 默认为 true 显示 - /// Get/Set Whether to show Export Excel Button. Default true + /// Gets or sets Whether to show Export Excel Button. Default true /// 10.2.2 /// [Parameter] @@ -92,7 +92,7 @@ public partial class Table /// /// 获得/设置 是否显示 Csv 导出按钮 默认为 false 显示 - /// Get/Set Whether to show Export Csv Button. Default false + /// Gets or sets Whether to show Export Csv Button. Default false /// 10.2.2 /// [Parameter] @@ -100,7 +100,7 @@ public partial class Table /// /// 获得/设置 是否显示 Pdf 导出按钮 默认为 false 显示 - /// Get/Set Whether to show Export Pdf Button. Default false + /// Gets or sets Whether to show Export Pdf Button. Default false /// 10.2.2 /// [Parameter] @@ -108,7 +108,7 @@ public partial class Table /// /// 获得/设置 导出按钮图标 - /// Get/Set Export Button Icon + /// Gets or sets Export Button Icon /// 10.2.2 /// [Parameter] @@ -116,7 +116,7 @@ public partial class Table /// /// 获得/设置 内置导出 Csv 按钮图标 - /// Get/Set Default Export Csv Button Icon + /// Gets or sets Default Export Csv Button Icon /// 10.2.2 /// [Parameter] @@ -124,7 +124,7 @@ public partial class Table /// /// 获得/设置 内置导出 Excel 按钮图标 - /// Get/Set Default Export Excel Button Icon + /// Gets or sets Default Export Excel Button Icon /// 10.2.2 /// [Parameter] @@ -132,7 +132,7 @@ public partial class Table /// /// 获得/设置 内置导出 Pdf 按钮图标 - /// Get/Set Default Export Pdf Button Icon + /// Gets or sets Default Export Pdf Button Icon /// 10.2.2 /// [Parameter] @@ -140,7 +140,7 @@ public partial class Table /// /// 获得/设置 导出数据前是否弹出 Toast 提示框 默认 true - /// Get/Set Whether to show Toast before export. Default true + /// Gets or sets Whether to show Toast before export. Default true /// 10.2.2 /// [Parameter] @@ -148,7 +148,7 @@ public partial class Table /// /// 获得/设置 导出数据后是否弹出 Toast 提示框 默认 true - /// Get/Set Whether to show Toast after export. Default true + /// Gets or sets Whether to show Toast after export. Default true /// 10.2.2 /// [Parameter] @@ -156,7 +156,7 @@ public partial class Table /// /// 获得/设置 导出数据前回调方法 默认 null - /// Get/Set Before Export Callback. Default null + /// Gets or sets Before Export Callback. Default null /// 10.2.2 /// [Parameter] @@ -164,7 +164,7 @@ public partial class Table /// /// 获得/设置 导出数据后回调方法 默认 null - /// Get/Set After Export Callback. Default null + /// Gets or sets After Export Callback. Default null /// 10.2.2 /// [Parameter] @@ -172,7 +172,7 @@ public partial class Table /// /// 获得/设置 导出按钮下拉菜单模板 默认 null - /// Get/Set Export Button Dropdown Template. Default null + /// Gets or sets Export Button Dropdown Template. Default null /// 10.2.2 /// [Parameter] @@ -180,7 +180,7 @@ public partial class Table /// /// 获得/设置 内置导出微软 Csv 按钮文本 默认 null 读取资源文件 - /// Get/Set Export Microsoft Csv Button Text. Default null (Read from resource file) + /// Gets or sets Export Microsoft Csv Button Text. Default null (Read from resource file) /// 10.2.2 /// [Parameter] @@ -188,7 +188,7 @@ public partial class Table /// /// 获得/设置 内置导出微软 Excel 按钮文本 默认 null 读取资源文件 - /// Get/Set Export Microsoft Excel Button Text. Default null (Read from resource file) + /// Gets or sets Export Microsoft Excel Button Text. Default null (Read from resource file) /// 10.2.2 /// [Parameter] @@ -196,7 +196,7 @@ public partial class Table /// /// 获得/设置 内置导出 Pdf 按钮文本 默认 null 读取资源文件 - /// Get/Set Export Pdf Button Text. Default null (Read from resource file) + /// Gets or sets Export Pdf Button Text. Default null (Read from resource file) /// 10.2.2 /// [Parameter] @@ -204,7 +204,7 @@ public partial class Table /// /// 获得/设置 是否显示扩展按钮 默认为 false - /// Get/Set Whether to show Extension Button. Default false + /// Gets or sets Whether to show Extension Button. Default false /// 10.2.2 /// [Parameter] @@ -212,7 +212,7 @@ public partial class Table /// /// 获得/设置 是否自动收缩工具栏按钮 默认 true - /// Get/Set Whether to auto collapse toolbar buttons. Default true + /// Gets or sets Whether to auto collapse toolbar buttons. Default true /// 10.2.2 /// [Parameter] @@ -220,7 +220,7 @@ public partial class Table /// /// 获得/设置 工具栏按钮收缩后是否继承原先按钮的颜色样式和中空化 默认 false - /// Get/Set Whether to inherit button style when toolbar buttons collapsed. Default false + /// Gets or sets Whether to inherit button style when toolbar buttons collapsed. Default false /// 10.2.2 /// [Parameter] @@ -228,7 +228,7 @@ public partial class Table /// /// 获得/设置 工具栏移动端按钮图标 - /// Get/Set Toolbar Mobile Button Icon + /// Gets or sets Toolbar Mobile Button Icon /// 10.2.2 /// [Parameter] @@ -236,7 +236,7 @@ public partial class Table /// /// 获得/设置 扩展按钮是否在前面 默认 false 在行尾 - /// Get/Set Whether extension buttons are in front. Default false (At the end) + /// Gets or sets Whether extension buttons are in front. Default false (At the end) /// 10.2.2 /// [Parameter] @@ -244,7 +244,7 @@ public partial class Table /// /// 获得/设置 行内操作列宽度 默认为 130 - /// Get/Set Extension Column Width. Default 130 + /// Gets or sets Extension Column Width. Default 130 /// 10.2.2 /// [Parameter] @@ -252,7 +252,7 @@ public partial class Table /// /// 获得/设置 行内操作列对齐方式 默认 center - /// Get/Set Extension Column Alignment. Default center + /// Gets or sets Extension Column Alignment. Default center /// 10.2.2 /// [Parameter] @@ -260,7 +260,7 @@ public partial class Table /// /// 获得/设置 是否显示行内扩展编辑按钮 默认 true 显示 - /// Get/Set Whether to show inline extension edit button. Default true + /// Gets or sets Whether to show inline extension edit button. Default true /// 10.2.2 /// [Parameter] @@ -268,7 +268,7 @@ public partial class Table /// /// 获得/设置 是否显示行内扩展编辑按钮 默认为 null 未设置时使用 - /// Get/Set Whether to show inline extension edit button. Default null. use value if not set + /// Gets or sets Whether to show inline extension edit button. Default null. use value if not set /// 10.2.2 /// [Parameter] @@ -276,7 +276,7 @@ public partial class Table /// /// 获得/设置 是否禁用行内扩展编辑按钮 默认 false 不禁用 - /// Get/Set Whether to disable inline extension edit button. Default false + /// Gets or sets Whether to disable inline extension edit button. Default false /// 10.2.2 /// [Parameter] @@ -284,7 +284,7 @@ public partial class Table /// /// 获得/设置 是否禁用行内扩展编辑按钮 默认为 null 未设置时使用 - /// Get/Set Whether to disable inline extension edit button. Default null. use value if not set + /// Gets or sets Whether to disable inline extension edit button. Default null. use value if not set /// 10.2.2 /// [Parameter] @@ -292,7 +292,7 @@ public partial class Table /// /// 获得/设置 是否禁用行内扩展删除按钮 默认 false 不禁用 - /// Get/Set Whether to disable inline extension delete button. Default false + /// Gets or sets Whether to disable inline extension delete button. Default false /// 10.2.2 /// [Parameter] @@ -300,7 +300,7 @@ public partial class Table /// /// 获得/设置 是否禁用行内扩展删除按钮 默认为 null 未设置时使用 - /// Get/Set Whether to disable inline extension delete button. Default null. use value if not set + /// Gets or sets Whether to disable inline extension delete button. Default null. use value if not set /// 10.2.2 /// [Parameter] @@ -308,7 +308,7 @@ public partial class Table /// /// 获得/设置 是否显示行内扩展编辑按钮 默认为 null 未设置时使用 - /// Get/Set Whether to show inline extension edit button. Default null. use value if not set + /// Gets or sets Whether to show inline extension edit button. Default null. use value if not set /// 10.2.2 /// [Parameter] @@ -322,7 +322,7 @@ public Func? ShowEditButtonCallback /// /// 获得/设置 是否显示行内扩展删除按钮 默认 true 显示 - /// Get/Set Whether to show inline extension delete button. Default true + /// Gets or sets Whether to show inline extension delete button. Default true /// 10.2.2 /// [Parameter] @@ -330,7 +330,7 @@ public Func? ShowEditButtonCallback /// /// 获得/设置 是否显示行内扩展删除按钮 默认为 null 未设置时使用 - /// Get/Set Whether to show inline extension delete button. Default null. use value if not set + /// Gets or sets Whether to show inline extension delete button. Default null. use value if not set /// 10.2.2 /// [Parameter] @@ -338,7 +338,7 @@ public Func? ShowEditButtonCallback /// /// 获得/设置 是否显示行内扩展删除按钮 默认为 null 未设置时使用 - /// Get/Set Whether to show inline extension delete button. Default null. use value if not set + /// Gets or sets Whether to show inline extension delete button. Default null. use value if not set /// 10.2.2 /// [Parameter] @@ -352,7 +352,7 @@ public Func? ShowDeleteButtonCallback /// /// 获得/设置 是否固定扩展按钮列 默认为 false 不固定 - /// Get/Set Whether to fix Extension Button Column. Default false + /// Gets or sets Whether to fix Extension Button Column. Default false /// 10.2.2 /// [Parameter] @@ -360,7 +360,7 @@ public Func? ShowDeleteButtonCallback /// /// 获得/设置 是否固定多选列 默认为 false 不固定 - /// Get/Set Whether to fix Multiple Select Column. Default false + /// Gets or sets Whether to fix Multiple Select Column. Default false /// 10.2.2 /// [Parameter] @@ -368,7 +368,7 @@ public Func? ShowDeleteButtonCallback /// /// 获得/设置 是否固定明细行 Header 列 默认为 false 不固定 - /// Get/Set Whether to fix Detail Row Header Column. Default false + /// Gets or sets Whether to fix Detail Row Header Column. Default false /// 10.2.2 /// [Parameter] @@ -376,7 +376,7 @@ public Func? ShowDeleteButtonCallback /// /// 获得/设置 是否固定 LineNo 列 默认为 false 不固定 - /// Get/Set Whether to fix LineNo Column. Default false + /// Gets or sets Whether to fix LineNo Column. Default false /// 10.2.2 /// [Parameter] @@ -384,7 +384,7 @@ public Func? ShowDeleteButtonCallback /// /// 获得/设置 是否显示刷新按钮 默认为 true - /// Get/Set Whether to show Refresh Button. Default true + /// Gets or sets Whether to show Refresh Button. Default true /// 10.2.2 /// [Parameter] @@ -392,7 +392,7 @@ public Func? ShowDeleteButtonCallback /// /// 获得/设置 是否显示视图按钮 默认为 false 模式下此设置无效 - /// Get/Set Whether to show Card View Button. Default false. Not effective in mode + /// Gets or sets Whether to show Card View Button. Default false. Not effective in mode /// 10.2.2 /// [Parameter] @@ -400,7 +400,7 @@ public Func? ShowDeleteButtonCallback /// /// 获得/设置 是否显示列选择下拉框 默认为 false 不显示 点击下拉框内列控制是否显示后触发 回调方法 - /// Get/Set Whether to show Column List Dropdown. Default false. Trigger when column visible changed + /// Gets or sets Whether to show Column List Dropdown. Default false. Trigger when column visible changed /// 10.2.2 /// [Parameter] @@ -408,7 +408,7 @@ public Func? ShowDeleteButtonCallback /// /// 获得/设置 列选择下拉框中是否显示控制功能按钮默认为 false 不显示 - /// Get/Set Whether to show control buttons in Column List Dropdown. Default false + /// Gets or sets Whether to show control buttons in Column List Dropdown. Default false /// 10.2.2 /// [Parameter] @@ -416,7 +416,7 @@ public Func? ShowDeleteButtonCallback /// /// 获得/设置 列选择下拉框图标 - /// Get/Set Column List Dropdown Icon + /// Gets or sets Column List Dropdown Icon /// 10.2.2 /// [Parameter] @@ -424,7 +424,7 @@ public Func? ShowDeleteButtonCallback /// /// 获得/设置 保存、删除失败后是否显示 Toast 提示框 默认为 true 显示 - /// Get/Set Whether to show Toast when save or delete failed. Default true + /// Gets or sets Whether to show Toast when save or delete failed. Default true /// 10.2.2 /// [Parameter] @@ -432,7 +432,7 @@ public Func? ShowDeleteButtonCallback /// /// 获得/设置 表格 Toolbar 按钮模板 - /// Get/Set Table Toolbar Button Template + /// Gets or sets Table Toolbar Button Template /// 表格工具栏左侧按钮模板,模板中内容出现在默认按钮前面 /// Table toolbar left button template, content appears before default buttons /// 10.2.2 @@ -442,7 +442,7 @@ public Func? ShowDeleteButtonCallback /// /// 获得/设置 表格 Toolbar 按钮模板 - /// Get/Set Table Toolbar Button Template + /// Gets or sets Table Toolbar Button Template /// 表格工具栏左侧按钮模板,模板中内容出现在默认按钮后面 /// Table toolbar left button template, content appears after default buttons /// 10.2.2 @@ -452,7 +452,7 @@ public Func? ShowDeleteButtonCallback /// /// 获得/设置 表格 Toolbar 按钮模板 - /// Get/Set Table Toolbar Button Template + /// Gets or sets Table Toolbar Button Template /// 表格工具栏右侧按钮模板,模板中内容出现在默认按钮前面 /// Table toolbar right button template, content appears before default buttons /// 10.2.2 @@ -462,7 +462,7 @@ public Func? ShowDeleteButtonCallback /// /// 获得/设置 表格 Toolbar 按钮模板 - /// Get/Set Table Toolbar Button Template + /// Gets or sets Table Toolbar Button Template /// 表格工具栏右侧按钮模板,模板中内容出现在默认按钮后面 /// Table toolbar right button template, content appears after default buttons /// 10.2.2 @@ -472,7 +472,7 @@ public Func? ShowDeleteButtonCallback /// /// 获得/设置 新建按钮回调方法 用于补充模型字段值 - /// Get/Set Add Button Callback. Used to populate model field values + /// Gets or sets Add Button Callback. Used to populate model field values /// 10.2.2 /// /// @@ -484,7 +484,7 @@ public Func? ShowDeleteButtonCallback /// /// 获得/设置 编辑按钮回调方法 - /// Get/Set Edit Button Callback + /// Gets or sets Edit Button Callback /// 10.2.2 /// [Parameter] @@ -492,7 +492,7 @@ public Func? ShowDeleteButtonCallback /// /// 获得/设置 保存按钮异步回调方法 - /// Get/Set Save Button Async Callback + /// Gets or sets Save Button Async Callback /// 10.2.2 /// [Parameter] @@ -500,7 +500,7 @@ public Func? ShowDeleteButtonCallback /// /// 获得/设置 删除按钮异步回调方法 - /// Get/Set Delete Button Async Callback + /// Gets or sets Delete Button Async Callback /// 10.2.2 /// [Parameter] @@ -508,7 +508,7 @@ public Func? ShowDeleteButtonCallback /// /// 获得/设置 导出按钮异步回调方法 - /// Get/Set Export Button Async Callback + /// Gets or sets Export Button Async Callback /// 10.2.2 /// [Parameter] @@ -516,7 +516,7 @@ public Func? ShowDeleteButtonCallback /// /// 获得/设置 保存弹窗中的保存按钮显示文本 默认为资源文件中的 保存 - /// Get/Set Save Button Text in Edit Dialog. Default "Save" in resource file + /// Gets or sets Save Button Text in Edit Dialog. Default "Save" in resource file /// 10.2.2 /// [Parameter] @@ -524,7 +524,7 @@ public Func? ShowDeleteButtonCallback /// /// 获得/设置 保存弹窗中的保存按钮图标 默认 null 使用当前主题图标 - /// Get/Set Save Button Icon in Edit Dialog. Default null (Use current theme icon) + /// Gets or sets Save Button Icon in Edit Dialog. Default null (Use current theme icon) /// 10.2.2 /// [Parameter] @@ -532,7 +532,7 @@ public Func? ShowDeleteButtonCallback /// /// 获得/设置 保存弹窗中的关闭按钮显示文本 默认为资源文件中的 关闭 - /// Get/Set Close Button Text in Edit Dialog. Default "Close" in resource file + /// Gets or sets Close Button Text in Edit Dialog. Default "Close" in resource file /// 10.2.2 /// [Parameter] @@ -540,7 +540,7 @@ public Func? ShowDeleteButtonCallback /// /// 获得/设置 保存弹窗中的关闭按钮图标 默认 null 使用当前主题图标 - /// Get/Set Close Button Icon in Edit Dialog. Default null (Use current theme icon) + /// Gets or sets Close Button Icon in Edit Dialog. Default null (Use current theme icon) /// 10.2.2 /// [Parameter] @@ -548,7 +548,7 @@ public Func? ShowDeleteButtonCallback /// /// 获得/设置 导出数据弹窗 Title 默认为资源文件 导出数据 - /// Get/Set Export Dialog Title. Default "Export Data" in resource file + /// Gets or sets Export Dialog Title. Default "Export Data" in resource file /// 10.2.2 /// [Parameter] @@ -557,7 +557,7 @@ public Func? ShowDeleteButtonCallback /// /// 获得/设置 导出数据提示内容 默认为资源文件 - /// Get/Set Export Toast Content. Default in resource file + /// Gets or sets Export Toast Content. Default in resource file /// 10.2.2 /// [Parameter] @@ -566,7 +566,7 @@ public Func? ShowDeleteButtonCallback /// /// 获得/设置 正在导出数据提示内容 默认为资源文件 - /// Get/Set Export In Progress Toast Content. Default in resource file + /// Gets or sets Export In Progress Toast Content. Default in resource file /// 10.2.2 /// [Parameter] @@ -575,7 +575,7 @@ public Func? ShowDeleteButtonCallback /// /// 获得/设置 编辑弹窗配置类扩展回调方法 新建/编辑弹窗弹出前回调此方法用于设置弹窗配置信息 - /// Get/Set Edit Dialog Option Callback. Called before showing Add/Edit Dialog to configure options + /// Gets or sets Edit Dialog Option Callback. Called before showing Add/Edit Dialog to configure options /// 10.2.2 /// [Parameter] @@ -607,7 +607,7 @@ public Func? ShowDeleteButtonCallback /// /// 获得/设置 抽屉打开之前回调方法 用于设置 抽屉配置信息 - /// Get/Set Before Show Drawer Callback. Used to configure + /// Gets or sets Before Show Drawer Callback. Used to configure /// 10.2.2 /// [Parameter] @@ -619,7 +619,7 @@ public Func? ShowDeleteButtonCallback /// /// 获得/设置 各列是否显示状态集合 - /// Get/Set Columns Visibility Status Collection + /// Gets or sets Columns Visibility Status Collection /// private readonly List _visibleColumns = []; @@ -720,22 +720,13 @@ public async Task EditAsync() { if (SelectedRows.Count == 1) { - // 检查是否选中了不可编辑行(行内无编辑按钮),同时检查按钮禁用状态(禁用时不可编辑) - // Check if an uneditable row is selected (no inline edit button), and check button disabled state (cannot edit when disabled) - // ShowExtendEditButton 不参与逻辑,不显示扩展编辑按钮时用户可能自定义按钮调用 EditAsync 方法 - // ShowExtendEditButton does not participate in logic. Users may invoke EditAsync method via custom buttons even when extension edit button is hidden if (ProhibitEdit()) { - // 提示不可编辑 - // Toast uneditable await ShowToastAsync(EditButtonToastTitle, EditButtonToastReadonlyContent); } else { await ToggleLoading(true); - - // 跟踪模式与动态类型时使用原始数据,否则使用克隆数据 - // Use original data in tracking mode and dynamic type, otherwise use clone data EditModel = (IsTracking || DynamicContext != null) ? SelectedRows[0] : Utility.Clone(SelectedRows[0]); if (OnEditAsync != null) { @@ -931,8 +922,8 @@ protected async Task SaveAsync(EditContext context, ItemChangedType changedType) } /// - /// 编辑框的大小 - /// 编辑框的大小 + /// 获得/设置 编辑框的大小 默认值 + /// Gets or sets the Edit Dialog Size. Default is /// 10.2.2 /// [Parameter] @@ -940,7 +931,7 @@ protected async Task SaveAsync(EditContext context, ItemChangedType changedType) /// /// 获得/设置 编辑框是否可以拖拽 默认 false 不可以拖拽,参数 值为 false 时此参数才生效 - /// Gets or sets 编辑框whether可以拖拽 Default is false 不可以拖拽,参数 值为 false 时此参数才生效 + /// Gets or sets Whether to drag the edit dialog. Default false. This parameter takes effect only when is false /// 10.2.2 /// [Parameter] @@ -948,7 +939,7 @@ protected async Task SaveAsync(EditContext context, ItemChangedType changedType) /// /// 获得/设置 编辑框 FullScreenSize 参数 默认 none - /// Gets or sets 编辑框 FullScreenSize 参数 Default is none + /// Gets or sets Edit Dialog FullScreenSize Parameter. Default none /// 10.2.2 /// [Parameter] @@ -956,7 +947,7 @@ protected async Task SaveAsync(EditContext context, ItemChangedType changedType) /// /// 获得/设置 编辑框是否显示最大化按钮 默认 true 显示,此时 参数无效 - /// Gets or sets 编辑框whetherdisplay最大化button Default is true display,此时 参数无效 + /// Gets or sets Whether to show maximize button on edit dialog. Default true. When true, parameter is invalid /// 10.2.2 /// [Parameter] @@ -964,7 +955,7 @@ protected async Task SaveAsync(EditContext context, ItemChangedType changedType) /// /// 获得/设置 未分组编辑项布局位置 默认 false 在尾部 - /// Gets or sets 未分组编辑项布局位置 Default is false 在尾部 + /// Gets or sets Layout position of ungrouped edit items. Default false (At the end) /// 10.2.2 /// [Parameter] @@ -972,7 +963,7 @@ protected async Task SaveAsync(EditContext context, ItemChangedType changedType) /// /// 获得/设置 弹窗 Footer - /// Gets or sets 弹窗 Footer + /// Gets or sets Dialog Footer /// 10.2.2 /// [Parameter] @@ -980,7 +971,7 @@ protected async Task SaveAsync(EditContext context, ItemChangedType changedType) /// /// 获得/设置 编辑弹窗关闭前回调方法 - /// Get/Set Before Close Edit Dialog Callback + /// Gets or sets Before Close Edit Dialog Callback /// 10.2.2 /// [Parameter] @@ -988,7 +979,7 @@ protected async Task SaveAsync(EditContext context, ItemChangedType changedType) /// /// 获得/设置 编辑弹窗 Dialog, 可避免弹窗中 Table 再次弹窗时隐藏原表格问题 - /// Get/Set Edit Dialog. To avoid hiding the original table when the table popup again in the popup window + /// Gets or sets Edit Dialog. To avoid hiding the original table when the table popup again in the popup window /// 10.2.2 /// [Parameter] @@ -1003,10 +994,6 @@ private async Task AddItem(EditContext context) private async Task EditItem(EditContext context) { - // 使用 Comparer 确保能找到集合中的编辑项 - // Use Comparer to ensure the edit item is found in the collection - // 解决可能使用 Clone 副本导致编辑数据与 Items 中数据不一致 - // To solve the problem that the edit data may be inconsistent with the data in Items due to using Clone copy var entity = Rows.FirstOrDefault(i => this.Equals(i, (TItem)context.Model)); if (entity != null) { @@ -1137,8 +1124,6 @@ private async Task OnCloseEditDialogCallbackAsync(bool saved) if (!saved) { - // EFCore 模式保存失败后调用 CancelAsync 回调 - // Call CancelAsync callback after EFCore mode save failed var d = DataService ?? InjectDataService; if (d is IEntityFrameworkCoreDataService ef) { @@ -1270,12 +1255,6 @@ async Task DeleteItemsAsync() { if (IsPagination) { - // 删除成功 重新查询 - // Delete success, re-query - // 由于数据删除导致页码会改变,尤其是最后一页 - // The page number will change due to data deletion, especially the last page - // 重新计算页码 - // Recalculate page number // https://gitee.com/LongbowEnterprise/BootstrapBlazor/issues/I1UJSL PageIndex = GetSafePageIndex(); var items = PageItemsSource.Where(item => item >= (TotalCount - SelectedRows.Count)).ToList(); @@ -1310,22 +1289,15 @@ private void ResetDynamicContext() Columns.Clear(); Columns.AddRange(cols); - // Columns 重构 清空缓存 - // Columns Reconstruct, clear cache FirstFixedColumnCache.Clear(); LastFixedColumnCache.Clear(); InternalResetVisibleColumns(Columns); var queryOption = BuildQueryPageOptions(); - // 设置是否为首次查询 - // Set whether it is the first query queryOption.IsFirstQuery = _firstQuery; QueryDynamicItems(queryOption, DynamicContext); - - // 重新绑定列拖拽 - // Rebind column resize _bindResizeColumn = true; } } @@ -1349,8 +1321,6 @@ private void QueryDynamicItems(QueryPageOptions queryOption, IDynamicObjectConte } QueryItems = items.Cast().ToList(); - // 重置选中行 - // Reset selected rows ResetSelectedRows(QueryItems); } } @@ -1419,27 +1389,23 @@ private Task ExportExcelAsync() => ExecuteExportAsync(() => OnExportAsync != nul /// 获得 the export column 集合. /// Gets the export column collection. /// - /// public List GetExportColumns() => [.. GetVisibleColumns().Where(i => i.IgnoreWhenExport is not true)]; /// /// 获取当前 Table 选中的所有行数据 /// Get user selected rows /// - /// protected IEnumerable GetSelectedRows() => SelectedRows; /// /// 是否显示行内编辑按钮 /// Whether to show inline edit button /// - /// protected bool GetShowExtendEditButton(TItem item) => ShowExtendEditButtonCallback?.Invoke(item) ?? ShowExtendEditButton; /// /// 是否显示行内删除按钮 /// Whether to show inline delete button /// - /// protected bool GetShowExtendDeleteButton(TItem item) => ShowExtendDeleteButtonCallback?.Invoke(item) ?? ShowExtendDeleteButton; } diff --git a/src/BootstrapBlazor/Components/Table/Table.razor.TreeNode.cs b/src/BootstrapBlazor/Components/Table/Table.razor.TreeNode.cs index ae72d9065c3..825f0b39250 100644 --- a/src/BootstrapBlazor/Components/Table/Table.razor.TreeNode.cs +++ b/src/BootstrapBlazor/Components/Table/Table.razor.TreeNode.cs @@ -9,7 +9,7 @@ public partial class Table { /// /// 获得/设置 是否为树形数据 默认为 false - /// Get/Set Whether it is tree data. Default false + /// Gets or sets Whether it is tree data. Default false /// 10.2.2 /// [Parameter] @@ -17,7 +17,7 @@ public partial class Table /// /// 获得/设置 生成树状结构回调方法 - /// Get/Set Callback for generating tree structure + /// Gets or sets Callback for generating tree structure /// 10.2.2 /// [Parameter] @@ -25,7 +25,7 @@ public partial class Table /// /// 获得/设置 树形数据节点展开式回调委托方法 - /// Get/Set Callback delegate for expanding tree data node + /// Gets or sets Callback delegate for expanding tree data node /// 10.2.2 /// [Parameter] @@ -33,13 +33,13 @@ public partial class Table /// /// 获得/设置 树形数据集合 - /// Get/Set Tree Data Collection + /// Gets or sets Tree Data Collection /// private List> TreeRows { get; } = new(100); /// /// 获得/设置 是否正在加载子项 默认为 false - /// Get/Set Whether loading children. Default false + /// Gets or sets Whether loading children. Default false /// private bool IsLoadChildren { get; set; } @@ -47,24 +47,24 @@ public partial class Table private string? NotSetOnTreeExpandErrorMessage { get; set; } /// - /// 获得/设置 数型结构小箭头图标 - /// Get/Set Tree Node Icon + /// 获得/设置 树形结构小箭头图标 + /// Gets or sets Tree Node Icon /// 10.2.2 /// [Parameter] public string? TreeIcon { get; set; } /// - /// 获得/设置 数型结构展开小箭头图标 - /// Get/Set Tree Node Expand Icon + /// 获得/设置 树形结构展开小箭头图标 + /// Gets or sets Tree Node Expand Icon /// 10.2.2 /// [Parameter] public string? TreeExpandIcon { get; set; } /// - /// 获得/设置 数型结构正在加载图标 - /// Get/Set Tree Node Loading Icon + /// 获得/设置 树形结构正在加载图标 + /// Gets or sets Tree Node Loading Icon /// 10.2.2 /// [Parameter] @@ -72,7 +72,7 @@ public partial class Table /// /// 获得/设置 缩进大小 默认为 16 单位 px - /// Get/Set Indent Size. Default 16 px + /// Gets or sets Indent Size. Default 16 px /// 10.2.2 /// [Parameter] @@ -112,26 +112,19 @@ public partial class Table /// Toggle Tree Node Method /// /// - /// protected Func ToggleTreeRow(TItem item) => async () => { if (!IsLoadChildren) { if (TreeNodeCache.TryFind(TreeRows, item, out var node)) { - // 重建当前节点缓存 - // Rebuild current node cache IsLoadChildren = true; node.IsExpand = !node.IsExpand; await TreeNodeCache.ToggleNodeAsync(node, GetChildrenRowAsync); IsLoadChildren = false; - // 清除缓存 - // Clear cache _rowsCache = null; - // 更新 UI - // Update UI StateHasChanged(); } } diff --git a/src/BootstrapBlazor/Components/Table/Table.razor.cs b/src/BootstrapBlazor/Components/Table/Table.razor.cs index 9e6a5edfe25..6e57e8e0e1c 100644 --- a/src/BootstrapBlazor/Components/Table/Table.razor.cs +++ b/src/BootstrapBlazor/Components/Table/Table.razor.cs @@ -27,7 +27,7 @@ public partial class Table : ITable, IModelEqualityComparer where /// /// 获得/设置 不支持过滤类型提示信息 默认 null 读取资源文件内容 - /// Get/Set Not Supported Column Filter Message. Default null (Read from resource file) + /// Gets or sets Not Supported Column Filter Message. Default null (Read from resource file) /// 10.2.2 /// [Parameter] @@ -35,7 +35,7 @@ public partial class Table : ITable, IModelEqualityComparer where /// /// 获得/设置 Loading 模板 - /// Get/Set Loading Template + /// Gets or sets Loading Template /// 10.2.2 /// [Parameter] @@ -43,7 +43,7 @@ public partial class Table : ITable, IModelEqualityComparer where /// /// 获得/设置 列工具栏图标 fa-solid fa-gear - /// Get/Set Column Toolbox Icon fa-solid fa-gear + /// Gets or sets Column Toolbox Icon fa-solid fa-gear /// 10.2.2 /// [Parameter] @@ -52,7 +52,7 @@ public partial class Table : ITable, IModelEqualityComparer where /// /// 获得/设置 默认固定列宽度 默认 200 单位 px - /// Get/Set Default Fixed Column Width. Default 200 px + /// Gets or sets Default Fixed Column Width. Default 200 px /// 10.2.2 /// [Parameter] @@ -60,7 +60,7 @@ public partial class Table : ITable, IModelEqualityComparer where /// /// 获得/设置 是否使用按钮组显示行内扩展按钮 默认 true - /// Get/Set Whether to use button group for extend buttons. Default true + /// Gets or sets Whether to use button group for extend buttons. Default true /// 10.2.2 /// [Parameter] @@ -68,7 +68,7 @@ public partial class Table : ITable, IModelEqualityComparer where /// /// 获得/设置 内置虚拟化组件实例 - /// Get/Set Internal Virtualize Component Instance + /// Gets or sets Internal Virtualize Component Instance /// [NotNull] private Virtualize? _virtualizeElement = null; @@ -208,7 +208,7 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 滚动条宽度 默认 null 未设置使用 配置类中的 - /// Get/Set Scroll Width. Default null (Use ) + /// Gets or sets Scroll Width. Default null (Use ) /// 10.2.2 /// [Parameter] @@ -216,7 +216,7 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 滚动条 hover 状态下宽度 默认 null 未设置使用 配置类中的 - /// Get/Set Scroll Hover Width. Default null (Use ) + /// Gets or sets Scroll Hover Width. Default null (Use ) /// 10.2.2 /// [Parameter] @@ -224,7 +224,7 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 列调整提示前缀文字 默认 null 未设置使用资源文件中文字 - /// Get/Set Column Resize Tooltip Prefix. Default null (Read from resource file) + /// Gets or sets Column Resize Tooltip Prefix. Default null (Read from resource file) /// 10.2.2 /// [Parameter] @@ -232,7 +232,7 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 是否显示列宽提示信息,默认 false 显示 - /// Get/Set Whether to show column width tooltip. Default false + /// Gets or sets Whether to show column width tooltip. Default false /// 10.2.2 /// [Parameter] @@ -258,7 +258,7 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 Table 高度 默认为 null - /// Get/Set Table Height. Default null + /// Gets or sets Table Height. Default null /// 10.2.2 /// /// @@ -270,7 +270,7 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 固定表头 默认 false - /// Get/Set Fixed Header. Default false + /// Gets or sets Fixed Header. Default false /// 10.2.2 /// [Parameter] @@ -278,7 +278,7 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 固定 Footer 默认 false - /// Get/Set Fixed Footer. Default false + /// Gets or sets Fixed Footer. Default false /// 10.2.2 /// [Parameter] @@ -286,7 +286,7 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 多表头模板 - /// Get/Set Multi Header Template + /// Gets or sets Multi Header Template /// 10.2.2 /// [Parameter] @@ -294,7 +294,7 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 列拷贝 Tooltip 文字 - /// Get/Set Copy Column Tooltip Text + /// Gets or sets Copy Column Tooltip Text /// 10.2.2 /// [Parameter] @@ -302,7 +302,7 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 列拷贝完毕后 Tooltip 文字 - /// Get/Set Copy Column Copied Tooltip Text + /// Gets or sets Copy Column Copied Tooltip Text /// 10.2.2 /// [Parameter] @@ -310,7 +310,7 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 CopyColumn Tooltip 默认 true - /// Get/Set CopyColumn Tooltip. Default true + /// Gets or sets CopyColumn Tooltip. Default true /// 10.2.2 /// [Parameter] @@ -324,7 +324,7 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 组件工作模式为 Excel 模式 默认 false - /// Get/Set Excel Mode. Default false + /// Gets or sets Excel Mode. Default false /// 10.2.2 /// [Parameter] @@ -332,7 +332,7 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 是否启用 Excel 模式下的键盘导航功能 默认 true - /// Get/Set Enable Keyboard Navigation in Excel Mode. Default true + /// Gets or sets Enable Keyboard Navigation in Excel Mode. Default true /// 10.2.2 /// [Parameter] @@ -340,7 +340,7 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 是否显示明细行 默认为 null 为空时使用 进行逻辑判断 - /// Get/Set Whether to show detail row. Default null (Check ) + /// Gets or sets Whether to show detail row. Default null (Check ) /// 10.2.2 /// [Parameter] @@ -348,7 +348,7 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 无数据时是否隐藏表格 Footer 默认为 false 不隐藏 - /// Get/Set Whether to hide footer when no data. Default false + /// Gets or sets Whether to hide footer when no data. Default false /// 10.2.2 /// [Parameter] @@ -356,7 +356,7 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 每行显示组件数量 默认为 2 - /// Get/Set Items per row in Edit Dialog. Default 2 + /// Gets or sets Items per row in Edit Dialog. Default 2 /// 10.2.2 /// [Parameter] @@ -364,7 +364,7 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 设置行内组件布局格式 默认 Inline 布局 - /// Get/Set Row Layout Format. Default Inline + /// Gets or sets Row Layout Format. Default Inline /// 10.2.2 /// [Parameter] @@ -372,7 +372,7 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 设置 Inline 模式下标签对齐方式 默认 None 等效于 Left 左对齐 - /// Get/Set Label Alignment in Inline Mode. Default None (Left) + /// Gets or sets Label Alignment in Inline Mode. Default None (Left) /// 10.2.2 /// [Parameter] @@ -380,7 +380,7 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 是否禁用表单内回车自动提交功能 默认 null 未设置 - /// Get/Set Whether to disable auto submit form by enter. Default null + /// Gets or sets Whether to disable auto submit form by enter. Default null /// 10.2.2 /// [Parameter] @@ -388,7 +388,7 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 明细行 Row Header 宽度 默认 24 - /// Get/Set Detail Row Header Width. Default 24 + /// Gets or sets Detail Row Header Width. Default 24 /// 10.2.2 /// [Parameter] @@ -396,7 +396,7 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 显示文字的复选框列宽度 默认 80 - /// Get/Set Show Checkbox Text Column Width. Default 80 + /// Gets or sets Show Checkbox Text Column Width. Default 80 /// 10.2.2 /// [Parameter] @@ -404,7 +404,7 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 复选框宽度 默认 36 - /// Get/Set Checkbox Column Width. Default 36 + /// Gets or sets Checkbox Column Width. Default 36 /// 10.2.2 /// [Parameter] @@ -412,7 +412,7 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 紧凑模式下复选框宽度 默认 28 - /// Get/Set Compact Checkbox Column Width. Default 28 + /// Gets or sets Compact Checkbox Column Width. Default 28 /// 10.2.2 /// [Parameter] @@ -420,7 +420,7 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 行号列宽度 默认 60 - /// Get/Set Line No Column Width. Default 60 + /// Gets or sets Line No Column Width. Default 60 /// 10.2.2 /// [Parameter] @@ -428,7 +428,7 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 行号内容位置 - /// Get/Set Line No Column Alignment + /// Gets or sets Line No Column Alignment /// 10.2.2 /// [Parameter] @@ -436,7 +436,7 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 呈现每行之前的回调 - /// Get/Set Callback before render row + /// Gets or sets Callback before render row /// 10.2.2 /// [Parameter] @@ -444,7 +444,7 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 Table 组件渲染完毕回调 - /// Get/Set Callback after Table rendered + /// Gets or sets Callback after Table rendered /// 10.2.2 /// [Parameter] @@ -452,7 +452,7 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 是否自动将选中行滚动到可视区域 默认 false - /// Get/Set Whether to auto scroll last selected row to view. Default false + /// Gets or sets Whether to auto scroll last selected row to view. Default false /// 10.2.2 /// [Parameter] @@ -460,7 +460,7 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 选中行滚动到可视区域对齐方式 默认 ScrollToViewAlign.Center - /// Get/Set Alignment for auto scroll selected row. Default ScrollToViewAlign.Center + /// Gets or sets Alignment for auto scroll selected row. Default ScrollToViewAlign.Center /// 10.2.2 /// [Parameter] @@ -468,7 +468,7 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 双击单元格回调委托 - /// Get/Set Double Click Cell Callback + /// Gets or sets Double Click Cell Callback /// 10.2.2 /// [Parameter] @@ -476,7 +476,7 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 展开收起明细行回调方法 第二个参数 true 时表示展开 false 时表示收起 - /// Get/Set Callback for toggle detail row. Second param true for expand, false for collapse + /// Gets or sets Callback for toggle detail row. Second param true for expand, false for collapse /// 10.2.2 /// [Parameter] @@ -484,7 +484,7 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 工具栏下拉框按钮是否 IsPopover 默认 false - /// Get/Set Whether toolbar dropdown button is Popover. Default false + /// Gets or sets Whether toolbar dropdown button is Popover. Default false /// 10.2.2 /// [Parameter] @@ -492,7 +492,7 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 数据滚动模式 - /// Get/Set Scroll Mode + /// Gets or sets Scroll Mode /// 10.2.2 /// [Parameter] @@ -500,7 +500,7 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 虚拟滚动行高 默认为 38 - /// Get/Set Virtual Scroll Row Height. Default 38 + /// Gets or sets Virtual Scroll Row Height. Default 38 /// 10.2.2 /// /// @@ -525,7 +525,7 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 组件是否采用 Tracking 模式对编辑项进行直接更新 默认 false - /// Get/Set Whether to use Tracking mode. Default false + /// Gets or sets Whether to use Tracking mode. Default false /// 10.2.2 /// [Parameter] @@ -559,7 +559,7 @@ private bool ShowDetails() => IsDetails == null /// /// 获得/设置 明细行手风琴效果 默认 false - /// Get/Set Accordion for detail rows. Default false + /// Gets or sets Accordion for detail rows. Default false /// 10.2.2 /// [Parameter] @@ -567,7 +567,7 @@ private bool ShowDetails() => IsDetails == null /// /// 获得/设置 列最小宽度 默认 null 未设置 可通过 统一设置 - /// Get/Set Column Min Width. Default null + /// Gets or sets Column Min Width. Default null /// 10.2.2 /// [Parameter] @@ -607,14 +607,13 @@ public async Task ExpandDetailRow(TItem item) protected List DetailRows { get; } = []; /// - /// 获得 表头集合 - /// Get Columns Collection + /// /// public List Columns { get; } = new(50); /// /// 获得/设置 明细行模板 - /// Get/Set Detail Row Template + /// Gets or sets Detail Row Template /// 10.2.2 /// [Parameter] @@ -622,7 +621,7 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 行模板 - /// Get/Set Row Template + /// Gets or sets Row Template /// 10.2.2 /// [Parameter] @@ -630,7 +629,7 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 行内容模板 - /// Get/Set Row Content Template + /// Gets or sets Row Content Template /// 10.2.2 /// [Parameter] @@ -638,7 +637,7 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 TableHeader 实例 - /// Get/Set TableHeader Instance + /// Gets or sets TableHeader Instance /// 10.2.2 /// [Parameter] @@ -646,7 +645,7 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 TableFooter 实例 - /// Get/Set TableFooter Instance + /// Gets or sets TableFooter Instance /// 10.2.2 /// [Parameter] @@ -654,7 +653,7 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 Table Footer 模板 - /// Get/Set Table Footer Template + /// Gets or sets Table Footer Template /// 10.2.2 /// [Parameter] @@ -662,7 +661,7 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 数据集合,适用于无功能仅做数据展示使用,高级功能时请使用 回调委托 - /// Get/Set Items. Use for advanced features + /// Gets or sets Items. Use for advanced features /// 10.2.2 /// [Parameter] @@ -670,7 +669,7 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 数据集合回调方法 - /// Get/Set Items Changed Callback + /// Gets or sets Items Changed Callback /// 10.2.2 /// [Parameter] @@ -678,7 +677,7 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 表格组件大小 默认为 Normal 正常模式 - /// Get/Set Table Size. Default Normal + /// Gets or sets Table Size. Default Normal /// 10.2.2 /// [Parameter] @@ -686,7 +685,7 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 无数据时显示模板 默认 null - /// Get/Set Empty Template. Default null + /// Gets or sets Empty Template. Default null /// 10.2.2 /// [Parameter] @@ -694,7 +693,7 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 无数据时显示文本 默认取资源文件 英文 NoData 中文 无数据 - /// Get/Set Empty Text. Default null (Read from resource file) + /// Gets or sets Empty Text. Default null (Read from resource file) /// 10.2.2 /// [Parameter] @@ -702,7 +701,7 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 无数据时显示图片路径 默认 null 未设置 - /// Get/Set Empty Image Path. Default null + /// Gets or sets Empty Image Path. Default null /// 10.2.2 /// [Parameter] @@ -710,7 +709,7 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 是否显示无数据空记录 默认 false 不显示 - /// Get/Set Whether to show empty record. Default false + /// Gets or sets Whether to show empty record. Default false /// 10.2.2 /// [Parameter] @@ -718,7 +717,7 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 是否显示过滤表头 默认 false 不显示 - /// Get/Set Whether to show filter header. Default false + /// Gets or sets Whether to show filter header. Default false /// 10.2.2 /// [Parameter] @@ -726,7 +725,7 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 是否显示过滤表头 默认 false 不显示 - /// Get/Set Whether to show multi filter header. Default false + /// Gets or sets Whether to show multi filter header. Default false /// 10.2.2 /// [Parameter] @@ -734,7 +733,7 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 是否显示表脚 默认为 false - /// Get/Set Whether to show footer. Default false + /// Gets or sets Whether to show footer. Default false /// 10.2.2 /// [Parameter] @@ -742,7 +741,7 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 是否允许列宽度调整 默认 false 固定表头时此属性生效 - /// Get/Set Whether to allow resizing column width. Default false (Effective when fixed header) + /// Gets or sets Whether to allow resizing column width. Default false (Effective when fixed header) /// 10.2.2 /// [Parameter] @@ -750,7 +749,7 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 是否表头允许折行 默认 false 不折行 此设置为 true 时覆盖 参数值 - /// Get/Set Whether header text wrap. Default false + /// Gets or sets Whether header text wrap. Default false /// 10.2.2 /// [Parameter] @@ -758,7 +757,7 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 是否斑马线样式 默认为 false - /// Get/Set Striped Style. Default false + /// Gets or sets Striped Style. Default false /// 10.2.2 /// /// @@ -770,7 +769,7 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 首次加载时是否自动查询数据 默认 true 模式下此参数不起作用 - /// Get/Set Whether to auto query on first render. Default true + /// Gets or sets Whether to auto query on first render. Default true /// 10.2.2 /// [Parameter] @@ -778,7 +777,7 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 是否带边框样式 默认为 false - /// Get/Set Bordered Style. Default false + /// Gets or sets Bordered Style. Default false /// 10.2.2 /// [Parameter] @@ -786,7 +785,7 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 是否自动刷新表格 默认为 false - /// Get/Set Whether to auto refresh. Default false + /// Gets or sets Whether to auto refresh. Default false /// 10.2.2 /// /// @@ -798,7 +797,7 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 自动刷新时间间隔 默认 2000 毫秒 - /// Get/Set Auto Refresh Interval. Default 2000 ms + /// Gets or sets Auto Refresh Interval. Default 2000 ms /// 10.2.2 /// [Parameter] @@ -806,7 +805,7 @@ public async Task ExpandDetailRow(TItem item) /// /// 获取/设置 表格 thead 样式 ,默认为浅色 - /// Get/Set Table Header Style. Default + /// Gets or sets Table Header Style. Default /// 10.2.2 /// [Parameter] @@ -814,7 +813,7 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 单击行回调委托方法 - /// Get/Set On Click Row Callback + /// Gets or sets On Click Row Callback /// 10.2.2 /// [Parameter] @@ -822,7 +821,7 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 双击行回调委托方法 - /// Get/Set On Double Click Row Callback + /// Gets or sets On Double Click Row Callback /// 10.2.2 /// [Parameter] @@ -830,7 +829,7 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 是否显示每行的明细行展开图标 - /// Get/Set Whether to show detail row expand icon + /// Gets or sets Whether to show detail row expand icon /// 10.2.2 /// /// @@ -842,7 +841,7 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 动态数据上下文实例 - /// Get/Set Dynamic Data Context Instance + /// Gets or sets Dynamic Data Context Instance /// 10.2.2 /// [Parameter] @@ -850,7 +849,7 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 未设置排序时 tooltip 显示文字 默认点击升序 - /// Get/Set Unset Sort Tooltip Text. Default Click to Asc + /// Gets or sets Unset Sort Tooltip Text. Default Click to Asc /// 10.2.2 /// [Parameter] @@ -859,7 +858,7 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 升序排序时 tooltip 显示文字 默认点击降序 - /// Get/Set Asc Sort Tooltip Text. Default Click to Desc + /// Gets or sets Asc Sort Tooltip Text. Default Click to Desc /// 10.2.2 /// [Parameter] @@ -868,7 +867,7 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 降序排序时 tooltip 显示文字 默认取消排序 - /// Get/Set Desc Sort Tooltip Text. Default Cancel Sort + /// Gets or sets Desc Sort Tooltip Text. Default Cancel Sort /// 10.2.2 /// [Parameter] @@ -877,7 +876,7 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 列创建时回调委托方法 - /// Get/Set On Column Creating Callback + /// Gets or sets On Column Creating Callback /// 10.2.2 /// [Parameter] @@ -885,7 +884,7 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 自定义列排序规则 默认 null 未设置 使用内部排序机制 1 2 3 0 -3 -2 -1 顺序 - /// Get/Set Custom Column Order Callback. Default null + /// Gets or sets Custom Column Order Callback. Default null /// 10.2.2 /// /// @@ -897,7 +896,7 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 数据主键标识标签 默认为
用于判断数据主键标签,如果模型未设置主键时可使用 参数自定义判断
数据模型支持联合主键
- /// Get/Set Data Primary Key Attribute. Default + /// Gets or sets Data Primary Key Attribute. Default /// 10.2.2 ///
[Parameter] @@ -905,10 +904,8 @@ public async Task ExpandDetailRow(TItem item) public Type? CustomKeyAttribute { get; set; } = typeof(KeyAttribute); /// - /// 获得/设置 比较数据是否相同回调方法 默认为 null - /// Get/Set Model Equality Comparer. Default null - /// 提供此回调方法时忽略 属性 - /// Ignore if this callback is provided + /// 获得/设置 比较数据是否相同回调方法 默认为 null 提供此回调方法时忽略 属性 + /// Gets or sets Model Equality Comparer. Default null Ignore if this callback is provided /// 10.2.2 /// [Parameter] @@ -916,7 +913,7 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 获得高级搜索条件回调方法 默认 null - /// Get/Set Get Advanced Search Filter Callback. Default null + /// Gets or sets Get Advanced Search Filter Callback. Default null /// 10.2.2 /// [Parameter] @@ -924,7 +921,7 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 客户端表格名称 默认 null 用于客户端列宽与列顺序持久化功能 - /// Get/Set Client Table Name. Default null + /// Gets or sets Client Table Name. Default null /// 10.2.2 /// [Parameter] @@ -932,7 +929,7 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 左对齐显示文本 - /// Get/Set Align Left Text + /// Gets or sets Align Left Text /// 10.2.2 /// [Parameter] @@ -941,7 +938,7 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置左对齐提示信息文本 - /// Get/Set Align Left Tooltip Text + /// Gets or sets Align Left Tooltip Text /// 10.2.2 /// [Parameter] @@ -950,7 +947,7 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 居中对齐显示文本 - /// Get/Set Align Center Text + /// Gets or sets Align Center Text /// 10.2.2 /// [Parameter] @@ -959,7 +956,7 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 居中对齐提示信息文本 - /// Get/Set Align Center Tooltip Text + /// Gets or sets Align Center Tooltip Text /// 10.2.2 /// [Parameter] @@ -968,7 +965,7 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 右对齐显示文本 - /// Get/Set Align Right Text + /// Gets or sets Align Right Text /// 10.2.2 /// [Parameter] @@ -977,7 +974,7 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 右对齐提示信息文本 - /// Get/Set Align Right Tooltip Text + /// Gets or sets Align Right Tooltip Text /// 10.2.2 /// [Parameter] @@ -986,7 +983,7 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 新建按钮是否禁用回调方法 默认 null 未设置 - /// Get/Set Disable Add Button Callback. Default null + /// Gets or sets Disable Add Button Callback. Default null /// 10.2.2 /// [Parameter] @@ -994,7 +991,7 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 删除按钮是否禁用回调方法 默认 null 未设置 - /// Get/Set Disable Delete Button Callback. Default null + /// Gets or sets Disable Delete Button Callback. Default null /// 10.2.2 /// [Parameter] @@ -1002,7 +999,7 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 编辑按钮是否禁用回调方法 默认 null 未设置 - /// Get/Set Disable Edit Button Callback. Default null + /// Gets or sets Disable Edit Button Callback. Default null /// 10.2.2 /// [Parameter] @@ -1010,7 +1007,7 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 翻页时是否自动滚动到顶部 默认 false - /// Get/Set Whether to scroll to top when paging. Default false + /// Gets or sets Whether to scroll to top when paging. Default false /// 10.2.2 /// [Parameter] @@ -1035,8 +1032,7 @@ public async Task ExpandDetailRow(TItem item) .Build(); /// - /// OnInitialized 方法 - /// OnInitialized method + /// /// protected override void OnInitialized() { @@ -1073,10 +1069,8 @@ protected override void OnInitialized() } /// - /// OnInitializedAsync 方法 - /// OnInitializedAsync method + /// /// - /// protected override async Task OnInitializedAsync() { if (IsTree && Items != null && TreeNodeConverter != null) @@ -1178,21 +1172,20 @@ private void OnInitParameters() /// /// 获得/设置 是否为第一次 Render - /// Get/Set Whether it is the first Render + /// Gets or sets Whether it is the first Render /// protected bool FirstRender { get; set; } = true; /// /// 获得/设置 自动刷新 CancellationTokenSource 实例 - /// Get/Set Auto Refresh CancellationTokenSource Instance + /// Gets or sets Auto Refresh CancellationTokenSource Instance /// protected CancellationTokenSource? AutoRefreshCancelTokenSource { get; set; } private bool _bindResizeColumn; /// - /// OnParametersSet 方法 - /// OnParametersSet method + /// /// protected override void OnParametersSet() { @@ -1237,8 +1230,7 @@ protected override void OnParametersSet() } /// - /// OnAfterRenderAsync 方法 - /// OnAfterRenderAsync method + /// /// /// protected override async Task OnAfterRenderAsync(bool firstRender) @@ -1593,10 +1585,6 @@ protected async Task LoopQueryAsync() private bool _firstQuery; private bool _autoQuery; - /// - /// OnQueryAsync 查询结果数据集合 - /// OnQueryAsync Query Result Data Collection - /// private IEnumerable QueryItems { get; set; } = []; [NotNull] @@ -1788,7 +1776,7 @@ void SetEditTemplate() #region Filter /// /// 获得/设置 表头过滤时回调方法 - /// Get/Set Filter Callback + /// Gets or sets Filter Callback /// public Func? OnFilterAsync { get; private set; } @@ -1857,7 +1845,7 @@ private bool GetShowHeader() private int GetLineNo(TItem item) => Rows.IndexOf(item) + 1 + ((ScrollMode == ScrollMode.Virtual && Items == null) ? StartIndex : (PageIndex - 1) * _pageItems); /// - /// Reset all Columns Filter + /// 重置所有列过滤条件方法 /// Reset all Columns Filter /// public async Task ResetFilters() @@ -1875,7 +1863,7 @@ public async Task ResetFilters() } /// - /// Reset all Columns Sort + /// 重置所有列排序方法 /// Reset all Columns Sort /// public async Task ResetSortAsync() @@ -1888,18 +1876,8 @@ public async Task ResetSortAsync() private bool GetAddButtonStatus() => DisableAddButtonCallback?.Invoke(SelectedRows) ?? false; - /// - /// 返回 true 时按钮禁用 - /// Return true when button is disabled - /// - /// private bool GetEditButtonStatus() => ShowAddForm || AddInCell || (DisableEditButtonCallback?.Invoke(SelectedRows) ?? SelectedRows.Count != 1); - /// - /// 返回 true 时按钮禁用 - /// Return true when button is disabled - /// - /// private bool GetDeleteButtonStatus() => ShowAddForm || AddInCell || (DisableDeleteButtonCallback?.Invoke(SelectedRows) ?? SelectedRows.Count == 0); private async Task InvokeItemsChanged() @@ -1920,7 +1898,7 @@ private async Task OnContextMenu(MouseEventArgs e, TItem item) /// /// 获得/设置 是否允许拖放标题栏更改栏位顺序,默认为 false - /// Get/Set Whether to allow dragging column header to change column order. Default false + /// Gets or sets Whether to allow dragging column header to change column order. Default false /// 10.2.2 /// [Parameter] @@ -1930,7 +1908,7 @@ private async Task OnContextMenu(MouseEventArgs e, TItem item) /// /// 获得/设置 拖动列结束回调方法,默认 null 可存储数据库用于服务器端保持列顺序 - /// Get/Set Drag Column End Callback. Default null + /// Gets or sets Drag Column End Callback. Default null /// 10.2.2 /// [Parameter] @@ -1938,7 +1916,7 @@ private async Task OnContextMenu(MouseEventArgs e, TItem item) /// /// 获得/设置 设置列宽回调方法 - /// Get/Set Resize Column Callback + /// Gets or sets Resize Column Callback /// 10.2.2 /// [Parameter] @@ -1946,7 +1924,7 @@ private async Task OnContextMenu(MouseEventArgs e, TItem item) /// /// 获得/设置 自动调整列宽回调方法 - /// Get/Set Auto Fit Column Width Callback + /// Gets or sets Auto Fit Column Width Callback /// 10.2.2 /// [Parameter] @@ -1956,7 +1934,7 @@ private async Task OnContextMenu(MouseEventArgs e, TItem item) /// /// 获得/设置 自动调整列宽回调方法 - /// Get/Set Auto Fit Column Width Callback + /// Gets or sets Auto Fit Column Width Callback /// 10.2.2 /// [Parameter] @@ -1964,7 +1942,7 @@ private async Task OnContextMenu(MouseEventArgs e, TItem item) /// /// 获得/设置 列宽自适应时是否包含表头 默认 false - /// Get/Set Whether to include header when auto fit column width. Default false + /// Gets or sets Whether to include header when auto fit column width. Default false /// 10.2.2 /// [Parameter] @@ -2124,8 +2102,7 @@ private RenderFragment RenderRowContent(TItem item) => builder => }; /// - /// Dispose 方法 - /// Dispose Method + /// /// /// protected override async ValueTask DisposeAsync(bool disposing) diff --git a/src/BootstrapBlazor/Components/Table/TableAdvancedSortDialog.razor.cs b/src/BootstrapBlazor/Components/Table/TableAdvancedSortDialog.razor.cs index f45cea48bb9..56e92a7dda7 100644 --- a/src/BootstrapBlazor/Components/Table/TableAdvancedSortDialog.razor.cs +++ b/src/BootstrapBlazor/Components/Table/TableAdvancedSortDialog.razor.cs @@ -9,13 +9,13 @@ namespace BootstrapBlazor.Components; /// /// Table 高级排序弹窗的内容组件 -/// Table 高级排序弹窗的contentcomponent +/// Table advanced sort dialog content component /// public partial class TableAdvancedSortDialog : ComponentBase, IResultDialog { /// - /// 获得/设置 排序列列表 实例值 - /// Gets or sets 排序列列表 instance值 + /// 获得/设置 排序列列表实例值 + /// Gets or sets sort column list instance value /// 10.2.2 /// [Parameter] @@ -26,8 +26,8 @@ public partial class TableAdvancedSortDialog : ComponentBase, IResultDialog public List? Value { get; set; } /// - /// 获得/设置 排序列列表 回调方法 支持双向绑定 - /// Gets or sets 排序列列表 callback method 支持双向绑定 + /// 获得/设置 排序列列表回调方法,支持双向绑定 + /// Gets or sets sort column list callback method, supports two-way binding /// 10.2.2 /// [Parameter] @@ -35,7 +35,7 @@ public partial class TableAdvancedSortDialog : ComponentBase, IResultDialog /// /// 获得/设置 可排序列的列表 - /// Gets or sets 可排序列的列表 + /// Gets or sets the list of sortable columns /// 10.2.2 /// [Parameter] @@ -43,7 +43,7 @@ public partial class TableAdvancedSortDialog : ComponentBase, IResultDialog /// /// 获得/设置 增加排序条件图标 - /// Gets or sets 增加排序条件icon + /// Gets or sets add sort condition icon /// 10.2.2 /// [Parameter] @@ -51,7 +51,7 @@ public partial class TableAdvancedSortDialog : ComponentBase, IResultDialog /// /// 获得/设置 移除排序条件图标 - /// Gets or sets 移除排序条件icon + /// Gets or sets remove sort condition icon /// 10.2.2 /// [Parameter] @@ -59,7 +59,7 @@ public partial class TableAdvancedSortDialog : ComponentBase, IResultDialog /// /// 获得/设置 减少排序条件图标 - /// Gets or sets 减少排序条件icon + /// Gets or sets decrease sort condition icon /// 10.2.2 /// [Parameter] @@ -67,7 +67,7 @@ public partial class TableAdvancedSortDialog : ComponentBase, IResultDialog /// /// 排序规则列表 - /// 排序规则列表 + /// Sort rule list /// private List? SortOrders { get; set; } @@ -115,8 +115,7 @@ private void OnClickRemove(TableSortItem item) } /// - /// - /// + /// /// public async Task OnClose(DialogResult result) { diff --git a/src/BootstrapBlazor/Components/Table/TableCellArgs.cs b/src/BootstrapBlazor/Components/Table/TableCellArgs.cs index 7f357e2bcff..240819dd79b 100644 --- a/src/BootstrapBlazor/Components/Table/TableCellArgs.cs +++ b/src/BootstrapBlazor/Components/Table/TableCellArgs.cs @@ -7,39 +7,39 @@ namespace BootstrapBlazor.Components; /// /// 单元格数据类 -/// 单元格data类 +/// Table cell data class /// public class TableCellArgs { /// - /// 获得 当前单元格行数据 请自行转化为绑定模型 - /// Gets current row data + /// 获得 当前单元格行数据,请自行转化为绑定模型 + /// Gets current row data (please convert to bound model by yourself) /// [NotNull] public object? Row { get; internal set; } /// /// 获得 当前单元格绑定列名称 - /// Gets 当前单元格绑定列名称 + /// Gets current cell bound column name /// [NotNull] public string? ColumnName { get; internal set; } /// - /// 获得/设置 合并单元格数量 默认 0 - /// Gets or sets 合并单元格数量 Default is 0 + /// 获得/设置 合并单元格数量,默认为 0 + /// Gets or sets colspan count. Default is 0. /// public int Colspan { get; set; } /// - /// 获得/设置 当前单元格样式 默认 null - /// Gets or sets 当前单元格style Default is null + /// 获得/设置 当前单元格样式,默认 null + /// Gets or sets current cell CSS class. Default is null. /// public string? Class { get; set; } /// /// 获得/设置 当前单元格显示内容 - /// Gets or sets current cell content + /// Gets or sets current cell display content /// public string? Value { get; set; } diff --git a/src/BootstrapBlazor/Components/Table/TableCellButton.cs b/src/BootstrapBlazor/Components/Table/TableCellButton.cs index d363eec9372..58aeb3724f7 100644 --- a/src/BootstrapBlazor/Components/Table/TableCellButton.cs +++ b/src/BootstrapBlazor/Components/Table/TableCellButton.cs @@ -7,35 +7,34 @@ namespace BootstrapBlazor.Components; /// /// 单元格内按钮组件 -/// 单元格内buttoncomponent +/// Button component in table cell /// [JSModuleNotInherited] public class TableCellButton : ButtonBase, ITableCellButton { /// /// 获得/设置 Table 扩展按钮集合实例 - /// Gets or sets Table 扩展buttoncollectioninstance + /// Gets or sets Table extension buttons collection instance + /// 10.2.2 /// [CascadingParameter] protected TableExtensionButton? Buttons { get; set; } /// /// - /// 10.2.2 /// [Parameter] public bool AutoSelectedRowWhenClick { get; set; } = true; /// /// - /// 10.2.2 /// [Parameter] public bool AutoRenderTableWhenClick { get; set; } /// - /// 获得/设置 是否显示 默认 true 显示 - /// Gets or sets whetherdisplay Default is true display + /// 获得/设置 是否显示,默认为 true 显示 + /// Gets or sets whether to display. Default is true. /// 10.2.2 /// /// 一般是通过 context 进行业务判断是否需要显示功能按钮 @@ -43,8 +42,7 @@ public class TableCellButton : ButtonBase, ITableCellButton public bool IsShow { get; set; } = true; /// - /// OnInitialized 方法 - /// OnInitialized 方法 + /// /// protected override void OnInitialized() { @@ -59,11 +57,9 @@ protected override void OnInitialized() } /// - /// DisposeAsyncCore - /// DisposeAsyncCore + /// /// /// - /// protected override ValueTask DisposeAsync(bool disposing) { Buttons?.RemoveButton(this); diff --git a/src/BootstrapBlazor/Components/Table/TableCellButtonArgs.cs b/src/BootstrapBlazor/Components/Table/TableCellButtonArgs.cs index ed78e518522..9f27730d1c6 100644 --- a/src/BootstrapBlazor/Components/Table/TableCellButtonArgs.cs +++ b/src/BootstrapBlazor/Components/Table/TableCellButtonArgs.cs @@ -6,8 +6,8 @@ namespace BootstrapBlazor.Components; /// -/// 单元格内按钮组件 -/// 单元格内buttoncomponent +/// 单元格内按钮参数 +/// Table cell button arguments /// public class TableCellButtonArgs : ITableCellButton { diff --git a/src/BootstrapBlazor/Components/Table/TableCellComponent.cs b/src/BootstrapBlazor/Components/Table/TableCellComponent.cs index 900fa71bbf7..e46df225595 100644 --- a/src/BootstrapBlazor/Components/Table/TableCellComponent.cs +++ b/src/BootstrapBlazor/Components/Table/TableCellComponent.cs @@ -6,14 +6,14 @@ namespace BootstrapBlazor.Components; /// -/// Table 组件单元格自定义组件 -/// Table component单元格自定义component +/// Table 组件自定义单元格组件 +/// Table Component custom cell Component /// public class TableCellComponent : ComponentBase, ITableCellComponent, IDisposable { /// /// 获得/设置 子组件 - /// Gets or sets 子component + /// Gets or sets child component /// 10.2.2 /// [Parameter] @@ -21,14 +21,15 @@ public class TableCellComponent : ComponentBase, ITableCellComponent, IDisposabl /// /// 获得/设置 Table 扩展按钮集合实例 - /// Gets or sets Table 扩展buttoncollectioninstance + /// Gets or sets Table extension buttons collection instance + /// 10.2.2 /// [CascadingParameter] protected TableExtensionButton? Buttons { get; set; } /// - /// 获得/设置 是否显示 默认 true 显示 - /// Gets or sets whetherdisplay Default is true display + /// 获得/设置 是否显示,默认为 true 显示 + /// Gets or sets whether to display. Default is true. /// 10.2.2 /// /// 一般是通过 context 进行业务判断是否需要显示功能按钮 @@ -46,8 +47,7 @@ protected override void OnInitialized() } /// - /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously. - /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously. + /// /// /// protected virtual void Dispose(bool disposing) diff --git a/src/BootstrapBlazor/Components/Table/TableCellPopConfirmButton.cs b/src/BootstrapBlazor/Components/Table/TableCellPopConfirmButton.cs index b702b27054e..db7112d176d 100644 --- a/src/BootstrapBlazor/Components/Table/TableCellPopConfirmButton.cs +++ b/src/BootstrapBlazor/Components/Table/TableCellPopConfirmButton.cs @@ -9,14 +9,15 @@ namespace BootstrapBlazor.Components; /// /// TableCellPopConfirmButton 单元格内按钮组件 -/// TableCellPopConfirmButton 单元格内buttoncomponent +/// TableCellPopConfirmButton button component in table cell /// [JSModuleNotInherited] public class TableCellPopConfirmButton : PopConfirmButtonBase, ITableCellButton { /// /// 获得/设置 Table 扩展按钮集合实例 - /// Gets or sets Table 扩展buttoncollectioninstance + /// Gets or sets Table extension buttons collection instance + /// 10.2.2 /// [CascadingParameter] protected TableExtensionButton? Buttons { get; set; } @@ -27,21 +28,19 @@ public class TableCellPopConfirmButton : PopConfirmButtonBase, ITableCellButton /// /// - /// 10.2.2 /// [Parameter] public bool AutoSelectedRowWhenClick { get; set; } = true; /// /// - /// 10.2.2 /// [Parameter] public bool AutoRenderTableWhenClick { get; set; } /// - /// 获得/设置 是否显示本按钮 默认 true 显示 - /// Gets or sets whetherdisplay本button Default is true display + /// 获得/设置 是否显示本按钮,默认为 true 显示 + /// Gets or sets whether to display this button. Default is true. /// 10.2.2 /// /// 一般是通过 context 进行业务判断是否需要显示功能按钮 @@ -49,8 +48,7 @@ public class TableCellPopConfirmButton : PopConfirmButtonBase, ITableCellButton public bool IsShow { get; set; } = true; /// - /// OnInitialized 方法 - /// OnInitialized 方法 + /// /// protected override void OnInitialized() { @@ -69,11 +67,9 @@ protected override void OnInitialized() } /// - /// DisposeAsyncCore - /// DisposeAsyncCore + /// /// /// - /// protected override ValueTask DisposeAsync(bool disposing) { Buttons?.RemoveButton(this); diff --git a/src/BootstrapBlazor/Components/Table/TableColumn.cs b/src/BootstrapBlazor/Components/Table/TableColumn.cs index 2ef2889b48d..2b252da180e 100644 --- a/src/BootstrapBlazor/Components/Table/TableColumn.cs +++ b/src/BootstrapBlazor/Components/Table/TableColumn.cs @@ -9,45 +9,39 @@ namespace BootstrapBlazor.Components; /// -/// 表头组件 -/// 表头component +/// 表格 Column 列组件 +/// Table column header Component /// -/// 模型泛型model generic -/// 绑定字段值类型bind value type +/// 模型泛型model generic type +/// 绑定字段值类型binding field value type public class TableColumn : BootstrapComponentBase, ITableColumn { /// - /// 获得/设置 相关过滤器 - /// Gets or sets 相关过滤器 + /// /// public IFilter? Filter { get; set; } /// - /// 获得/设置 组件类型 默认为 null - /// Gets or sets component type Default is为 null - /// 10.2.2 + /// /// [Parameter] public Type? ComponentType { get; set; } /// - /// 获得/设置 组件自定义类型参数集合 默认为 null - /// Gets or sets component自定义type参数collection Default is为 null - /// 10.2.2 + /// /// [Parameter] public IEnumerable>? ComponentParameters { get; set; } /// - /// 获得/设置 绑定列类型 - /// Gets or sets 绑定列type + /// /// [NotNull] public Type? PropertyType { get; set; } /// /// 获得/设置 数据绑定字段值 - /// Gets or sets data绑定字段值 + /// Gets or sets data binding field value /// 10.2.2 /// [Parameter] @@ -56,7 +50,7 @@ public class TableColumn : BootstrapComponentBase, ITableColumn /// /// 获得/设置 ValueExpression 表达式 - /// Gets or sets ValueExpression 表达式 + /// Gets or sets ValueExpression expression /// 10.2.2 /// [Parameter] @@ -64,132 +58,108 @@ public class TableColumn : BootstrapComponentBase, ITableColumn /// /// - /// 10.2.2 /// [Parameter] public bool? IgnoreWhenExport { get; set; } /// /// - /// 10.2.2 /// [Parameter] public bool? Sortable { get; set; } /// - /// 获得/设置 是否为默认排序列 默认为 false - /// Gets or sets whether为Default is排序列 Default is为 false - /// 10.2.2 + /// /// [Parameter] public bool DefaultSort { get; set; } /// /// - /// 10.2.2 /// [Parameter] public bool? TextWrap { get; set; } /// /// - /// 10.2.2 /// [Parameter] public bool? TextEllipsis { get; set; } /// - /// 获得/设置 是否显示标签 Tooltip 多用于标签文字过长导致裁减时使用 默认 null - /// Gets or sets whether label tooltip Default is null - /// 10.2.2 + /// /// [Parameter] public bool? ShowLabelTooltip { get; set; } /// - /// 获得/设置 是否表头允许折行 默认 false 不折行 - /// Gets or sets whether表头允许折行 Default is false 不折行 - /// 10.2.2 + /// /// [Parameter] public bool HeaderTextWrap { get; set; } /// - /// 获得/设置 是否表头显示 Tooltip 默认 false 不显示 可配合 使用 设置 为 true 时本参数不生效 - /// Gets or sets whether表头display Tooltip Default is false 不display 可配合 使用 Sets 为 true 时本参数不生效 - /// 10.2.2 + /// /// [Parameter] public bool ShowHeaderTooltip { get; set; } /// - /// 获得/设置 是否表头 Tooltip 内容 - /// Gets or sets whether表头 Tooltip content - /// 10.2.2 + /// /// [Parameter] public string? HeaderTextTooltip { get; set; } /// - /// 获得/设置 是否表头溢出时截断 默认 false 不截断 可配合 使用 设置 为 true 时本参数不生效 - /// Gets or sets whether表头溢出时截断 Default is false 不截断 可配合 使用 Sets 为 true 时本参数不生效 - /// 10.2.2 + /// /// [Parameter] public bool HeaderTextEllipsis { get; set; } /// /// - /// 10.2.2 /// [Parameter] public string? Step { get; set; } /// /// - /// 10.2.2 /// [Parameter] public int Rows { get; set; } /// /// - /// 10.2.2 /// [Parameter] public int Cols { get; set; } /// /// - /// 10.2.2 /// [Parameter] public SortOrder DefaultSortOrder { get; set; } /// /// - /// 10.2.2 /// [Parameter] public bool? Filterable { get; set; } /// /// - /// 10.2.2 /// [Parameter] public bool? Searchable { get; set; } /// /// - /// 10.2.2 /// [Parameter] public bool? Ignore { get; set; } /// /// - /// 10.2.2 /// [Parameter] [ExcludeFromCodeCoverage] @@ -198,176 +168,144 @@ public class TableColumn : BootstrapComponentBase, ITableColumn /// /// - /// 10.2.2 /// [Parameter] public bool? Readonly { get; set; } /// /// - /// 10.2.2 /// [Parameter] public bool? IsReadonlyWhenAdd { get; set; } /// /// - /// 10.2.2 /// [Parameter] public bool? IsReadonlyWhenEdit { get; set; } /// /// - /// 10.2.2 /// [Parameter] public bool? Visible { get; set; } /// /// - /// 10.2.2 /// [Parameter] public bool? IsVisibleWhenAdd { get; set; } /// /// - /// 10.2.2 /// [Parameter] public bool? IsVisibleWhenEdit { get; set; } /// /// - /// 10.2.2 /// [Parameter] public bool? Required { get; set; } /// /// - /// 10.2.2 /// [Parameter] public bool? IsRequiredWhenAdd { get; set; } /// /// - /// 10.2.2 /// [Parameter] public bool? IsRequiredWhenEdit { get; set; } /// /// - /// 10.2.2 /// [Parameter] public string? RequiredErrorMessage { get; set; } /// /// - /// 10.2.2 /// [Parameter] public Func? CustomSearch { get; set; } /// - /// 获得/设置 是否不进行验证 默认为 false - /// Gets or sets whether不进行验证 Default is为 false - /// 10.2.2 + /// /// [Parameter] public bool SkipValidate { get; set; } /// - /// 获得/设置 表头显示文字 - /// Gets or sets 表头display文字 - /// 10.2.2 + /// /// [Parameter] public string? Text { get; set; } /// - /// 获得/设置 placeholder 文本 默认为 null - /// Gets or sets placeholder 文本 Default is为 null - /// 10.2.2 + /// /// [Parameter] public string? PlaceHolder { get; set; } /// - /// 获得/设置 列宽 默认为 auto - /// Gets or sets 列宽 Default is为 auto - /// 10.2.2 + /// /// [Parameter] public int? Width { get; set; } /// - /// 获得/设置 是否固定本列 默认 false 不固定 - /// Gets or sets whether固定本列 Default is false 不固定 - /// 10.2.2 + /// /// [Parameter] public bool Fixed { get; set; } /// /// - /// 10.2.2 /// [Parameter] public bool? ShowCopyColumn { get; set; } /// - /// 获得/设置 字段鼠标悬停提示 - /// Gets or sets 字段鼠标悬停提示 - /// 10.2.2 + /// /// [Parameter] public bool? ShowTips { get; set; } /// /// - /// 10.2.2 /// [Parameter] public Func>? GetTooltipTextCallback { get; set; } /// - /// 获得/设置 列 td 自定义样式 默认为 null 未设置 - /// Gets or sets 列 td 自定义style Default is为 null 未Sets - /// 10.2.2 + /// /// [Parameter] public string? CssClass { get; set; } /// /// - /// 10.2.2 /// [Parameter] public Alignment? Align { get; set; } /// - /// 获得/设置 格式化字符串 如时间类型设置 yyyy-MM-dd - /// Gets or sets 格式化字符串 如时间typeSets yyyy-MM-dd - /// 10.2.2 + /// /// [Parameter] public string? FormatString { get; set; } /// /// - /// 10.2.2 /// [Parameter] public Func>? Formatter { get; set; } /// /// - /// 10.2.2 /// [Parameter] public RenderFragment>? Template { get; set; } @@ -399,7 +337,6 @@ public class TableColumn : BootstrapComponentBase, ITableColumn /// /// - /// 10.2.2 /// [Parameter] public RenderFragment? EditTemplate { get; set; } @@ -420,7 +357,6 @@ public class TableColumn : BootstrapComponentBase, ITableColumn /// /// - /// 10.2.2 /// [Parameter] public RenderFragment? SearchTemplate { get; set; } @@ -441,63 +377,53 @@ public class TableColumn : BootstrapComponentBase, ITableColumn /// /// - /// 10.2.2 /// [Parameter] public RenderFragment? FilterTemplate { get; set; } /// /// - /// 10.2.2 /// [Parameter] public RenderFragment? HeaderTemplate { get; set; } /// /// - /// 10.2.2 /// [Parameter] public RenderFragment? ToolboxTemplate { get; set; } /// /// - /// 10.2.2 /// [Parameter] public BreakPoint ShownWithBreakPoint { get; set; } /// /// - /// 10.2.2 /// [Parameter] public IEnumerable? Items { get; set; } /// - /// - /// 10.2.2 - /// + /// ///
[Parameter] public int Order { get; set; } /// /// - /// 10.2.2 /// [Parameter] public IEnumerable? Lookup { get; set; } /// /// - /// 10.2.2 /// [Parameter] public bool ShowSearchWhenSelect { get; set; } /// /// - /// 10.2.2 /// [Parameter] [Obsolete("已弃用,请删除;Deprecated, please delete")] @@ -506,78 +432,66 @@ public class TableColumn : BootstrapComponentBase, ITableColumn /// /// - /// 10.2.2 /// [Parameter] public bool IsPopover { get; set; } /// /// - /// 10.2.2 /// [Parameter] public StringComparison LookupStringComparison { get; set; } = StringComparison.OrdinalIgnoreCase; /// /// - /// 10.2.2 /// [Parameter] public ILookupService? LookupService { get; set; } /// /// - /// 10.2.2 /// [Parameter] public string? LookupServiceKey { get; set; } /// /// - /// 10.2.2 /// [Parameter] public object? LookupServiceData { get; set; } /// /// - /// 10.2.2 /// [Parameter] public Action? OnCellRender { get; set; } /// /// - /// 10.2.2 /// [Parameter] public bool IsMarkupString { get; set; } /// - /// 获得/设置 自定义验证集合 - /// Gets or sets 自定义验证collection - /// 10.2.2 + /// /// [Parameter] public List? ValidateRules { get; set; } /// /// - /// 10.2.2 /// [Parameter] public string? FieldName { get; set; } /// /// - /// 10.2.2 /// [Parameter] public string? GroupName { get; set; } /// /// - /// 10.2.2 /// [Parameter] public int GroupOrder { get; set; } diff --git a/src/BootstrapBlazor/Components/Table/TableColumnContext.cs b/src/BootstrapBlazor/Components/Table/TableColumnContext.cs index 536d33c3b00..10a3972bf17 100644 --- a/src/BootstrapBlazor/Components/Table/TableColumnContext.cs +++ b/src/BootstrapBlazor/Components/Table/TableColumnContext.cs @@ -7,7 +7,7 @@ namespace BootstrapBlazor.Components; /// /// TableColumn 上下文类 -/// TableColumn 上下文类 +/// TableColumn context class /// /// /// @@ -15,14 +15,14 @@ public class TableColumnContext(TItem model, TValue value) { /// /// 获得/设置 行数据实例 - /// Gets or sets 行datainstance + /// Gets or sets row data instance /// [NotNull] public TItem Row { get; } = model ?? throw new ArgumentNullException(nameof(model)); /// /// 获得/设置 当前绑定字段数据实例 - /// Gets or sets 当前绑定字段datainstance + /// Gets or sets current bound field data instance /// public TValue Value => value; } diff --git a/src/BootstrapBlazor/Components/Table/TableEditDrawerOption.cs b/src/BootstrapBlazor/Components/Table/TableEditDrawerOption.cs index 1110d824e39..1e6c370b5d8 100644 --- a/src/BootstrapBlazor/Components/Table/TableEditDrawerOption.cs +++ b/src/BootstrapBlazor/Components/Table/TableEditDrawerOption.cs @@ -8,14 +8,14 @@ namespace BootstrapBlazor.Components; /// -/// 编辑弹窗配置类 -/// 编辑弹窗配置类 +/// 编辑抽屉配置类 +/// Edit drawer configuration class /// public class TableEditDrawerOption : ITableEditDialogOption { /// /// 构造函数 - /// 构造函数 + /// Constructor /// public TableEditDrawerOption() { @@ -23,86 +23,86 @@ public TableEditDrawerOption() } /// - /// 获得/设置 组件是否采用 Tracking 模式对编辑项进行直接更新 默认 false - /// Gets or sets componentwhether采用 Tracking 模式对编辑项进行直接更新 Default is false + /// 获得/设置 组件是否采用 Tracking 模式对编辑项进行直接更新,默认为 false + /// Gets or sets whether to use Tracking mode to directly update edited items. Default is false. /// public bool IsTracking { get; set; } /// - /// 获得/设置 是否显示标签 默认为 true 显示标签 - /// Gets or sets whetherdisplay标签 Default is为 true display标签 + /// 获得/设置 是否显示标签,默认为 true + /// Gets or sets whether to display label. Default is true. /// public bool ShowLabel { get; set; } /// /// 获得/设置 实体类编辑模式 Add 还是 Update - /// Gets or sets 实体类编辑模式 Add 还是 Update + /// Gets or sets entity class edit mode, Add or Update /// public ItemChangedType ItemChangedType { get; set; } /// - /// 获得/设置 每行显示组件数量 默认为 null - /// Gets or sets 每行displaycomponent数量 Default is为 null + /// 获得/设置 每行显示组件数量,默认为 null + /// Gets or sets the number of components displayed per row. Default is null. /// public int? ItemsPerRow { get; set; } /// - /// 获得/设置 设置行内组件布局格式 默认 Row 布局 - /// Gets or sets Sets行内component布局格式 Default is Row 布局 + /// 获得/设置 设置行内组件布局格式,默认为 Row 布局 + /// Gets or sets the layout format of inline components. Default is Row layout. /// public RowType RowType { get; set; } /// - /// 获得/设置 设置 Inline 模式下标签对齐方式 默认 None 等效于 Left 左对齐 - /// Gets or sets Sets Inline 模式下标签对齐方式 Default is None 等效于 Left 左对齐 + /// 获得/设置 在 RowType Inline 模式下标签对齐方式,默认为 None(等效于 Left 左对齐) + /// Gets or sets the label alignment in RowType Inline mode. Default is None (equivalent to Left). /// public Alignment LabelAlign { get; set; } /// - /// 获得/设置 查询时是否显示正在加载中动画 默认为 false - /// Gets or sets 查询时whetherdisplay正在加载中动画 Default is为 false + /// 获得/设置 查询时是否显示正在加载中动画,默认为 false + /// Gets or sets whether to display loading animation when querying. Default is false. /// public bool ShowLoading { get; set; } /// - /// 获得/设置 未分组编辑项布局位置 默认 false 在尾部 - /// Gets or sets 未分组编辑项布局位置 Default is false 在尾部 + /// 获得/设置 未分组编辑项布局位置,默认为 false 在尾部 + /// Gets or sets the layout position of ungrouped edit items. Default is false (at the end). /// public bool ShowUnsetGroupItemsOnTop { get; set; } /// /// 获得/设置 编辑框模型 - /// Gets or sets 编辑框模型 + /// Gets or sets edit form model /// public TModel? Model { get; set; } /// - /// 获得/设置 是否禁用表单内回车自动提交功能 默认 null 未设置 - /// Gets or sets whether禁用表单内回车自动提交功能 Default is null 未Sets + /// 获得/设置 是否禁用表单内回车自动提交功能,默认为 null 未设置 + /// Gets or sets whether to disable auto submit form by Enter key. Default is null. /// public bool? DisableAutoSubmitFormByEnter { get; set; } /// - /// 获得/设置 关闭按钮图标 默认 null 使用当前主题图标 - /// Gets or sets 关闭buttonicon Default is null 使用当前主题icon + /// 获得/设置 关闭按钮图标,默认为 null 使用当前主题图标 + /// Gets or sets close button icon. Default is null (use current theme icon). /// public string? CloseButtonIcon { get; set; } /// /// 获得/设置 关闭按钮文本 - /// Gets or sets 关闭button文本 + /// Gets or sets close button text /// public string? CloseButtonText { get; set; } /// - /// 获得/设置 保存按钮图标 默认 null 使用当前主题图标 - /// Gets or sets 保存buttonicon Default is null 使用当前主题icon + /// 获得/设置 保存按钮图标,默认为 null 使用当前主题图标 + /// Gets or sets save button icon. Default is null (use current theme icon). /// public string? SaveButtonIcon { get; set; } /// - /// 获得/设置 查询按钮文本 - /// Gets or sets 查询button文本 + /// 获得/设置 保存按钮文本 + /// Gets or sets save button text /// public string? SaveButtonText { get; set; } @@ -120,19 +120,19 @@ public TableEditDrawerOption() /// /// 获得 编辑项集合 - /// Gets 编辑项collection + /// Gets edit items collection /// public IEnumerable? Items { get; set; } /// /// 获得/设置 关闭弹窗回调方法 - /// Gets or sets 关闭弹窗callback method + /// Gets or sets close dialog callback method /// public Func? OnCloseAsync { get; set; } /// /// 获得/设置 保存回调委托 - /// Gets or sets 保存回调delegate + /// Gets or sets save callback delegate /// public Func>? OnEditAsync { get; set; } } diff --git a/src/BootstrapBlazor/Components/Table/TableExportContext.cs b/src/BootstrapBlazor/Components/Table/TableExportContext.cs index c0c99d4af34..d3197855e24 100644 --- a/src/BootstrapBlazor/Components/Table/TableExportContext.cs +++ b/src/BootstrapBlazor/Components/Table/TableExportContext.cs @@ -6,8 +6,8 @@ namespace BootstrapBlazor.Components; /// -/// -/// +/// TableExportContext 组件 +/// TableExportContext Component /// internal class TableExportContext : ITableExportContext { @@ -49,12 +49,12 @@ internal class TableExportContext : ITableExportContext /// /// 构造函数 - /// 构造函数 + /// Constructor /// /// ITable 实例ITable instance - /// 行数据集合行datacollection - /// ITable 实例当前条件生成方法ITable instance当前条件生成method - /// ITable 实例内置 Export 方法ITable instance内置 Export method + /// 行数据集合Row data collection + /// ITable 实例当前条件生成方法ITable instance current condition builder method + /// ITable 实例内置 Export 方法ITable instance built-in Export method public TableExportContext(ITable table, IEnumerable rows, Func optionsBuilder, Func exportAsync) { Table = table; diff --git a/src/BootstrapBlazor/Components/Table/TableExtensionButton.razor.cs b/src/BootstrapBlazor/Components/Table/TableExtensionButton.razor.cs index 33b6c1e1b34..1febcc36e62 100644 --- a/src/BootstrapBlazor/Components/Table/TableExtensionButton.razor.cs +++ b/src/BootstrapBlazor/Components/Table/TableExtensionButton.razor.cs @@ -7,20 +7,16 @@ namespace BootstrapBlazor.Components; /// /// TableExtensionButton 表格扩展按钮类 -/// TableExtensionButton 表格扩展button类 +/// TableExtensionButton table extension button class /// [JSModuleNotInherited] public partial class TableExtensionButton { - /// - /// 获得 Toolbar 扩展按钮集合 - /// Gets Toolbar 扩展buttoncollection - /// private readonly List _buttons = []; /// - /// Specifies the 内容 to be rendered inside this - /// Specifies the content to be rendered inside this + /// 获得/设置 子组件内容 + /// Gets or sets the content to be rendered inside this /// 10.2.2 /// [Parameter] @@ -28,7 +24,7 @@ public partial class TableExtensionButton /// /// 获得/设置 扩展按钮点击回调方法 - /// Gets or sets 扩展button点击callback method + /// Gets or sets extension button click callback method /// 10.2.2 /// [Parameter] @@ -36,13 +32,13 @@ public partial class TableExtensionButton /// /// 添加按钮到工具栏方法 - /// 添加button到工具栏方法 + /// Add button to toolbar method /// public void AddButton(ITableCellComponent button) => _buttons.Add(button); /// /// 从工具栏中移除按钮 - /// 从工具栏中移除button + /// Remove button from toolbar /// public void RemoveButton(ITableCellComponent button) => _buttons.Remove(button); diff --git a/src/BootstrapBlazor/Components/Table/TableFooterCell.razor.cs b/src/BootstrapBlazor/Components/Table/TableFooterCell.razor.cs index 422dc249d90..f1806b77f19 100644 --- a/src/BootstrapBlazor/Components/Table/TableFooterCell.razor.cs +++ b/src/BootstrapBlazor/Components/Table/TableFooterCell.razor.cs @@ -10,7 +10,7 @@ namespace BootstrapBlazor.Components; /// /// TableFooterCell 组件 -/// TableFooterCell component +/// TableFooterCell Component /// public partial class TableFooterCell { @@ -23,23 +23,23 @@ public partial class TableFooterCell /// /// 获得/设置 单元格内容 - /// Gets or sets 单元格content + /// Gets or sets cell content /// 10.2.2 /// [Parameter] public string? Text { get; set; } /// - /// 获得/设置 文字对齐方式 默认为 Alignment.None - /// Gets or sets 文字对齐方式 Default is为 Alignment.None + /// 获得/设置 文字对齐方式,默认为 Alignment.None + /// Gets or sets text alignment. Default is Alignment.None. /// 10.2.2 /// [Parameter] public Alignment Align { get; set; } /// - /// 获得/设置 格式化字符串 如时间类型设置 yyyy-MM-dd - /// Gets or sets 格式化字符串 如时间typeSets yyyy-MM-dd + /// 获得/设置 格式化字符串,如时间类型设置 yyyy-MM-dd + /// Gets or sets format string, such as yyyy-MM-dd for date type /// 10.2.2 /// [Parameter] @@ -47,15 +47,15 @@ public partial class TableFooterCell /// /// 获得/设置 列格式化回调委托 - /// Gets or sets 列格式化回调delegate + /// Gets or sets column format callback delegate /// 10.2.2 /// [Parameter] public Func>? Formatter { get; set; } /// - /// 获得/设置 聚合方法枚举 默认 Sum - /// Gets or sets 聚合方法enum Default is Sum + /// 获得/设置 聚合方法枚举,默认 Sum + /// Gets or sets aggregate method enumeration. Default is Sum. /// 10.2.2 /// [Parameter] @@ -63,48 +63,40 @@ public partial class TableFooterCell /// /// 获得/设置 自定义统计列回调方法 - /// Gets or sets 自定义统计列callback method + /// Gets or sets custom aggregate column callback method /// 10.2.2 /// [Parameter] public Func? CustomerAggregateCallback { get; set; } /// - /// 获得/设置 统计列名称 默认为 null 不参与统计仅作为显示单元格 - /// Gets or sets 统计列名称 Default is为 null 不参与统计仅作为display单元格 + /// 获得/设置 统计列名称,默认为 null 不参与统计仅作为显示单元格 + /// Gets or sets aggregate column field name. Default is null (not included in statistics, just for display). /// 10.2.2 /// [Parameter] public string? Field { get; set; } /// - /// 获得/设置 colspan 值 默认 null 自己手动设置值 - /// Gets or sets colspan 值 Default is null 自己手动Sets值 + /// 获得/设置 colspan 值,默认 null 自己手动设置值 + /// Gets or sets colspan value. Default is null (set manually). /// 10.2.2 /// [Parameter] public Func? ColspanCallback { get; set; } - /// - /// 获得/设置 是否为移动端模式 - /// Gets or sets whether为移动端模式 - /// [CascadingParameter(Name = "IsMobileMode")] private bool IsMobileMode { get; set; } [CascadingParameter(Name = "TableBreakPoint")] private BreakPoint BreakPoint { get; set; } - /// - /// 获得/设置 是否为移动端模式 - /// Gets or sets whether为移动端模式 - /// [CascadingParameter(Name = "TableFooterContext")] private object? DataSource { get; set; } /// - /// 获得/设置 显示节点阈值 默认值 BreakPoint.None 未设置 - /// Gets or sets display节点阈值 Default is值 BreakPoint.None 未Sets + /// 获得/设置 显示节点阈值,默认值 BreakPoint.None 未设置 + /// Gets or sets display breakpoint threshold. Default is BreakPoint.None (not set). /// 10.2.2 /// [Parameter] @@ -115,24 +107,21 @@ public partial class TableFooterCell /// /// /// - /// protected override async Task OnParametersSetAsync() { _value = Text ?? (GetCount(DataSource) == 0 ? "0" : (GetCountValue() ?? await GetAggregateValue())); } /// - /// 检查当前列是否显示方法 - /// 检查当前列whetherdisplay方法 + /// 检查当前列是否按断点显示的方法 + /// Check whether current column should display by breakpoint method /// - /// protected bool CheckShownWithBreakpoint => BreakPoint >= ShownWithBreakPoint; /// - /// 解析 Count Aggregate - /// 解析 Count Aggregate + /// 解析 Count 聚合方法 + /// Parse Count aggregate method /// - /// private string? GetCountValue() { string? v = null; @@ -275,14 +264,6 @@ protected override async Task OnParametersSetAsync() } } - /// - /// 通过属性名称构建委托 - /// 通过property名称构建delegate - /// - /// - /// - /// - /// private static Func CreateSelector(string field) { var type = typeof(TModel); diff --git a/src/BootstrapBlazor/Components/Table/TableFormatContent.cs b/src/BootstrapBlazor/Components/Table/TableFormatContent.cs index e94ff4a2aa8..68daf0c7df8 100644 --- a/src/BootstrapBlazor/Components/Table/TableFormatContent.cs +++ b/src/BootstrapBlazor/Components/Table/TableFormatContent.cs @@ -7,11 +7,15 @@ namespace BootstrapBlazor.Components; +/// +/// TableFormatContent 组件 +/// TableFormatContent Component +/// internal class TableFormatContent : ComponentBase { /// /// 获得/设置 格式化方法 - /// Gets or sets 格式化方法 + /// Gets or sets formatter method /// 10.2.2 /// [Parameter] @@ -21,7 +25,7 @@ internal class TableFormatContent : ComponentBase /// /// 获得/设置 当前显示数据项 - /// Gets or sets 当前displaydata项 + /// Gets or sets current display data item /// 10.2.2 /// [Parameter] @@ -31,6 +35,9 @@ internal class TableFormatContent : ComponentBase private string? _content; + /// + /// + /// protected override async Task OnParametersSetAsync() { await base.OnParametersSetAsync(); @@ -38,6 +45,10 @@ protected override async Task OnParametersSetAsync() _content = await Formatter(Item); } + /// + /// + /// + /// protected override void BuildRenderTree(RenderTreeBuilder builder) { if (!string.IsNullOrEmpty(_content)) diff --git a/src/BootstrapBlazor/Components/Table/TableRowContext.cs b/src/BootstrapBlazor/Components/Table/TableRowContext.cs index 6e5621f7c32..d80fdfdb2e1 100644 --- a/src/BootstrapBlazor/Components/Table/TableRowContext.cs +++ b/src/BootstrapBlazor/Components/Table/TableRowContext.cs @@ -7,7 +7,7 @@ namespace BootstrapBlazor.Components; /// /// TableRow 上下文类 -/// TableRow 上下文类 +/// TableRow context class /// /// /// @@ -16,20 +16,20 @@ public class TableRowContext(TItem model, IEnumerable colum { /// /// 获得/设置 当前渲染模式 - /// Gets or sets 当前渲染模式 + /// Gets or sets current render mode /// public TableRenderMode RenderMode { get; } = renderMode; /// /// 获得/设置 行数据实例 - /// Gets or sets 行datainstance + /// Gets or sets row data instance /// [NotNull] public TItem Row { get; } = model ?? throw new ArgumentNullException(nameof(model)); /// /// 获得/设置 当前绑定字段数据实例 - /// Gets or sets 当前绑定字段datainstance + /// Gets or sets current bound field data instance /// public IEnumerable Columns { get; } = columns; } diff --git a/src/BootstrapBlazor/Components/Table/TableSize.cs b/src/BootstrapBlazor/Components/Table/TableSize.cs index e02bee03cc7..920ea8ee600 100644 --- a/src/BootstrapBlazor/Components/Table/TableSize.cs +++ b/src/BootstrapBlazor/Components/Table/TableSize.cs @@ -7,19 +7,19 @@ namespace BootstrapBlazor.Components; /// /// Table 大小枚举类型 -/// Table 大小enumtype +/// Table size enumeration type /// public enum TableSize { /// /// 正常模式 - /// 正常模式 + /// Normal mode /// Normal, /// /// 紧凑模式 - /// 紧凑模式 + /// Compact mode /// Compact } diff --git a/src/BootstrapBlazor/Components/Table/TableSortItem.cs b/src/BootstrapBlazor/Components/Table/TableSortItem.cs index a6ee3222af6..ebab5209200 100644 --- a/src/BootstrapBlazor/Components/Table/TableSortItem.cs +++ b/src/BootstrapBlazor/Components/Table/TableSortItem.cs @@ -6,20 +6,20 @@ namespace BootstrapBlazor.Components; /// -/// 排序项 (高级排序使用) -/// 排序项 (高级排序使用) +/// 排序项(高级排序使用) +/// Sort item (used in advanced sorting) /// public class TableSortItem { /// - /// 获得/设置 排序字段名称 默认 - /// Gets or sets the sort field name. Default value is + /// 获得/设置 排序字段名称,默认为空字符串 + /// Gets or sets the sort field name. Default value is empty string. /// public string SortName { get; set; } = string.Empty; /// - /// 获得/设置 排序顺序 默认 - /// Gets or sets the sort order. Default value is SortOrder.Unset + /// 获得/设置 排序顺序,默认为 SortOrder.Unset + /// Gets or sets the sort order. Default value is SortOrder.Unset. /// public SortOrder SortOrder { get; set; } diff --git a/src/BootstrapBlazor/Components/Table/TableTemplateColumn.cs b/src/BootstrapBlazor/Components/Table/TableTemplateColumn.cs index 22abab64129..6012c11cf9c 100644 --- a/src/BootstrapBlazor/Components/Table/TableTemplateColumn.cs +++ b/src/BootstrapBlazor/Components/Table/TableTemplateColumn.cs @@ -6,8 +6,8 @@ namespace BootstrapBlazor.Components; /// -/// TableTemplateColumn component -/// TableTemplateColumn component +/// TableTemplateColumn 组件 +/// TableTemplateColumn Component /// /// No need to bind model properties public class TableTemplateColumn : TableColumn diff --git a/src/BootstrapBlazor/Components/Table/TableToolbar.razor.cs b/src/BootstrapBlazor/Components/Table/TableToolbar.razor.cs index d78760d872a..a7eddcff860 100644 --- a/src/BootstrapBlazor/Components/Table/TableToolbar.razor.cs +++ b/src/BootstrapBlazor/Components/Table/TableToolbar.razor.cs @@ -9,24 +9,20 @@ namespace BootstrapBlazor.Components; /// /// Table Toolbar 组件 -/// Table Toolbar component +/// Table Toolbar Component /// #if NET6_0_OR_GREATER [CascadingTypeParameter(nameof(TItem))] #endif public partial class TableToolbar : ComponentBase { - /// - /// 获得 Toolbar 按钮集合 - /// Gets Toolbar buttoncollection - /// private readonly List _buttons = []; private readonly ConcurrentDictionary _asyncButtonStateCache = new(ReferenceEqualityComparer.Instance); /// - /// Specifies the 内容 to be rendered inside this - /// Specifies the content to be rendered inside this + /// 获得/设置 子组件内容 + /// Gets or sets the content to be rendered inside this /// 10.2.2 /// [Parameter] @@ -34,7 +30,7 @@ public partial class TableToolbar : ComponentBase /// /// 获得/设置 按钮点击后回调委托 - /// Gets or sets button点击后回调delegate + /// Gets or sets button click callback delegate /// 10.2.2 /// [Parameter] @@ -42,16 +38,16 @@ public partial class TableToolbar : ComponentBase public Func>? OnGetSelectedRows { get; set; } /// - /// 获得/设置 是否自动收缩工具栏按钮 默认 true - /// Gets or sets whether自动收缩工具栏button Default is true + /// 获得/设置 是否自动收缩工具栏按钮,默认 true + /// Gets or sets whether to auto collapse toolbar buttons. Default is true. /// 10.2.2 /// [Parameter] public bool IsAutoCollapsedToolbarButton { get; set; } = true; /// - /// 获得/设置 工具栏按钮收缩后是否继承原先按钮的颜色样式 默认 false - /// Gets or sets 工具栏button收缩后whether继承原先button的colorstyle Default is false + /// 获得/设置 工具栏按钮收缩后是否继承原先按钮的颜色样式,默认 false + /// Gets or sets whether to inherit button color style when toolbar buttons collapsed. Default is false. /// 10.2.2 /// [Parameter] @@ -59,7 +55,7 @@ public partial class TableToolbar : ComponentBase /// /// 获得/设置 移动端按钮图标 - /// Gets or sets 移动端buttonicon + /// Gets or sets mobile button icon /// 10.2.2 /// [Parameter] @@ -144,13 +140,13 @@ private bool GetDisabled(ButtonBase button) /// /// 添加按钮到工具栏方法 - /// 添加button到工具栏方法 + /// Add button to toolbar method /// public void AddButton(IToolbarComponent button) => _buttons.Add(button); /// - /// 移除按钮到工具栏方法 - /// 移除button到工具栏方法 + /// 移除按钮从工具栏方法 + /// Remove button from toolbar method /// public void RemoveButton(IToolbarComponent button) => _buttons.Remove(button); } diff --git a/src/BootstrapBlazor/Components/Table/TableToolbarButton.cs b/src/BootstrapBlazor/Components/Table/TableToolbarButton.cs index e93ece99971..809648d260c 100644 --- a/src/BootstrapBlazor/Components/Table/TableToolbarButton.cs +++ b/src/BootstrapBlazor/Components/Table/TableToolbarButton.cs @@ -7,39 +7,33 @@ namespace BootstrapBlazor.Components; /// /// 表格 Toolbar 按钮组件 -/// Table toolbar button component +/// Table toolbar button Component /// [JSModuleNotInherited] public class TableToolbarButton : ButtonBase, ITableToolbarButton { /// /// 获得/设置 按钮点击后回调委托 - /// Gets or sets button点击后回调delegate + /// Gets or sets button click callback delegate /// 10.2.2 /// [Parameter] public Func, Task>? OnClickCallback { get; set; } /// - /// 获得/设置 选中一行时启用按钮 默认 false 均可用 - /// Gets or sets 选中一行时启用button Default is false 均可用 - /// 10.2.2 + /// /// [Parameter] public bool IsEnableWhenSelectedOneRow { get; set; } /// - /// 获得/设置 按钮是否被禁用回调方法 - /// Gets or sets button whether disable callback method - /// 10.2.2 + /// /// [Parameter] public Func, bool>? IsDisabledCallback { get; set; } /// - /// 获得/设置 是否显示 默认 true 显示 - /// Gets or sets whether display this button Default is true display - /// 10.2.2 + /// /// [Parameter] public bool IsShow { get; set; } = true; @@ -47,6 +41,7 @@ public class TableToolbarButton : ButtonBase, ITableToolbarButton /// /// 获得/设置 Table Toolbar 实例 /// Gets or sets Table Toolbar instance + /// 10.2.2 /// [CascadingParameter] protected TableToolbar? Toolbar { get; set; } @@ -62,11 +57,8 @@ protected override void OnInitialized() } /// - /// DisposeAsyncCore 方法 - /// DisposeAsyncCore 方法 + /// /// - /// - /// protected override ValueTask DisposeAsync(bool disposing) { Toolbar?.RemoveButton(this); diff --git a/src/BootstrapBlazor/Components/Table/TableToolbarComponent.cs b/src/BootstrapBlazor/Components/Table/TableToolbarComponent.cs index faabb40f8f7..b13d740ee22 100644 --- a/src/BootstrapBlazor/Components/Table/TableToolbarComponent.cs +++ b/src/BootstrapBlazor/Components/Table/TableToolbarComponent.cs @@ -7,7 +7,7 @@ namespace BootstrapBlazor.Components; /// /// Table 工具栏自定义组件 -/// Table 工具栏自定义component +/// Table toolbar custom Component /// public class TableToolbarComponent : ComponentBase, IToolbarComponent, IDisposable { @@ -19,7 +19,7 @@ public class TableToolbarComponent : ComponentBase, IToolbarComponent, ID /// /// 获得/设置 子组件 - /// Gets or sets 子component + /// Gets or sets child component /// 10.2.2 /// [Parameter] @@ -28,6 +28,7 @@ public class TableToolbarComponent : ComponentBase, IToolbarComponent, ID /// /// 获得/设置 Table Toolbar 实例 /// Gets or sets Table Toolbar instance + /// 10.2.2 /// [CascadingParameter] protected TableToolbar? Toolbar { get; set; } @@ -43,8 +44,8 @@ protected override void OnInitialized() } /// - /// 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. + /// 释放资源方法 + /// Method to release resources. /// /// protected virtual void Dispose(bool disposing) diff --git a/src/BootstrapBlazor/Components/Table/TableToolbarPopConfirmButton.cs b/src/BootstrapBlazor/Components/Table/TableToolbarPopConfirmButton.cs index ff7f740cc03..bc95bb2ed32 100644 --- a/src/BootstrapBlazor/Components/Table/TableToolbarPopConfirmButton.cs +++ b/src/BootstrapBlazor/Components/Table/TableToolbarPopConfirmButton.cs @@ -9,38 +9,38 @@ namespace BootstrapBlazor.Components; /// /// TableToolbarPopConfirmButton 组件 -/// TableToolbarPopConfirmButton component +/// TableToolbarPopConfirmButton Component /// [JSModuleNotInherited] public class TableToolbarPopConfirmButton : PopConfirmButtonBase, ITableToolbarButton { /// /// 获得/设置 按钮点击后回调委托 - /// Gets or sets button点击后回调delegate + /// Gets or sets button click callback delegate /// 10.2.2 /// [Parameter] public Func, Task>? OnConfirmCallback { get; set; } /// - /// 获得/设置 是否显示 默认 true 显示 - /// Gets or sets whetherdisplay Default is true display + /// 获得/设置 是否显示,默认为 true 显示 + /// Gets or sets whether to display. Default is true. /// 10.2.2 /// [Parameter] public bool IsShow { get; set; } = true; /// - /// 获得/设置 选中一行时启用按钮 默认 false 均可用 - /// Gets or sets 选中一行时启用button Default is false 均可用 + /// 获得/设置 选中一行时启用按钮,默认为 false + /// Gets or sets whether to enable button when one row is selected. Default is false. /// 10.2.2 /// [Parameter] public bool IsEnableWhenSelectedOneRow { get; set; } /// - /// 获得/设置 按钮是否被禁用回调方法 - /// Gets or sets buttonwhether被禁用callback method + /// 获得/设置 按钮是否被禁用的回调方法 + /// Gets or sets the callback method for button disabled state /// 10.2.2 /// [Parameter] @@ -80,11 +80,9 @@ protected override void OnParametersSet() } /// - /// DisposeAsyncCore 方法 - /// DisposeAsyncCore 方法 + /// /// /// - /// protected override ValueTask DisposeAsync(bool disposing) { Toolbar?.RemoveButton(this); diff --git a/src/BootstrapBlazor/Components/Tag/Tag.razor.cs b/src/BootstrapBlazor/Components/Tag/Tag.razor.cs index 3216dad34a4..ec4a85df394 100644 --- a/src/BootstrapBlazor/Components/Tag/Tag.razor.cs +++ b/src/BootstrapBlazor/Components/Tag/Tag.razor.cs @@ -6,16 +6,11 @@ namespace BootstrapBlazor.Components; /// -/// Tag 组件类 -/// Tag component类 +/// Tag 组件 +/// Tag Component /// public partial class Tag { - /// - /// 获得 样式集合 - /// Gets stylecollection - /// - /// private string? ClassName => CssBuilder.Default("tag fade show") .AddClass($"alert-{Color.ToDescriptionString()}", Color != Color.None) .AddClassFromAttributes(AdditionalAttributes) diff --git a/src/BootstrapBlazor/Components/Textarea/Textarea.razor.cs b/src/BootstrapBlazor/Components/Textarea/Textarea.razor.cs index deaeee81c58..695e9b39af2 100644 --- a/src/BootstrapBlazor/Components/Textarea/Textarea.razor.cs +++ b/src/BootstrapBlazor/Components/Textarea/Textarea.razor.cs @@ -6,34 +6,34 @@ namespace BootstrapBlazor.Components; /// -/// Textarea component -/// Textarea component +/// Textarea 文本域组件 +/// Textarea Component /// public partial class Textarea { /// - /// Scroll to the top - /// Scroll to the top + /// 滚动到顶部方法 + /// Scrolls to the top /// /// public Task ScrollToTop() => InvokeVoidAsync("execute", Id, "toTop"); /// - /// Scroll to a specific value - /// Scroll to a specific value + /// 滚动到指定位置方法 + /// Scrolls to a specific value /// /// public Task ScrollTo(int value) => InvokeVoidAsync("execute", Id, "to", value); /// - /// Scroll to the bottom - /// Scroll to the bottom + /// 滚动到底部方法 + /// Scrolls to the bottom /// /// public Task ScrollToBottom() => InvokeVoidAsync("execute", Id, "toBottom"); /// - /// 获得/设置 是否 auto-scroll is enabled. 默认为 false. + /// 获得/设置 是否自动滚动,默认为 false /// Gets or sets whether auto-scroll is enabled. Default is false. /// 10.2.2 /// @@ -41,17 +41,13 @@ public partial class Textarea public bool IsAutoScroll { get; set; } /// - /// 获得/设置 是否 Shift + Enter replaces the default Enter key behavior. 默认为 false. + /// 获得/设置 是否 Shift + Enter 替代默认 Enter 键行为,默认为 false /// Gets or sets whether Shift + Enter replaces the default Enter key behavior. Default is false. /// 10.2.2 /// [Parameter] public bool UseShiftEnter { get; set; } - /// - /// 获得 the client-side auto-scroll identifier. - /// Gets the client-side auto-scroll identifier. - /// private string? AutoScrollString => IsAutoScroll ? "auto" : null; private string? ShiftEnterString => UseShiftEnter ? "true" : null; @@ -60,7 +56,6 @@ public partial class Textarea /// ///
/// - /// protected override async Task OnAfterRenderAsync(bool firstRender) { await base.OnAfterRenderAsync(firstRender); diff --git a/src/BootstrapBlazor/Components/ThemeProvider/ThemeProvider.razor.cs b/src/BootstrapBlazor/Components/ThemeProvider/ThemeProvider.razor.cs index 9ecb58bb659..4d66fb799c3 100644 --- a/src/BootstrapBlazor/Components/ThemeProvider/ThemeProvider.razor.cs +++ b/src/BootstrapBlazor/Components/ThemeProvider/ThemeProvider.razor.cs @@ -8,78 +8,78 @@ namespace BootstrapBlazor.Components; /// -/// ThemeProvider 组件 -/// ThemeProvider component +/// ThemeProvider 主题提供者组件 +/// ThemeProvider Component /// public partial class ThemeProvider { /// - /// 获得/设置 自动模式图标 默认 null - /// Gets or sets 自动模式icon Default is null + /// 获得/设置 自动模式图标,默认 null + /// Gets or sets the auto mode icon. Default is null. /// 10.2.2 /// [Parameter] public string? AutoModeIcon { get; set; } /// - /// 获得/设置 自动模式文本 默认 null 未设置使用本地化资源 - /// Gets or sets 自动模式文本 Default is null 未Sets使用本地化资源 + /// 获得/设置 自动模式文本,默认 null 未设置使用本地化资源 + /// Gets or sets the auto mode text. Default is null (uses localized resource). /// 10.2.2 /// [Parameter] public string? AutoModeText { get; set; } /// - /// 获得/设置 暗黑模式图标 默认 null - /// Gets or sets 暗黑模式icon Default is null + /// 获得/设置 暗黑模式图标,默认 null + /// Gets or sets the dark mode icon. Default is null. /// 10.2.2 /// [Parameter] public string? DarkModeIcon { get; set; } /// - /// 获得/设置 暗黑模式文本 默认 null 未设置使用本地化资源 - /// Gets or sets 暗黑模式文本 Default is null 未Sets使用本地化资源 + /// 获得/设置 暗黑模式文本,默认 null 未设置使用本地化资源 + /// Gets or sets the dark mode text. Default is null (uses localized resource). /// 10.2.2 /// [Parameter] public string? DarkModeText { get; set; } /// - /// 获得/设置 明亮模式图标 默认 null - /// Gets or sets 明亮模式icon Default is null + /// 获得/设置 明亮模式图标,默认 null + /// Gets or sets the light mode icon. Default is null. /// 10.2.2 /// [Parameter] public string? LightModeIcon { get; set; } /// - /// 获得/设置 明亮模式文本 默认 null 未设置使用本地化资源 - /// Gets or sets 明亮模式文本 Default is null 未Sets使用本地化资源 + /// 获得/设置 明亮模式文本,默认 null 未设置使用本地化资源 + /// Gets or sets the light mode text. Default is null (uses localized resource). /// 10.2.2 /// [Parameter] public string? LightModeText { get; set; } /// - /// 获得/设置 当前选中模式图标 默认 null - /// Gets or sets 当前选中模式icon Default is null + /// 获得/设置 当前选中模式图标,默认 null + /// Gets or sets the active mode icon. Default is null. /// 10.2.2 /// [Parameter] public string? ActiveIcon { get; set; } /// - /// 获得/设置 下拉框是否显示阴影效果 默认 true - /// Gets or sets 下拉框whetherdisplay阴影效果 Default is true + /// 获得/设置 下拉框是否显示阴影效果,默认 true + /// Gets or sets whether the dropdown shows shadow. Default is true. /// 10.2.2 /// [Parameter] public bool ShowShadow { get; set; } = true; /// - /// 获得/设置 下拉框对其方式 默认 Right - /// Gets or sets 下拉框对其方式 Default is Right + /// 获得/设置 下拉框对齐方式,默认 Right + /// Gets or sets the dropdown alignment. Default is Right. /// 10.2.2 /// [Parameter] @@ -87,23 +87,23 @@ public partial class ThemeProvider /// /// 获得/设置 主题切换回调方法 - /// Gets or sets 主题切换callback method + /// Gets or sets the theme changed callback method /// 10.2.2 /// [Parameter] public Func? OnThemeChangedAsync { get; set; } /// - /// 主题类型 - /// 主题type + /// 获得/设置 主题类型 + /// Gets or sets the theme type /// 10.2.2 /// [Parameter] public ThemeValue ThemeValue { get; set; } = ThemeValue.UseLocalStorage; /// - /// 主题类型改变回调方法 - /// 主题type改变callback method + /// 获得/设置 主题类型改变回调方法 + /// Gets or sets the theme type changed callback method /// 10.2.2 /// [Parameter] @@ -148,7 +148,6 @@ protected override void OnParametersSet() /// /// /// - /// protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id, Interop, ThemeValue, nameof(OnThemeChanged)); /// @@ -156,7 +155,6 @@ protected override void OnParametersSet() /// JavaScript callback method /// /// - /// [JSInvokable] public async Task OnThemeChanged(ThemeValue name) { diff --git a/src/BootstrapBlazor/Components/ThemeProvider/ThemeValue.cs b/src/BootstrapBlazor/Components/ThemeProvider/ThemeValue.cs index 668779d8a42..7ff3eabab77 100644 --- a/src/BootstrapBlazor/Components/ThemeProvider/ThemeValue.cs +++ b/src/BootstrapBlazor/Components/ThemeProvider/ThemeValue.cs @@ -8,36 +8,36 @@ namespace BootstrapBlazor.Components; /// -/// 主题选项 -/// 主题选项 +/// 主题值枚举 +/// Theme Value Enumeration /// [JsonEnumConverter(true)] public enum ThemeValue { /// - /// 自动 - /// 自动 + /// 自动模式 + /// Auto Mode /// [Description("auto")] Auto, /// /// 明亮主题 - /// 明亮主题 + /// Light Theme /// [Description("light")] Light, /// /// 暗黑主题 - /// 暗黑主题 + /// Dark Theme /// [Description("dark")] Dark, /// /// 使用本地保存选项 - /// 使用本地保存选项 + /// Use Local Storage /// [Description("useLocalStorage")] UseLocalStorage, diff --git a/src/BootstrapBlazor/Components/TimePicker/TimePicker.razor.cs b/src/BootstrapBlazor/Components/TimePicker/TimePicker.razor.cs index 4c555f72806..6d9c0c1555e 100644 --- a/src/BootstrapBlazor/Components/TimePicker/TimePicker.razor.cs +++ b/src/BootstrapBlazor/Components/TimePicker/TimePicker.razor.cs @@ -9,13 +9,13 @@ namespace BootstrapBlazor.Components; /// /// TimePicker 组件 -/// TimePicker component +/// TimePicker Component /// public partial class TimePicker { /// /// 获得/设置 取消按钮显示文字 - /// Gets or sets 取消buttondisplay文字 + /// Gets or sets the cancel button display text /// 10.2.2 /// [Parameter] @@ -24,7 +24,7 @@ public partial class TimePicker /// /// 获得/设置 确定按钮显示文字 - /// Gets or sets 确定buttondisplay文字 + /// Gets or sets the confirm button display text /// 10.2.2 /// [Parameter] @@ -32,8 +32,8 @@ public partial class TimePicker public string? ConfirmButtonText { get; set; } /// - /// 获得/设置 是否显示秒 默认为 true - /// Gets or sets whetherdisplay秒 Default is为 true + /// 获得/设置 是否显示秒,默认为 true + /// Gets or sets whether to display seconds. Default is true. /// 10.2.2 /// [Parameter] @@ -42,7 +42,7 @@ public partial class TimePicker /// /// 获得/设置 取消按钮回调委托 - /// Gets or sets 取消button回调delegate + /// Gets or sets the cancel button callback delegate /// 10.2.2 /// [Parameter] @@ -50,7 +50,7 @@ public partial class TimePicker /// /// 获得/设置 确认按钮回调委托 - /// Gets or sets 确认button回调delegate + /// Gets or sets the confirm button callback delegate /// 10.2.2 /// [Parameter] @@ -60,16 +60,8 @@ public partial class TimePicker [NotNull] private IStringLocalizer>? Localizer { get; set; } - /// - /// 获得/设置 当前时间 - /// Gets or sets 当前时间 - /// private TimeSpan CurrentTime { get; set; } - /// - /// 获得/设置 样式 - /// Gets or sets style - /// private string? ClassString => CssBuilder.Default("bb-time-picker") .AddClassFromAttributes(AdditionalAttributes) .Build(); @@ -86,10 +78,6 @@ protected override void OnParametersSet() ConfirmButtonText ??= Localizer[nameof(ConfirmButtonText)]; } - /// - /// 点击取消按钮回调此方法 - /// 点击取消button回调此方法 - /// private async Task OnClickClose() { CurrentTime = Value; @@ -99,10 +87,6 @@ private async Task OnClickClose() } } - /// - /// 点击确认按钮时回调此方法 - /// 点击确认button时回调此方法 - /// private async Task OnClickConfirm() { Value = CurrentTime; diff --git a/src/BootstrapBlazor/Components/TimePicker/TimePickerCell.razor.cs b/src/BootstrapBlazor/Components/TimePicker/TimePickerCell.razor.cs index ee03ec34a8c..1641bac0748 100644 --- a/src/BootstrapBlazor/Components/TimePicker/TimePickerCell.razor.cs +++ b/src/BootstrapBlazor/Components/TimePicker/TimePickerCell.razor.cs @@ -9,7 +9,7 @@ namespace BootstrapBlazor.Components; /// /// 时间选择滚轮单元组件 -/// 时间选择滚轮单元component +/// Time Picker Cell Wheel Component /// public partial class TimePickerCell { @@ -17,10 +17,6 @@ public partial class TimePickerCell .AddClassFromAttributes(AdditionalAttributes) .Build(); - /// - /// 获得 当前样式名称 - /// Gets 当前style名称 - /// private string? GetClassName(int index) => CssBuilder.Default("time-spinner-item") .AddClass("prev", ViewMode switch { @@ -42,20 +38,12 @@ public partial class TimePickerCell }) .Build(); - /// - /// 获得 滚轮单元数据区间 - /// Gets 滚轮单元data区间 - /// private IEnumerable Range => ViewMode switch { TimePickerCellViewMode.Hour => Enumerable.Range(0, 24), _ => Enumerable.Range(0, 60) }; - /// - /// 获得 组件单元数据样式 - /// Gets component单元datastyle - /// private string? StyleName => CssBuilder.Default() .AddClass($"transform: translateY({CalcTranslateY().ToString(CultureInfo.InvariantCulture)}px);") .Build(); @@ -70,7 +58,7 @@ public partial class TimePickerCell /// /// 获得/设置 时间选择框视图模式 - /// Gets or sets 时间选择框视图模式 + /// Gets or sets the time picker view mode /// 10.2.2 /// [Parameter] @@ -78,15 +66,15 @@ public partial class TimePickerCell /// /// 获得/设置 组件值 - /// Gets or sets component值 + /// Gets or sets the component value /// 10.2.2 /// [Parameter] public TimeSpan Value { get; set; } /// - /// 获得/设置 组件值变化时委托方法 - /// Gets or sets component值变化时delegate方法 + /// 获得/设置 组件值变化时的委托方法 + /// Gets or sets the delegate method when the component value changes /// 10.2.2 /// [Parameter] @@ -94,7 +82,7 @@ public partial class TimePickerCell /// /// 获得/设置 向上箭头图标 - /// Gets or sets 向上箭头icon + /// Gets or sets the up arrow icon /// 10.2.2 /// [Parameter] @@ -102,7 +90,7 @@ public partial class TimePickerCell /// /// 获得/设置 向下箭头图标 - /// Gets or sets 向下箭头icon + /// Gets or sets the down arrow icon /// 10.2.2 /// [Parameter] @@ -126,12 +114,12 @@ protected override void OnParametersSet() /// /// /// - /// protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id, Interop); /// - /// 上翻页按钮调用此方法 - /// 上翻页button调用此方法 + /// 处理向上翻页按钮的单击事件 + /// Handles the up button click event + /// 10.2.2 /// [JSInvokable] public async Task OnClickUp() @@ -154,15 +142,17 @@ public async Task OnClickUp() } /// - /// 计算单元格高度回调方法 - /// 计算单元格heightcallback method + /// 处理单元格高度回调方法 + /// Handles the cell height callback method + /// 10.2.2 /// [JSInvokable] public void OnHeightCallback(double height) => _height = height; /// - /// 下翻页按钮调用此方法 - /// 下翻页button调用此方法 + /// 处理向下翻页按钮的单击事件 + /// Handles the down button click event + /// 10.2.2 /// [JSInvokable] public async Task OnClickDown() diff --git a/src/BootstrapBlazor/Components/Timeline/Timeline.razor.cs b/src/BootstrapBlazor/Components/Timeline/Timeline.razor.cs index 8f615873c49..d16d12d769b 100644 --- a/src/BootstrapBlazor/Components/Timeline/Timeline.razor.cs +++ b/src/BootstrapBlazor/Components/Timeline/Timeline.razor.cs @@ -7,13 +7,13 @@ namespace BootstrapBlazor.Components; /// /// 时间线组件基类 -/// 时间线component基类 +/// Timeline Component Base Class /// public partial class Timeline { /// /// 获得 Timeline 样式 - /// Gets Timeline style + /// Gets the Timeline style /// protected string? ClassString => CssBuilder.Default("timeline") .AddClass("is-alternate", IsAlternate && !IsLeft) @@ -22,8 +22,8 @@ public partial class Timeline .Build(); /// - /// 获得/设置 绑定数据集 - /// Gets or sets 绑定data集 + /// 获得/设置 绑定数据集合 + /// Gets or sets the bound data collection /// 10.2.2 /// [Parameter] @@ -32,31 +32,30 @@ public partial class Timeline /// /// 获得/设置 是否反转 - /// Gets or sets whether反转 + /// Gets or sets whether to reverse /// 10.2.2 /// [Parameter] public bool IsReverse { get; set; } /// - /// 获得/设置 是否左右交替出现 默认 false - /// Gets or sets whether左右交替出现 Default is false + /// 获得/设置 是否左右交替出现,默认 false + /// Gets or sets whether items alternate left and right. Default is false. /// 10.2.2 /// [Parameter] public bool IsAlternate { get; set; } /// - /// 获得/设置 内容是否出现在时间线左侧 默认为 false - /// Gets or sets contentwhether出现在时间线左侧 Default is为 false + /// 获得/设置 内容是否出现在时间线左侧,默认为 false + /// Gets or sets whether content appears on the left side of the timeline. Default is false. /// 10.2.2 /// [Parameter] public bool IsLeft { get; set; } /// - /// OnParametersSet 方法 - /// OnParametersSet 方法 + /// /// protected override void OnParametersSet() { diff --git a/src/BootstrapBlazor/Components/Timeline/TimelineItem.cs b/src/BootstrapBlazor/Components/Timeline/TimelineItem.cs index 9c45ce3292e..fdd58fc4da0 100644 --- a/src/BootstrapBlazor/Components/Timeline/TimelineItem.cs +++ b/src/BootstrapBlazor/Components/Timeline/TimelineItem.cs @@ -6,50 +6,50 @@ namespace BootstrapBlazor.Components; /// -/// 时间线选项 -/// 时间线选项 +/// 时间线项目选项 +/// Timeline Item /// public class TimelineItem { /// /// 获得/设置 时间线内容 - /// Gets or sets 时间线content + /// Gets or sets the timeline content /// public string? Content { get; set; } /// /// 获得/设置 时间线描述 - /// Gets or sets 时间线描述 + /// Gets or sets the timeline description /// public string? Description { get; set; } /// /// 获得/设置 时间线描述模板 - /// Gets or sets 时间线描述template + /// Gets or sets the description template /// public RenderFragment? DescriptionTemplate { get; set; } /// /// 获得/设置 时间线颜色 - /// Gets or sets 时间线color + /// Gets or sets the timeline color /// public Color Color { get; set; } /// /// 获得/设置 时间线图标 - /// Gets or sets 时间线icon + /// Gets or sets the timeline icon /// public string? Icon { get; set; } /// /// 获得/设置 自定义组件 - /// Gets or sets 自定义component + /// Gets or sets the custom component /// public BootstrapDynamicComponent? Component { get; set; } /// /// 获得 时间线节点样式 - /// Gets 时间线节点style + /// Gets the timeline node style /// internal string? ToNodeClassString() => CssBuilder.Default("timeline-item-node-normal timeline-item-node") .AddClass($"bg-{Color.ToDescriptionString()}", Color != Color.None && string.IsNullOrEmpty(Icon)) @@ -58,7 +58,7 @@ public class TimelineItem /// /// 获得 图标样式 - /// Gets iconstyle + /// Gets the icon style /// /// internal string? ToIconClassString() => CssBuilder.Default("timeline-item-icon") diff --git a/src/BootstrapBlazor/Components/Timer/Timer.razor.cs b/src/BootstrapBlazor/Components/Timer/Timer.razor.cs index e70e86e7513..0a7955fb31a 100644 --- a/src/BootstrapBlazor/Components/Timer/Timer.razor.cs +++ b/src/BootstrapBlazor/Components/Timer/Timer.razor.cs @@ -9,14 +9,14 @@ namespace BootstrapBlazor.Components; /// /// Timer 组件 -/// Timer component +/// Timer Component /// [BootstrapModuleAutoLoader(ModuleName = "utility", AutoInvokeInit = false, AutoInvokeDispose = false)] public partial class Timer { /// /// 获得 组件样式字符串 - /// Gets componentstyle字符串 + /// Gets the component style string /// protected override string? ClassString => CssBuilder.Default("timer") .AddClass(base.ClassString) @@ -27,20 +27,12 @@ public partial class Timer .AddClass("btn-success", IsPause) .Build(); - /// - /// 获得/设置 当前进度值 - /// Gets or sets 当前进度值 - /// private string? ValueString => $"{Math.Round(((1 - CurrentTimespan.TotalSeconds * 1.0 / Value.TotalSeconds) * CircleLength), 2)}"; private TimeSpan CurrentTimespan { get; set; } private bool IsPause { get; set; } - /// - /// 获得/设置 Title 字符串 - /// Gets or sets Title 字符串 - /// private string ValueTitleString => CurrentTimespan.Hours == 0 ? $"{CurrentTimespan:mm\\:ss}" : $"{CurrentTimespan:hh\\:mm\\:ss}"; private string? AlertTime { get; set; } @@ -51,55 +43,55 @@ public partial class Timer /// /// 获得/设置 当前值 - /// Gets or sets 当前值 + /// Gets or sets the current value /// 10.2.2 /// [Parameter] public TimeSpan Value { get; set; } /// - /// 获得/设置 文件预览框宽度 - /// Gets or sets 文件预览框width + /// 获得/设置 组件宽度 + /// Gets or sets the component width /// 10.2.2 /// [Parameter] public override int Width { get; set; } = 300; /// - /// 获得/设置 倒计时结束时回调委托 - /// Gets or sets 倒计时结束时回调delegate + /// 获得/设置 倒计时结束时的回调委托 + /// Gets or sets the callback delegate when the countdown ends /// 10.2.2 /// [Parameter] public Func? OnTimeout { get; set; } /// - /// 获得/设置 取消时回调委托 - /// Gets or sets 取消时回调delegate + /// 获得/设置 取消时的回调委托 + /// Gets or sets the callback delegate when cancelled /// 10.2.2 /// [Parameter] public Func? OnCancel { get; set; } /// - /// 获得/设置 进度条宽度 默认为 2 - /// Gets or sets 进度条width Default is为 2 + /// 获得/设置 进度条宽度,默认为 6 + /// Gets or sets the progress bar width. Default is 6. /// 10.2.2 /// [Parameter] public override int StrokeWidth { get; set; } = 6; /// - /// 获得/设置 倒计时结束时设备震动 - /// Gets or sets 倒计时结束时设备震动 + /// 获得/设置 倒计时结束时是否设备震动 + /// Gets or sets whether the device vibrates when the countdown ends /// 10.2.2 /// [Parameter] public bool IsVibrate { get; set; } = true; /// - /// 获得/设置 暂停按钮文字 - /// Gets or sets 暂停button文字 + /// 获得/设置 暂停按钮显示文字 + /// Gets or sets the pause button display text /// 10.2.2 /// [Parameter] @@ -107,8 +99,8 @@ public partial class Timer public string? PauseText { get; set; } /// - /// 获得/设置 继续按钮文字 - /// Gets or sets 继续button文字 + /// 获得/设置 继续按钮显示文字 + /// Gets or sets the resume button display text /// 10.2.2 /// [Parameter] @@ -116,8 +108,8 @@ public partial class Timer public string? ResumeText { get; set; } /// - /// 获得/设置 取消按钮文字 - /// Gets or sets 取消button文字 + /// 获得/设置 取消按钮显示文字 + /// Gets or sets the cancel button display text /// 10.2.2 /// [Parameter] @@ -125,8 +117,8 @@ public partial class Timer public string? CancelText { get; set; } /// - /// 获得/设置 取消按钮文字 - /// Gets or sets 取消button文字 + /// 获得/设置 开始按钮显示文字 + /// Gets or sets the start button display text /// 10.2.2 /// [Parameter] @@ -135,7 +127,7 @@ public partial class Timer /// /// 获得/设置 Alert 图标 - /// Gets or sets Alert icon + /// Gets or sets the alert icon /// 10.2.2 /// [Parameter] @@ -168,7 +160,6 @@ protected override void OnParametersSet() /// /// /// - /// protected override async Task OnAfterRenderAsync(bool firstRender) { await base.OnAfterRenderAsync(firstRender); @@ -179,10 +170,6 @@ protected override async Task OnAfterRenderAsync(bool firstRender) } } - /// - /// - /// - /// private async Task Timeout() { if (Vibrate) @@ -262,8 +249,7 @@ private async Task OnClickCancel() } /// - /// Dispose 方法 - /// Dispose 方法 + /// /// /// protected override async ValueTask DisposeAsync(bool disposing) diff --git a/src/BootstrapBlazor/Components/Title/Title.cs b/src/BootstrapBlazor/Components/Title/Title.cs index db2197dcfad..1d4cff0067a 100644 --- a/src/BootstrapBlazor/Components/Title/Title.cs +++ b/src/BootstrapBlazor/Components/Title/Title.cs @@ -7,7 +7,7 @@ namespace BootstrapBlazor.Components; /// /// Title 组件 -/// Title component +/// Title Component /// public class Title : ComponentBase { @@ -17,7 +17,7 @@ public class Title : ComponentBase /// /// 获得/设置 当前页标题文字 - /// Gets or sets 当前页标题文字 + /// Gets or sets the current page title text /// 10.2.2 /// [Parameter] @@ -27,7 +27,6 @@ public class Title : ComponentBase /// /// /// - /// protected override async Task OnAfterRenderAsync(bool firstRender) { await base.OnAfterRenderAsync(firstRender); diff --git a/src/BootstrapBlazor/Components/Toast/Toast.razor.cs b/src/BootstrapBlazor/Components/Toast/Toast.razor.cs index c50f8be3839..ea6a950c65c 100644 --- a/src/BootstrapBlazor/Components/Toast/Toast.razor.cs +++ b/src/BootstrapBlazor/Components/Toast/Toast.razor.cs @@ -6,38 +6,22 @@ namespace BootstrapBlazor.Components; /// -/// ToastBox 组件 -/// ToastBox component +/// Toast 组件 +/// Toast Component /// public partial class Toast { - /// - /// 获得/设置 弹出框类型 - /// Gets or sets 弹出框type - /// private string? AutoHide => Options.IsAutoHide ? null : "false"; - /// - /// 获得/设置 弹出框类型 - /// Gets or sets 弹出框type - /// private string? ClassString => CssBuilder.Default("toast") .AddClass(Options.ClassString) .AddClassFromAttributes(AdditionalAttributes) .Build(); - /// - /// 获得/设置 进度条样式 - /// Gets or sets 进度条style - /// private string? ProgressClass => CssBuilder.Default("toast-progress") .AddClass($"bg-{Options.Category.ToDescriptionString()}") .Build(); - /// - /// 获得/设置 图标样式 - /// Gets or sets iconstyle - /// private string? IconString => CssBuilder.Default() .AddClass(Options.SuccessIcon, Options.Category == ToastCategory.Success) .AddClass(Options.InformationIcon, Options.Category == ToastCategory.Information) @@ -55,21 +39,13 @@ public partial class Toast private string? StyleString => CssBuilder.Default(Options.StyleString) .Build(); - /// - /// 获得/设置 弹出框自动关闭时长 - /// Gets or sets 弹出框自动关闭时长 - /// private string? DelayString => Options.IsAutoHide ? Options.Delay.ToString() : null; - /// - /// 获得/设置 是否开启动画效果 - /// Gets or sets whether开启动画效果 - /// private string? AnimationString => Options.Animation ? null : "false"; /// /// 获得/设置 ToastOption 实例 - /// Gets or sets ToastOption instance + /// Gets or sets the ToastOption instance /// 10.2.2 /// [Parameter] @@ -77,11 +53,6 @@ public partial class Toast [EditorRequired] public ToastOption? Options { get; set; } - /// - /// 获得/设置 Toast 实例 - /// Gets or sets Toast instance - /// - /// [CascadingParameter] private ToastContainer? ToastContainer { get; set; } @@ -128,12 +99,11 @@ protected override async Task OnAfterRenderAsync(bool firstRender) /// /// /// - /// protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id, Interop, nameof(Close)); /// - /// 清除 ToastBox 方法 - /// 清除 ToastBox 方法 + /// 关闭 Toast 方法 + /// Closes the Toast /// [JSInvokable] public async Task Close() diff --git a/src/BootstrapBlazor/Components/Toast/ToastContainer.razor.cs b/src/BootstrapBlazor/Components/Toast/ToastContainer.razor.cs index 6fdec54e23b..f0d6fe72bf2 100644 --- a/src/BootstrapBlazor/Components/Toast/ToastContainer.razor.cs +++ b/src/BootstrapBlazor/Components/Toast/ToastContainer.razor.cs @@ -6,8 +6,8 @@ namespace BootstrapBlazor.Components; /// -/// Toast 弹出窗组件 -/// Toast 弹出窗component +/// Toast 弹出窗容器组件 +/// Toast Popup Window Container Component /// public partial class ToastContainer : IDisposable { @@ -24,15 +24,11 @@ public partial class ToastContainer : IDisposable .AddClassFromAttributes(AdditionalAttributes) .Build(); - /// - /// 获得 弹出窗集合 - /// Gets 弹出窗collection - /// private List Toasts { get; } = []; /// - /// 获得/设置 显示文字 - /// Gets or sets display文字 + /// 获得/设置 弹出窗位置 + /// Gets or sets the popup window placement /// 10.2.2 /// [Parameter] @@ -48,8 +44,8 @@ public partial class ToastContainer : IDisposable private IOptionsMonitor? Options { get; set; } /// - /// OnInitialized 方法 - /// OnInitialized 方法 + /// 组件初始化方法 + /// Component initialization method /// protected override void OnInitialized() { @@ -81,8 +77,8 @@ private async Task Show(ToastOption option) } /// - /// 关闭弹窗 - /// 关闭弹窗 + /// 关闭弹窗方法 + /// Closes the popup window /// /// public async Task Close(ToastOption option) @@ -97,7 +93,7 @@ public async Task Close(ToastOption option) /// /// 设置 Toast 容器位置方法 - /// Sets Toast 容器位置方法 + /// Sets the Toast container position /// /// public void SetPlacement(Placement placement) @@ -108,7 +104,7 @@ public void SetPlacement(Placement placement) /// /// Dispose 方法 - /// Dispose 方法 + /// Dispose Method /// /// protected virtual void Dispose(bool disposing) @@ -121,7 +117,7 @@ protected virtual void Dispose(bool disposing) /// /// Dispose 方法 - /// Dispose 方法 + /// Dispose Method /// public void Dispose() { diff --git a/src/BootstrapBlazor/Components/Toast/ToastOption.cs b/src/BootstrapBlazor/Components/Toast/ToastOption.cs index b5314e382cb..1feafd98b18 100644 --- a/src/BootstrapBlazor/Components/Toast/ToastOption.cs +++ b/src/BootstrapBlazor/Components/Toast/ToastOption.cs @@ -7,109 +7,109 @@ namespace BootstrapBlazor.Components; /// /// Toast 弹出窗参数配置类 -/// Toast 弹出窗参数配置类 +/// Toast Popup Window Option Class /// public class ToastOption : PopupOptionBase { /// /// 获得/设置 弹窗载体 - /// Gets or sets 弹窗载体 + /// Gets or sets the toast popup carrier /// internal Toast? Toast { get; set; } /// /// 获得/设置 弹出框类型 - /// Gets or sets 弹出框type + /// Gets or sets the popup type /// public ToastCategory Category { get; set; } /// /// 获得/设置 成功图标 - /// Gets or sets 成功icon + /// Gets or sets the success icon /// public string? SuccessIcon { get; set; } /// /// 获得/设置 提示图标 - /// Gets or sets 提示icon + /// Gets or sets the information icon /// public string? InformationIcon { get; set; } /// /// 获得/设置 错误图标 - /// Gets or sets 错误icon + /// Gets or sets the error icon /// public string? ErrorIcon { get; set; } /// /// 获得/设置 警告图标 - /// Gets or sets 警告icon + /// Gets or sets the warning icon /// public string? WarningIcon { get; set; } /// /// 获得/设置 显示标题 - /// Gets or sets display标题 + /// Gets or sets the display title /// public string? Title { get; set; } /// /// 获得/设置 子组件 - /// Gets or sets 子component + /// Gets or sets the child component /// public RenderFragment? ChildContent { get; set; } /// - /// 获得/设置 是否显示关闭按钮 默认 true - /// Gets or sets whetherdisplay关闭button Default is true + /// 获得/设置 是否显示关闭按钮,默认 true + /// Gets or sets whether to show the close button. Default is true. /// public bool ShowClose { get; set; } = true; /// - /// 获得/设置 是否显示 Header 默认 true - /// Gets or sets whetherdisplay Header Default is true + /// 获得/设置 是否显示 Header,默认 true + /// Gets or sets whether to show the header. Default is true. /// public bool ShowHeader { get; set; } = true; /// - /// 获得/设置 是否阻止重复消息 默认 false - /// Gets or sets whether阻止重复消息 Default is false + /// 获得/设置 是否阻止重复消息,默认 false + /// Gets or sets whether to prevent duplicate messages. Default is false. /// public bool PreventDuplicates { get; set; } /// - /// 获得/设置 Header 模板 默认为 null - /// Gets or sets Header template Default is为 null + /// 获得/设置 Header 模板,默认为 null + /// Gets or sets the header template. Default is null. /// public RenderFragment? HeaderTemplate { get; set; } /// - /// 获得/设置 是否开启动画 默认 true - /// Gets or sets whether开启动画 Default is true + /// 获得/设置 是否开启动画,默认 true + /// Gets or sets whether to enable animation. Default is true. /// public bool Animation { get; set; } = true; /// - /// 获得/设置 关闭当前 Toast 回调委托 默认 null - /// Gets or sets 关闭当前 Toast 回调delegate Default is null + /// 获得/设置 关闭当前 Toast 回调委托,默认 null + /// Gets or sets the callback delegate to close the current Toast. Default is null. /// public Func? OnCloseAsync { get; set; } /// - /// 获得/设置 附加 style 字符串到 元素上 - /// Gets or sets 附加 style 字符串到 元素上 + /// 获得/设置 附加 style 字符串到 Toast 元素上 + /// Gets or sets the additional style string to append to the Toast element /// public string? StyleString { get; set; } /// - /// 获得/设置 附加 class 字符串到 元素上 - /// Gets or sets 附加 class 字符串到 元素上 + /// 获得/设置 附加 class 字符串到 Toast 元素上 + /// Gets or sets the additional class string to append to the Toast element /// public string? ClassString { get; set; } /// /// 关闭当前弹窗方法 - /// 关闭当前弹窗方法 + /// Closes the current popup window /// public async Task Close() { diff --git a/src/BootstrapBlazor/Components/Toast/ToastService.cs b/src/BootstrapBlazor/Components/Toast/ToastService.cs index c059bc777ba..1070cb1df07 100644 --- a/src/BootstrapBlazor/Components/Toast/ToastService.cs +++ b/src/BootstrapBlazor/Components/Toast/ToastService.cs @@ -7,17 +7,17 @@ namespace BootstrapBlazor.Components; /// /// Toast 弹出窗服务类 -/// Toast 弹出窗服务类 +/// Toast Popup Window Service Class /// /// public class ToastService(IOptionsMonitor options) : BootstrapServiceBase { /// - /// Show 方法 - /// Show 方法 + /// 显示 Toast 弹窗方法 + /// Shows the Toast popup window /// /// - /// 指定弹窗组件 默认为 null 使用 组件内置弹窗组件指定弹窗component default is为 null 使用 component内置弹窗component + /// 指定弹窗组件,默认为 null 使用 BootstrapBlazorRoot 组件内置弹窗组件Specifies the popup component. Default is null (uses the built-in popup component in BootstrapBlazorRoot) public async Task Show(ToastOption option, ToastContainer? toastContainer = null) { if (!option.ForceDelay && options.CurrentValue.ToastDelay != 0) diff --git a/src/BootstrapBlazor/Components/Toggle/Toggle.razor.cs b/src/BootstrapBlazor/Components/Toggle/Toggle.razor.cs index 17f9bfa2b33..adce8f79b53 100644 --- a/src/BootstrapBlazor/Components/Toggle/Toggle.razor.cs +++ b/src/BootstrapBlazor/Components/Toggle/Toggle.razor.cs @@ -8,8 +8,8 @@ namespace BootstrapBlazor.Components; /// -/// -/// +/// Toggle 组件 +/// Toggle Component /// public partial class Toggle { @@ -27,8 +27,8 @@ public partial class Toggle .Build(); /// - /// 获得/设置 组件颜色 默认为 Success 颜色 - /// Gets or sets componentcolor Default is为 Success color + /// 获得/设置 组件颜色,默认为 Success + /// Gets or sets the component color. Default is Success. /// 10.2.2 /// [Parameter] @@ -39,8 +39,7 @@ public partial class Toggle private IStringLocalizer? Localizer { get; set; } /// - /// OnInitialized 方法 - /// OnInitialized 方法 + /// /// protected override void OnInitialized() { @@ -50,10 +49,6 @@ protected override void OnInitialized() OffText ??= Localizer[nameof(OffText)]; } - /// - /// 点击控件时触发此方法 - /// 点击控件时触发此方法 - /// private async Task OnClick() { if (!IsDisabled) diff --git a/src/BootstrapBlazor/Components/Toggle/ToggleBase.cs b/src/BootstrapBlazor/Components/Toggle/ToggleBase.cs index 83be89380e8..3e15315c100 100644 --- a/src/BootstrapBlazor/Components/Toggle/ToggleBase.cs +++ b/src/BootstrapBlazor/Components/Toggle/ToggleBase.cs @@ -6,14 +6,14 @@ namespace BootstrapBlazor.Components; /// -/// Toggle 开关组件 -/// Toggle 开关component +/// Toggle 开关组件基类 +/// Toggle Component Base Class /// public class ToggleBase : ValidateBase { /// - /// 获得 Style 集合 - /// Gets Style collection + /// 获得 样式集合 + /// Gets the style collection /// protected virtual string? StyleName => CssBuilder.Default() .AddClass($"width: {Width}px;", Width > 0) @@ -21,15 +21,15 @@ public class ToggleBase : ValidateBase /// /// 获得/设置 组件宽度 - /// Gets or sets componentwidth + /// Gets or sets the component width /// 10.2.2 /// [Parameter] public virtual int Width { get; set; } = 120; /// - /// 获得/设置 组件 On 时显示文本 - /// Gets or sets component On 时display文本 + /// 获得/设置 组件 On 时显示的文本 + /// Gets or sets the text to display when the component is On /// 10.2.2 /// [Parameter] @@ -37,8 +37,8 @@ public class ToggleBase : ValidateBase public virtual string? OnText { get; set; } /// - /// 获得/设置 组件 Off 时显示文本 - /// Gets or sets component Off 时display文本 + /// 获得/设置 组件 Off 时显示的文本 + /// Gets or sets the text to display when the component is Off /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Toolbar/Toolbar.razor.cs b/src/BootstrapBlazor/Components/Toolbar/Toolbar.razor.cs index e877a71a30f..40caeb143e0 100644 --- a/src/BootstrapBlazor/Components/Toolbar/Toolbar.razor.cs +++ b/src/BootstrapBlazor/Components/Toolbar/Toolbar.razor.cs @@ -7,13 +7,13 @@ namespace BootstrapBlazor.Components; /// /// Toolbar 组件用于显示工具栏内容 -/// Toolbar component用于display工具栏content +/// Toolbar Component for displaying toolbar content /// public partial class Toolbar { /// - /// 获得/设置 是否允许换行显示工具栏内容 默认 false - /// Gets or sets whether允许换行display工具栏content Default is false + /// 获得/设置 是否允许换行显示工具栏内容,默认 false + /// Gets or sets whether to allow toolbar content wrapping. Default is false. /// 10.2.2 /// [Parameter] @@ -21,7 +21,7 @@ public partial class Toolbar /// /// 获得/设置 子组件模板 - /// Gets or sets 子componenttemplate + /// Gets or sets the child component template /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Toolbar/ToolbarButtonGroup.razor.cs b/src/BootstrapBlazor/Components/Toolbar/ToolbarButtonGroup.razor.cs index 5c36d8ae479..f9b936b01dc 100644 --- a/src/BootstrapBlazor/Components/Toolbar/ToolbarButtonGroup.razor.cs +++ b/src/BootstrapBlazor/Components/Toolbar/ToolbarButtonGroup.razor.cs @@ -6,14 +6,14 @@ namespace BootstrapBlazor.Components; /// -/// ToolbarGroup 组件用于在工具栏中添加一组按钮 -/// ToolbarGroup component用于在工具栏中添加一组button +/// ToolbarButtonGroup 组件用于在工具栏中添加一组按钮 +/// ToolbarButtonGroup Component for adding a group of buttons in the toolbar /// public partial class ToolbarButtonGroup { /// /// 获得/设置 子组件模板 - /// Gets or sets 子componenttemplate + /// Gets or sets the child component template /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Toolbar/ToolbarItem.razor.cs b/src/BootstrapBlazor/Components/Toolbar/ToolbarItem.razor.cs index 7b7f1e828a6..0a2bee646ae 100644 --- a/src/BootstrapBlazor/Components/Toolbar/ToolbarItem.razor.cs +++ b/src/BootstrapBlazor/Components/Toolbar/ToolbarItem.razor.cs @@ -7,13 +7,13 @@ namespace BootstrapBlazor.Components; /// /// ToolbarItem 组件用于在工具栏中添加子组件 -/// ToolbarItem component用于在工具栏中添加子component +/// ToolbarItem Component for adding child components in the toolbar /// public partial class ToolbarItem { /// /// 获得/设置 子组件模板 - /// Gets or sets 子componenttemplate + /// Gets or sets the child component template /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Toolbar/ToolbarSeparator.razor.cs b/src/BootstrapBlazor/Components/Toolbar/ToolbarSeparator.razor.cs index 9ec931c15b1..694109fc808 100644 --- a/src/BootstrapBlazor/Components/Toolbar/ToolbarSeparator.razor.cs +++ b/src/BootstrapBlazor/Components/Toolbar/ToolbarSeparator.razor.cs @@ -7,7 +7,7 @@ namespace BootstrapBlazor.Components; /// /// ToolbarSeparator 组件用于在工具栏中添加分隔符 -/// ToolbarSeparator component用于在工具栏中添加分隔符 +/// ToolbarSeparator Component for adding separators in the toolbar /// public partial class ToolbarSeparator { diff --git a/src/BootstrapBlazor/Components/Toolbar/ToolbarSpace.razor.cs b/src/BootstrapBlazor/Components/Toolbar/ToolbarSpace.razor.cs index abe0080c646..f67737d5318 100644 --- a/src/BootstrapBlazor/Components/Toolbar/ToolbarSpace.razor.cs +++ b/src/BootstrapBlazor/Components/Toolbar/ToolbarSpace.razor.cs @@ -7,7 +7,7 @@ namespace BootstrapBlazor.Components; /// /// ToolbarSpace 组件用于在工具栏中添加空白空间 -/// ToolbarSpace component用于在工具栏中添加空白空间 +/// ToolbarSpace Component for adding whitespace in the toolbar /// public partial class ToolbarSpace { diff --git a/src/BootstrapBlazor/Components/Tooltip/ITooltip.cs b/src/BootstrapBlazor/Components/Tooltip/ITooltip.cs index 4eb0f6135b2..de7b1191fc2 100644 --- a/src/BootstrapBlazor/Components/Tooltip/ITooltip.cs +++ b/src/BootstrapBlazor/Components/Tooltip/ITooltip.cs @@ -7,58 +7,66 @@ namespace BootstrapBlazor.Components; /// /// ITooltip 接口 -/// ITooltip 接口 +/// ITooltip Interface /// public interface ITooltip { /// /// 获得/设置 位置 - /// Gets or sets 位置 + /// Gets or sets the placement + /// 10.2.2 /// Placement Placement { get; set; } /// /// 获得/设置 显示内容 - /// Gets or sets displaycontent + /// Gets or sets the display content + /// 10.2.2 /// string? Title { get; set; } /// - /// 获得/设置 内容是否为 Html 默认 false - /// Gets or sets contentwhether为 Html Default is false + /// 获得/设置 内容是否为 Html,默认 false + /// Gets or sets whether the content is HTML. Default is false. + /// 10.2.2 /// bool IsHtml { get; set; } /// - /// 获得/设置 触发方式 可组合 click focus hover manual 默认为 focus hover - /// Gets or sets 触发方式 可组合 click focus hover manual Default is为 focus hover + /// 获得/设置 触发方式,可组合 click focus hover manual,默认为 focus hover + /// Gets or sets the trigger method. Can be combined: click, focus, hover, manual. Default is focus hover. + /// 10.2.2 /// /// 设置 manual 时,请使用 组件实例方法 对弹窗状态进行控制 string? Trigger { get; set; } /// - /// 获得/设置 自定义样式 默认 null - /// Gets or sets 自定义style Default is null + /// 获得/设置 自定义样式,默认 null + /// Gets or sets the custom style. Default is null. + /// 10.2.2 /// /// 由 data-bs-custom-class 实现 string? CustomClass { get; set; } /// - /// 获得/设置 显示隐藏延时 默认 null - /// Gets or sets display隐藏延时 Default is null + /// 获得/设置 显示隐藏延时,默认 null + /// Gets or sets the show/hide delay. Default is null. + /// 10.2.2 /// - /// Delay showing and hiding the tooltip (ms)—doesn’t apply to manual trigger type. If a number is supplied, delay is applied to both hide/show. Object structure is: delay: { "show": 500, "hide": 100 }. + /// Delay showing and hiding the tooltip (ms)—doesn't apply to manual trigger type. If a number is supplied, delay is applied to both hide/show. Object structure is: delay: { "show": 500, "hide": 100 }. string? Delay { get; set; } /// - /// 获得/设置 是否对 进行关键字过滤 默认 true - /// Gets or sets whether对 进行关键字过滤 Default is true + /// 获得/设置 是否对 Title 进行关键字过滤,默认 true + /// Gets or sets whether to filter the Title by keyword. Default is true. + /// 10.2.2 /// bool Sanitize { get; set; } /// /// 获得/设置 元素选择器 - /// Gets or sets 元素选择器 + /// Gets or sets the element selector + /// 10.2.2 /// string? Selector { get; set; } } diff --git a/src/BootstrapBlazor/Components/Tooltip/Tooltip.razor.cs b/src/BootstrapBlazor/Components/Tooltip/Tooltip.razor.cs index d1f527cbfe5..8b54377f7aa 100644 --- a/src/BootstrapBlazor/Components/Tooltip/Tooltip.razor.cs +++ b/src/BootstrapBlazor/Components/Tooltip/Tooltip.razor.cs @@ -7,25 +7,25 @@ namespace BootstrapBlazor.Components; /// /// Tooltip 组件 -/// Tooltip component +/// Tooltip Component /// public partial class Tooltip : ITooltip { /// /// 弹窗位置字符串 - /// 弹窗位置字符串 + /// Popup Position String /// protected string? PlacementString => Placement == Placement.Auto ? null : Placement.ToDescriptionString(); /// - /// 获得 是否关键字过滤字符串 - /// Gets whether关键字过滤字符串 + /// 获得 是否进行关键字过滤字符串 + /// Gets the keyword filter string /// protected string? SanitizeString => Sanitize ? null : "false"; /// - /// 获得 是否 Html 字符串 - /// Gets whether Html 字符串 + /// 获得 是否为 Html 字符串 + /// Gets the HTML string flag /// protected string? HtmlString => IsHtml ? "true" : null; @@ -35,34 +35,31 @@ public partial class Tooltip : ITooltip /// /// fallbackPlacements 参数 - /// fallbackPlacements 参数 + /// fallbackPlacements Parameter /// protected string? FallbackPlacementsString => FallbackPlacements != null ? string.Join(",", FallbackPlacements) : null; /// /// - /// 10.2.2 /// [Parameter] public string? Delay { get; set; } /// /// - /// 10.2.2 /// [Parameter] public string? Selector { get; set; } /// /// - /// 10.2.2 /// [Parameter] public string? Title { get; set; } /// - /// 获得/设置 获得显示内容异步回调方法 默认 null - /// Gets or sets Getsdisplaycontent异步callback method Default is null + /// 获得/设置 获取显示内容的异步回调方法,默认 null + /// Gets or sets the callback method to get display content asynchronously. Default is null. /// 10.2.2 /// [Parameter] @@ -70,36 +67,33 @@ public partial class Tooltip : ITooltip /// /// - /// 10.2.2 /// [Parameter] public bool IsHtml { get; set; } /// /// - /// 10.2.2 /// [Parameter] public bool Sanitize { get; set; } = true; /// /// - /// 10.2.2 /// [Parameter] public Placement Placement { get; set; } = Placement.Top; /// - /// 获得/设置 位置 默认为 null - /// Gets or sets 位置 Default is为 null + /// 获得/设置 位置,默认为 null + /// Gets or sets the placement. Default is null. /// 10.2.2 /// [Parameter] public string[]? FallbackPlacements { get; set; } /// - /// 获得/设置 偏移量 默认为 null - /// Gets or sets 偏移量 Default is为 null + /// 获得/设置 偏移量,默认为 null + /// Gets or sets the offset. Default is null. /// 10.2.2 /// [Parameter] @@ -107,21 +101,19 @@ public partial class Tooltip : ITooltip /// /// - /// 10.2.2 /// [Parameter] public string? CustomClass { get; set; } /// /// - /// 10.2.2 /// [Parameter] public string? Trigger { get; set; } /// /// 获得/设置 子组件 - /// Gets or sets 子component + /// Gets or sets the child component /// 10.2.2 /// [Parameter] @@ -140,7 +132,6 @@ protected override void OnParametersSet() /// /// /// - /// protected override async Task OnParametersSetAsync() { await base.OnParametersSetAsync(); @@ -153,7 +144,7 @@ protected override async Task OnParametersSetAsync() /// /// 设置参数方法 - /// Sets参数方法 + /// Sets the parameters /// public void SetParameters(string title, Placement placement = Placement.Auto, string? trigger = null, string? customClass = null, bool? isHtml = null, bool? sanitize = null, string? delay = null, string? selector = null, string? offset = null) { @@ -172,25 +163,24 @@ public void SetParameters(string title, Placement placement = Placement.Auto, st /// /// 显示 Tooltip 弹窗方法 - /// display Tooltip 弹窗方法 + /// Shows the Tooltip popup /// - /// 延时指定毫秒后显示弹窗 默认 null 不延时延时指定毫秒后display弹窗 default is null 不延时 - /// + /// 延时指定毫秒后显示弹窗,默认 null 不延时Delay showing the popup for specified milliseconds. Default is null (no delay). public Task Show(int? delay = null) => InvokeVoidAsync("show", Id, delay); /// /// 关闭 Tooltip 弹窗方法 - /// 关闭 Tooltip 弹窗方法 + /// Hides the Tooltip popup /// - /// 延时指定毫秒后关闭弹窗 默认 null 不延时延时指定毫秒后关闭弹窗 default is null 不延时 + /// 延时指定毫秒后关闭弹窗,默认 null 不延时Delay hiding the popup for specified milliseconds. Default is null (no delay). /// public Task Hide(int? delay = null) => InvokeVoidAsync("hide", Id, delay); /// /// 切换 Tooltip 弹窗当前状态方法 - /// 切换 Tooltip 弹窗当前状态方法 + /// Toggles the Tooltip popup state /// - /// 延时指定毫秒后切换弹窗方法 默认 null 不延时延时指定毫秒后切换弹窗method default is null 不延时 + /// 延时指定毫秒后切换弹窗状态,默认 null 不延时Delay toggling the popup state for specified milliseconds. Default is null (no delay). /// public Task Toggle(int? delay = null) => InvokeVoidAsync("toggle", Id, delay); } diff --git a/src/BootstrapBlazor/Components/Tooltip/TooltipWrapperBase.cs b/src/BootstrapBlazor/Components/Tooltip/TooltipWrapperBase.cs index 1ce65a564ac..4889e7c6cf5 100644 --- a/src/BootstrapBlazor/Components/Tooltip/TooltipWrapperBase.cs +++ b/src/BootstrapBlazor/Components/Tooltip/TooltipWrapperBase.cs @@ -7,48 +7,48 @@ namespace BootstrapBlazor.Components; /// /// TooltipWrapperBase 基类 -/// TooltipWrapperBase 基类 +/// TooltipWrapperBase Base Class /// public abstract class TooltipWrapperBase : BootstrapModuleComponentBase { /// /// Tooltip 弹窗位置字符串 - /// Tooltip 弹窗位置字符串 + /// Tooltip Popup Position String /// protected virtual string? PlacementString => (!string.IsNullOrEmpty(TooltipText) && TooltipPlacement != Placement.Auto) ? TooltipPlacement.ToDescriptionString() : null; /// - /// Tooltip Trigger 字符串 - /// Tooltip Trigger 字符串 + /// Tooltip 触发方式字符串 + /// Tooltip Trigger String /// protected virtual string? TriggerString => TooltipTrigger == "hover focus" ? null : TooltipTrigger; /// - /// the 实例 of Tooltip component - /// the instance of Tooltip component + /// 获得 Tooltip 组件实例 + /// Gets the Tooltip component instance /// [CascadingParameter] protected Tooltip? Tooltip { get; set; } /// - /// 获得/设置 TooltipText 显示文字 默认为 null - /// Gets or sets TooltipText display文字 Default is为 null + /// 获得/设置 Tooltip 显示文字,默认为 null + /// Gets or sets the Tooltip display text. Default is null. /// 10.2.2 /// [Parameter] public string? TooltipText { get; set; } /// - /// 获得/设置 Tooltip 显示位置 默认为 Top - /// Gets or sets Tooltip display位置 Default is为 Top + /// 获得/设置 Tooltip 显示位置,默认为 Top + /// Gets or sets the Tooltip display position. Default is Top. /// 10.2.2 /// [Parameter] public Placement TooltipPlacement { get; set; } = Placement.Top; /// - /// 获得/设置 Tooltip 触发方式 默认为 hover focus - /// Gets or sets Tooltip 触发方式 Default is为 hover focus + /// 获得/设置 Tooltip 触发方式,默认为 hover focus + /// Gets or sets the Tooltip trigger method. Default is hover focus. /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Transfer/Transfer.razor.cs b/src/BootstrapBlazor/Components/Transfer/Transfer.razor.cs index fef14eea5db..66c603901c1 100644 --- a/src/BootstrapBlazor/Components/Transfer/Transfer.razor.cs +++ b/src/BootstrapBlazor/Components/Transfer/Transfer.razor.cs @@ -8,8 +8,8 @@ namespace BootstrapBlazor.Components; /// -/// 穿梭框组件 -/// 穿梭框component +/// Transfer 组件(穿梭框) +/// Transfer Component /// public partial class Transfer { @@ -18,16 +18,16 @@ public partial class Transfer private IStringLocalizer>? Localizer { get; set; } /// - /// 获得/设置 按钮文本样式 - /// Gets or sets button文本style + /// 获得/设置 左侧按钮样式 + /// Gets or sets the left button style /// private string? LeftButtonClassName => CssBuilder.Default() .AddClass("d-none", string.IsNullOrEmpty(LeftButtonText)) .Build(); /// - /// 获得/设置 按钮文本样式 - /// Gets or sets button文本style + /// 获得/设置 右侧按钮样式 + /// Gets or sets the right button style /// private string? RightButtonClassName => CssBuilder.Default("me-1") .AddClass("d-none", string.IsNullOrEmpty(RightButtonText)) @@ -39,19 +39,20 @@ public partial class Transfer /// /// 获得/设置 左侧数据集合 - /// Gets or sets 左侧datacollection + /// Gets or sets the left data collection /// private List LeftItems { get; } = []; /// /// 获得/设置 右侧数据集合 - /// Gets or sets 右侧datacollection + /// Gets or sets the right data collection /// private List RightItems { get; } = []; + /// /// 获得/设置 组件绑定数据项集合 - /// Gets or sets component绑定data项collection + /// Gets or sets the component bound data item collection /// 10.2.2 /// [Parameter] @@ -61,7 +62,7 @@ public partial class Transfer /// /// 获得/设置 选中项集合发生改变时回调委托方法 - /// Gets or sets 选中项collection发生改变时回调delegate方法 + /// Gets or sets the callback method when the selected items collection changes /// 10.2.2 /// [Parameter] @@ -69,7 +70,7 @@ public partial class Transfer /// /// 获得/设置 左侧面板 Header 显示文本 - /// Gets or sets 左侧面板 Header display文本 + /// Gets or sets the left panel header display text /// 10.2.2 /// [Parameter] @@ -77,7 +78,7 @@ public partial class Transfer /// /// 获得/设置 右侧面板 Header 显示文本 - /// Gets or sets 右侧面板 Header display文本 + /// Gets or sets the right panel header display text /// 10.2.2 /// [Parameter] @@ -85,7 +86,7 @@ public partial class Transfer /// /// 获得/设置 向左侧转移图标 - /// Gets or sets 向左侧转移icon + /// Gets or sets the left transfer icon /// 10.2.2 /// [Parameter] @@ -93,7 +94,7 @@ public partial class Transfer /// /// 获得/设置 向右侧转移图标 - /// Gets or sets 向右侧转移icon + /// Gets or sets the right transfer icon /// 10.2.2 /// [Parameter] @@ -101,7 +102,7 @@ public partial class Transfer /// /// 获得/设置 左侧按钮显示文本 - /// Gets or sets 左侧buttondisplay文本 + /// Gets or sets the left button display text /// 10.2.2 /// [Parameter] @@ -109,7 +110,7 @@ public partial class Transfer /// /// 获得/设置 右侧按钮显示文本 - /// Gets or sets 右侧buttondisplay文本 + /// Gets or sets the right button display text /// 10.2.2 /// [Parameter] @@ -117,7 +118,7 @@ public partial class Transfer /// /// 获得/设置 是否显示搜索框 - /// Gets or sets whetherdisplay搜索框 + /// Gets or sets whether to display the search box /// 10.2.2 /// [Parameter] @@ -125,17 +126,17 @@ public partial class Transfer /// /// 获得/设置 左侧面板搜索框 placeholder 文字 - /// Gets or sets 左侧面板搜索框 placeholder 文字 + /// Gets or sets the left panel search box placeholder text /// 10.2.2 /// [Parameter] - [Obsolete("已过期,请使用 LeftPanelSearchPlaceHolderString 代替 Please use LeftPanelSearchPlaceHolderString")] + [Obsolete("已过期,请使用 LeftPanelSearchPlaceHolderString 代替 (Deprecated, please use LeftPanelSearchPlaceHolderString)")] [ExcludeFromCodeCoverage] public string? LeftPannelSearchPlaceHolderString { get => LeftPanelSearchPlaceHolderString; set => LeftPanelSearchPlaceHolderString = value; } /// /// 获得/设置 左侧面板搜索框 placeholder 文字 - /// Gets or sets 左侧面板搜索框 placeholder 文字 + /// Gets or sets the left panel search box placeholder text /// 10.2.2 /// [Parameter] @@ -143,33 +144,33 @@ public partial class Transfer /// /// 获得/设置 右侧面板搜索框 placeholder 文字 - /// Gets or sets 右侧面板搜索框 placeholder 文字 + /// Gets or sets the right panel search box placeholder text /// 10.2.2 /// [Parameter] - [Obsolete("已过期,请使用 RightPanelSearchPlaceHolderString 代替 Please use RightPanelSearchPlaceHolderString")] + [Obsolete("已过期,请使用 RightPanelSearchPlaceHolderString 代替 (Deprecated, please use RightPanelSearchPlaceHolderString)")] [ExcludeFromCodeCoverage] public string? RightPannelSearchPlaceHolderString { get => RightPanelSearchPlaceHolderString; set => RightPanelSearchPlaceHolderString = value; } /// /// 获得/设置 右侧面板搜索框 placeholder 文字 - /// Gets or sets 右侧面板搜索框 placeholder 文字 + /// Gets or sets the right panel search box placeholder text /// 10.2.2 /// [Parameter] public string? RightPanelSearchPlaceHolderString { get; set; } /// - /// 获得/设置 右侧面板包含的最大数量, 默认为 0 不限制 - /// Gets or sets 右侧面板包含的最大数量, Default is为 0 不限制 + /// 获得/设置 右侧面板包含的最大数量,默认为 0 不限制 + /// Gets or sets the maximum number of items in the right panel. Default is 0 (no limit). /// 10.2.2 /// [Parameter] public int Max { get; set; } /// - /// 获得/设置 设置最大值时错误消息文字 - /// Gets or sets Sets最大值时错误消息文字 + /// 获得/设置 设置最大值时的错误消息文字 + /// Gets or sets the error message text when setting the maximum value /// 10.2.2 /// [Parameter] @@ -177,16 +178,16 @@ public partial class Transfer public string? MaxErrorMessage { get; set; } /// - /// 获得/设置 右侧面板包含的最大数量,默认为 0 不限制 - /// Gets or sets 右侧面板包含的最大数量,Default is为 0 不限制 + /// 获得/设置 右侧面板包含的最小数量,默认为 0 不限制 + /// Gets or sets the minimum number of items in the right panel. Default is 0 (no limit). /// 10.2.2 /// [Parameter] public int Min { get; set; } /// - /// 获得/设置 设置最小值时错误消息文字 - /// Gets or sets Sets最小值时错误消息文字 + /// 获得/设置 设置最小值时的错误消息文字 + /// Gets or sets the error message text when setting the minimum value /// 10.2.2 /// [Parameter] @@ -194,8 +195,8 @@ public partial class Transfer public string? MinErrorMessage { get; set; } /// - /// 获得/设置 数据样式回调方法 默认为 null - /// Gets or sets datastylecallback method Default is为 null + /// 获得/设置 数据样式回调方法,默认为 null + /// Gets or sets the data style callback method. Default is null. /// 10.2.2 /// [Parameter] @@ -204,7 +205,7 @@ public partial class Transfer /// /// 获得/设置 左侧 Panel Header 模板 - /// Gets or sets 左侧 Panel Header template + /// Gets or sets the left Panel Header template /// 10.2.2 /// [Parameter] @@ -212,7 +213,7 @@ public partial class Transfer /// /// 获得/设置 左侧 Panel Item 模板 - /// Gets or sets 左侧 Panel Item template + /// Gets or sets the left Panel Item template /// 10.2.2 /// [Parameter] @@ -220,7 +221,7 @@ public partial class Transfer /// /// 获得/设置 右侧 Panel Header 模板 - /// Gets or sets 右侧 Panel Header template + /// Gets or sets the right Panel Header template /// 10.2.2 /// [Parameter] @@ -228,7 +229,7 @@ public partial class Transfer /// /// 获得/设置 右侧 Panel Item 模板 - /// Gets or sets 右侧 Panel Item template + /// Gets or sets the right Panel Item template /// 10.2.2 /// [Parameter] @@ -236,7 +237,7 @@ public partial class Transfer /// /// 获得/设置 组件高度 默认值 null 未设置 - /// Gets or sets componentheight Default is值 null 未Sets + /// Gets or sets the component height. Default is null (not set) /// 10.2.2 /// [Parameter] @@ -244,7 +245,7 @@ public partial class Transfer /// /// 获得/设置 候选项是否为换行模式 默认 false 不换行 - /// Gets or sets 候选项whether为换行模式 Default is false 不换行 + /// Gets or sets whether the items are in wrap mode. Default is false (no wrap) /// 10.2.2 /// [Parameter] @@ -252,7 +253,7 @@ public partial class Transfer /// /// 获得/设置 候选项宽度 默认 null 未设置 - /// Gets or sets 候选项width Default is null 未Sets + /// Gets or sets the item width. Default is null (not set) /// 10.2.2 /// [Parameter] @@ -260,7 +261,7 @@ public partial class Transfer /// /// 获得/设置 候选项文本是否为换行 默认 false 不换行 - /// Gets or sets 候选项文本whether为换行 Default is false 不换行 + /// Gets or sets whether the item text is wrapped. Default is false (no wrap) /// 10.2.2 /// [Parameter] @@ -284,8 +285,7 @@ public partial class Transfer .Build(); /// - /// OnInitialized 方法 - /// OnInitialized 方法 + /// /// protected override void OnInitialized() { @@ -296,8 +296,7 @@ protected override void OnInitialized() } /// - /// OnParametersSet 方法 - /// OnParametersSet 方法 + /// /// protected override void OnParametersSet() { @@ -317,6 +316,7 @@ protected override void OnParametersSet() Items ??= []; + // 左侧移除 LeftItems.AddRange(Items); LeftItems.RemoveAll(i => list.Any(l => l == i.Value)); @@ -361,10 +361,6 @@ private void ResetRules() } } - /// - /// 选中数据移动方法 - /// 选中data移动方法 - /// private async Task TransferItems(List source, List target, bool isLeft) { if (Items != null) @@ -404,8 +400,7 @@ private async Task TransferItems(List source, List t } /// - /// - /// + /// /// /// /// @@ -435,8 +430,7 @@ protected override bool TryParseValueFromString(string value, out TValue result, } /// - /// FormatValueAsString 方法 - /// FormatValueAsString 方法 + /// /// /// /// @@ -444,20 +438,11 @@ protected override bool TryParseValueFromString(string value, out TValue result, ? null : Utility.ConvertValueToString(value); - /// - /// 选项状态改变时回调此方法 - /// 选项状态改变时回调此方法 - /// private Task SelectedItemsChanged() { StateHasChanged(); return Task.CompletedTask; } - /// - /// 获得按钮是否可用 - /// Getsbuttonwhether可用 - /// - /// private static bool GetButtonState(IEnumerable source) => !(source.Any(i => i.Active)); } diff --git a/src/BootstrapBlazor/Components/Transfer/TransferPanel.razor.cs b/src/BootstrapBlazor/Components/Transfer/TransferPanel.razor.cs index 45b1057df04..1d6d3cae55a 100644 --- a/src/BootstrapBlazor/Components/Transfer/TransferPanel.razor.cs +++ b/src/BootstrapBlazor/Components/Transfer/TransferPanel.razor.cs @@ -9,14 +9,14 @@ namespace BootstrapBlazor.Components; /// -/// TransferPanelBase 穿梭框面板组件 -/// TransferPanelBase 穿梭框面板component +/// TransferPanel 穿梭框面板组件 +/// TransferPanel Component /// public partial class TransferPanel { /// /// 获得/设置 搜索关键字 - /// Gets or sets 搜索关键字 + /// Gets or sets the search keyword /// protected string? SearchText { get; set; } @@ -26,7 +26,7 @@ public partial class TransferPanel /// /// 获得 搜索图标样式 - /// Gets 搜索iconstyle + /// Gets the search icon style /// private string? SearchClass => CssBuilder.Default("input-prefix") .AddClass("is-on", !string.IsNullOrEmpty(SearchText)) @@ -35,7 +35,7 @@ public partial class TransferPanel /// /// 获得 Panel 样式 - /// Gets Panel style + /// Gets the panel style /// private string? PanelListClassString => CssBuilder.Default("transfer-panel-list scroll") .AddClass("search", ShowSearch) @@ -48,13 +48,13 @@ public partial class TransferPanel /// /// 获得 组件是否被禁用属性值 - /// Gets componentwhether被禁用property值 + /// Gets the disabled attribute value /// private string? Disabled => IsDisabled ? "disabled" : null; /// /// 获得/设置 数据集合 - /// Gets or sets datacollection + /// Gets or sets the data collection /// 10.2.2 /// [Parameter] @@ -65,8 +65,8 @@ public partial class TransferPanel public List? Items { get; set; } /// - /// 获得/设置 数据样式回调方法 默认为 null - /// Gets or sets datastylecallback method Default is为 null + /// 获得/设置 数据样式回调方法,默认为 null + /// Gets or sets the data style callback method. Default is null. /// 10.2.2 /// [Parameter] @@ -74,7 +74,7 @@ public partial class TransferPanel /// /// 获得/设置 面板显示文字 - /// Gets or sets 面板display文字 + /// Gets or sets the panel display text /// 10.2.2 /// [Parameter] @@ -83,7 +83,7 @@ public partial class TransferPanel /// /// 获得/设置 是否显示搜索框 - /// Gets or sets whetherdisplay搜索框 + /// Gets or sets whether to display the search box /// 10.2.2 /// [Parameter] @@ -91,7 +91,7 @@ public partial class TransferPanel /// /// 获得/设置 搜索框图标 - /// Gets or sets 搜索框icon + /// Gets or sets the search box icon /// 10.2.2 /// [Parameter] @@ -99,7 +99,7 @@ public partial class TransferPanel /// /// 获得/设置 选项状态变化时回调方法 - /// Gets or sets 选项状态变化时callback method + /// Gets or sets the callback method when selected items change /// 10.2.2 /// [Parameter] @@ -107,7 +107,7 @@ public partial class TransferPanel /// /// 获得/设置 搜索框的 placeholder 字符串 - /// Gets or sets 搜索框的 placeholder 字符串 + /// Gets or sets the search box placeholder string /// 10.2.2 /// [Parameter] @@ -115,8 +115,8 @@ public partial class TransferPanel public string? SearchPlaceHolderString { get; set; } /// - /// 获得/设置 是否禁用 默认为 false - /// Gets or sets whether禁用 Default is为 false + /// 获得/设置 是否禁用,默认为 false + /// Gets or sets whether to disable. Default is false. /// 10.2.2 /// [Parameter] @@ -124,7 +124,7 @@ public partial class TransferPanel /// /// 获得/设置 Header 模板 - /// Gets or sets Header template + /// Gets or sets the header template /// 10.2.2 /// [Parameter] @@ -132,7 +132,7 @@ public partial class TransferPanel /// /// 获得/设置 Item 模板 - /// Gets or sets Item template + /// Gets or sets the item template /// 10.2.2 /// [Parameter] @@ -147,8 +147,7 @@ public partial class TransferPanel private IIconTheme? IconTheme { get; set; } /// - /// OnParametersSet 方法 - /// OnParametersSet 方法 + /// /// protected override void OnParametersSet() { @@ -162,13 +161,13 @@ protected override void OnParametersSet() } /// - /// 头部复选框初始化值方法 - /// 头部复选框初始化值方法 + /// 获得头部复选框初始化状态 + /// Gets the header checkbox initialization state /// protected CheckboxState HeaderCheckState() { var ret = CheckboxState.Indeterminate; - if (Items.Any() && Items.All(i => i.Active)) + if (Items.Count > 0 && Items.All(i => i.Active)) { ret = CheckboxState.Checked; } @@ -181,8 +180,8 @@ protected CheckboxState HeaderCheckState() } /// - /// 左侧头部复选框初始化值方法 - /// 左侧头部复选框初始化值方法 + /// 处理头部复选框状态变化事件 + /// Handles the header checkbox state change event /// protected async Task OnHeaderCheck(CheckboxState state, SelectedItem item) { @@ -205,10 +204,9 @@ protected async Task OnHeaderCheck(CheckboxState state, SelectedItem item) } /// - /// - /// + /// 处理项目复选框状态变化事件 + /// Handles the item checkbox state change event /// - /// protected async Task OnStateChanged(CheckboxState state, SelectedItem item) { // trigger when transfer item clicked @@ -222,8 +220,8 @@ protected async Task OnStateChanged(CheckboxState state, SelectedItem item) } /// - /// 搜索框文本改变时回调此方法 - /// 搜索框文本改变时回调此方法 + /// 搜索框文本改变时的回调方法 + /// Callback method when search box text changes /// /// protected virtual void OnSearch(ChangeEventArgs e) @@ -236,7 +234,7 @@ protected virtual void OnSearch(ChangeEventArgs e) /// /// 搜索文本框按键回调方法 - /// 搜索文本框按键callback method + /// Callback method for search text box key press /// /// protected void OnKeyUp(KeyboardEventArgs e) @@ -250,7 +248,7 @@ protected void OnKeyUp(KeyboardEventArgs e) /// /// 清空搜索条件方法 - /// 清空搜索条件方法 + /// Clears the search condition /// protected void ClearSearch() { diff --git a/src/BootstrapBlazor/Components/Transition/Transition.razor.cs b/src/BootstrapBlazor/Components/Transition/Transition.razor.cs index 047febd00d0..d55a16d030e 100644 --- a/src/BootstrapBlazor/Components/Transition/Transition.razor.cs +++ b/src/BootstrapBlazor/Components/Transition/Transition.razor.cs @@ -7,7 +7,7 @@ namespace BootstrapBlazor.Components; /// /// Transition 动画组件 -/// Transition 动画component +/// Transition Animation Component /// public partial class Transition { @@ -22,24 +22,24 @@ public partial class Transition .Build(); /// - /// 获得/设置 是否显示动画 默认 true - /// Gets or sets whetherdisplay动画 Default is true + /// 获得/设置 是否显示动画,默认 true + /// Gets or sets whether to display the animation. Default is true. /// 10.2.2 /// [Parameter] public bool Show { get; set; } = true; /// - /// 获得/设置 动画名称 默认 FadeIn - /// Gets or sets 动画名称 Default is FadeIn + /// 获得/设置 动画名称,默认 FadeIn + /// Gets or sets the animation name. Default is FadeIn. /// 10.2.2 /// [Parameter] public TransitionType TransitionType { get; set; } = TransitionType.FadeIn; /// - /// 获得/设置 动画执行时长 单位毫秒 默认为 0 未生效 - /// Gets or sets 动画执行时长 单位毫秒 Default is为 0 未生效 + /// 获得/设置 动画执行时长,单位毫秒,默认为 0 + /// Gets or sets the animation execution duration in milliseconds. Default is 0. /// 10.2.2 /// [Parameter] @@ -47,7 +47,7 @@ public partial class Transition /// /// 获得/设置 子内容 - /// Gets or sets 子content + /// Gets or sets the child content /// 10.2.2 /// [Parameter] @@ -55,15 +55,15 @@ public partial class Transition /// /// 获得/设置 动画执行完成回调委托 - /// Gets or sets 动画执行完成回调delegate + /// Gets or sets the animation completion callback delegate /// 10.2.2 /// [Parameter] public Func? OnTransitionEnd { get; set; } /// - /// 动画执行完毕结束异步方法 JSInvoke 调用 - /// 动画执行完毕结束异步方法 JSInvoke 调用 + /// 动画执行完毕结束的异步方法,由 JSInvoke 调用 + /// Called when animation ends, triggered by JSInvoke /// [JSInvokable] public async Task TransitionEndAsync() diff --git a/src/BootstrapBlazor/Components/Tree/Tree.razor.cs b/src/BootstrapBlazor/Components/Tree/Tree.razor.cs index 9b91f9f58fb..f1b4663da64 100644 --- a/src/BootstrapBlazor/Components/Tree/Tree.razor.cs +++ b/src/BootstrapBlazor/Components/Tree/Tree.razor.cs @@ -7,7 +7,7 @@ namespace BootstrapBlazor.Components; /// /// Tree 组件 -/// Tree component +/// Tree Component /// [ExcludeFromCodeCoverage] [Obsolete("已弃用,请使用 TreeView 组件代替;Deprecated Please use TreeView component")] diff --git a/src/BootstrapBlazor/Components/Tree/TreeItem.cs b/src/BootstrapBlazor/Components/Tree/TreeItem.cs index b58ac70b678..827fd370861 100644 --- a/src/BootstrapBlazor/Components/Tree/TreeItem.cs +++ b/src/BootstrapBlazor/Components/Tree/TreeItem.cs @@ -7,7 +7,7 @@ namespace BootstrapBlazor.Components; /// /// TreeItem 组件 -/// TreeItem component +/// TreeItem Component /// [ExcludeFromCodeCoverage] public class TreeItem : NodeItem diff --git a/src/BootstrapBlazor/Components/TreeView/TreeView.razor.cs b/src/BootstrapBlazor/Components/TreeView/TreeView.razor.cs index 4c24e0ab682..447d6cc7642 100644 --- a/src/BootstrapBlazor/Components/TreeView/TreeView.razor.cs +++ b/src/BootstrapBlazor/Components/TreeView/TreeView.razor.cs @@ -8,8 +8,8 @@ namespace BootstrapBlazor.Components; /// -/// Tree component -/// Tree component +/// Tree 组件 +/// Tree Component /// [CascadingTypeParameter(nameof(TItem))] public partial class TreeView : IModelEqualityComparer @@ -25,7 +25,7 @@ public partial class TreeView : IModelEqualityComparer private TreeViewItem? _activeItem; /// - /// 获得/设置 是否 to show the loading animation. 默认为 false. + /// 获得/设置 是否显示加载动画,默认为 false /// Gets or sets whether to show the loading animation. Default is false. /// [Obsolete("Deprecated. Please remove it.")] @@ -33,23 +33,23 @@ public partial class TreeView : IModelEqualityComparer public bool IsReset { get; set; } /// - /// 获得/设置 是否 show the toolbar of tree view item. 默认为 false. - /// Gets or sets whether show the toolbar of tree view item. Default is false. + /// 获得/设置 是否显示树视图项的工具栏,默认为 false + /// Gets or sets whether to show the toolbar of tree view item. Default is false. /// 10.2.2 /// [Parameter] public bool ShowToolbar { get; set; } /// - /// 获得 or sts A 回调方法 that determines 是否 to show the toolbar of the tree view item. - /// Gets or sts A callback method that determines whether to show the toolbar of the tree view item. + /// 获得/设置 确定是否显示树视图项工具栏的回调方法 + /// Gets or sets the callback method that determines whether to show the toolbar of the tree view item. /// 10.2.2 /// [Parameter] public Func, Task>? ShowToolbarCallback { get; set; } /// - /// 获得/设置 是否 the entire component is disabled. 默认为 false. + /// 获得/设置 整个组件是否被禁用,默认为 false /// Gets or sets whether the entire component is disabled. Default is false. /// 10.2.2 /// @@ -57,7 +57,7 @@ public partial class TreeView : IModelEqualityComparer public bool IsDisabled { get; set; } /// - /// 获得/设置 是否 nodes can be expanded or collapsed when the component is disabled. 默认为 false. + /// 获得/设置 组件被禁用时,节点是否可以展开或折叠,默认为 false /// Gets or sets whether nodes can be expanded or collapsed when the component is disabled. Default is false. /// 10.2.2 /// @@ -65,7 +65,7 @@ public partial class TreeView : IModelEqualityComparer public bool CanExpandWhenDisabled { get; set; } /// - /// 获得/设置 是否 the tree view has accordion behavior. 默认为 false. Accordion behavior is not supported in virtual scrolling mode. + /// 获得/设置 树视图是否具有手风琴行为,默认为 false。虚拟滚动模式不支持手风琴行为。 /// Gets or sets whether the tree view has accordion behavior. Default is false. Accordion behavior is not supported in virtual scrolling mode. /// 10.2.2 /// @@ -73,7 +73,7 @@ public partial class TreeView : IModelEqualityComparer public bool IsAccordion { get; set; } /// - /// 获得/设置 是否 clicking a node expands or collapses its children. 默认为 false. + /// 获得/设置 点击节点是否展开或折叠其子节点,默认为 false /// Gets or sets whether clicking a node expands or collapses its children. Default is false. /// 10.2.2 /// @@ -81,15 +81,15 @@ public partial class TreeView : IModelEqualityComparer public bool ClickToggleNode { get; set; } /// - /// 获得/设置 是否 clicking a node toggles its checkbox state. 默认为 false. Effective when is true. - /// Gets or sets whether clicking a node toggles its checkbox state. Default is false. Effective when is true. + /// 获得/设置 点击节点是否切换其复选框状态,默认为 false。仅在 ShowCheckbox 为 true 时有效。 + /// Gets or sets whether clicking a node toggles its checkbox state. Default is false. Effective when ShowCheckbox is true. /// 10.2.2 /// [Parameter] public bool ClickToggleCheck { get; set; } /// - /// 获得/设置 是否 to show the loading skeleton. 默认为 false. + /// 获得/设置 是否显示加载骨架,默认为 false /// Gets or sets whether to show the loading skeleton. Default is false. /// 10.2.2 /// @@ -97,7 +97,7 @@ public partial class TreeView : IModelEqualityComparer public bool ShowSkeleton { get; set; } /// - /// 获得/设置 是否 to show the search bar. 默认为 false. + /// 获得/设置 是否显示搜索栏,默认为 false /// Gets or sets whether to show the search bar. Default is false. /// 10.2.2 /// @@ -105,7 +105,7 @@ public partial class TreeView : IModelEqualityComparer public bool ShowSearch { get; set; } /// - /// 获得/设置 是否 to show the reset search 按钮. 默认为 true. + /// 获得/设置 是否显示重置搜索按钮,默认为 true /// Gets or sets whether to show the reset search button. Default is true. /// 10.2.2 /// @@ -113,7 +113,7 @@ public partial class TreeView : IModelEqualityComparer public bool ShowResetSearchButton { get; set; } = true; /// - /// 获得/设置 the search bar 模板. 默认为 null. + /// 获得/设置 搜索栏模板,默认为 null /// Gets or sets the search bar template. Default is null. /// 10.2.2 /// @@ -121,7 +121,7 @@ public partial class TreeView : IModelEqualityComparer public RenderFragment? SearchTemplate { get; set; } /// - /// 获得/设置 the search 图标. 默认为 not set, using the built-in theme 图标. + /// 获得/设置 搜索图标,默认未设置,使用内置主题图标 /// Gets or sets the search icon. Default is not set, using the built-in theme icon. /// 10.2.2 /// @@ -129,7 +129,7 @@ public partial class TreeView : IModelEqualityComparer public string? SearchIcon { get; set; } /// - /// 获得/设置 the clear search 图标. 默认为 not set, using the built-in theme 图标. + /// 获得/设置 清除搜索图标,默认未设置,使用内置主题图标 /// Gets or sets the clear search icon. Default is not set, using the built-in theme icon. /// 10.2.2 /// @@ -137,7 +137,7 @@ public partial class TreeView : IModelEqualityComparer public string? ClearSearchIcon { get; set; } /// - /// 获得/设置 the search 回调方法. 默认为 null. + /// 获得/设置 搜索回调方法,默认为 null /// Gets or sets the search callback method. Default is null. /// 10.2.2 /// @@ -146,7 +146,7 @@ public partial class TreeView : IModelEqualityComparer public Func>?>>? OnSearchAsync { get; set; } /// - /// 获得/设置 the hierarchical 数据 集合. + /// 获得/设置 分层数据集合 /// Gets or sets the hierarchical data collection. /// 10.2.2 /// @@ -155,7 +155,7 @@ public partial class TreeView : IModelEqualityComparer public List>? Items { get; set; } /// - /// 获得/设置 是否 to show checkboxes. 默认为 false. + /// 获得/设置 是否显示复选框,默认为 false /// Gets or sets whether to show checkboxes. Default is false. /// 10.2.2 /// @@ -163,7 +163,7 @@ public partial class TreeView : IModelEqualityComparer public bool ShowCheckbox { get; set; } /// - /// 获得/设置 the maximum number of selected items. + /// 获得/设置 最多选中项数 /// Gets or sets the maximum number of selected items. /// 10.2.2 /// @@ -171,7 +171,7 @@ public partial class TreeView : IModelEqualityComparer public int MaxSelectedCount { get; set; } /// - /// 获得/设置 the 回调方法 when the maximum number of selected items is exceeded. + /// 获得/设置 超过最多选中项数时的回调方法 /// Gets or sets the callback method when the maximum number of selected items is exceeded. /// 10.2.2 /// @@ -179,7 +179,7 @@ public partial class TreeView : IModelEqualityComparer public Func? OnMaxSelectedCountExceed { get; set; } /// - /// 获得/设置 是否 to show 图标s. 默认为 false. + /// 获得/设置 是否显示图标,默认为 false /// Gets or sets whether to show icons. Default is false. /// 10.2.2 /// @@ -187,7 +187,7 @@ public partial class TreeView : IModelEqualityComparer public bool ShowIcon { get; set; } /// - /// 获得/设置 the 回调方法 when a tree item is clicked. + /// 获得/设置 树项被点击时的回调方法 /// Gets or sets the callback method when a tree item is clicked. /// 10.2.2 /// @@ -195,15 +195,15 @@ public partial class TreeView : IModelEqualityComparer public Func, Task>? OnTreeItemClick { get; set; } /// - /// 获得/设置 点击节点前回调方法 - /// Gets or sets 点击节点前callback method + /// 获得/设置 点击节点前的回调方法 + /// Gets or sets the callback method before a tree item is clicked. /// 10.2.2 /// [Parameter] public Func, Task>? OnBeforeTreeItemClick { get; set; } /// - /// 获得/设置 the 回调方法 when a tree item is checked. + /// 获得/设置 树项被选中时的回调方法 /// Gets or sets the callback method when a tree item is checked. /// 10.2.2 /// @@ -211,7 +211,7 @@ public partial class TreeView : IModelEqualityComparer public Func>, Task>? OnTreeItemChecked { get; set; } /// - /// 获得/设置 the 回调方法 to get child 数据 when a node is expanded. + /// 获得/设置 节点展开时获取子数据的回调方法 /// Gets or sets the callback method to get child data when a node is expanded. /// 10.2.2 /// @@ -233,7 +233,7 @@ public partial class TreeView : IModelEqualityComparer public Func? ModelEqualityComparer { get; set; } /// - /// 获得/设置 the loading 图标 for tree nodes. + /// 获得/设置 树节点的加载图标 /// Gets or sets the loading icon for tree nodes. /// 10.2.2 /// @@ -241,7 +241,7 @@ public partial class TreeView : IModelEqualityComparer public string? LoadingIcon { get; set; } /// - /// 获得/设置 the 图标 for tree nodes. + /// 获得/设置 树节点的图标 /// Gets or sets the icon for tree nodes. /// 10.2.2 /// @@ -249,7 +249,7 @@ public partial class TreeView : IModelEqualityComparer public string? NodeIcon { get; set; } /// - /// 获得/设置 the 图标 for expanded tree nodes. + /// 获得/设置 展开状态的树节点图标 /// Gets or sets the icon for expanded tree nodes. /// 10.2.2 /// @@ -257,11 +257,11 @@ public partial class TreeView : IModelEqualityComparer public string? ExpandNodeIcon { get; set; } /// - /// 获得/设置 是否 to enable keyboard navigation. 默认为 false. ArrowLeft collapses the node. - /// ArrowRight expands the node. - /// ArrowUp moves to the previous node. - /// ArrowDown moves to the next node. - /// Space selects the current node. + /// 获得/设置 是否启用键盘导航,默认为 false。 ArrowLeft 收缩节点。 + /// ArrowRight 展开节点。 + /// ArrowUp 移动到上一个节点。 + /// ArrowDown 移动到下一个节点。 + /// Space 选择当前节点。 /// /// Gets or sets whether to enable keyboard navigation. Default is false. ArrowLeft collapses the node. /// ArrowRight expands the node. @@ -275,7 +275,7 @@ public partial class TreeView : IModelEqualityComparer public bool EnableKeyboard { get; set; } /// - /// 获得/设置 the scroll into view options for keyboard navigation. 默认为 null, using { behavior: "smooth", block: "nearest", inline: "start" }. + /// 获得/设置 键盘导航时的滚动至视图选项,默认为 null,使用 { behavior: "smooth", block: "nearest", inline: "start" }。 /// Gets or sets the scroll into view options for keyboard navigation. Default is null, using { behavior: "smooth", block: "nearest", inline: "start" }. /// 10.2.2 /// @@ -283,7 +283,7 @@ public partial class TreeView : IModelEqualityComparer public ScrollIntoViewOptions? ScrollIntoViewOptions { get; set; } /// - /// 获得/设置 是否 to enable virtual scrolling. 默认为 false. + /// 获得/设置 是否启用虚拟滚动,默认为 false /// Gets or sets whether to enable virtual scrolling. Default is false. /// 10.2.2 /// @@ -291,7 +291,7 @@ public partial class TreeView : IModelEqualityComparer public bool IsVirtualize { get; set; } /// - /// 获得/设置 the row 高度 for virtual scrolling. 默认为 29f. + /// 获得/设置 虚拟滚动时的行高,默认为 29f /// Gets or sets the row height for virtual scrolling. Default is 29f. /// 10.2.2 /// @@ -300,7 +300,7 @@ public partial class TreeView : IModelEqualityComparer public float RowHeight { get; set; } = 29f; /// - /// 获得/设置 the overscan count for virtual scrolling. 默认为 10. + /// 获得/设置 虚拟滚动时的超扫描计数,默认为 10 /// Gets or sets the overscan count for virtual scrolling. Default is 10. /// 10.2.2 /// @@ -309,7 +309,7 @@ public partial class TreeView : IModelEqualityComparer public int OverscanCount { get; set; } = 10; /// - /// 获得/设置 the toolbar 内容 模板. 默认为 null. + /// 获得/设置 工具栏内容模板,默认为 null /// Gets or sets the toolbar content template. Default is null. /// 10.2.2 /// @@ -317,7 +317,7 @@ public partial class TreeView : IModelEqualityComparer public RenderFragment? ToolbarTemplate { get; set; } /// - /// 获得/设置 the title of the popup-window. 默认为 null. + /// 获得/设置 弹出窗口标题,默认为 null /// Gets or sets the title of the popup-window. Default is null. /// 10.2.2 /// @@ -325,7 +325,7 @@ public partial class TreeView : IModelEqualityComparer public string? ToolbarEditTitle { get; set; } /// - /// 获得/设置 the title of the popup-window. 默认为 null. + /// 获得/设置 弹出窗口标签文本,默认为 null /// Gets or sets the title of the popup-window. Default is null. /// 10.2.2 /// @@ -333,17 +333,15 @@ public partial class TreeView : IModelEqualityComparer public string? ToolbarEditLabelText { get; set; } /// - /// 获得/设置 the update the tree text value 回调. 默认为 null. If return true will update the tree text value, otherwise will not update. - /// - /// Gets or sets the update the tree text value callback. Default is null. If return true will update the tree text value, otherwise will not update. - /// + /// 获得/设置 更新树文本值的回调,默认为 null. 如果返回 true 则更新树文本值,否则不更新。 + /// Gets or sets the update the tree text value callback. Default is null. If return true will update the tree text value, otherwise will not update. /// 10.2.2 /// [Parameter] public Func>? OnUpdateCallbackAsync { get; set; } /// - /// 获得/设置 是否 to automatically update child nodes when the node state changes. 默认为 false. + /// 获得/设置 节点状态变化时是否自动更新子节点,默认为 false /// Gets or sets whether to automatically update child nodes when the node state changes. Default is false. /// 10.2.2 /// @@ -351,7 +349,7 @@ public partial class TreeView : IModelEqualityComparer public bool AutoCheckChildren { get; set; } /// - /// 获得/设置 是否 to automatically update parent nodes when the node state changes. 默认为 false. + /// 获得/设置 节点状态变化时是否自动更新父节点,默认为 false /// Gets or sets whether to automatically update parent nodes when the node state changes. Default is false. /// 10.2.2 /// @@ -359,7 +357,7 @@ public partial class TreeView : IModelEqualityComparer public bool AutoCheckParent { get; set; } /// - /// 获得/设置 a value indicating 是否 drag-and-drop operations are allowed. 默认为 false + /// 获得/设置 是否允许拖放操作,默认为 false /// Gets or sets a value indicating whether drag-and-drop operations are allowed. Default is false /// 10.2.2 /// diff --git a/src/BootstrapBlazor/Components/TreeView/TreeViewDragContext.cs b/src/BootstrapBlazor/Components/TreeView/TreeViewDragContext.cs index d34cf6529e5..1303d955f86 100644 --- a/src/BootstrapBlazor/Components/TreeView/TreeViewDragContext.cs +++ b/src/BootstrapBlazor/Components/TreeView/TreeViewDragContext.cs @@ -6,26 +6,26 @@ namespace BootstrapBlazor.Components; /// -/// 组件拖动上下文类 -/// component拖动上下文类 +/// TreeView 组件拖动上下文类 +/// TreeView Component Drag Context Class /// public class TreeViewDragContext(TreeViewItem source, TreeViewItem target, bool children = false) { /// /// 获得 源节点 - /// Gets 源节点 + /// Gets the source node /// public TreeViewItem Source => source; /// /// 获得 目标节点 - /// Gets 目标节点 + /// Gets the target node /// public TreeViewItem Target => target; /// - /// 获得 是否未目标节点的子节点 - /// Gets whether未目标节点的子节点 + /// 获得 是否为目标节点的子节点 + /// Gets whether it is a child node of the target node /// public bool IsChildren => children; } diff --git a/src/BootstrapBlazor/Components/TreeView/TreeViewItem.cs b/src/BootstrapBlazor/Components/TreeView/TreeViewItem.cs index 1a66a2ea92b..1f1e03eed8b 100644 --- a/src/BootstrapBlazor/Components/TreeView/TreeViewItem.cs +++ b/src/BootstrapBlazor/Components/TreeView/TreeViewItem.cs @@ -6,46 +6,55 @@ namespace BootstrapBlazor.Components; /// -/// TreeItem 组件 -/// TreeItem component +/// TreeViewItem 组件 +/// TreeViewItem Component /// public class TreeViewItem : TreeNodeBase, ICheckableNode { /// - /// 获得/设置 是否显示正在加载动画 默认为 false - /// Gets or sets whether display loading backdrop Default is为 false + /// 构造函数 + /// Constructor + /// + public TreeViewItem([DisallowNull] TItem item) + { + Value = item; + } + + /// + /// 获得/设置 是否显示正在加载动画,默认为 false + /// Gets or sets whether to display the loading animation. Default is false. /// - [Obsolete("已弃用;Deprecated")] + [Obsolete("已弃用(Deprecated)")] [ExcludeFromCodeCoverage] public bool ShowLoading { get; set; } /// /// 获得/设置 是否被选中 - /// Gets or sets checked state + /// Gets or sets the checked state /// public CheckboxState CheckedState { get; set; } /// /// 获得/设置 子节点数据源 - /// Gets or sets 子节点data源 + /// Gets or sets the child node data source /// public List> Items { get; set; } = []; /// /// 获得/设置 子节点集合 - /// Gets or sets 子节点collection + /// Gets or sets the child node collection /// IEnumerable> IExpandableNode.Items { get => Items; set => Items = [.. value.OfType>()]; } /// /// 获得/设置 父级节点 - /// Gets or sets 父级节点 + /// Gets or sets the parent node /// public TreeViewItem? Parent { get; set; } /// /// 获得/设置 父级节点 - /// Gets or sets 父级节点 + /// Gets or sets the parent node /// IExpandableNode? IExpandableNode.Parent { @@ -59,13 +68,4 @@ public class TreeViewItem : TreeNodeBase, ICheckableNode } } } - - /// - /// 构造函数 - /// 构造函数 - /// - public TreeViewItem([DisallowNull] TItem item) - { - Value = item; - } } diff --git a/src/BootstrapBlazor/Components/TreeView/TreeViewRow.razor.cs b/src/BootstrapBlazor/Components/TreeView/TreeViewRow.razor.cs index 60e423bd731..7db29fecced 100644 --- a/src/BootstrapBlazor/Components/TreeView/TreeViewRow.razor.cs +++ b/src/BootstrapBlazor/Components/TreeView/TreeViewRow.razor.cs @@ -8,13 +8,13 @@ namespace BootstrapBlazor.Components; /// -/// TreeViewRow component -/// TreeViewRow component +/// TreeViewRow 组件 +/// TreeViewRow Component /// public partial class TreeViewRow { /// - /// 获得/设置 是否 the node is active. 默认为 false. + /// 获得/设置 节点是否为活跃状态,默认为 false /// Gets or sets whether the node is active. Default is false. /// 10.2.2 /// @@ -22,7 +22,7 @@ public partial class TreeViewRow public bool IsActive { get; set; } /// - /// 获得/设置 the node 索引. 默认为 0. + /// 获得/设置 节点索引,默认为 0 /// Gets or sets the node index. Default is 0. /// 10.2.2 /// @@ -30,14 +30,14 @@ public partial class TreeViewRow public int Index { get; set; } /// - /// 获得/设置 the tree node item. 默认为 null. + /// 获得/设置 树节点项,默认为 null /// Gets or sets the tree node item. Default is null. /// [Parameter, NotNull] public TreeViewItem? Item { get; set; } /// - /// 获得/设置 the loading 图标 for tree nodes. + /// 获得/设置 树节点的加载图标 /// Gets or sets the loading icon for tree nodes. /// 10.2.2 /// @@ -45,7 +45,7 @@ public partial class TreeViewRow public string? LoadingIcon { get; set; } /// - /// 获得/设置 the 图标 for tree nodes. + /// 获得/设置 树节点的图标 /// Gets or sets the icon for tree nodes. /// 10.2.2 /// @@ -53,7 +53,7 @@ public partial class TreeViewRow public string? NodeIcon { get; set; } /// - /// 获得/设置 the 图标 for expanded tree nodes. + /// 获得/设置 展开的树节点的图标 /// Gets or sets the icon for expanded tree nodes. /// 10.2.2 /// @@ -61,7 +61,7 @@ public partial class TreeViewRow public string? ExpandNodeIcon { get; set; } /// - /// 获得/设置 是否 the entire component is disabled. 默认为 false. + /// 获得/设置 整个组件是否被禁用,默认为 false /// Gets or sets whether the entire component is disabled. Default is false. /// 10.2.2 /// @@ -69,7 +69,7 @@ public partial class TreeViewRow public bool IsDisabled { get; set; } /// - /// 获得/设置 是否 to show checkboxes. 默认为 false. + /// 获得/设置 是否显示复选框,默认为 false /// Gets or sets whether to show checkboxes. Default is false. /// 10.2.2 /// @@ -77,7 +77,7 @@ public partial class TreeViewRow public bool ShowCheckbox { get; set; } /// - /// 获得/设置 是否 nodes can be expanded or collapsed when the component is disabled. 默认为 false. + /// 获得/设置 组件被禁用时,节点是否可以展开或折叠,默认为 false /// Gets or sets whether nodes can be expanded or collapsed when the component is disabled. Default is false. /// 10.2.2 /// @@ -85,23 +85,23 @@ public partial class TreeViewRow public bool CanExpandWhenDisabled { get; set; } /// - /// Get or sets the node click event 回调. - /// Get or sets the node click event callback. + /// 获得/设置 节点切换事件回调 + /// Gets or sets the node click event callback. /// 10.2.2 /// [Parameter] public Func, Task>? OnToggleNodeAsync { get; set; } /// - /// Get or sets the node checkbox state change event 回调. - /// Get or sets the node checkbox state change event callback. + /// 获得/设置 节点复选框状态变化事件回调 + /// Gets or sets the node checkbox state change event callback. /// 10.2.2 /// [Parameter] public Func, CheckboxState, Task>? OnCheckStateChanged { get; set; } /// - /// 获得/设置 the maximum number of selected items. + /// 获得/设置 可选中的最大节点数 /// Gets or sets the maximum number of selected items. /// 10.2.2 /// @@ -109,7 +109,7 @@ public partial class TreeViewRow public int MaxSelectedCount { get; set; } /// - /// 获得/设置 the 回调 that is invoked before the node state changes. + /// 获得/设置 在节点状态改变前被调用的回调 /// Gets or sets the callback that is invoked before the node state changes. /// 10.2.2 /// @@ -117,7 +117,7 @@ public partial class TreeViewRow public Func, CheckboxState, Task>? OnBeforeStateChangedCallback { get; set; } /// - /// 获得/设置 是否 to show 图标s. 默认为 false. + /// 获得/设置 是否显示图标,默认为 false /// Gets or sets whether to show icons. Default is false. /// 10.2.2 /// @@ -125,7 +125,7 @@ public partial class TreeViewRow public bool ShowIcon { get; set; } /// - /// 获得/设置 the click event 回调. 默认为 null. + /// 获得/设置 点击事件回调,默认为 null /// Gets or sets the click event callback. Default is null. /// 10.2.2 /// @@ -133,7 +133,7 @@ public partial class TreeViewRow public Func, Task>? OnClick { get; set; } /// - /// 获得/设置 是否 show the toolbar of tree view item. 默认为 false. + /// 获得/设置 是否显示工具栏,默认为 false /// Gets or sets whether show the toolbar of tree view item. Default is false. /// 10.2.2 /// @@ -141,7 +141,7 @@ public partial class TreeViewRow public bool ShowToolbar { get; set; } /// - /// A 回调方法 that determines 是否 to show the toolbar of the tree view item. + /// 获得/设置 决定是否显示工具栏的回调 /// A callback method that determines whether to show the toolbar of the tree view item. /// 10.2.2 /// @@ -149,7 +149,7 @@ public partial class TreeViewRow public Func, Task>? ShowToolbarCallback { get; set; } /// - /// 获得/设置 the title of the popup-window. 默认为 null. + /// 获得/设置 弹出窗口的标题 /// Gets or sets the title of the popup-window. Default is null. /// 10.2.2 /// @@ -157,7 +157,7 @@ public partial class TreeViewRow public string? ToolbarEditTitle { get; set; } /// - /// 获得/设置 the title of the popup-window. 默认为 null. + /// 获得/设置 弹出窗口的标题 /// Gets or sets the title of the popup-window. Default is null. /// 10.2.2 /// @@ -165,7 +165,7 @@ public partial class TreeViewRow public string? ToolbarEditLabelText { get; set; } /// - /// 获得/设置 the toolbar 内容 模板. 默认为 null. + /// 获得/设置 工具栏内容模板 /// Gets or sets the toolbar content template. Default is null. /// 10.2.2 /// @@ -173,8 +173,7 @@ public partial class TreeViewRow public RenderFragment? ToolbarTemplate { get; set; } /// - /// 获得/设置 the update the tree text value 回调. 默认为 null. If return true will update the tree text value, otherwise will not update. - /// + /// 获得/设置 更新树节点文本值的回调 /// Gets or sets the update the tree text value callback. Default is null. If return true will update the tree text value, otherwise will not update. /// /// 10.2.2 diff --git a/src/BootstrapBlazor/Components/TreeView/TreeViewToolbarEditButton.razor.cs b/src/BootstrapBlazor/Components/TreeView/TreeViewToolbarEditButton.razor.cs index 6608fab546d..3ebc28e81dc 100644 --- a/src/BootstrapBlazor/Components/TreeView/TreeViewToolbarEditButton.razor.cs +++ b/src/BootstrapBlazor/Components/TreeView/TreeViewToolbarEditButton.razor.cs @@ -6,21 +6,21 @@ namespace BootstrapBlazor.Components; /// -/// TreeViewToolbarEditButton component -/// TreeViewToolbarEditButton component +/// TreeViewToolbarEditButton 组件 +/// TreeViewToolbarEditButton Component /// /// public partial class TreeViewToolbarEditButton : ComponentBase { /// - /// 获得/设置 the tree view item. 默认为 null. + /// 获得/设置 树视图项,默认为 null /// Gets or sets the tree view item. Default is null. /// [Parameter, NotNull] public TreeViewItem? Item { get; set; } /// - /// 获得/设置 the item changed event 回调. + /// 获得/设置 项更改事件回调 /// Gets or sets the item changed event callback. /// 10.2.2 /// @@ -28,33 +28,31 @@ public partial class TreeViewToolbarEditButton : ComponentBase public EventCallback> ItemChanged { get; set; } /// - /// 获得/设置 the update the tree text value 回调. 默认为 null. If return true will update the tree text value, otherwise will not update. - /// - /// Gets or sets the update the tree text value callback. Default is null. If return true will update the tree text value, otherwise will not update. - /// + /// 获得/设置 更新树文本值的回调方法,默认为 null。如果返回 true 将更新树文本值,否则不更新。 + /// Gets or sets the callback method to update the tree text value. Default is null. If it returns true, the tree text value will be updated; otherwise, it will not be updated. /// 10.2.2 /// [Parameter] public Func>? OnUpdateCallbackAsync { get; set; } /// - /// 获得/设置 the title of the popup-window. 默认为 null. - /// Gets or sets the title of the popup-window. Default is null. + /// 获得/设置 弹出窗口的标题,默认为 null + /// Gets or sets the title of the popup window. Default is null. /// 10.2.2 /// [Parameter] public string? Title { get; set; } /// - /// 获得/设置 the text of the popup-window label. 默认为 null. - /// Gets or sets the text of the popup-window label. Default is null. + /// 获得/设置 弹出窗口标签的文本,默认为 null + /// Gets or sets the text of the popup window label. Default is null. /// 10.2.2 /// [Parameter] public string? Text { get; set; } /// - /// 获得/设置 the 图标 of the edit 按钮. 默认为 null. + /// 获得/设置 编辑按钮的图标,默认为 null /// Gets or sets the icon of the edit button. Default is null. /// 10.2.2 /// diff --git a/src/BootstrapBlazor/Components/Typed/Typed.razor.cs b/src/BootstrapBlazor/Components/Typed/Typed.razor.cs index 505e76874fb..ebe08160b53 100644 --- a/src/BootstrapBlazor/Components/Typed/Typed.razor.cs +++ b/src/BootstrapBlazor/Components/Typed/Typed.razor.cs @@ -6,30 +6,30 @@ namespace BootstrapBlazor.Components; /// -/// TypedJs 组件类 -/// TypedJs component类 +/// Typed 组件类 +/// Typed Component Class /// public partial class Typed { /// - /// 获得/设置 组件显示文字 默认 null 未设置 - /// Gets or sets componentdisplay文字 Default is null 未Sets + /// 获得/设置 组件显示文字,默认 null + /// Gets or sets the component display text. Default is null. /// 10.2.2 /// [Parameter] public string? Text { get; set; } /// - /// 获得/设置 组件配置 实例 默认 null - /// Gets or sets component配置 instance Default is null + /// 获得/设置 组件配置实例,默认 null + /// Gets or sets the component configuration instance. Default is null. /// 10.2.2 /// [Parameter] public TypedOptions? Options { get; set; } /// - /// 获得/设置 打字结束回调方法 默认 null - /// Gets or sets 打字结束callback method Default is null + /// 获得/设置 打字结束回调方法,默认 null + /// Gets or sets the callback method when typing is complete. Default is null. /// 10.2.2 /// [Parameter] @@ -69,8 +69,8 @@ protected override async Task OnAfterRenderAsync(bool firstRender) }); /// - /// 打字结束方法 由 Javascript 触发 - /// 打字结束方法 由 Javascript 触发 + /// 打字结束方法,由 JavaScript 触发 + /// Called when typing is complete, triggered by JavaScript /// /// [JSInvokable] diff --git a/src/BootstrapBlazor/Components/Typed/TypedOptions.cs b/src/BootstrapBlazor/Components/Typed/TypedOptions.cs index f04d6f3bb6e..d98fe9b3035 100644 --- a/src/BootstrapBlazor/Components/Typed/TypedOptions.cs +++ b/src/BootstrapBlazor/Components/Typed/TypedOptions.cs @@ -8,94 +8,94 @@ namespace BootstrapBlazor.Components; /// -/// TypedJs 组件配置类 -/// TypedJs component配置类 +/// Typed 组件配置类 +/// Typed Component Configuration Class /// public class TypedOptions : IEquatable { /// /// 获得/设置 要打字的字符串数组 - /// Gets or sets 要打字的字符串数组 + /// Gets or sets the array of strings to be typed /// [JsonPropertyName("strings")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public List? Text { get; set; } /// - /// 获得/设置 打字速度 默认 null 未设置 单位毫秒 - /// Gets or sets 打字速度 Default is null 未Sets 单位毫秒 + /// 获得/设置 打字速度,默认 null 未设置,单位毫秒 + /// Gets or sets the typing speed. Default is null, in milliseconds. /// [JsonPropertyName("typeSpeed")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public int? TypeSpeed { get; set; } /// - /// 获得/设置 退格速度 默认 null 未设置 单位毫秒 - /// Gets or sets 退格速度 Default is null 未Sets 单位毫秒 + /// 获得/设置 退格速度,默认 null 未设置,单位毫秒 + /// Gets or sets the backspace speed. Default is null, in milliseconds. /// [JsonPropertyName("backSpeed")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public int? BackSpeed { get; set; } /// - /// 获得/设置 smartBackspace only backspace what doesn't match the previous string default true - /// Gets or sets smartBackspace only backspace what doesn't match the previous string default true + /// 获得/设置 smartBackspace,仅退格与前一个字符串不匹配的内容,默认 true + /// Gets or sets smartBackspace. Only backspace what doesn't match the previous string. Default is true. /// [JsonPropertyName("smartBackspace")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public bool? SmartBackspace { get; set; } /// - /// 获得/设置 shuffle the strings default false - /// Gets or sets shuffle the strings default false + /// 获得/设置 是否打乱字符串顺序,默认 false + /// Gets or sets whether to shuffle the strings. Default is false. /// [JsonPropertyName("shuffle")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public bool? Shuffle { get; set; } /// - /// 获得/设置 backDelay time before backspacing in milliseconds default 700 - /// Gets or sets backDelay time before backspacing in milliseconds default 700 + /// 获得/设置 退格前的延迟时间,默认 700 毫秒 + /// Gets or sets the delay time before backspacing in milliseconds. Default is 700. /// [JsonPropertyName("backDelay")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public int? BackDelay { get; set; } /// - /// 获得/设置 loop loop strings default false - /// Gets or sets loop loop strings default false + /// 获得/设置 是否循环打字,默认 false + /// Gets or sets whether to loop typing. Default is false. /// [JsonPropertyName("loop")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public bool? Loop { get; set; } /// - /// 获得/设置 loopCount amount of loops default Infinity - /// Gets or sets loopCount amount of loops default Infinity + /// 获得/设置 循环次数,默认无限 + /// Gets or sets the amount of loops. Default is Infinity. /// [JsonPropertyName("loopCount")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public int? LoopCount { get; set; } /// - /// 获得/设置 showCursor show cursor default true - /// Gets or sets showCursor show cursor default true + /// 获得/设置 是否显示光标,默认 true + /// Gets or sets whether to show the cursor. Default is true. /// [JsonPropertyName("showCursor")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public bool? ShowCursor { get; set; } /// - /// 获得/设置 cursorChar character for cursor default | - /// Gets or sets cursorChar character for cursor default | + /// 获得/设置 光标字符,默认 | + /// Gets or sets the cursor character. Default is |. /// [JsonPropertyName("cursorChar")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? CursorChar { get; set; } /// - /// 获得/设置 contentType 'html' or 'null' for plaintext default html - /// Gets or sets contentType 'html' or 'null' for plaintext default html + /// 获得/设置 内容类型,'html' 或 'null' 表示纯文本,默认 html + /// Gets or sets the content type. 'html' or 'null' for plaintext. Default is html. /// [JsonPropertyName("contentType")] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] diff --git a/src/BootstrapBlazor/Components/Upload/AvatarUpload.razor.cs b/src/BootstrapBlazor/Components/Upload/AvatarUpload.razor.cs index 445a397317c..65d61358bbb 100644 --- a/src/BootstrapBlazor/Components/Upload/AvatarUpload.razor.cs +++ b/src/BootstrapBlazor/Components/Upload/AvatarUpload.razor.cs @@ -6,16 +6,14 @@ namespace BootstrapBlazor.Components; /// -/// 头像上传组件 AvatarUpload Component -/// -/// 头像上传component AvatarUpload Component -/// +/// 头像上传组件 +/// Avatar Upload Component /// public partial class AvatarUpload { /// /// 获得/设置 文件预览框宽度 - /// Gets or sets 文件预览框width + /// Gets or sets the width of the file preview box /// 10.2.2 /// [Parameter] @@ -23,22 +21,22 @@ public partial class AvatarUpload /// /// 获得/设置 文件预览框高度 - /// Gets or sets 文件预览框height + /// Gets or sets the height of the file preview box /// 10.2.2 /// [Parameter] public int Height { get; set; } = 100; /// - /// 获得/设置 是否圆形图片框 Avatar 模式时生效 默认为 false - /// Gets or sets whether圆形图片框 Avatar 模式时生效 Default is为 false + /// 获得/设置 是否圆形图片框,Avatar 模式时生效,默认为 false + /// Gets or sets whether to use circular image frame. Default is false. /// 10.2.2 /// [Parameter] public bool IsCircle { get; set; } /// - /// 获得/设置 the border radius. 默认为 null. + /// 获得/设置 边框圆角,默认为 null /// Gets or sets the border radius. Default is null. /// 10.2.2 /// @@ -46,8 +44,8 @@ public partial class AvatarUpload public string? BorderRadius { get; set; } /// - /// 获得/设置 图标文件扩展名集合 ".png" - /// Gets or sets icon文件扩展名collection ".png" + /// 获得/设置 允许的文件扩展名集合,".png" + /// Gets or sets the allowed file extensions collection. ".png" /// 10.2.2 /// [Parameter] @@ -55,55 +53,55 @@ public partial class AvatarUpload /// /// 获得/设置 删除图标 - /// Gets or sets 删除icon + /// Gets or sets the delete icon /// 10.2.2 /// [Parameter] public string? DeleteIcon { get; set; } /// - /// 获得/设置 加载图标 - /// Gets or sets 加载icon + /// 获得/设置 加载中图标 + /// Gets or sets the loading icon /// 10.2.2 /// [Parameter] public string? LoadingIcon { get; set; } /// - /// 获得/设置 新建图标 - /// Gets or sets 新建icon + /// 获得/设置 新增图标 + /// Gets or sets the add icon /// 10.2.2 /// [Parameter] public string? AddIcon { get; set; } /// - /// 获得/设置 状态正常图标 - /// Gets or sets 状态正常icon + /// 获得/设置 上传成功状态图标 + /// Gets or sets the valid status icon /// 10.2.2 /// [Parameter] public string? ValidStatusIcon { get; set; } /// - /// 获得/设置 状态正常图标 - /// Gets or sets 状态正常icon + /// 获得/设置 上传失败状态图标 + /// Gets or sets the invalid status icon /// 10.2.2 /// [Parameter] public string? InvalidStatusIcon { get; set; } /// - /// 获得/设置 继续上传按钮是否在列表前 默认 false - /// Gets or sets 继续上传buttonwhether在列表前 Default is false + /// 获得/设置 继续上传按钮是否在列表前,默认 false + /// Gets or sets whether the upload button is displayed before the list. Default is false. /// 10.2.2 /// [Parameter] public bool IsUploadButtonAtFirst { get; set; } /// - /// 获得/设置 是否允许预览回调方法 默认 null - /// Gets or sets whether允许预览callback method Default is null + /// 获得/设置 是否允许预览的回调方法,默认 null + /// Gets or sets the callback method to determine whether preview is allowed. Default is null. /// 10.2.2 /// [Parameter] @@ -124,8 +122,8 @@ public partial class AvatarUpload .Build(); /// - /// 获得/设置 预览框 Style 属性 - /// Gets or sets 预览框 Style property + /// 获得 预览框样式字符串 + /// Gets the preview item style string /// private string? ItemStyleString => CssBuilder.Default() .AddClass($"width: {Width}px;", Width > 0) diff --git a/src/BootstrapBlazor/Components/Upload/ButtonUpload.razor.cs b/src/BootstrapBlazor/Components/Upload/ButtonUpload.razor.cs index 281e8af3cec..18dc75145b5 100644 --- a/src/BootstrapBlazor/Components/Upload/ButtonUpload.razor.cs +++ b/src/BootstrapBlazor/Components/Upload/ButtonUpload.razor.cs @@ -8,16 +8,14 @@ namespace BootstrapBlazor.Components; /// -/// 按钮上传组件 ButtonUpload Component -/// -/// button上传component ButtonUpload Component -/// +/// 按钮上传组件 +/// Button Upload Component /// public partial class ButtonUpload { /// /// 获得/设置 浏览按钮加载中图标 - /// Gets or sets 浏览button加载中icon + /// Gets or sets the loading icon for the browse button /// 10.2.2 /// [Parameter] @@ -25,7 +23,7 @@ public partial class ButtonUpload /// /// 获得/设置 上传失败状态图标 - /// Gets or sets 上传失败状态icon + /// Gets or sets the upload failed status icon /// 10.2.2 /// [Parameter] @@ -33,7 +31,7 @@ public partial class ButtonUpload /// /// 获得/设置 上传成功状态图标 - /// Gets or sets 上传成功状态icon + /// Gets or sets the upload success status icon /// 10.2.2 /// [Parameter] @@ -41,23 +39,23 @@ public partial class ButtonUpload /// /// 获得/设置 浏览按钮图标 - /// Gets or sets 浏览buttonicon + /// Gets or sets the browse button icon /// 10.2.2 /// [Parameter] public string? BrowserButtonIcon { get; set; } /// - /// 获得/设置 上传按钮样式 默认 null 使用 Button 默认 Color Primary - /// Gets or sets 上传buttonstyle Default is null 使用 Button Default is Color Primary + /// 获得/设置 上传按钮样式,默认 null 使用 Button 默认 Primary 颜色 + /// Gets or sets the upload button style. Default is null, uses Button Primary color. /// 10.2.2 /// [Parameter] public string? BrowserButtonClass { get; set; } /// - /// 获得/设置 是否显示上传列表 默认 true - /// Gets or sets whetherdisplay上传列表 Default is true + /// 获得/设置 是否显示上传列表,默认 true + /// Gets or sets whether to display the upload file list. Default is true. /// 10.2.2 /// [Parameter] @@ -65,7 +63,7 @@ public partial class ButtonUpload /// /// 获得/设置 浏览按钮显示文字 - /// Gets or sets 浏览buttondisplay文字 + /// Gets or sets the browse button display text /// 10.2.2 /// [Parameter] @@ -74,15 +72,15 @@ public partial class ButtonUpload /// /// 获得/设置 浏览按钮颜色 - /// Gets or sets 浏览buttoncolor + /// Gets or sets the browse button color /// 10.2.2 /// [Parameter] public Color BrowserButtonColor { get; set; } = Color.Primary; /// - /// 获得/设置 Size 大小 - /// Gets or sets Size 大小 + /// 获得/设置 按钮大小 + /// Gets or sets the button size /// 10.2.2 /// [Parameter] @@ -90,7 +88,7 @@ public partial class ButtonUpload /// /// 获得/设置 子组件内容 - /// Gets or sets 子componentcontent + /// Gets or sets the child content /// 10.2.2 /// [Parameter] @@ -98,7 +96,7 @@ public partial class ButtonUpload /// /// 获得/设置 设置文件格式图标回调委托 - /// Gets or sets Sets文件格式icon回调delegate + /// Gets or sets the callback delegate for setting file format icons /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Upload/CardUpload.razor.cs b/src/BootstrapBlazor/Components/Upload/CardUpload.razor.cs index 8f86d72a6e3..6474392f275 100644 --- a/src/BootstrapBlazor/Components/Upload/CardUpload.razor.cs +++ b/src/BootstrapBlazor/Components/Upload/CardUpload.razor.cs @@ -8,8 +8,8 @@ namespace BootstrapBlazor.Components; /// -/// CardUpload component -/// CardUpload component +/// CardUpload 组件 +/// CardUpload Component /// public partial class CardUpload { @@ -53,8 +53,8 @@ public partial class CardUpload private string PreviewerId => $"prev_{Id}"; /// - /// 获得/设置 是否允许预览回调方法 默认 null - /// Gets or sets whether允许预览callback method Default is null + /// 获得/设置 是否允许预览的回调方法,默认 null + /// Gets or sets the callback method to determine whether preview is allowed. Default is null. /// 10.2.2 /// [Parameter] @@ -62,15 +62,15 @@ public partial class CardUpload /// /// 获得/设置 图标模板 - /// Gets or sets icontemplate + /// Gets or sets the icon template /// 10.2.2 /// [Parameter] public RenderFragment? IconTemplate { get; set; } /// - /// 获得/设置 操作按钮模板 - /// Gets or sets 操作buttontemplate + /// 获得/设置 操作按钮前模板 + /// Gets or sets the before action button template /// 10.2.2 /// [Parameter] @@ -78,15 +78,15 @@ public partial class CardUpload /// /// 获得/设置 操作按钮模板 - /// Gets or sets 操作buttontemplate + /// Gets or sets the action button template /// 10.2.2 /// [Parameter] public RenderFragment? ActionButtonTemplate { get; set; } /// - /// 获得/设置 是否显示文件尺寸,默认为 true 显示 - /// Gets or sets whetherdisplay文件尺寸,Default is为 true display + /// 获得/设置 是否显示文件尺寸,默认为 true + /// Gets or sets whether to display the file size. Default is true. /// 10.2.2 /// [Parameter] @@ -94,7 +94,7 @@ public partial class CardUpload /// /// 获得/设置 新建图标 - /// Gets or sets 新建icon + /// Gets or sets the add icon /// 10.2.2 /// [Parameter] @@ -102,7 +102,7 @@ public partial class CardUpload /// /// 获得/设置 状态图标 - /// Gets or sets 状态icon + /// Gets or sets the status icon /// 10.2.2 /// [Parameter] @@ -110,7 +110,7 @@ public partial class CardUpload /// /// 获得/设置 移除图标 - /// Gets or sets 移除icon + /// Gets or sets the remove icon /// 10.2.2 /// [Parameter] @@ -118,96 +118,97 @@ public partial class CardUpload /// /// 获得/设置 放大图标 - /// Gets or sets 放大icon + /// Gets or sets the zoom icon /// 10.2.2 /// [Parameter] public string? ZoomIcon { get; set; } /// - /// 获得/设置 是否显示放大按钮 默认 true - /// Gets or sets whetherdisplay放大button Default is true + /// 获得/设置 是否显示放大按钮,默认 true + /// Gets or sets whether to display the zoom button. Default is true. /// 10.2.2 /// [Parameter] public bool ShowZoomButton { get; set; } = true; /// - /// 获得/设置 是否显示删除按钮 默认 true 显示 - /// Gets or sets whetherdisplay删除button Default is true display + /// 获得/设置 是否显示删除按钮,默认 true + /// Gets or sets whether to display the delete button. Default is true. /// 10.2.2 /// [Parameter] - [Obsolete("已弃用,请使用 ShowDeleteButton 参数。Deprecated, please use the ShowDeleteButton parameter")] + [Obsolete("已弃用,请使用 ShowDeleteButton 参数。(Deprecated, please use the ShowDeleteButton parameter)")] [ExcludeFromCodeCoverage] public bool ShowDeletedButton { get; set; } = true; /// - /// 获得/设置 继续上传按钮是否在列表前 默认 false - /// Gets or sets 继续上传buttonwhether在列表前 Default is false + /// 获得/设置 继续上传按钮是否在列表前,默认 false + /// Gets or sets whether the continue upload button is in front of the list. Default is false. /// 10.2.2 /// [Parameter] public bool IsUploadButtonAtFirst { get; set; } /// - /// 获得/设置 点击 Zoom 图标回调方法 - /// Gets or sets 点击 Zoom iconcallback method + /// 获得/设置 点击放大图标回调方法 + /// Gets or sets the callback method for the zoom icon click event /// 10.2.2 /// [Parameter] public Func? OnZoomAsync { get; set; } /// - /// 获得/设置 图标文件扩展名集合 ".png" - /// Gets or sets icon文件扩展名collection ".png" + /// 获得/设置 允许的文件扩展名集合 ".png" + /// Gets or sets the allowed file extensions collection. ".png" /// 10.2.2 /// [Parameter] public List? AllowExtensions { get; set; } /// - /// 获得/设置 删除前是否显示确认对话框,依赖 属性为 true 时有效 - /// Gets or sets 删除前whetherdisplay确认对话框,依赖 property为 true 时有效 + /// 获得/设置 删除前是否显示确认对话框,依赖 ShowDeleteButton 属性为 true 时有效 + /// Gets or sets whether to display a confirmation dialog before deletion. Only takes effect when the ShowDeleteButton property is true. /// 10.2.2 /// [Parameter] public bool ShowDeleteConfirmButton { get; set; } /// - /// 获得/设置 删除确认弹窗中确认按钮颜色 默认 - /// Gets or sets 删除确认弹窗中确认buttoncolor Default is + /// 获得/设置 删除确认弹窗中确认按钮颜色,默认 Color.Danger + /// Gets or sets the color of the confirmation button in the delete confirmation dialog. Default is Color.Danger. /// 10.2.2 /// [Parameter] public Color DeleteConfirmButtonColor { get; set; } = Color.Danger; /// - /// 获得/设置 删除确认弹窗中确认按钮图标 默认 null 未设置 - /// Gets or sets 删除确认弹窗中确认buttonicon Default is null 未Sets + /// 获得/设置 删除确认弹窗中确认按钮图标,默认 null + /// Gets or sets the confirmation button icon in the delete confirmation dialog. Default is null. /// 10.2.2 /// [Parameter] public string? DeleteConfirmButtonIcon { get; set; } /// - /// 获得/设置 删除确认弹窗中确认文本内容 默认 null 未设置 使用资源文件中内置文字 - /// Gets or sets 删除确认弹窗中确认文本content Default is null 未Sets 使用资源文件中内置文字 + /// 获得/设置 删除确认弹窗中确认文本内容,默认 null 使用资源文件中内置文字 + /// Gets or sets the confirmation text content in the delete confirmation dialog. Default is null (uses built-in text from resource file). /// 10.2.2 /// [Parameter] public string? DeleteConfirmContent { get; set; } + /// - /// 获得/设置 删除确认弹窗中确认按钮显示文字 默认 null 未设置 - /// Gets or sets 删除确认弹窗中确认buttondisplay文字 Default is null 未Sets + /// 获得/设置 删除确认弹窗中确认按钮显示文字,默认 null + /// Gets or sets the confirmation button display text in the delete confirmation dialog. Default is null. /// 10.2.2 /// [Parameter] public string? DeleteConfirmButtonText { get; set; } /// - /// 获得/设置 删除确认弹窗中取消按钮显示文字 默认 null 未设置 - /// Gets or sets 删除确认弹窗中取消buttondisplay文字 Default is null 未Sets + /// 获得/设置 删除确认弹窗中取消按钮显示文字,默认 null + /// Gets or sets the cancel button display text in the delete confirmation dialog. Default is null. /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Upload/DropUpload.razor.cs b/src/BootstrapBlazor/Components/Upload/DropUpload.razor.cs index cf5520b5c8b..ee749549b96 100644 --- a/src/BootstrapBlazor/Components/Upload/DropUpload.razor.cs +++ b/src/BootstrapBlazor/Components/Upload/DropUpload.razor.cs @@ -9,47 +9,45 @@ namespace BootstrapBlazor.Components; /// /// DropUpload 组件 -/// DropUpload component +/// Drop Upload Component /// public partial class DropUpload { /// - /// 获得/设置 Body 模板 默认 null 设置 BodyTemplate 后 不生效 - /// - /// Gets or sets Body template Default is null Sets BodyTemplate 后 不生效 - /// + /// 获得/设置 Body 模板,默认 null。设置 BodyTemplate 后 IconTemplate 和 TextTemplate 不生效。 + /// Gets or sets the body template. Default is null. When BodyTemplate is set, IconTemplate and TextTemplate are not effective. /// 10.2.2 /// [Parameter] public RenderFragment? BodyTemplate { get; set; } /// - /// 获得/设置 图标模板 默认 null - /// Gets or sets icontemplate Default is null + /// 获得/设置 图标模板,默认 null + /// Gets or sets the icon template. Default is null. /// 10.2.2 /// [Parameter] public RenderFragment? IconTemplate { get; set; } /// - /// 获得/设置 图标 默认 null - /// Gets or sets icon Default is null + /// 获得/设置 图标,默认 null + /// Gets or sets the icon. Default is null. /// 10.2.2 /// [Parameter] public string? UploadIcon { get; set; } /// - /// 获得/设置 文字模板 默认 null - /// Gets or sets 文字template Default is null + /// 获得/设置 文字模板,默认 null + /// Gets or sets the text template. Default is null. /// 10.2.2 /// [Parameter] public RenderFragment? TextTemplate { get; set; } /// - /// 获得/设置 上传文字 默认 null - /// Gets or sets 上传文字 Default is null + /// 获得/设置 上传文字,默认 null + /// Gets or sets the upload text. Default is null. /// 10.2.2 /// [Parameter] @@ -57,24 +55,24 @@ public partial class DropUpload public string? UploadText { get; set; } /// - /// 获得/设置 是否显示 Footer 默认 false 不显示 - /// Gets or sets whetherdisplay Footer Default is false 不display + /// 获得/设置 是否显示 Footer,默认 false + /// Gets or sets whether to display the footer. Default is false. /// 10.2.2 /// [Parameter] public bool ShowFooter { get; set; } /// - /// 获得/设置 Footer 字符串模板 默认 null 未设置 - /// Gets or sets Footer 字符串template Default is null 未Sets + /// 获得/设置 Footer 字符串模板,默认 null + /// Gets or sets the footer template. Default is null. /// 10.2.2 /// [Parameter] public RenderFragment? FooterTemplate { get; set; } /// - /// 获得/设置 Footer 字符串信息 默认 null 未设置 - /// Gets or sets Footer 字符串信息 Default is null 未Sets + /// 获得/设置 Footer 字符串信息,默认 null + /// Gets or sets the footer text. Default is null. /// 10.2.2 /// [Parameter] @@ -82,8 +80,8 @@ public partial class DropUpload public string? FooterText { get; set; } /// - /// 获得/设置 是否显示上传列表 默认 true - /// Gets or sets whetherdisplay上传列表 Default is true + /// 获得/设置 是否显示上传列表,默认 true + /// Gets or sets whether to display the upload file list. Default is true. /// 10.2.2 /// [Parameter] @@ -91,7 +89,7 @@ public partial class DropUpload /// /// 获得/设置 设置文件格式图标回调委托 - /// Gets or sets Sets文件格式icon回调delegate + /// Gets or sets the file format icon callback delegate /// 10.2.2 /// [Parameter] @@ -99,7 +97,7 @@ public partial class DropUpload /// /// 获得/设置 加载中图标 - /// Gets or sets 加载中icon + /// Gets or sets the loading icon. /// 10.2.2 /// [Parameter] @@ -107,7 +105,7 @@ public partial class DropUpload /// /// 获得/设置 上传失败状态图标 - /// Gets or sets 上传失败状态icon + /// Gets or sets the upload failed status icon. /// 10.2.2 /// [Parameter] @@ -115,7 +113,7 @@ public partial class DropUpload /// /// 获得/设置 上传成功状态图标 - /// Gets or sets 上传成功状态icon + /// Gets or sets the upload success status icon. /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Upload/FileListUploadBase.cs b/src/BootstrapBlazor/Components/Upload/FileListUploadBase.cs index 5e765048533..1fb338e2783 100644 --- a/src/BootstrapBlazor/Components/Upload/FileListUploadBase.cs +++ b/src/BootstrapBlazor/Components/Upload/FileListUploadBase.cs @@ -6,79 +6,78 @@ namespace BootstrapBlazor.Components; /// -/// FileListUploadBase 基类 -/// FileListUploadBase 基类 +/// FileListUploadBase 基类 +/// FileListUploadBase Base Class /// /// public class FileListUploadBase : UploadBase { /// - /// 获得/设置 是否显示删除按钮 默认 false - /// Gets or sets whetherdisplay删除button Default is false - /// 10.2.2 + /// 获得/设置 是否显示删除按钮,默认 false + /// Gets or sets whether to display the delete button. Default is false. + /// 10.2.2 /// [Parameter] public bool ShowDeleteButton { get; set; } /// - /// 获得/设置 删除按钮图标 - /// Gets or sets 删除buttonicon - /// 10.2.2 + /// 获得/设置 删除按钮图标 + /// Gets or sets the delete button icon + /// 10.2.2 /// [Parameter] public string? DeleteIcon { get; set; } /// - /// 获得/设置 是否显示下载按钮 默认 false - /// Gets or sets whetherdisplay下载button Default is false - /// 10.2.2 + /// 获得/设置 是否显示下载按钮,默认 false + /// Gets or sets whether to display the download button. Default is false. + /// 10.2.2 /// [Parameter] public bool ShowDownloadButton { get; set; } /// - /// 获得/设置 下载按钮图标 - /// Gets or sets 下载buttonicon - /// 10.2.2 + /// 获得/设置 下载按钮图标 + /// Gets or sets the download button icon + /// 10.2.2 /// [Parameter] public string? DownloadIcon { get; set; } /// - /// 获得/设置 点击下载按钮回调方法 默认 null - /// Gets or sets 点击下载buttoncallback method Default is null - /// 10.2.2 + /// 获得/设置 点击下载按钮回调方法,默认 null + /// Gets or sets the callback method for the download button click event. Default is null. + /// 10.2.2 /// [Parameter] public Func? OnDownload { get; set; } /// - /// 获得/设置 取消图标 - /// Gets or sets 取消icon - /// 10.2.2 + /// 获得/设置 取消按钮图标 + /// Gets or sets the cancel button icon + /// 10.2.2 /// [Parameter] public string? CancelIcon { get; set; } /// - /// 获得/设置 点击取消按钮回调此方法 默认 null - /// Gets or sets 点击取消button回调此方法 Default is null - /// 10.2.2 + /// 获得/设置 点击取消按钮回调方法,默认 null + /// Gets or sets the callback method for the cancel button click event. Default is null. + /// 10.2.2 /// [Parameter] public Func? OnCancel { get; set; } /// - /// 服务实例 - /// 服务instance + /// IconTheme 服务实例 + /// Gets the IconTheme service instance /// [Inject] [NotNull] protected IIconTheme? IconTheme { get; set; } /// - /// - /// + /// /// protected override void OnParametersSet() { diff --git a/src/BootstrapBlazor/Components/Upload/IUpload.cs b/src/BootstrapBlazor/Components/Upload/IUpload.cs index b5f26aa0a0b..89b7084665a 100644 --- a/src/BootstrapBlazor/Components/Upload/IUpload.cs +++ b/src/BootstrapBlazor/Components/Upload/IUpload.cs @@ -6,14 +6,14 @@ namespace BootstrapBlazor.Components; /// -/// IUpload 接口 -/// IUpload 接口 +/// IUpload 接口 +/// IUpload Interface /// public interface IUpload { /// - /// 获得/设置 上传文件实例集合 - /// Gets or sets 上传文件instancecollection + /// 获得/设置 上传文件实例集合 + /// Gets or sets the upload file collection /// List UploadFiles { get; } } diff --git a/src/BootstrapBlazor/Components/Upload/InputUpload.razor.cs b/src/BootstrapBlazor/Components/Upload/InputUpload.razor.cs index f22421b847c..19383dc12bd 100644 --- a/src/BootstrapBlazor/Components/Upload/InputUpload.razor.cs +++ b/src/BootstrapBlazor/Components/Upload/InputUpload.razor.cs @@ -8,73 +8,73 @@ namespace BootstrapBlazor.Components; /// -/// InputUpload 组件 -/// InputUpload component +/// InputUpload 组件 +/// Input Upload Component /// public partial class InputUpload { /// - /// 获得/设置 浏览按钮图标 - /// Gets or sets 浏览buttonicon - /// 10.2.2 + /// 获得/设置 浏览按钮图标 + /// Gets or sets the browse button icon + /// 10.2.2 /// [Parameter] public string? BrowserButtonIcon { get; set; } /// - /// 获得/设置 上传按钮样式 默认 btn-primary - /// Gets or sets 上传buttonstyle Default is btn-primary - /// 10.2.2 + /// 获得/设置 上传按钮样式,默认 btn-primary + /// Gets or sets the upload button style. Default is btn-primary. + /// 10.2.2 /// [Parameter] public string BrowserButtonClass { get; set; } = "btn-primary"; /// - /// 获得/设置 浏览按钮显示文字 - /// Gets or sets 浏览buttondisplay文字 - /// 10.2.2 + /// 获得/设置 浏览按钮显示文字 + /// Gets or sets the browse button display text + /// 10.2.2 /// [Parameter] [NotNull] public string? BrowserButtonText { get; set; } /// - /// 获得/设置 删除按钮样式 默认 btn-danger - /// Gets or sets 删除buttonstyle Default is btn-danger - /// 10.2.2 + /// 获得/设置 删除按钮样式,默认 btn-danger + /// Gets or sets the delete button style. Default is btn-danger. + /// 10.2.2 /// [Parameter] public string DeleteButtonClass { get; set; } = "btn-danger"; /// - /// 获得/设置 删除按钮图标 - /// Gets or sets 删除buttonicon - /// 10.2.2 + /// 获得/设置 删除按钮图标 + /// Gets or sets the delete button icon + /// 10.2.2 /// [Parameter] public string? DeleteButtonIcon { get; set; } /// - /// 获得/设置 重置按钮显示文字 - /// Gets or sets 重置buttondisplay文字 - /// 10.2.2 + /// 获得/设置 删除按钮显示文字 + /// Gets or sets the delete button display text + /// 10.2.2 /// [Parameter] [NotNull] public string? DeleteButtonText { get; set; } /// - /// 获得/设置 是否显示删除按钮 默认为 false 不显示 - /// Gets or sets whetherdisplay删除button Default is为 false 不display - /// 10.2.2 + /// 获得/设置 是否显示删除按钮,默认为 false + /// Gets or sets whether to display the delete button. Default is false. + /// 10.2.2 /// [Parameter] public bool ShowDeleteButton { get; set; } /// - /// 获得/设置 PlaceHolder 占位符文本 - /// Gets or sets PlaceHolder 占位符文本 - /// 10.2.2 + /// 获得/设置 PlaceHolder 占位符文本 + /// Gets or sets the placeholder text + /// 10.2.2 /// [Parameter] public string? PlaceHolder { get; set; } @@ -106,8 +106,7 @@ public partial class InputUpload .Build(); /// - /// - /// + /// /// protected override void OnParametersSet() { diff --git a/src/BootstrapBlazor/Components/Upload/UploadBase.cs b/src/BootstrapBlazor/Components/Upload/UploadBase.cs index fafcab9018e..6ff132cc69b 100644 --- a/src/BootstrapBlazor/Components/Upload/UploadBase.cs +++ b/src/BootstrapBlazor/Components/Upload/UploadBase.cs @@ -9,42 +9,42 @@ namespace BootstrapBlazor.Components; /// /// Upload 组件基类 -/// Upload component基类 +/// Upload Component Base Class /// [BootstrapModuleAutoLoader(ModuleName = "upload")] public abstract class UploadBase : ValidateBase, IUpload { /// - /// 获得/设置 是否仅上传一次 默认 false - /// Gets or sets whether仅上传一次 Default is false + /// 获得/设置 是否仅上传一次,默认 false + /// Gets or sets whether to upload only once. Default is false. /// 10.2.2 /// [Parameter] - [Obsolete("已弃用 通过 IsMultiple 参数实现此功能; Deprecated. please use IsMultiple parameter.")] + [Obsolete("已弃用。请使用 IsMultiple 参数。(Deprecated. Please use IsMultiple parameter.)")] [ExcludeFromCodeCoverage] public bool IsSingle { get; set; } /// - /// 获得/设置 最大上传个数 默认为最大值 - /// Gets or sets 最大上传个数 Default is为最大值 + /// 获得/设置 最大上传个数,默认为最大值 int.MaxValue + /// Gets or sets the maximum number of files to upload. Default is int.MaxValue. /// 10.2.2 /// [Parameter] - [Obsolete("已弃用 通过 MaxFileCount 参数实现此功能; Deprecated. please use MaxFileCount parameter.")] + [Obsolete("已弃用。请使用 MaxFileCount 参数。(Deprecated. Please use MaxFileCount parameter.)")] [ExcludeFromCodeCoverage] public int Max { get; set; } = int.MaxValue; /// - /// 获得/设置 最大上传个数 默认为 null - /// Gets or sets 最大上传个数 Default is为 null + /// 获得/设置 最大上传个数,默认为 null + /// Gets or sets the maximum number of files to upload. Default is null. /// 10.2.2 /// [Parameter] public int? MaxFileCount { get; set; } /// - /// 获得/设置 所有文件上传完毕回调方法 默认 null - /// Gets or sets 所有文件上传完毕callback method Default is null + /// 获得/设置 所有文件上传完毕回调方法,默认 null + /// Gets or sets the callback method when all files have been uploaded. Default is null. /// 10.2.2 /// [Parameter] @@ -52,23 +52,23 @@ public abstract class UploadBase : ValidateBase, IUpload /// /// 获得/设置 已上传文件集合,可用于组件初始化 - /// Gets or sets 已上传文件collection,可用于component初始化 + /// Gets or sets the uploaded file collection for component initialization /// 10.2.2 /// [Parameter] public List? DefaultFileList { get; set; } /// - /// 获得/设置 是否显示上传进度 默认为 false - /// Gets or sets whetherdisplay上传进度 Default is为 false + /// 获得/设置 是否显示上传进度,默认为 false + /// Gets or sets whether to display the upload progress. Default is false. /// 10.2.2 /// [Parameter] public bool ShowProgress { get; set; } /// - /// 获得/设置 上传接收的文件格式 默认为 null 接收任意格式 - /// Gets or sets 上传接收的文件格式 Default is为 null 接收任意格式 + /// 获得/设置 上传接收的文件格式,默认为 null 接收任意格式 + /// Gets or sets the accepted file format. Default is null (accepts all formats). /// 10.2.2 /// [Parameter] @@ -76,39 +76,39 @@ public abstract class UploadBase : ValidateBase, IUpload /// /// 获得/设置 媒体捕获机制的首选面向模式,默认为 null - /// Gets or sets 媒体捕获机制的首选面向模式,Default is为 null + /// Gets or sets the preferred facing mode for media capture. Default is null. /// 10.2.2 /// [Parameter] public string? Capture { get; set; } /// - /// 获得/设置 是否上传整个目录 默认为 false - /// Gets or sets whether上传整个目录 Default is为 false + /// 获得/设置 是否上传整个目录,默认为 false + /// Gets or sets whether to upload the entire directory. Default is false. /// 10.2.2 /// [Parameter] public bool IsDirectory { get; set; } /// - /// 获得/设置 是否允许多文件上传 默认 false 不允许 - /// Gets or sets whether允许多文件上传 Default is false 不允许 + /// 获得/设置 是否允许多文件上传,默认 false + /// Gets or sets whether to allow multiple file uploads. Default is false. /// 10.2.2 /// [Parameter] public bool IsMultiple { get; set; } /// - /// 获得/设置 点击删除按钮时回调此方法 默认 null - /// Gets or sets 点击删除button时回调此方法 Default is null + /// 获得/设置 点击删除按钮时回调此方法,默认 null + /// Gets or sets the callback method when the delete button is clicked. Default is null. /// 10.2.2 /// [Parameter] public Func>? OnDelete { get; set; } /// - /// 获得/设置 点击浏览按钮时回调此方法,如果多文件上传此回调会触发多次 默认 null - /// Gets or sets 点击浏览button时回调此方法,如果多文件上传此回调会触发多次 Default is null + /// 获得/设置 点击浏览按钮时回调此方法,如果多文件上传此回调会触发多次,默认 null + /// Gets or sets the callback method when the browse button is clicked. This may be called multiple times for multiple file uploads. Default is null. /// 10.2.2 /// [Parameter] @@ -116,7 +116,7 @@ public abstract class UploadBase : ValidateBase, IUpload /// /// 获得/设置 已上传文件集合,此集合中数据是用户上传文件集合 - /// Gets or sets 已上传文件collection,此collection中data是用户上传文件collection + /// Gets or sets the uploaded file collection. This collection contains the files uploaded by the user. /// public List UploadFiles { get; } = []; @@ -164,7 +164,7 @@ protected override void OnParametersSet() } /// - /// User selects files 回调方法 + /// 用户选择文件回调方法 /// User selects files callback method /// /// @@ -247,7 +247,7 @@ private void UpdateValue(List items) /// /// 触发 OnChanged 事件回调方法 - /// 触发 OnChanged 事件callback method + /// Trigger OnChanged event callback method /// /// /// @@ -260,7 +260,7 @@ protected virtual async Task TriggerOnChanged(UploadFile file) } /// - /// Delete file method. + /// 删除文件方法。 /// Delete file method. /// /// @@ -292,7 +292,7 @@ protected virtual async Task OnFileDelete(UploadFile item) /// /// 是否显示进度条方法 - /// whetherdisplay进度条方法 + /// Whether to display progress bar method /// /// /// @@ -300,7 +300,7 @@ protected virtual async Task OnFileDelete(UploadFile item) /// /// 更新上传进度方法 - /// 更新上传进度方法 + /// Update upload progress method /// /// protected void Update(UploadFile file) diff --git a/src/BootstrapBlazor/Components/Upload/UploadFile.cs b/src/BootstrapBlazor/Components/Upload/UploadFile.cs index 8b5034607d4..530a2eb250f 100644 --- a/src/BootstrapBlazor/Components/Upload/UploadFile.cs +++ b/src/BootstrapBlazor/Components/Upload/UploadFile.cs @@ -8,93 +8,93 @@ namespace BootstrapBlazor.Components; /// -/// 上传组件返回类 -/// 上传component返回类 +/// 上传文件类 +/// Upload File Class /// public class UploadFile { /// - /// 获得/设置 文件名 由用户指定 上传文件时此参数未设置 默认为 null - /// Gets or sets 文件名 由用户指定 上传文件时此参数未Sets Default is为 null + /// 获得/设置 文件名,由用户指定,上传时此参数未设置默认为 null + /// Gets or sets the file name specified by the user. Default is null if not set during upload. /// public string? FileName { get; set; } /// - /// 获得/设置 原始文件名(上传时 IBrowserFile.Name 实例赋值) - /// Gets or sets 原始文件名(上传时 IBrowserFile.Name instance赋值) + /// 获得/设置 原始文件名(上传时由 IBrowserFile.Name 赋值) + /// Gets or sets the original file name (assigned from IBrowserFile.Name during upload) /// public string? OriginFileName { get; internal set; } /// - /// 获得/设置 文件大小 - /// Gets or sets 文件大小 + /// 获得/设置 文件大小 + /// Gets or sets the file size /// public long Size { get; set; } /// - /// 获得/设置 文件上传结果 0 表示成功 非零表示失败 - /// Gets or sets 文件上传结果 0 表示成功 非零表示失败 + /// 获得/设置 文件上传结果,0 表示成功,非零表示失败 + /// Gets or sets the upload result. 0 indicates success, non-zero indicates failure. /// public int Code { get; set; } /// - /// 获得/设置 文件预览地址 - /// Gets or sets 文件预览地址 + /// 获得/设置 文件预览地址 + /// Gets or sets the file preview URL /// public string? PrevUrl { get; set; } /// - /// 获得/设置 错误信息 - /// Gets or sets 错误信息 + /// 获得/设置 错误信息 + /// Gets or sets the error message /// public string? Error { get; set; } /// - /// 获得/设置 上传文件实例 - /// Gets or sets 上传文件instance + /// 获得/设置 上传文件实例 + /// Gets or sets the upload file instance /// public IBrowserFile? File { get; set; } /// - /// 获得/设置 上传文件总数量 - /// Gets or sets 上传文件总数量 + /// 获得/设置 上传文件总数量 + /// Gets or sets the total number of files to upload /// public int FileCount { get; init; } = 1; /// - /// 获得/设置 更新进度回调委托 - /// Gets or sets 更新进度回调delegate + /// 获得/设置 更新进度回调委托 + /// Gets or sets the progress update callback delegate /// internal Action? UpdateCallback { get; set; } /// - /// 获得/设置 更新进度回调委托 - /// Gets or sets 更新进度回调delegate + /// 获得/设置 上传进度百分比 + /// Gets or sets the upload progress percentage /// internal int ProgressPercent { get; set; } /// - /// 获得/设置 文件是否上传处理完毕 - /// Gets or sets 文件whether上传处理完毕 + /// 获得/设置 文件是否上传处理完毕 + /// Gets or sets whether the file upload has been completed /// internal bool Uploaded { get; set; } = true; /// - /// 获得/设置 用于客户端验证 Id - /// Gets or sets 用于客户端验证 Id + /// 获得/设置 用于客户端验证的 ID + /// Gets or sets the ID for client-side validation /// internal string? ValidateId { get; set; } /// - /// 获得 UploadFile 文件名 - /// Gets UploadFile 文件名 + /// 获得 UploadFile 的文件名 + /// Gets the file name of the UploadFile /// /// public string? GetFileName() => FileName ?? OriginFileName ?? File?.Name; /// - /// 获得 UploadFile 文件扩展名 - /// Gets UploadFile 文件扩展名 + /// 获得 UploadFile 的文件扩展名 + /// Gets the file extension of the UploadFile /// /// public string? GetExtension() => Path.GetExtension(GetFileName()); diff --git a/src/BootstrapBlazor/Components/Upload/UploadPreviewList.razor.cs b/src/BootstrapBlazor/Components/Upload/UploadPreviewList.razor.cs index 0adab279886..3e12edc9672 100644 --- a/src/BootstrapBlazor/Components/Upload/UploadPreviewList.razor.cs +++ b/src/BootstrapBlazor/Components/Upload/UploadPreviewList.razor.cs @@ -6,13 +6,13 @@ namespace BootstrapBlazor.Components; /// -/// UploadPreviewList component -/// UploadPreviewList component +/// UploadPreviewList 组件 +/// UploadPreviewList Component /// public partial class UploadPreviewList { /// - /// 获得/设置 the 集合 of files to be uploaded. + /// 获得/设置 待上传文件集合 /// Gets or sets the collection of files to be uploaded. /// 10.2.2 /// @@ -21,7 +21,7 @@ public partial class UploadPreviewList public List? Items { get; set; } /// - /// 获得/设置 the disable status of the upload list. + /// 获得/设置 上传列表禁用状态 /// Gets or sets the disable status of the upload list. /// 10.2.2 /// @@ -29,7 +29,7 @@ public partial class UploadPreviewList public bool IsDisabled { get; set; } /// - /// 获得/设置 a value indicating 是否 progress should be 显示ed during the operation. + /// 获得/设置 是否在操作期间显示进度 /// Gets or sets a value indicating whether progress should be displayed during the operation. /// 10.2.2 /// @@ -37,7 +37,7 @@ public partial class UploadPreviewList public bool ShowProgress { get; set; } /// - /// 获得/设置 the upload file format 回调方法. + /// 获得/设置 上传文件格式回调方法 /// Gets or sets the upload file format callback method. /// 10.2.2 /// @@ -45,30 +45,24 @@ public partial class UploadPreviewList public Func? OnGetFileFormat { get; set; } /// - /// Gets or sets the callback method for the cancel button click event. Default is null - /// 获得/设置 点击取消按钮回调此方法 默认 null - /// - /// Gets or sets the callback method for the cancel button click event. Default is null - /// Gets or sets 点击取消button回调此方法 Default is null - /// + /// 获得/设置 点击取消按钮回调方法,默认 null + /// Gets or sets the callback method for the cancel button click event. Default is null. /// 10.2.2 /// [Parameter] public Func? OnCancel { get; set; } /// - /// 获得/设置 取消图标 - /// Gets or sets 取消icon + /// 获得/设置 取消按钮图标 + /// Gets or sets the cancel button icon. /// 10.2.2 /// [Parameter] public string? CancelIcon { get; set; } /// - /// 获得/设置 浏览按钮图标 - /// - /// Gets or sets 浏览buttonicon - /// + /// 获得/设置 加载状态图标 + /// Gets or sets the loading state icon. /// 10.2.2 /// [Parameter] @@ -76,7 +70,7 @@ public partial class UploadPreviewList /// /// 获得/设置 下载按钮图标 - /// Gets or sets 下载buttonicon + /// Gets or sets the download button icon. /// 10.2.2 /// [Parameter] @@ -84,7 +78,7 @@ public partial class UploadPreviewList /// /// 获得/设置 上传失败状态图标 - /// Gets or sets 上传失败状态icon + /// Gets or sets the upload failed status icon. /// 10.2.2 /// [Parameter] @@ -92,7 +86,7 @@ public partial class UploadPreviewList /// /// 获得/设置 上传成功状态图标 - /// Gets or sets 上传成功状态icon + /// Gets or sets the upload success status icon. /// 10.2.2 /// [Parameter] @@ -100,31 +94,31 @@ public partial class UploadPreviewList /// /// 获得/设置 删除按钮图标 - /// Gets or sets 删除buttonicon + /// Gets or sets the delete button icon. /// 10.2.2 /// [Parameter] public string? DeleteIcon { get; set; } /// - /// 获得/设置 是否显示下载按钮 默认 false - /// Gets or sets whetherdisplay下载button Default is false + /// 获得/设置 是否显示下载按钮,默认 false + /// Gets or sets whether to display the download button. Default is false. /// 10.2.2 /// [Parameter] public bool ShowDownloadButton { get; set; } /// - /// 获得/设置 点击下载按钮回调方法 默认 null - /// Gets or sets 点击下载buttoncallback method Default is null + /// 获得/设置 点击下载按钮回调方法,默认 null + /// Gets or sets the callback method for the download button click event. Default is null. /// 10.2.2 /// [Parameter] public Func? OnDownload { get; set; } /// - /// 获得/设置 点击删除按钮时回调此方法 默认 null - /// Gets or sets 点击删除button时回调此方法 Default is null + /// 获得/设置 点击删除按钮回调方法,默认 null + /// Gets or sets the callback method for the delete button click event. Default is null. /// 10.2.2 /// [Parameter] @@ -132,87 +126,87 @@ public partial class UploadPreviewList /// /// 获得/设置 Excel 类型文件图标 - /// Gets or sets Excel type文件icon + /// Gets or sets the Excel file type icon. /// 10.2.2 /// [Parameter] public string? FileIconExcel { get; set; } /// - /// 获得/设置 Excel 类型文件图标 - /// Gets or sets Excel type文件icon + /// 获得/设置 Word 文档文件图标 + /// Gets or sets the Word document file type icon. /// 10.2.2 /// [Parameter] public string? FileIconDocx { get; set; } /// - /// 获得/设置 Excel 类型文件图标 - /// Gets or sets Excel type文件icon + /// 获得/设置 PowerPoint 文件图标 + /// Gets or sets the PowerPoint file type icon. /// 10.2.2 /// [Parameter] public string? FileIconPPT { get; set; } /// - /// 获得/设置 Excel 类型文件图标 - /// Gets or sets Excel type文件icon + /// 获得/设置 音频文件图标 + /// Gets or sets the audio file type icon. /// 10.2.2 /// [Parameter] public string? FileIconAudio { get; set; } /// - /// 获得/设置 Excel 类型文件图标 - /// Gets or sets Excel type文件icon + /// 获得/设置 视频文件图标 + /// Gets or sets the video file type icon. /// 10.2.2 /// [Parameter] public string? FileIconVideo { get; set; } /// - /// 获得/设置 Excel 类型文件图标 - /// Gets or sets Excel type文件icon + /// 获得/设置 代码文件图标 + /// Gets or sets the code file type icon. /// 10.2.2 /// [Parameter] public string? FileIconCode { get; set; } /// - /// 获得/设置 Excel 类型文件图标 - /// Gets or sets Excel type文件icon + /// 获得/设置 PDF 文件图标 + /// Gets or sets the PDF file type icon. /// 10.2.2 /// [Parameter] public string? FileIconPdf { get; set; } /// - /// 获得/设置 Excel 类型文件图标 - /// Gets or sets Excel type文件icon + /// 获得/设置 压缩文件图标 + /// Gets or sets the compressed file type icon. /// 10.2.2 /// [Parameter] public string? FileIconZip { get; set; } /// - /// 获得/设置 Excel 类型文件图标 - /// Gets or sets Excel type文件icon + /// 获得/设置 档案文件图标 + /// Gets or sets the archive file type icon. /// 10.2.2 /// [Parameter] public string? FileIconArchive { get; set; } /// - /// 获得/设置 Excel 类型文件图标 - /// Gets or sets Excel type文件icon + /// 获得/设置 图像文件图标 + /// Gets or sets the image file type icon. /// 10.2.2 /// [Parameter] public string? FileIconImage { get; set; } /// - /// 获得/设置 Excel 类型文件图标 - /// Gets or sets Excel type文件icon + /// 获得/设置 通用文件图标 + /// Gets or sets the generic file type icon. /// 10.2.2 /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Validate/IValidateCollection.cs b/src/BootstrapBlazor/Components/Validate/IValidateCollection.cs index ea5a40bf14d..c3d3ac71612 100644 --- a/src/BootstrapBlazor/Components/Validate/IValidateCollection.cs +++ b/src/BootstrapBlazor/Components/Validate/IValidateCollection.cs @@ -6,14 +6,14 @@ namespace BootstrapBlazor.Components; /// -/// IValidateCollection 多个验证结果接口 支持组件间联动验证 -/// IValidateCollection 多个验证结果接口 支持component间联动验证 +/// IValidateCollection 接口,支持多个验证结果和组件间联动验证 +/// IValidateCollection Interface - Supports multiple validation results and cross-component validation linkage /// public interface IValidateCollection { /// /// 验证方法 - /// 验证方法 + /// Validates the specified validation context /// /// /// @@ -21,14 +21,14 @@ public interface IValidateCollection /// /// 返回合法成员集合 - /// 返回合法成员collection + /// Gets the valid member names collection /// /// List GetValidMemberNames(); /// /// 返回非法成员集合 - /// 返回非法成员collection + /// Gets the invalid member names collection /// /// List GetInvalidMemberNames(); diff --git a/src/BootstrapBlazor/Components/Validate/IValidateComponent.cs b/src/BootstrapBlazor/Components/Validate/IValidateComponent.cs index bf375990586..df8bfd5c4f4 100644 --- a/src/BootstrapBlazor/Components/Validate/IValidateComponent.cs +++ b/src/BootstrapBlazor/Components/Validate/IValidateComponent.cs @@ -7,26 +7,26 @@ namespace BootstrapBlazor.Components; /// /// IValidateComponent 接口 -/// IValidateComponent 接口 +/// IValidateComponent Interface /// public interface IValidateComponent { /// - /// 获得/设置 是否不进行验证 默认为 false - /// Gets or sets whether不进行验证 Default is为 false + /// 获得/设置 是否进行验证 默认为 false + /// Gets or sets whether validation is needed. Default is false. /// bool IsNeedValidate { get; } /// /// 判断是否需要进行复杂类验证 - /// 判断whether需要进行复杂类验证 + /// Determines whether complex type validation is needed /// /// bool IsComplexValue(object? value); /// /// 数据验证方法 - /// data验证方法 + /// Validates the property asynchronously /// /// /// @@ -35,7 +35,7 @@ public interface IValidateComponent /// /// 显示或者隐藏提示信息方法 - /// display或者隐藏提示信息方法 + /// Shows or hides the validation message /// /// Task ToggleMessage(IReadOnlyCollection results); diff --git a/src/BootstrapBlazor/Components/Validate/ValidateBase.cs b/src/BootstrapBlazor/Components/Validate/ValidateBase.cs index f1725bd1086..ef4584dc916 100644 --- a/src/BootstrapBlazor/Components/Validate/ValidateBase.cs +++ b/src/BootstrapBlazor/Components/Validate/ValidateBase.cs @@ -11,7 +11,7 @@ namespace BootstrapBlazor.Components; /// /// 支持客户端验证的文本框基类 -/// 支持客户端验证的文本框基类 +/// Base class for text boxes supporting client-side validation /// public abstract class ValidateBase : DisplayBase, IValidateComponent { @@ -19,31 +19,31 @@ public abstract class ValidateBase : DisplayBase, IValidateCompo /// /// 获得/设置 上一次转化是否失败 为 true 时表示上一次转化失败 - /// Gets or sets 上一次转化whether失败 为 true 时表示上一次转化失败 + /// Gets or sets whether the previous parsing attempt failed. True indicates the last parsing failed. /// protected bool PreviousParsingAttemptFailed { get; set; } /// /// 获得/设置 上一次转化失败错误描述信息 - /// Gets or sets 上一次转化失败错误描述信息 + /// Gets or sets the error message from the previous failed parsing attempt /// protected string? PreviousErrorMessage { get; set; } /// - /// 获得 the associated + /// 获得 关联的 EditContext /// Gets the associated /// protected EditContext? EditContext { get; set; } /// /// 获得/设置 错误描述信息 - /// Gets or sets 错误描述信息 + /// Gets or sets the error message /// protected string? ErrorMessage { get; set; } /// /// 获得/设置 数据合规样式 - /// Gets or sets data合规style + /// Gets or sets the validation CSS class /// protected string? ValidCss => IsValid.HasValue ? GetValidString(IsValid.Value) : null; @@ -51,24 +51,24 @@ public abstract class ValidateBase : DisplayBase, IValidateCompo /// /// 获得/设置 组件是否合规 默认为 null 未检查 - /// Gets or sets componentwhether合规 Default is为 null 未检查 + /// Gets or sets whether the component is valid. Default is null (unchecked). /// protected bool? IsValid { get; set; } /// /// 获得 组件是否被禁用属性值 - /// Gets componentwhether被禁用property值 + /// Gets the disabled attribute value of the component /// protected string? Disabled => IsDisabled ? "disabled" : null; /// /// 是否显示 必填项标记 - /// whetherdisplay 必填项标记 + /// Gets or sets whether to display the required field marker /// protected string? Required { get; set; } /// - /// 获得/设置 the current value of the input. + /// 获得/设置 输入框的当前值 /// Gets or sets the current value of the input. /// protected TValue? CurrentValue @@ -102,7 +102,7 @@ protected TValue? CurrentValue } /// - /// 获得/设置 the current value of the input, represented as a string. + /// 获得/设置 输入框的当前值,以字符串形式表示 /// Gets or sets the current value of the input, represented as a string. /// protected string CurrentValueAsString @@ -164,7 +164,7 @@ protected string CurrentValueAsString /// /// 获得/设置 Value 改变时回调方法 - /// Gets or sets Value 改变时callback method + /// Gets or sets the callback method when value changes /// 10.2.2 /// [Parameter] @@ -172,7 +172,7 @@ protected string CurrentValueAsString /// /// 获得/设置 类型转化失败格式化字符串 默认为 null - /// Gets or sets type转化失败格式化字符串 Default is为 null + /// Gets or sets the parsing error message format string. Default is null. /// 10.2.2 /// [Parameter] @@ -181,7 +181,7 @@ protected string CurrentValueAsString /// /// 获得/设置 是否不进行验证 默认为 false - /// Gets or sets whether不进行验证 Default is为 false + /// Gets or sets whether to skip validation. Default is false. /// 10.2.2 /// [Parameter] @@ -189,7 +189,7 @@ protected string CurrentValueAsString /// /// 获得/设置 是否禁用 默认为 false - /// Gets or sets whether禁用 Default is为 false + /// Gets or sets whether the component is disabled. Default is false. /// 10.2.2 /// [Parameter] @@ -197,7 +197,7 @@ protected string CurrentValueAsString /// /// 获得/设置 是否显示必填项标记 默认为 null 未设置 - /// Gets or sets whetherdisplay必填项标记 Default is为 null 未Sets + /// Gets or sets whether to display the required field marker. Default is null. /// 10.2.2 /// [Parameter] @@ -205,7 +205,7 @@ protected string CurrentValueAsString /// /// 获得/设置 必填项错误文本 默认为 null 未设置 - /// Gets or sets 必填项错误文本 Default is为 null 未Sets + /// Gets or sets the required field error message. Default is null. /// 10.2.2 /// [Parameter] @@ -213,7 +213,7 @@ protected string CurrentValueAsString /// /// 获得 父组件的 EditContext 实例 - /// Gets 父component的 EditContext instance + /// Gets the EditContext instance from the parent component /// [CascadingParameter] protected EditContext? CascadedEditContext { get; set; } @@ -226,7 +226,7 @@ protected string CurrentValueAsString private IStringLocalizerFactory? LocalizerFactory { get; set; } /// - /// Parses a string to create an 实例 of <类型paramref name="TValue"/>. Derived classes can override this to change how interprets incoming values. + /// 将字符串解析为 TValue 的实例。派生类可以重写此方法来改变 CurrentValueAsString 如何解释传入的值。 /// Parses a string to create an instance of . Derived classes can override this to change how interprets incoming values. /// /// The string value to be parsed. @@ -250,15 +250,15 @@ protected virtual bool TryParseValueFromString(string value, [MaybeNullWhen(fals } /// - /// - /// + /// 格式化解析错误信息 + /// Formats the parsing error message /// /// protected virtual string? FormatParsingErrorMessage() => ParsingErrorMessage; /// /// 判断是否为必填字段 - /// 判断whether为必填字段 + /// Determines whether the field is required /// /// protected virtual bool IsRequired() => ShowRequired ?? FieldIdentifier @@ -267,13 +267,13 @@ protected virtual bool IsRequired() => ShowRequired ?? FieldIdentifier || (ValidateRules?.OfType().Any() ?? false); /// - /// 获得 a string that indicates the status of the field being edited. This will include some combination of "modified", "valid", or "invalid", depending on the status of the field. + /// 获得表示被编辑字段状态的字符串。这将包括"modified"、"valid"或"invalid"的某种组合,具体取决于该字段的状态。 /// Gets a string that indicates the status of the field being edited. This will include some combination of "modified", "valid", or "invalid", depending on the status of the field. /// protected string FieldClass => (EditContext != null && FieldIdentifier != null) ? EditContext.FieldCssClass(FieldIdentifier.Value) : ""; /// - /// 获得 a CSS class string that combines the class attribute and properties. Derived components should typically use this value for the primary HTML element's class attribute. + /// 获得组合了 class 属性和 FieldClass 属性的 CSS 类字符串。派生组件通常应将此值用于主 HTML 元素的 class 属性。 /// Gets a CSS class string that combines the class attribute and properties. Derived components should typically use this value for the primary HTML element's class attribute. /// protected string? CssClass => CssBuilder.Default() @@ -415,13 +415,13 @@ private string GetDefaultRequiredErrorMessage() #region Validation /// /// 获得 数据验证方法集合 - /// Gets data验证方法collection + /// Gets the data validation method collection /// protected List Rules { get; } = []; /// /// 获得/设置 自定义验证集合 - /// Gets or sets 自定义验证collection + /// Gets or sets the custom validation collection /// 10.2.2 /// [Parameter] @@ -429,7 +429,7 @@ private string GetDefaultRequiredErrorMessage() /// /// 获得/设置 是否不进行验证 默认为 false - /// Gets or sets whether不进行验证 Default is为 false + /// Gets or sets whether validation is needed. Default is false. /// public bool IsNeedValidate => !IsDisabled && !SkipValidate; @@ -444,7 +444,7 @@ public virtual bool IsComplexValue(object? value) => value != null /// /// 属性验证方法 - /// property验证方法 + /// Property validation method /// /// /// @@ -521,7 +521,7 @@ private void ValidateType(ValidationContext context, List resu /// /// 显示/隐藏验证结果方法 - /// display/隐藏验证结果方法 + /// Shows or hides the validation result message /// /// public virtual Task ToggleMessage(IReadOnlyCollection results) @@ -550,21 +550,21 @@ public virtual Task ToggleMessage(IReadOnlyCollection results) } /// - /// 获得/设置 the module of validate 实例. - /// Gets or sets the module of validate instance. + /// 获得/设置 validate 模块的实例 + /// Gets or sets the validate module instance /// protected JSModule? ValidateModule { get; set; } /// /// 加载 validate 模块方法 - /// 加载 validate 模块方法 + /// Loads the validate module /// /// protected Task LoadValidateModule() => JSRuntime.LoadModuleByName("validate"); /// /// 增加客户端 Tooltip 方法 - /// 增加客户端 Tooltip 方法 + /// Shows the client-side validation tooltip /// /// protected virtual async ValueTask ShowValidResult() @@ -579,7 +579,7 @@ protected virtual async ValueTask ShowValidResult() /// /// 移除客户端 Tooltip 方法 - /// 移除客户端 Tooltip 方法 + /// Removes the client-side validation tooltip /// /// protected virtual async ValueTask RemoveValidResult(string? validateId = null) @@ -594,9 +594,9 @@ protected virtual async ValueTask RemoveValidResult(string? validateId = null) /// /// 客户端检查完成时调用此方法 - /// 客户端检查完成时调用此方法 + /// Called when client-side validation is completed /// - /// 检查结果检查result + /// 检查结果The validation result protected virtual void OnValidate(bool? valid) { @@ -628,7 +628,7 @@ protected override async ValueTask DisposeAsync(bool disposing) /// /// 增加 方法 - /// 增加 方法 + /// Adds a /// protected virtual void AddRequiredValidator() { @@ -645,7 +645,7 @@ protected virtual void AddRequiredValidator() /// /// 设置是否可用状态 - /// Setswhether可用状态 + /// Sets whether the component is disabled /// /// public void SetDisable(bool disable) @@ -656,7 +656,7 @@ public void SetDisable(bool disable) /// /// 设置 Value 值 - /// Sets Value 值 + /// Sets the value /// /// public void SetValue(TValue value) @@ -672,7 +672,7 @@ public void SetValue(TValue value) /// /// 设置 Label 值 - /// Sets Label 值 + /// Sets the label text /// /// public void SetLabel(string label) diff --git a/src/BootstrapBlazor/Components/ValidateForm/BootstrapBlazorDataAnnotationsValidator.cs b/src/BootstrapBlazor/Components/ValidateForm/BootstrapBlazorDataAnnotationsValidator.cs index 49e52a64059..3fc8eb14d49 100644 --- a/src/BootstrapBlazor/Components/ValidateForm/BootstrapBlazorDataAnnotationsValidator.cs +++ b/src/BootstrapBlazor/Components/ValidateForm/BootstrapBlazorDataAnnotationsValidator.cs @@ -9,13 +9,13 @@ namespace BootstrapBlazor.Components; /// /// BootstrapBlazorDataAnnotationsValidator 验证组件 -/// BootstrapBlazorDataAnnotationsValidator 验证component +/// BootstrapBlazorDataAnnotationsValidator Validation Component /// public class BootstrapBlazorDataAnnotationsValidator : ComponentBase, IDisposable { /// /// 获得/设置 当前编辑数据上下文 - /// Gets or sets 当前编辑data上下文 + /// Gets or sets Current Edit Data Context /// [CascadingParameter] [NotNull] diff --git a/src/BootstrapBlazor/Components/ValidateForm/ValidateForm.razor.cs b/src/BootstrapBlazor/Components/ValidateForm/ValidateForm.razor.cs index 4aa6f7fdeb4..9e962fc0e1e 100644 --- a/src/BootstrapBlazor/Components/ValidateForm/ValidateForm.razor.cs +++ b/src/BootstrapBlazor/Components/ValidateForm/ValidateForm.razor.cs @@ -19,24 +19,24 @@ namespace BootstrapBlazor.Components; public partial class ValidateForm { /// - /// A 回调 that will be invoked when the form is submitted and the is determined to be valid. - /// A callback that will be invoked when the form is submitted and the is determined to be valid. + /// 获得/设置 表单提交后验证合规时回调方法 + /// Gets or sets the callback method when form submission is validated. /// 10.2.2 /// [Parameter] public Func? OnValidSubmit { get; set; } /// - /// A 回调 that will be invoked when the form is submitted and the is determined to be invalid. - /// A callback that will be invoked when the form is submitted and the is determined to be invalid. + /// 获得/设置 表单提交后验证不合规时回调方法 + /// Gets or sets the callback method when form submission is invalid. /// 10.2.2 /// [Parameter] public Func? OnInvalidSubmit { get; set; } /// - /// A 回调 that will be invoked when the field's value has been changed - /// A callback that will be invoked when the field's value has been changed + /// 获得/设置 表单内绑定字段值变化时回调方法 + /// Gets or sets the callback method when a bound field's value has changed within the form. /// 10.2.2 /// [Parameter] @@ -45,7 +45,7 @@ public partial class ValidateForm /// /// 获得/设置 是否显示所有验证失败字段的提示信息 默认 false 仅显示第一个验证失败字段的提示信息 - /// Gets or sets whetherdisplay所有验证失败字段的提示信息 Default is false 仅display第一个验证失败字段的提示信息 + /// Gets or sets whether to display all validation failure messages. The default is false, which only displays the first validation failure message. /// 10.2.2 /// [Parameter] @@ -53,15 +53,15 @@ public partial class ValidateForm /// /// 获得/设置 是否验证所有字段 默认 false - /// Gets or sets whether验证所有字段 Default is false + /// Gets or sets whether to validate all properties. The default is false. /// 10.2.2 /// [Parameter] public bool ValidateAllProperties { get; set; } /// - /// Specifies the top-level model object for the form. An edit context will be constructed for this model. If using this parameter, do not also supply a value for . - /// Specifies the top-level model object for the form. An edit context will be constructed for this model. If using this parameter, do not also supply a value for . + /// 获得/设置 表单绑定模型对象 + /// Gets or sets the top-level model object for the form. /// 10.2.2 /// [Parameter] @@ -69,8 +69,8 @@ public partial class ValidateForm public object? Model { get; set; } /// - /// Specifies the 内容 to be rendered inside this - /// Specifies the content to be rendered inside this + /// 获得/设置 组件子内容 + /// Gets or sets the content to be rendered inside this component. /// 10.2.2 /// [Parameter] @@ -78,7 +78,7 @@ public partial class ValidateForm /// /// 获得/设置 是否获取必填项标记 默认为 true 显示 - /// Gets or sets whether获取必填项标记 Default is为 true display + /// Gets or sets whether to display the required mark. The default is true, which means the required mark is displayed. /// 10.2.2 /// [Parameter] @@ -86,7 +86,7 @@ public partial class ValidateForm /// /// 获得/设置 是否显示验证表单内的 Label 默认为 null - /// Gets or sets whetherdisplay验证表单内的 Label Default is为 null + /// Gets or sets whether to display labels within the validation form. The default value is null. /// 10.2.2 /// [Parameter] @@ -94,7 +94,7 @@ public partial class ValidateForm /// /// 获得/设置 是否显示标签 Tooltip 多用于标签文字过长导致裁减时使用 默认 null - /// Gets or sets whetherdisplay标签 Tooltip 多用于标签文字过长导致裁减时使用 Default is null + /// Gets or sets whether to display a tooltip for the label, often used when the label text is too long and gets truncated. The default is null. /// 10.2.2 /// [Parameter] @@ -102,7 +102,7 @@ public partial class ValidateForm /// /// 获得/设置 是否为无表单模式 默认 false - /// Gets or sets whether为无表单模式 Default is false + /// Gets or sets whether to use a formless mode. The default is false. /// 10.2.2 /// /// 设置为 true 时不渲染 form 元素,仅级联 EditContext 用于 Table InCell 编辑模式 @@ -118,8 +118,8 @@ public partial class ValidateForm public bool? DisableAutoSubmitFormByEnter { get; set; } /// - /// 获得/设置 标签宽度 默认 null 未设置使用全局设置 --bb-row-label-width - /// Gets or sets 标签width Default is null 未Sets使用全局Sets --bb-row-label-width + /// 获得/设置 标签宽度 默认 null 未设置 使用全局设置 --bb-row-label-width + /// Gets or sets the label width. The default is null, which means the global setting --bb-row-label-width is used. /// 10.2.2 /// [Parameter] @@ -143,23 +143,19 @@ public partial class ValidateForm /// private readonly ConcurrentDictionary<(string FieldName, Type ModelType), (FieldIdentifier FieldIdentifier, IValidateComponent ValidateComponent)> _validatorCache = new(); - /// - /// 验证组件验证结果缓存 - /// 验证component验证结果缓存 - /// private readonly ConcurrentDictionary> _validateResults = new(); private string? DisableAutoSubmitString => (DisableAutoSubmitFormByEnter.HasValue && DisableAutoSubmitFormByEnter.Value) ? "true" : null; /// - /// 验证合法成员集合 - /// 验证合法成员collection + /// 获得验证合法成员集合 + /// Gets the collection of valid member names. /// internal List ValidMemberNames { get; } = []; /// - /// 验证非法成员集合 - /// 验证非法成员collection + /// 获得验证非法成员集合 + /// Gets the collection of invalid member names. /// internal List InvalidMemberNames { get; } = []; @@ -170,8 +166,7 @@ public partial class ValidateForm .Build(); /// - /// OnParametersSet 方法 - /// OnParametersSet 方法 + /// /// protected override void OnParametersSet() { @@ -191,7 +186,7 @@ protected override void OnParametersSet() /// /// 添加数据验证组件到 EditForm 中 - /// 添加data验证component到 EditForm 中 + /// Adds a data validation component to the EditForm. /// /// /// @@ -202,7 +197,7 @@ internal void AddValidator((string FieldName, Type ModelType) key, (FieldIdentif /// /// 移除数据验证组件到 EditForm 中 - /// 移除data验证component到 EditForm 中 + /// Removes a data validation component from the EditForm. /// /// /// @@ -210,7 +205,7 @@ internal void AddValidator((string FieldName, Type ModelType) key, (FieldIdentif /// /// 设置指定字段错误信息 - /// Sets指定字段错误信息 + /// Sets the error message for the specified field. /// /// /// 错误描述信息,可为空,为空时查找资源文件错误描述info,可为空,为空时查找资源文件 @@ -249,10 +244,10 @@ private async Task InternalSetError(MemberExpression exp, string errorMessage) /// /// 设置指定字段错误信息 - /// Sets指定字段错误信息 + /// Sets the error message for the specified field. /// - /// 字段名,可以使用多层,如 a.b.c字段名,可以使用多层,如 a.b.c - /// 错误描述信息,可为空,为空时查找资源文件错误描述info,可为空,为空时查找资源文件 + /// 字段名,可以使用多层,如 a.b.cField name, can be multi-level, such as a.b.c + /// 错误描述信息,可为空,为空时查找资源文件Error description info, can be empty, if empty, resource file is searched public async Task SetError(string propertyName, string errorMessage) { if (TryGetModelField(propertyName, out var modelType, out var fieldName) && TryGetValidator(modelType, fieldName, out var validator)) @@ -297,7 +292,7 @@ private bool TryGetValidator(Type modelType, string fieldName, out IValidateComp /// /// EditModel 数据模型验证方法 - /// EditModel data模型验证方法 + /// EditModel data model validation method /// /// /// @@ -384,7 +379,7 @@ internal async Task ValidateObject(ValidationContext context, List /// 通过表单内绑定的字段验证方法 - /// 通过表单内绑定的字段验证方法 + /// Validates a field bound within the form. /// /// /// @@ -410,7 +405,7 @@ internal async Task ValidateFieldAsync(ValidationContext context, List /// 通过属性设置的 DataAnnotation 进行数据验证 - /// 通过propertySets的 DataAnnotation 进行data验证 + /// Validates data using DataAnnotations set on properties. /// /// /// @@ -494,7 +489,7 @@ private void ValidateDataAnnotations(object? value, ValidationContext context, L /// /// 验证整个模型时验证属性方法 - /// 验证整个模型时验证property方法 + /// Validates properties when validating the entire model. /// /// /// @@ -607,7 +602,7 @@ private async Task ValidateAsync(IValidateComponent validator, ValidationContext /// /// 注册提交按钮 - /// 注册提交button + /// Registers a submit button. /// /// internal void RegisterAsyncSubmitButton(ButtonBase button) @@ -680,15 +675,11 @@ private async Task OnInvalidSubmitForm(EditContext context) [NotNull] private BootstrapBlazorDataAnnotationsValidator? Validator { get; set; } - /// - /// 获得/设置 无表单模式下的 EditContext 实例 - /// Gets or sets 无表单模式下的 EditContext instance - /// private EditContext? _formlessEditContext; /// /// 同步验证方法 用于代码调用触发表单验证(不支持某些组件的异步验证) - /// 同步验证方法 用于代码调用触发表单验证(不支持某些component的异步验证) + /// Synchronous validation method used to trigger form validation via code (does not support asynchronous validation for some components). /// [Obsolete("已弃用,请使用 ValidateAsync 方法。Deprecated. Please use the ValidateAsync method.")] [ExcludeFromCodeCoverage] @@ -696,14 +687,13 @@ private async Task OnInvalidSubmitForm(EditContext context) /// /// 异步验证方法 用于代码调用触发表单验证(支持异步验证) - /// 异步验证方法 用于代码调用触发表单验证(支持异步验证) + /// Asynchronous validation method used to trigger form validation via code (supports asynchronous validation). /// - /// public Task ValidateAsync() => Validator.ValidateAsync(); /// /// 通知属性改变方法 - /// 通知property改变方法 + /// Notifies that a property has changed. /// /// /// @@ -715,14 +705,14 @@ public void NotifyFieldChanged(in FieldIdentifier fieldIdentifier, object? value /// /// 获取 当前表单值改变的属性集合 - /// 获取 当前表单值改变的propertycollection + /// Get the set of attributes whose current form values ​​have changed. /// /// public ConcurrentDictionary ValueChangedFields { get; } = new(); /// /// 获取 当前表单值改变的属性集合 - /// 获取 当前表单值改变的propertycollection + /// Get the set of attributes whose current form values ​​have changed. /// /// [Obsolete("已弃用,单词拼写错误,请使用 ValueChangedFields,Deprecated Please use ValueChangedFields instead. wrong typo")] diff --git a/src/BootstrapBlazor/Components/Waterfall/Waterfall.razor.cs b/src/BootstrapBlazor/Components/Waterfall/Waterfall.razor.cs index 6de63fa9fc4..c75b4512f68 100644 --- a/src/BootstrapBlazor/Components/Waterfall/Waterfall.razor.cs +++ b/src/BootstrapBlazor/Components/Waterfall/Waterfall.razor.cs @@ -7,7 +7,7 @@ namespace BootstrapBlazor.Components; /// /// Waterfall 组件 -/// Waterfall component +/// Waterfall Component /// public partial class Waterfall { diff --git a/src/BootstrapBlazor/Components/Watermark/Watermark.razor.cs b/src/BootstrapBlazor/Components/Watermark/Watermark.razor.cs index cc1ebc6f4bc..e7979309c49 100644 --- a/src/BootstrapBlazor/Components/Watermark/Watermark.razor.cs +++ b/src/BootstrapBlazor/Components/Watermark/Watermark.razor.cs @@ -7,7 +7,7 @@ namespace BootstrapBlazor.Components; /// /// Watermark 组件 -/// Watermark component +/// Watermark Component /// public partial class Watermark { diff --git a/src/BootstrapBlazor/Localization/Json/JsonLocalizationOptions.cs b/src/BootstrapBlazor/Localization/Json/JsonLocalizationOptions.cs index 480ac6b5dfb..cf0a8cfdfe1 100644 --- a/src/BootstrapBlazor/Localization/Json/JsonLocalizationOptions.cs +++ b/src/BootstrapBlazor/Localization/Json/JsonLocalizationOptions.cs @@ -16,61 +16,61 @@ public class JsonLocalizationOptions : LocalizationOptions { /// /// 获得/设置 微软 resx 格式指定类型 - /// Get/Set Microsoft resx format specified type + /// Gets or sets Microsoft resx format specified type /// public Type? ResourceManagerStringLocalizerType { get; set; } /// /// 获得/设置 外置资源文件程序集集合 - /// Get/Set external resource file assembly collection + /// Gets or sets external resource file assembly collection /// public IEnumerable? AdditionalJsonAssemblies { get; set; } /// /// 获得/设置 外置资源文件路径集合 - /// Get/Set external resource file path collection + /// Gets or sets external resource file path collection /// public IEnumerable? AdditionalJsonFiles { get; set; } /// /// 获得/设置 回落默认文化 默认为 en 英文 - /// Get/Set fallback default culture default is en English + /// Gets or sets fallback default culture default is en English /// internal string FallbackCulture { get; set; } = "en"; /// /// 获得/设置 是否回落到 UI 父文化 默认为 true - /// Get/Set whether to fallback to UI parent culture default is true + /// Gets or sets whether to fallback to UI parent culture default is true /// internal bool EnableFallbackCulture { get; set; } = true; /// /// 获得/设置 是否忽略丢失文化日志信息 默认 false 不忽略 - /// Get/Set whether to ignore missing culture log info default false not ignore + /// Gets or sets whether to ignore missing culture log info default false not ignore /// public bool IgnoreLocalizerMissing { get; set; } /// /// 获得/设置 如果 Value 值为 null 时使用 Key 代替 默认 false - /// Get/Set whether to use Key when Value is null default false + /// Gets or sets whether to use Key when Value is null default false /// public bool UseKeyWhenValueIsNull { get; set; } /// /// 获得/设置 是否禁用从服务中获取本地化资源 默认 false 未禁用 - /// Get/Set whether to disable getting localized resources from service default false not disabled + /// Gets or sets whether to disable getting localized resources from service default false not disabled /// public bool DisableGetLocalizerFromService { get; set; } /// /// 获得/设置 是否禁用获取 类型本地化资源 默认 false 未禁用 - /// Get/Set whether to disable getting type localized resources default false not disabled + /// Gets or sets whether to disable getting type localized resources default false not disabled /// public bool DisableGetLocalizerFromResourceManager { get; set; } /// /// 获得/设置 资源文件是否热加载 默认 false - /// Get/Set whether resource file is hot reloaded default false + /// Gets or sets whether resource file is hot reloaded default false /// [Obsolete("已弃用 Deprecated")] [ExcludeFromCodeCoverage] diff --git a/src/BootstrapBlazor/Misc/DispatchEntry.cs b/src/BootstrapBlazor/Misc/DispatchEntry.cs index ca9deaa200b..29eb24fbbff 100644 --- a/src/BootstrapBlazor/Misc/DispatchEntry.cs +++ b/src/BootstrapBlazor/Misc/DispatchEntry.cs @@ -14,13 +14,13 @@ public class DispatchEntry { /// /// 获得/设置 Entry 名称 默认 null - /// Get/Set Entry name default null + /// Gets or sets Entry name default null /// public string? Name { get; set; } /// /// 获得/设置 Entry 实例 不为空 - /// Get/Set Entry instance not null + /// Gets or sets Entry instance not null /// public TEntry? Entry { get; set; } } diff --git a/src/BootstrapBlazor/Misc/ICheckableNode.cs b/src/BootstrapBlazor/Misc/ICheckableNode.cs index 41f55d1c3a6..9b0572055e4 100644 --- a/src/BootstrapBlazor/Misc/ICheckableNode.cs +++ b/src/BootstrapBlazor/Misc/ICheckableNode.cs @@ -14,7 +14,7 @@ public interface ICheckableNode : IExpandableNode { /// /// 获得/设置 是否被选中 - /// Get/Set whether checked + /// Gets or sets whether checked /// CheckboxState CheckedState { get; set; } } diff --git a/src/BootstrapBlazor/Misc/IExpandableNode.cs b/src/BootstrapBlazor/Misc/IExpandableNode.cs index e23d528351e..842655eaba5 100644 --- a/src/BootstrapBlazor/Misc/IExpandableNode.cs +++ b/src/BootstrapBlazor/Misc/IExpandableNode.cs @@ -13,19 +13,19 @@ public interface IExpandableNode { /// /// 获得/设置 是否展开 默认 false - /// Get/Set whether expand default false + /// Gets or sets whether expand default false /// public bool IsExpand { get; set; } /// /// 获得/设置 是否有子节点 默认 false 用于判断是否有子节点 - /// Get/Set whether has children default false used to determine whether there are children + /// Gets or sets whether has children default false used to determine whether there are children /// public bool HasChildren { get; set; } /// /// 获得/设置 子节点 - /// Get/Set children + /// Gets or sets children /// [DisallowNull] [NotNull] @@ -33,7 +33,7 @@ public interface IExpandableNode /// /// 获得/设置 TItem 泛型值 - /// Get/Set TItem generic value + /// Gets or sets TItem generic value /// [DisallowNull] [NotNull] @@ -41,7 +41,7 @@ public interface IExpandableNode /// /// 获得/设置 父级节点 - /// Get/Set parent node + /// Gets or sets parent node /// IExpandableNode? Parent { get; set; } } diff --git a/src/BootstrapBlazor/Misc/ILookup.cs b/src/BootstrapBlazor/Misc/ILookup.cs index 167c660be43..e3793812508 100644 --- a/src/BootstrapBlazor/Misc/ILookup.cs +++ b/src/BootstrapBlazor/Misc/ILookup.cs @@ -13,7 +13,7 @@ public interface ILookup { /// /// 获得/设置 数据集用于 CheckboxList Select 组件 通过 Value 显示 Text 使用 默认 null - /// Get/Set data set for CheckboxList Select component display Text via Value default null + /// Gets or sets data set for CheckboxList Select component display Text via Value default null /// 设置 参收后, 两个参数均失效 /// After setting parameter, and parameters are invalid /// @@ -21,13 +21,13 @@ public interface ILookup /// /// 获得/设置 字典数据源字符串比较规则 默认 大小写不敏感 - /// Get/Set dictionary data source string comparison rule default case insensitive + /// Gets or sets dictionary data source string comparison rule default case insensitive /// StringComparison LookupStringComparison { get; set; } /// /// 获得/设置 服务获取 Lookup 数据集合键值 常用于外键自动转换为名称操作,可以通过 传递自定义数据 - /// Get/Set service get Lookup data collection key value often used for foreign key automatic conversion to name operation, can pass custom data through + /// Gets or sets service get Lookup data collection key value often used for foreign key automatic conversion to name operation, can pass custom data through /// 未设置 时生效 /// Effective when is not set /// @@ -35,7 +35,7 @@ public interface ILookup /// /// 获得/设置 服务获取 Lookup 数据集合键值自定义数据,通过 指定键值 - /// Get/Set service get Lookup data collection key value custom data, specify key value through + /// Gets or sets service get Lookup data collection key value custom data, specify key value through /// 未设置 时生效 /// Effective when is not set /// @@ -43,7 +43,7 @@ public interface ILookup /// /// 获得/设置 服务实例 - /// Get/Set service instance + /// Gets or sets service instance /// ILookupService? LookupService { get; set; } } diff --git a/src/BootstrapBlazor/Misc/IModelEqualityComparer.cs b/src/BootstrapBlazor/Misc/IModelEqualityComparer.cs index 04fcb48cc7d..b5266544034 100644 --- a/src/BootstrapBlazor/Misc/IModelEqualityComparer.cs +++ b/src/BootstrapBlazor/Misc/IModelEqualityComparer.cs @@ -13,13 +13,13 @@ public interface IModelEqualityComparer { /// /// 获得/设置 模型比对回调方法 - /// Get/Set model comparison callback method + /// Gets or sets model comparison callback method /// Func? ModelEqualityComparer { get; set; } /// /// 获得/设置 模型键值标签 - /// Get/Set model key attribute + /// Gets or sets model key attribute /// Type CustomKeyAttribute { get; set; } diff --git a/src/BootstrapBlazor/Misc/IPopoverBaseComponent.cs b/src/BootstrapBlazor/Misc/IPopoverBaseComponent.cs index 602ba0f1580..172f7ea0eea 100644 --- a/src/BootstrapBlazor/Misc/IPopoverBaseComponent.cs +++ b/src/BootstrapBlazor/Misc/IPopoverBaseComponent.cs @@ -13,32 +13,32 @@ internal interface IPopoverBaseComponent { /// /// 获得/设置 弹窗位置 默认为 Bottom - /// Get/Set popover placement default Bottom + /// Gets or sets popover placement default Bottom /// Placement Placement { get; set; } /// /// 获得/设置 自定义样式 参数 默认 null - /// Get/Set custom style parameter default null + /// Gets or sets custom style parameter default null /// /// 由 data-bs-custom-class 实现 string? CustomClass { get; set; } /// /// 获得/设置 是否显示阴影 默认 true - /// Get/Set whether show shadow default true + /// Gets or sets whether show shadow default true /// bool ShowShadow { get; set; } /// /// 获得/设置 是否使用 Popover 渲染下拉框 默认 false - /// Get/Set whether to use Popover to render dropdown default false + /// Gets or sets whether to use Popover to render dropdown default false /// public bool IsPopover { get; set; } /// /// 获得/设置 弹窗偏移量 默认 [0, 10] - /// Get/Set popover offset default [0, 10] + /// Gets or sets popover offset default [0, 10] /// public string? Offset { get; set; } } diff --git a/src/BootstrapBlazor/Misc/NodeBase.cs b/src/BootstrapBlazor/Misc/NodeBase.cs index 03362366443..d497edad6a5 100644 --- a/src/BootstrapBlazor/Misc/NodeBase.cs +++ b/src/BootstrapBlazor/Misc/NodeBase.cs @@ -13,13 +13,13 @@ public abstract class NodeBase { /// /// 获得/设置 是否展开 默认 false - /// Get/Set whether expand default false + /// Gets or sets whether expand default false /// public bool IsExpand { get; set; } /// /// 获得/设置 是否有子节点 默认 false 用于判断是否有子节点 - /// Get/Set whether has children default false used to determine whether there are children + /// Gets or sets whether has children default false used to determine whether there are children /// public bool HasChildren { get; set; } } @@ -33,7 +33,7 @@ public abstract class NodeBase : NodeBase { /// /// 获得/设置 当前节点值 - /// Get/Set current node value + /// Gets or sets current node value /// [NotNull] public TItem? Value { get; set; } diff --git a/src/BootstrapBlazor/Misc/NodeItem.cs b/src/BootstrapBlazor/Misc/NodeItem.cs index 4dd8e609da9..20d137a0207 100644 --- a/src/BootstrapBlazor/Misc/NodeItem.cs +++ b/src/BootstrapBlazor/Misc/NodeItem.cs @@ -13,57 +13,57 @@ public abstract class NodeItem { /// /// 获得/设置 当前节点 Id 默认为 null - /// Get/Set current node Id default null + /// Gets or sets current node Id default null /// /// 一般配合数据库使用 public string? Id { get; set; } /// /// 获得/设置 父级节点 Id 默认为 null - /// Get/Set parent node Id default null + /// Gets or sets parent node Id default null /// /// 一般配合数据库使用 public string? ParentId { get; set; } /// /// 获得/设置 显示文字 - /// Get/Set display text + /// Gets or sets display text /// public string? Text { get; set; } /// /// 获得/设置 图标 - /// Get/Set icon + /// Gets or sets icon /// public string? Icon { get; set; } /// /// 获得/设置 自定义样式名 - /// Get/Set custom css class + /// Gets or sets custom css class /// public string? CssClass { get; set; } /// /// 获得/设置 是否被禁用 默认 false - /// Get/Set whether disabled default false + /// Gets or sets whether disabled default false /// public bool IsDisabled { get; set; } /// /// 获得/设置 是否选中当前节点 默认 false - /// Get/Set whether active default false + /// Gets or sets whether active default false /// public bool IsActive { get; set; } /// /// 获得/设置 是否收缩 默认 true 收缩 - /// Get/Set whether collapsed default true + /// Gets or sets whether collapsed default true /// public bool IsCollapsed { get; set; } = true; /// /// 获得/设置 子组件模板 默认为 null - /// Get/Set child component template default null + /// Gets or sets child component template default null /// public RenderFragment? Template { get; set; } } diff --git a/src/BootstrapBlazor/Misc/QueryData.cs b/src/BootstrapBlazor/Misc/QueryData.cs index 465cc5400d9..b1f16fb0c1d 100644 --- a/src/BootstrapBlazor/Misc/QueryData.cs +++ b/src/BootstrapBlazor/Misc/QueryData.cs @@ -14,39 +14,39 @@ public class QueryData { /// /// 获得/设置 要显示页码的数据集合 - /// Get/Set data collection to display page number + /// Gets or sets data collection to display page number /// public IEnumerable? Items { get; set; } /// /// 获得/设置 数据集合总数 - /// Get/Set total data count + /// Gets or sets total data count /// public int TotalCount { get; set; } /// /// 获得/设置 数据是否被过滤 默认为 false 未被过滤 - /// Get/Set whether data is filtered default false + /// Gets or sets whether data is filtered default false /// /// 组件内部通过此属性判断,如果外部未进行数据过滤,内部将进行数据过滤操作 public bool IsFiltered { get; set; } /// /// 获得/设置 数据是否被排序 默认为 false 未被排序 - /// Get/Set whether data is sorted default false + /// Gets or sets whether data is sorted default false /// public bool IsSorted { get; set; } /// /// 获得/设置 数据是否已处理 SearchText 默认为 false - /// Get/Set whether data has processed SearchText default false + /// Gets or sets whether data has processed SearchText default false /// /// 设置本属性为 true 时,Table 组件的高级搜索按钮改变颜色 public bool IsSearch { get; set; } /// /// 获得/设置 数据是否为已处理自定义高级搜索 默认为 false - /// Get/Set whether data has processed custom advanced search default false + /// Gets or sets whether data has processed custom advanced search default false /// /// 设置本属性为 true 时,Table 组件的高级搜索按钮改变颜色 public bool IsAdvanceSearch { get; set; } diff --git a/src/BootstrapBlazor/Misc/SelectedItem.cs b/src/BootstrapBlazor/Misc/SelectedItem.cs index 6c31fa997be..c03c1d01b8f 100644 --- a/src/BootstrapBlazor/Misc/SelectedItem.cs +++ b/src/BootstrapBlazor/Misc/SelectedItem.cs @@ -29,31 +29,31 @@ public SelectedItem(string value, string text) /// /// 获得/设置 显示名称 - /// Get/Set display text + /// Gets or sets display text /// public string Text { get; set; } = ""; /// /// 获得/设置 选项值 - /// Get/Set item value + /// Gets or sets item value /// public string Value { get; set; } = ""; /// /// 获得/设置 是否选中 - /// Get/Set whether active + /// Gets or sets whether active /// public bool Active { get; set; } /// /// 获得/设置 是否禁用 - /// Get/Set whether disabled + /// Gets or sets whether disabled /// public bool IsDisabled { get; set; } /// /// 获得/设置 分组名称 - /// Get/Set group name + /// Gets or sets group name /// public string GroupName { get; set; } = ""; } diff --git a/src/BootstrapBlazor/Misc/SelectedItemOfT.cs b/src/BootstrapBlazor/Misc/SelectedItemOfT.cs index cca5750e3c9..4fcf46b9c3e 100644 --- a/src/BootstrapBlazor/Misc/SelectedItemOfT.cs +++ b/src/BootstrapBlazor/Misc/SelectedItemOfT.cs @@ -31,31 +31,31 @@ public SelectedItem(T value, string text) /// /// 获得/设置 显示名称 - /// Get/Set display text + /// Gets or sets display text /// public string Text { get; set; } = ""; /// /// 获得/设置 选项值 - /// Get/Set item value + /// Gets or sets item value /// public T Value { get; set; } /// /// 获得/设置 是否选中 - /// Get/Set whether active + /// Gets or sets whether active /// public bool Active { get; set; } /// /// 获得/设置 是否禁用 - /// Get/Set whether disabled + /// Gets or sets whether disabled /// public bool IsDisabled { get; set; } /// /// 获得/设置 分组名称 - /// Get/Set group name + /// Gets or sets group name /// public string GroupName { get; set; } = ""; } diff --git a/src/BootstrapBlazor/Misc/TableTreeNode.cs b/src/BootstrapBlazor/Misc/TableTreeNode.cs index 95f7eb524c6..335d9faa5a9 100644 --- a/src/BootstrapBlazor/Misc/TableTreeNode.cs +++ b/src/BootstrapBlazor/Misc/TableTreeNode.cs @@ -13,7 +13,7 @@ public class TableTreeNode : NodeBase, IExpandableNode { /// /// 获得/设置 子节点集合 - /// Get/Set child node collection + /// Gets or sets child node collection /// [DisallowNull] [NotNull] @@ -21,19 +21,19 @@ public class TableTreeNode : NodeBase, IExpandableNode /// /// 获得/设置 子节点集合 - /// Get/Set child node collection + /// Gets or sets child node collection /// IEnumerable> IExpandableNode.Items { get => Items; set => Items = value.OfType>(); } /// /// 获得/设置 父级节点 - /// Get/Set parent node + /// Gets or sets parent node /// public TableTreeNode? Parent { get; set; } /// /// 获得/设置 父级节点 - /// Get/Set parent node + /// Gets or sets parent node /// IExpandableNode? IExpandableNode.Parent { diff --git a/src/BootstrapBlazor/Misc/TreeNodeBase.cs b/src/BootstrapBlazor/Misc/TreeNodeBase.cs index 7809774fa2d..b018f2468d9 100644 --- a/src/BootstrapBlazor/Misc/TreeNodeBase.cs +++ b/src/BootstrapBlazor/Misc/TreeNodeBase.cs @@ -13,43 +13,43 @@ public abstract class TreeNodeBase : NodeBase { /// /// 获得/设置 显示文字 - /// Get/Set display text + /// Gets or sets display text /// public string? Text { get; set; } /// /// 获得/设置 图标 - /// Get/Set icon + /// Gets or sets icon /// public string? Icon { get; set; } /// /// 获得/设置 展开节点状态下的 Icon 图标 - /// Get/Set Icon when node is expanded + /// Gets or sets Icon when node is expanded /// public string? ExpandIcon { get; set; } /// /// 获得/设置 自定义样式名 - /// Get/Set custom css class + /// Gets or sets custom css class /// public string? CssClass { get; set; } /// /// 获得/设置 是否被禁用 默认 false - /// Get/Set whether disabled default false + /// Gets or sets whether disabled default false /// public bool IsDisabled { get; set; } /// /// 获得/设置 是否选中当前节点 默认 false - /// Get/Set whether active default false + /// Gets or sets whether active default false /// public bool IsActive { get; set; } /// /// 获得/设置 子组件模板 默认为 null - /// Get/Set child component template default null + /// Gets or sets child component template default null /// public RenderFragment? Template { get; set; } } diff --git a/src/BootstrapBlazor/Options/ArchiveOptions.cs b/src/BootstrapBlazor/Options/ArchiveOptions.cs index 55cd4a4da6b..7b7296dc3d1 100644 --- a/src/BootstrapBlazor/Options/ArchiveOptions.cs +++ b/src/BootstrapBlazor/Options/ArchiveOptions.cs @@ -16,31 +16,31 @@ public class ArchiveOptions { /// /// 获得/设置 压缩等级 默认 - /// Get/Set compression level default + /// Gets or sets compression level default /// public CompressionLevel CompressionLevel { get; set; } /// /// 获得/设置 归档模式 默认 - /// Get/Set archive mode default + /// Gets or sets archive mode default /// public ZipArchiveMode Mode { get; set; } = ZipArchiveMode.Create; /// /// 获得/设置 归档结束后是否关闭流 默认 false 归档后关闭相关流 - /// Get/Set whether to leave the stream open after the archive is finished default false + /// Gets or sets whether to leave the stream open after the archive is finished default false /// internal bool LeaveOpen { get; set; } /// /// 获得/设置 编码方法 默认空 内部使用 UTF-8 编码 - /// Get/Set encoding default null using UTF-8 internally + /// Gets or sets encoding default null using UTF-8 internally /// public Encoding? Encoding { get; set; } /// /// 获得/设置 获取文件流回调方法 - /// Get/Set get file stream callback method + /// Gets or sets get file stream callback method /// public Func>? ReadStreamAsync { get; set; } } diff --git a/src/BootstrapBlazor/Options/BootstrapBlazorOptions.cs b/src/BootstrapBlazor/Options/BootstrapBlazorOptions.cs index 8d1ee28f16f..4eb6df0c5fe 100644 --- a/src/BootstrapBlazor/Options/BootstrapBlazorOptions.cs +++ b/src/BootstrapBlazor/Options/BootstrapBlazorOptions.cs @@ -175,7 +175,7 @@ public class BootstrapBlazorOptions : IOptions /// /// 获得/设置 等组件是否将 参数默认值更改为 true 默认 false - /// Get/Set whether the parameter default value is changed to true for components such as default false + /// Gets or sets whether the parameter default value is changed to true for components such as default false /// public bool IsPopover { get; set; } diff --git a/src/BootstrapBlazor/Options/CacheManagerOptions.cs b/src/BootstrapBlazor/Options/CacheManagerOptions.cs index 9441fb3b939..8021326a5ab 100644 --- a/src/BootstrapBlazor/Options/CacheManagerOptions.cs +++ b/src/BootstrapBlazor/Options/CacheManagerOptions.cs @@ -13,19 +13,19 @@ public class CacheManagerOptions { /// /// 获得/设置 是否开启 CacheManager 功能 默认 true 开启 - /// Get/Set whether to enable CacheManager feature default true + /// Gets or sets whether to enable CacheManager feature default true /// public bool Enable { get; set; } = true; /// /// 获得/设置 滑动缓存过期时间 默认 5 分钟 - /// Get/Set sliding expiration time default 5 minutes + /// Gets or sets sliding expiration time default 5 minutes /// public TimeSpan SlidingExpiration { get; set; } = TimeSpan.FromMinutes(5); /// /// 获得/设置 绝对缓存过期时间 默认 10 秒钟 - /// Get/Set absolute expiration time default 10 seconds + /// Gets or sets absolute expiration time default 10 seconds /// public TimeSpan AbsoluteExpiration { get; set; } = TimeSpan.FromSeconds(10); } diff --git a/src/BootstrapBlazor/Options/ConnectionHubOptions.cs b/src/BootstrapBlazor/Options/ConnectionHubOptions.cs index f4616b0f2e9..2e44d5b1322 100644 --- a/src/BootstrapBlazor/Options/ConnectionHubOptions.cs +++ b/src/BootstrapBlazor/Options/ConnectionHubOptions.cs @@ -13,33 +13,33 @@ public class ConnectionHubOptions { /// /// 获得/设置 是否开启 CollectionHub 功能 默认 false 未开启 - /// Get/Set whether to enable CollectionHub feature default false + /// Gets or sets whether to enable CollectionHub feature default false /// public bool Enable { get; set; } /// /// 获得/设置 是否开启 IP 定位功能 默认 false 未开启 - /// Get/Set whether to enable IP locator feature default false + /// Gets or sets whether to enable IP locator feature default false /// public bool EnableIpLocator { get; set; } /// /// 获得/设置 过期扫描周期 默认 1 分钟 - /// Get/Set expiration scan frequency default 1 minute + /// Gets or sets expiration scan frequency default 1 minute /// /// 自动清理超时 5 倍心跳时间的客户端信息Automatically clean up client information with timeout 5 times heartbeat time public TimeSpan ExpirationScanFrequency { get; set; } = TimeSpan.FromMinutes(10); /// /// 获得/设置 超时间隔 默认 10 秒 - /// Get/Set timeout interval default 10 seconds + /// Gets or sets timeout interval default 10 seconds /// /// 不能小于 心跳间隔Cannot be less than heartbeat interval public TimeSpan TimeoutInterval { get; set; } = TimeSpan.FromSeconds(10); /// /// 获得/设置 ConnectionHub 组件心跳间隔 默认 5000 单位毫秒 - /// Get/Set ConnectionHub component heartbeat interval default 5000 ms + /// Gets or sets ConnectionHub component heartbeat interval default 5000 ms /// public TimeSpan BeatInterval { get; set; } = TimeSpan.FromSeconds(5); } diff --git a/src/BootstrapBlazor/Options/ContextMenuOptions.cs b/src/BootstrapBlazor/Options/ContextMenuOptions.cs index da97312f6bd..4273e6abe46 100644 --- a/src/BootstrapBlazor/Options/ContextMenuOptions.cs +++ b/src/BootstrapBlazor/Options/ContextMenuOptions.cs @@ -13,7 +13,7 @@ public class ContextMenuOptions { /// /// 获得/设置 移动端触屏右键菜单延时时长 默认 500 毫秒 - /// Get/Set mobile touch context menu delay duration default 500 ms + /// Gets or sets mobile touch context menu delay duration default 500 ms /// public int OnTouchDelay { get; set; } = 500; } diff --git a/src/BootstrapBlazor/Options/ExportPdfButtonOptions.cs b/src/BootstrapBlazor/Options/ExportPdfButtonOptions.cs index 582762f35c5..59155681a9d 100644 --- a/src/BootstrapBlazor/Options/ExportPdfButtonOptions.cs +++ b/src/BootstrapBlazor/Options/ExportPdfButtonOptions.cs @@ -13,79 +13,79 @@ public class ExportPdfButtonOptions { /// /// 获得/设置 导出 Pdf 选择器 默认为 null - /// Get/Set export Pdf selector default null + /// Gets or sets export Pdf selector default null /// public string? Selector { get; set; } /// /// 获得/设置 导出 Pdf 元素 Id 默认为 null - /// Get/Set export Pdf element Id default null + /// Gets or sets export Pdf element Id default null /// public string? ElementId { get; set; } /// /// 获得/设置 导出 Pdf 所需样式表文件集合 默认为 null - /// Get/Set export Pdf style tags default null + /// Gets or sets export Pdf style tags default null /// public List? StyleTags { get; set; } /// /// 获得/设置 导出 Pdf 所需脚本文件集合 默认为 null - /// Get/Set export Pdf script tags default null + /// Gets or sets export Pdf script tags default null /// public List? ScriptTags { get; set; } /// /// 获得/设置 导出 Pdf 按钮显示文字 默认为资源文件中 导出 Pdf 文字 - /// Get/Set export Pdf button text default use resource file + /// Gets or sets export Pdf button text default use resource file /// public string? Text { get; set; } /// /// 获得/设置 导出 Pdf 按钮图标 未设置 取当前图标主题下导出 Pdf 图标 - /// Get/Set export Pdf button icon default use current icon theme + /// Gets or sets export Pdf button icon default use current icon theme /// public string? Icon { get; set; } /// /// 获得/设置 导出 Pdf 按钮颜色 默认 Color.Primary - /// Get/Set export Pdf button color default Color.Primary + /// Gets or sets export Pdf button color default Color.Primary /// public Color Color { get; set; } = Color.Primary; /// /// 获得/设置 导出 Pdf 文件名 默认为 null 未设置时使用 pdf-时间戳.pdf - /// Get/Set export Pdf file name default null using pdf-timestamp.pdf when not set + /// Gets or sets export Pdf file name default null using pdf-timestamp.pdf when not set /// public string? FileName { get; set; } /// /// 获得/设置 导出 Pdf 之前回调委托 默认为 null - /// Get/Set on before export callback default null + /// Gets or sets on before export callback default null /// public Func? OnBeforeExport { get; set; } /// /// 获得/设置 下载 Pdf 之前回调委托 默认为 null - /// Get/Set on before download callback default null + /// Gets or sets on before download callback default null /// public Func? OnBeforeDownload { get; set; } /// /// 获得/设置 下载 Pdf 之后回调委托 默认为 null - /// Get/Set on after download callback default null + /// Gets or sets on after download callback default null /// public Func? OnAfterDownload { get; set; } /// /// 获得/设置 是否自动下载 Pdf 默认为 true - /// Get/Set whether auto download Pdf default true + /// Gets or sets whether auto download Pdf default true /// public bool AutoDownload { get; set; } = true; /// /// 获得/设置 是否异步导出 默认为 true - /// Get/Set whether async export default true + /// Gets or sets whether async export default true /// public bool IsAsync { get; set; } = true; } diff --git a/src/BootstrapBlazor/Options/IconThemeOptions.cs b/src/BootstrapBlazor/Options/IconThemeOptions.cs index 0ef6b987de8..40eeabfe29b 100644 --- a/src/BootstrapBlazor/Options/IconThemeOptions.cs +++ b/src/BootstrapBlazor/Options/IconThemeOptions.cs @@ -17,7 +17,7 @@ public class IconThemeOptions { /// /// 获得/设置 主题 Icons 集合 - /// Get/Set theme Icons collection + /// Gets or sets theme Icons collection /// #if NET8_0_OR_GREATER public FrozenDictionary> Icons { get; private set; } @@ -27,7 +27,7 @@ public class IconThemeOptions /// /// 获得/设置 当前主题键值 默认 fa 使用 font-awesome 图标集 - /// Get/Set current theme key default fa using font-awesome icon set + /// Gets or sets current theme key default fa using font-awesome icon set /// public string ThemeKey { get; set; } diff --git a/src/BootstrapBlazor/Options/PdfOptions.cs b/src/BootstrapBlazor/Options/PdfOptions.cs index d2ed48a3916..b35981a40d1 100644 --- a/src/BootstrapBlazor/Options/PdfOptions.cs +++ b/src/BootstrapBlazor/Options/PdfOptions.cs @@ -13,37 +13,37 @@ public class PdfOptions { /// /// 获得/设置 是否横向打印 默认 false - /// Get/Set whether to print landscape default false + /// Gets or sets whether to print landscape default false /// public bool Landscape { get; set; } /// /// 获得/设置 是否打印背景色 默认 false - /// Get/Set whether to print background default false + /// Gets or sets whether to print background default false /// public bool PrintBackground { get; set; } /// /// 获得/设置 纸张格式 默认 A4 - /// Get/Set paper format default A4 + /// Gets or sets paper format default A4 /// public PaperFormat Format { get; set; } = PaperFormat.A4; /// /// 获得/设置 是否显示页眉页脚 默认 false - /// Get/Set whether to display header and footer default false + /// Gets or sets whether to display header and footer default false /// public bool DisplayHeaderFooter { get; set; } /// /// 获得/设置 放大比例 默认 1 取值 0.1 到 2 之间 - /// Get/Set scale default 1 between 0.1 and 2 + /// Gets or sets scale default 1 between 0.1 and 2 /// public decimal Scale { get; set; } = 1; /// /// 获得/设置 页面边距 默认 未设置 - /// Get/Set page margin default not set + /// Gets or sets page margin default not set /// public MarginOptions MarginOptions { get; set; } = new(); } diff --git a/src/BootstrapBlazor/Options/QueryPageOptions.cs b/src/BootstrapBlazor/Options/QueryPageOptions.cs index 498040c05e1..b76089bc27c 100644 --- a/src/BootstrapBlazor/Options/QueryPageOptions.cs +++ b/src/BootstrapBlazor/Options/QueryPageOptions.cs @@ -16,7 +16,7 @@ public class QueryPageOptions { /// /// 获得/设置 模糊查询关键字 - /// Get/Set search text + /// Gets or sets search text /// public string? SearchText { get; set; } @@ -34,13 +34,13 @@ public class QueryPageOptions /// /// 获得/设置 多列排序集合 默认为 Empty 内部为 "Name" "Age desc" 由 设置 - /// Get/Set multi-column sort list default Empty internal "Name" "Age desc" set by + /// Gets or sets multi-column sort list default Empty internal "Name" "Age desc" set by /// public List SortList { get; } = new(10); /// /// 获得/设置 自定义多列排序集合 默认为 Empty 内部为 "Name" "Age desc" 由 设置 - /// Get/Set custom multi-column sort list default Empty internal "Name" "Age desc" set by + /// Gets or sets custom multi-column sort list default Empty internal "Name" "Age desc" set by /// public List AdvancedSortList { get; } = new(10); diff --git a/src/BootstrapBlazor/Options/ScrollOptions.cs b/src/BootstrapBlazor/Options/ScrollOptions.cs index 36150fc37e6..9dc48e2d9f0 100644 --- a/src/BootstrapBlazor/Options/ScrollOptions.cs +++ b/src/BootstrapBlazor/Options/ScrollOptions.cs @@ -13,13 +13,13 @@ public class ScrollOptions { /// /// 获得/设置 滚动条宽度 默认 5px - /// Get/Set scroll width default 5px + /// Gets or sets scroll width default 5px /// public int ScrollWidth { get; set; } = 5; /// /// 获得/设置 滚动条鼠标悬浮宽度 默认 5px - /// Get/Set scroll hover width default 5px + /// Gets or sets scroll hover width default 5px /// public int ScrollHoverWidth { get; set; } = 5; } diff --git a/src/BootstrapBlazor/Options/StepSettings.cs b/src/BootstrapBlazor/Options/StepSettings.cs index b4369e86ca9..9c39fcb709f 100644 --- a/src/BootstrapBlazor/Options/StepSettings.cs +++ b/src/BootstrapBlazor/Options/StepSettings.cs @@ -13,37 +13,37 @@ public class StepSettings { /// /// 获得/设置 int 数据类型步长 默认 null 未设置 - /// Get/Set int type step default null + /// Gets or sets int type step default null /// public int? Int { get; set; } /// /// 获得/设置 long 数据类型步长 默认 null 未设置 - /// Get/Set long type step default null + /// Gets or sets long type step default null /// public int? Long { get; set; } /// /// 获得/设置 short 数据类型步长 默认 null 未设置 - /// Get/Set short type step default null + /// Gets or sets short type step default null /// public int? Short { get; set; } /// /// 获得/设置 float 数据类型步长 默认 null 未设置 - /// Get/Set float type step default null + /// Gets or sets float type step default null /// public float? Float { get; set; } /// /// 获得/设置 double 数据类型步长 默认 null 未设置 - /// Get/Set double type step default null + /// Gets or sets double type step default null /// public double? Double { get; set; } /// /// 获得/设置 decimal 数据类型步长 默认 null 未设置 - /// Get/Set decimal type step default null + /// Gets or sets decimal type step default null /// public decimal? Decimal { get; set; } diff --git a/src/BootstrapBlazor/Options/TabItemMenuBindOptions.cs b/src/BootstrapBlazor/Options/TabItemMenuBindOptions.cs index d50da3dee6b..2ccde468b39 100644 --- a/src/BootstrapBlazor/Options/TabItemMenuBindOptions.cs +++ b/src/BootstrapBlazor/Options/TabItemMenuBindOptions.cs @@ -13,7 +13,7 @@ public class TabItemBindOptions { /// /// 获得/设置 集合 - /// Get/Set collection + /// Gets or sets collection /// public Dictionary Binders { get; set; } = []; } diff --git a/src/BootstrapBlazor/Options/TabItemTextOptions.cs b/src/BootstrapBlazor/Options/TabItemTextOptions.cs index cbdefb2faea..b0ebafaa35f 100644 --- a/src/BootstrapBlazor/Options/TabItemTextOptions.cs +++ b/src/BootstrapBlazor/Options/TabItemTextOptions.cs @@ -13,26 +13,26 @@ internal class TabItemTextOptions { /// /// 获得/设置 Tab 标签文本 - /// Get/Set Tab label text + /// Gets or sets Tab label text /// public string? Text { get; set; } /// /// 获得/设置 图标字符串 - /// Get/Set icon string + /// Gets or sets icon string /// public string? Icon { get; set; } /// /// 获得/设置 是否激活 默认为 true - /// Get/Set whether active default true + /// Gets or sets whether active default true /// /// public bool IsActive { get; set; } = true; /// /// 获得/设置 当前 TabItem 是否可关闭 默认为 true - /// Get/Set whether current TabItem is closable default true + /// Gets or sets whether current TabItem is closable default true /// public bool Closable { get; set; } = true; diff --git a/src/BootstrapBlazor/Options/TableSettings.cs b/src/BootstrapBlazor/Options/TableSettings.cs index d56f8189201..a218d25d379 100644 --- a/src/BootstrapBlazor/Options/TableSettings.cs +++ b/src/BootstrapBlazor/Options/TableSettings.cs @@ -13,49 +13,49 @@ public class TableSettings { /// /// 获得/设置 复选框宽度 默认 36 - /// Get/Set checkbox column width default 36 + /// Gets or sets checkbox column width default 36 /// public int CheckboxColumnWidth { get; set; } = 36; /// /// 获得/设置 复选框宽度 默认 28 - /// Get/Set checkbox column compact width default 28 + /// Gets or sets checkbox column compact width default 28 /// public int CheckboxColumnCompactWidth { get; set; } = 28; /// /// 获得/设置 明细行 Row Header 宽度 默认 24 - /// Get/Set detail row header width default 24 + /// Gets or sets detail row header width default 24 /// public int DetailColumnWidth { get; set; } = 24; /// /// 获得/设置 显示文字的复选框列宽度 默认 80 - /// Get/Set show checkbox text column width default 80 + /// Gets or sets show checkbox text column width default 80 /// public int ShowCheckboxTextColumnWidth { get; set; } = 80; /// /// 获得/设置 行号列宽度 默认 60 - /// Get/Set line no column width default 60 + /// Gets or sets line no column width default 60 /// public int LineNoColumnWidth { get; set; } = 60; /// /// 获得/设置 列最小宽度 默认 64 - /// Get/Set column min width default 64 + /// Gets or sets column min width default 64 /// public int ColumnMinWidth { get; set; } = 64; /// /// 获得/设置 表格渲染模式 - /// Get/Set table render mode + /// Gets or sets table render mode /// public TableRenderMode? TableRenderMode { get; set; } /// /// 获得/设置 TableExportExcelOptions 配置 默认为不为空 - /// Get/Set TableExportExcelOptions configuration default not null + /// Gets or sets TableExportExcelOptions configuration default not null /// public TableExportOptions TableExportOptions { get; set; } = new(); } diff --git a/src/BootstrapBlazor/Options/ThrottleOptions.cs b/src/BootstrapBlazor/Options/ThrottleOptions.cs index dd271195662..faf35a86d2f 100644 --- a/src/BootstrapBlazor/Options/ThrottleOptions.cs +++ b/src/BootstrapBlazor/Options/ThrottleOptions.cs @@ -13,19 +13,19 @@ public class ThrottleOptions { /// /// 获得/设置 限流时长 默认 500 单位毫秒 - /// Get/Set throttle interval default 500 ms + /// Gets or sets throttle interval default 500 ms /// public TimeSpan Interval { get; set; } = TimeSpan.FromMilliseconds(500); /// /// 获得/设置 是否执行结束后开始延时 默认 false - /// Get/Set whether to delay after execution default false + /// Gets or sets whether to delay after execution default false /// public bool DelayAfterExecution { get; set; } /// /// 获得/设置 发生错误时是否重置时长 默认 false - /// Get/Set whether to reset interval on exception default false + /// Gets or sets whether to reset interval on exception default false /// public bool ResetIntervalOnException { get; set; } } diff --git a/src/BootstrapBlazor/Options/WebClientOptions.cs b/src/BootstrapBlazor/Options/WebClientOptions.cs index 7b2f2f29687..40045c20053 100644 --- a/src/BootstrapBlazor/Options/WebClientOptions.cs +++ b/src/BootstrapBlazor/Options/WebClientOptions.cs @@ -13,7 +13,7 @@ public class WebClientOptions { /// /// 获得/设置 是否开启 IP 定位功能 默认 false 未开启 - /// Get/Set whether to enable IP locator feature default false + /// Gets or sets whether to enable IP locator feature default false /// public bool EnableIpLocator { get; set; } } diff --git a/src/BootstrapBlazor/Services/Bluetooth/BluetoothDeviceInfo.cs b/src/BootstrapBlazor/Services/Bluetooth/BluetoothDeviceInfo.cs index 7bd3b68650b..d63a78def61 100644 --- a/src/BootstrapBlazor/Services/Bluetooth/BluetoothDeviceInfo.cs +++ b/src/BootstrapBlazor/Services/Bluetooth/BluetoothDeviceInfo.cs @@ -13,49 +13,49 @@ public class BluetoothDeviceInfo { /// /// 获得/设置 ManufacturerName - /// Get/Set ManufacturerName + /// Gets or sets ManufacturerName /// public string? ManufacturerName { get; set; } /// /// 获得/设置 ModelNumber - /// Get/Set ModelNumber + /// Gets or sets ModelNumber /// public string? ModelNumber { get; set; } /// /// 获得/设置 HardwareRevision - /// Get/Set HardwareRevision + /// Gets or sets HardwareRevision /// public string? HardwareRevision { get; set; } /// /// 获得/设置 FirmwareRevision - /// Get/Set FirmwareRevision + /// Gets or sets FirmwareRevision /// public string? FirmwareRevision { get; set; } /// /// 获得/设置 SoftwareRevision - /// Get/Set SoftwareRevision + /// Gets or sets SoftwareRevision /// public string? SoftwareRevision { get; set; } /// /// 获得/设置 SystemId - /// Get/Set SystemId + /// Gets or sets SystemId /// public SystemId? SystemId { get; set; } /// /// 获得/设置 IEEERegulatoryCertificationDataList - /// Get/Set IEEERegulatoryCertificationDataList + /// Gets or sets IEEERegulatoryCertificationDataList /// public string? IEEERegulatoryCertificationDataList { get; set; } /// /// 获得/设置 PnPID - /// Get/Set PnPID + /// Gets or sets PnPID /// public PnPID? PnPID { get; set; } } @@ -68,13 +68,13 @@ public class SystemId { /// /// 获得/设置 ManufacturerIdentifier - /// Get/Set ManufacturerIdentifier + /// Gets or sets ManufacturerIdentifier /// public string? ManufacturerIdentifier { get; set; } /// /// 获得/设置 OrganizationallyUniqueIdentifier - /// Get/Set OrganizationallyUniqueIdentifier + /// Gets or sets OrganizationallyUniqueIdentifier /// public string? OrganizationallyUniqueIdentifier { get; set; } } @@ -87,19 +87,19 @@ public class PnPID { /// /// 获得/设置 VendorIdSource - /// Get/Set VendorIdSource + /// Gets or sets VendorIdSource /// public string? VendorIdSource { get; set; } /// /// 获得/设置 ProductId - /// Get/Set ProductId + /// Gets or sets ProductId /// public string? ProductId { get; set; } /// /// 获得/设置 ProductVersion - /// Get/Set ProductVersion + /// Gets or sets ProductVersion /// public string? ProductVersion { get; set; } } diff --git a/src/BootstrapBlazor/Services/IPLocator/BaiduIpLocatorProvider.cs b/src/BootstrapBlazor/Services/IPLocator/BaiduIpLocatorProvider.cs index 8fb733cc78d..ec5be9dfad7 100644 --- a/src/BootstrapBlazor/Services/IPLocator/BaiduIpLocatorProvider.cs +++ b/src/BootstrapBlazor/Services/IPLocator/BaiduIpLocatorProvider.cs @@ -76,13 +76,13 @@ class LocationResult { /// /// 获得/设置 结果状态返回码 为 0 时通讯正常 - /// Get/Set Result Status Code, 0 is Normal + /// Gets or sets Result Status Code, 0 is Normal /// public string? Status { get; set; } /// /// 获得/设置 定位信息 - /// Get/Set Location Info + /// Gets or sets Location Info /// public List? Data { get; set; } diff --git a/src/BootstrapBlazor/Services/IPLocator/BaiduIpLocatorProviderV2.cs b/src/BootstrapBlazor/Services/IPLocator/BaiduIpLocatorProviderV2.cs index b4ac462dae2..b88da5bf946 100644 --- a/src/BootstrapBlazor/Services/IPLocator/BaiduIpLocatorProviderV2.cs +++ b/src/BootstrapBlazor/Services/IPLocator/BaiduIpLocatorProviderV2.cs @@ -68,103 +68,103 @@ class LocationDataV2 { /// /// 获得/设置 州 - /// Get/Set Continent + /// Gets or sets Continent /// public string? Continent { get; set; } /// /// 获得/设置 国家 - /// Get/Set Country + /// Gets or sets Country /// public string? Country { get; set; } /// /// 获得/设置 邮编 - /// Get/Set ZipCode + /// Gets or sets ZipCode /// public string? ZipCode { get; set; } /// /// 获得/设置 时区 - /// Get/Set TimeZone + /// Gets or sets TimeZone /// public string? TimeZone { get; set; } /// /// 获得/设置 精度 - /// Get/Set Accuracy + /// Gets or sets Accuracy /// public string? Accuracy { get; set; } /// /// 获得/设置 所属 - /// Get/Set Owner + /// Gets or sets Owner /// public string? Owner { get; set; } /// /// 获得/设置 运营商 - /// Get/Set ISP + /// Gets or sets ISP /// public string? Isp { get; set; } /// /// 获得/设置 来源 - /// Get/Set Source + /// Gets or sets Source /// public string? Source { get; set; } /// /// 获得/设置 区号 - /// Get/Set Area Code + /// Gets or sets Area Code /// public string? AreaCode { get; set; } /// /// 获得/设置 行政区划代码 - /// Get/Set AdCode + /// Gets or sets AdCode /// public string? AdCode { get; set; } /// /// 获得/设置 国家代码 - /// Get/Set Country Code + /// Gets or sets Country Code /// public string? AsNumber { get; set; } /// /// 获得/设置 经度 - /// Get/Set Latitude + /// Gets or sets Latitude /// public string? Lat { get; set; } /// /// 获得/设置 纬度 - /// Get/Set Longitude + /// Gets or sets Longitude /// public string? Lng { get; set; } /// /// 获得/设置 半径 - /// Get/Set Radius + /// Gets or sets Radius /// public string? Radius { get; set; } /// /// 获得/设置 省份 - /// Get/Set Province + /// Gets or sets Province /// public string? Prov { get; set; } /// /// 获得/设置 城市 - /// Get/Set City + /// Gets or sets City /// public string? City { get; set; } /// /// 获得/设置 区县 - /// Get/Set District + /// Gets or sets District /// public string? District { get; set; } } diff --git a/src/BootstrapBlazor/Services/IPLocator/IIpLocatorProvider.cs b/src/BootstrapBlazor/Services/IPLocator/IIpLocatorProvider.cs index 7f38a8e1625..afd5d20d048 100644 --- a/src/BootstrapBlazor/Services/IPLocator/IIpLocatorProvider.cs +++ b/src/BootstrapBlazor/Services/IPLocator/IIpLocatorProvider.cs @@ -13,7 +13,7 @@ public interface IIpLocatorProvider { /// /// 获得/设置 定位器 Key 默认 null 使用已注册的最后一个 Provider - /// Get/Set Locator Key, default null, use the last registered Provider + /// Gets or sets Locator Key, default null, use the last registered Provider /// string? Key { get; set; } diff --git a/src/BootstrapBlazor/Services/IPLocator/IpLocatorOptions.cs b/src/BootstrapBlazor/Services/IPLocator/IpLocatorOptions.cs index 2b64bed4a94..13cd4aa5ccb 100644 --- a/src/BootstrapBlazor/Services/IPLocator/IpLocatorOptions.cs +++ b/src/BootstrapBlazor/Services/IPLocator/IpLocatorOptions.cs @@ -13,19 +13,19 @@ public class IpLocatorOptions { /// /// 获得/设置 定位器名称 内置支持 BaiduIpLocatorProvider BaiduIpLocatorProviderV2 - /// Get/Set Locator Name, built-in support for BaiduIpLocatorProvider, BaiduIpLocatorProviderV2 + /// Gets or sets Locator Name, built-in support for BaiduIpLocatorProvider, BaiduIpLocatorProviderV2 /// public string? ProviderName { get; set; } /// /// 获得/设置 是否开启缓存降低请求频率 默认 true 缓存 - /// Get/Set Enable Cache to reduce request frequency, default true + /// Gets or sets Enable Cache to reduce request frequency, default true /// public bool EnableCache { get; set; } = true; /// /// 获得/设置 滑动过期时间 默认 5 分钟 - /// Get/Set Sliding Expiration, default 5 minutes + /// Gets or sets Sliding Expiration, default 5 minutes /// public TimeSpan SlidingExpiration { get; set; } = TimeSpan.FromMinutes(5); } diff --git a/src/BootstrapBlazor/Services/WebClientService.cs b/src/BootstrapBlazor/Services/WebClientService.cs index 5bbe6c20fd6..74126e51023 100644 --- a/src/BootstrapBlazor/Services/WebClientService.cs +++ b/src/BootstrapBlazor/Services/WebClientService.cs @@ -125,62 +125,62 @@ public class ClientInfo { /// /// 获得/设置 链接 Id - /// Get/Set Connection Id + /// Gets or sets Connection Id /// public string? Id { get; set; } /// /// 获得/设置 客户端IP - /// Get/Set Client IP + /// Gets or sets Client IP /// public string? Ip { get; set; } /// /// 获得/设置 客户端地点 - /// Get/Set Client City + /// Gets or sets Client City /// public string? City { get; set; } /// /// 获得/设置 客户端浏览器 - /// Get/Set Client Browser + /// Gets or sets Client Browser /// public string? Browser { get; set; } /// /// 获得/设置 客户端操作系统 - /// Get/Set Client OS + /// Gets or sets Client OS /// public string? OS { get; set; } /// /// 获得/设置 客户端设备类型 - /// Get/Set Client Device Type + /// Gets or sets Client Device Type /// [JsonConverter(typeof(JsonStringEnumConverter))] public WebClientDeviceType Device { get; set; } /// /// 获得/设置 客户端浏览器语言 - /// Get/Set Client Browser Language + /// Gets or sets Client Browser Language /// public string? Language { get; set; } /// /// 获取/设置 请求网址 - /// Get/Set Request URL + /// Gets or sets Request URL /// public string? RequestUrl { get; set; } /// /// 获得/设置 客户端 UserAgent - /// Get/Set Client UserAgent + /// Gets or sets Client UserAgent /// public string? UserAgent { get; set; } /// /// 获得/设置 浏览器引擎信息 - /// Get/Set Browser Engine Info + /// Gets or sets Browser Engine Info /// public string? Engine { get; set; } } diff --git a/src/BootstrapBlazor/Utils/Offset.cs b/src/BootstrapBlazor/Utils/Offset.cs index ac24a8510fd..d3d0377ac0d 100644 --- a/src/BootstrapBlazor/Utils/Offset.cs +++ b/src/BootstrapBlazor/Utils/Offset.cs @@ -13,25 +13,25 @@ public class Offset { /// /// 获得/设置 X 轴偏移量 - /// Get/Set global x-coordinate + /// Gets or sets global x-coordinate /// public int Top { get; set; } /// /// 获得/设置 Y 轴偏移量 - /// Get/Set global y-coordinate + /// Gets or sets global y-coordinate /// public int Left { get; set; } /// /// 获得/设置 宽度 - /// Get/Set width + /// Gets or sets width /// public int Width { get; set; } /// /// 获得/设置 高度 - /// Get/Set height + /// Gets or sets height /// public int Height { get; set; } } diff --git a/src/BootstrapBlazor/Validators/MaxValidator.cs b/src/BootstrapBlazor/Validators/MaxValidator.cs index 83ea7230aaf..abb2d74d803 100644 --- a/src/BootstrapBlazor/Validators/MaxValidator.cs +++ b/src/BootstrapBlazor/Validators/MaxValidator.cs @@ -15,19 +15,19 @@ public class MaxValidator : ValidatorBase { /// /// 获得/设置 错误描述信息 - /// Get/Set error message + /// Gets or sets error message /// public string? ErrorMessage { get; set; } /// /// 获得/设置 值 - /// Get/Set value + /// Gets or sets value /// public int Value { get; set; } /// /// 获得/设置 分割回调方法 默认 使用 ',' 分割 - /// Get/Set split callback method default use ',' split + /// Gets or sets split callback method default use ',' split /// public Func SplitCallback { get; set; } = value => value.Split(',', StringSplitOptions.RemoveEmptyEntries).Length; diff --git a/src/BootstrapBlazor/Validators/RequiredValidator.cs b/src/BootstrapBlazor/Validators/RequiredValidator.cs index 37cfbb7b934..a1a736a9020 100644 --- a/src/BootstrapBlazor/Validators/RequiredValidator.cs +++ b/src/BootstrapBlazor/Validators/RequiredValidator.cs @@ -19,25 +19,25 @@ public class RequiredValidator : ValidatorBase { /// /// 获得/设置 错误描述信息 默认为 null 需要赋值 - /// Get/Set error message default null need to be assigned + /// Gets or sets error message default null need to be assigned /// public string? ErrorMessage { get; set; } /// /// 获得/设置 是否允许空字符串 默认 false 不允许 - /// Get/Set whether to allow empty string default false not allowed + /// Gets or sets whether to allow empty string default false not allowed /// public bool AllowEmptyString { get; set; } /// /// 获得/设置 IStringLocalizerFactory 注入服务实例 默认为 null - /// Get/Set IStringLocalizerFactory injection service instance default null + /// Gets or sets IStringLocalizerFactory injection service instance default null /// public IStringLocalizerFactory? LocalizerFactory { get; set; } /// /// 获得/设置 Json 资源文件配置 默认为 null - /// Get/Set Json resource file configuration default null + /// Gets or sets Json resource file configuration default null /// public JsonLocalizationOptions? Options { get; set; }