diff --git a/src/components/BootstrapBlazor.DriverJs/Components/DriverJs.razor.cs b/src/components/BootstrapBlazor.DriverJs/Components/DriverJs.razor.cs index 9298fd9d..f5cd966f 100644 --- a/src/components/BootstrapBlazor.DriverJs/Components/DriverJs.razor.cs +++ b/src/components/BootstrapBlazor.DriverJs/Components/DriverJs.razor.cs @@ -5,12 +5,14 @@ namespace BootstrapBlazor.Components; /// -/// FocusGuide 组件 +/// DriverJs 组件 +/// DriverJs component /// public partial class DriverJs { /// - /// 获得/设置 是否自动开始向导 默认 true + /// 获得/设置 是否自动开始向导,默认为 true + /// Gets or sets whether to start the tour automatically. Default is true /// [Parameter] [Obsolete("已弃用,删除即可;Deprecated, just delete it")] @@ -18,13 +20,15 @@ public partial class DriverJs public bool AutoDrive { get; set; } = true; /// - /// 获得/设置 组件配置 实例 默认 null + /// 获得/设置 组件配置 实例,默认为 null + /// Gets or sets the instance. Default is null /// [Parameter] public DriverJsConfig? Config { get; set; } /// - /// 获得/设置 子组件内容 + /// 获得/设置 子组件内容 + /// Gets or sets the child content /// [Parameter] public RenderFragment? ChildContent { get; set; } @@ -41,7 +45,8 @@ public partial class DriverJs protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id, Interop); /// - /// 开始方法 + /// 开始方法 + /// Starts the tour /// /// public async Task Start(int? index = 0) @@ -60,7 +65,8 @@ public async Task Start(int? index = 0) } /// - /// 组件销毁前回调方法由 JavaScript 调用 返回 非空字符串时客户端 confirm 确认弹窗 + /// 组件销毁前回调方法由 JavaScript 调用 返回非空字符串时客户端 confirm 确认弹窗 + /// Callback before the component is destroyed. Invoked by JavaScript. When a non-empty string is returned the client shows a confirm dialog /// [JSInvokable] public async Task OnBeforeDestroy(int index) @@ -75,7 +81,8 @@ public async Task Start(int? index = 0) } /// - /// 组件销毁后回调方法由 JavaScript 调用 + /// 组件销毁后回调方法由 JavaScript 调用 + /// Callback after the component is destroyed. Invoked by JavaScript /// /// [JSInvokable] @@ -88,7 +95,8 @@ public async Task OnDestroyed() } /// - /// 点击组件这招回调方法由 JavaScript 调用 + /// 点击遮罩回调方法由 JavaScript 调用 + /// Callback when the overlay is clicked. Invoked by JavaScript /// /// [JSInvokable] @@ -101,68 +109,79 @@ public async Task OnOverlayClicked(int index) } /// - /// Starts at step 0 + /// 从指定步骤开始向导 + /// Starts the tour at the specified step /// /// /// public Task Drive(int? index) => InvokeVoidAsync("drive", Id, index); /// - /// Move to the next step + /// 移动到下一步 + /// Moves to the next step /// /// public Task MoveNext() => InvokeVoidAsync("moveNext", Id); /// - /// Move to the previous step + /// 移动到上一步 + /// Moves to the previous step /// /// public Task MovePrevious() => InvokeVoidAsync("movePrevious", Id); /// - /// Move to the step + /// 移动到指定步骤 + /// Moves to the specified step /// /// public Task MoveTo(int index) => InvokeVoidAsync("moveTo", Id, index); /// - /// Is there a next step + /// 是否存在下一步 + /// Is there a next step /// /// public Task HasNextStep() => InvokeAsync("hasNextStep", Id); /// - /// Is there a previous step + /// 是否存在上一步 + /// Is there a previous step /// /// public Task HasPreviousStep() => InvokeAsync("hasPreviousStep", Id); /// - /// Is the current step the first step + /// 当前步骤是否为第一步 + /// Is the current step the first step /// /// public Task IsFirstStep() => InvokeAsync("isFirstStep", Id); /// - /// Is the current step the last step + /// 当前步骤是否为最后一步 + /// Is the current step the last step /// /// public Task IsLastStep() => InvokeAsync("isLastStep", Id); /// - /// Gets the active step index + /// 获得当前步骤索引 + /// Gets the active step index /// /// public Task GetActiveIndex() => InvokeAsync("getActiveIndex", Id); /// - /// Gets the active step index + /// 销毁组件方法 + /// Destroys the tour /// /// public Task Destroy() => InvokeVoidAsync("destroy", Id); /// - /// Gets the active step configuration + /// 获得当前步骤配置 + /// Gets the active step configuration /// /// public async Task GetActiveStep() @@ -178,7 +197,8 @@ public async Task OnOverlayClicked(int index) } /// - /// Gets the previous step configuration + /// 获得上一步骤配置 + /// Gets the previous step configuration /// /// public async Task GetPreviousStep() @@ -194,19 +214,22 @@ public async Task OnOverlayClicked(int index) } /// - /// Is the tour or highlight currently active + /// 向导或高亮是否处于激活状态 + /// Is the tour or highlight currently active /// /// public Task IsActive() => InvokeAsync("isActive", Id); /// - /// Recalculate and redraw the highlight + /// 重新计算并绘制高亮区域 + /// Recalculates and redraws the highlight /// /// public Task Refresh() => InvokeVoidAsync("refresh", Id); /// - /// Look at the DriveStep section of configuration for format of the step + /// 高亮指定元素方法 + /// Highlights the specified element. Look at the DriveStep section of configuration for format of the step /// /// 实例 /// target selector @@ -221,7 +244,8 @@ public async Task Highlight(DriverJsConfig config, string? selector, DriverJsHig } /// - /// 添加步骤方法 + /// 添加步骤方法 + /// Adds a step /// /// public void AddStep(DriverJsStep step) @@ -230,7 +254,8 @@ public void AddStep(DriverJsStep step) } /// - /// 移除步骤方法 + /// 移除步骤方法 + /// Removes a step /// /// public void RemoveStep(DriverJsStep step) diff --git a/src/components/BootstrapBlazor.DriverJs/Components/DriverJsConfig.cs b/src/components/BootstrapBlazor.DriverJs/Components/DriverJsConfig.cs index 2999ff73..36e3ad7c 100644 --- a/src/components/BootstrapBlazor.DriverJs/Components/DriverJsConfig.cs +++ b/src/components/BootstrapBlazor.DriverJs/Components/DriverJsConfig.cs @@ -5,140 +5,161 @@ namespace BootstrapBlazor.Components; /// -/// FocusGuide 配置类 +/// FocusGuide 配置类 +/// FocusGuide configuration class /// public class DriverJsConfig { /// - /// Array of steps to highlight. + /// 获得/设置 高亮步骤集合 + /// Gets or sets the array of steps to highlight /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public List Steps { get; set; } = []; /// - /// Whether to animate the product tour. (default: true) + /// 获得/设置 是否使用动画,默认为 true + /// Gets or sets whether to animate the product tour. Default is true /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public bool? Animate { get; set; } /// - /// Duration of the animation in milliseconds. (default: 400) + /// 获得/设置 动画时长,单位毫秒,默认为 400 + /// Gets or sets the duration of the animation in milliseconds. Default is 400 /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public int? Duration { get; set; } /// - /// Overlay color. (default: black) + /// 获得/设置 遮罩颜色,默认为 black + /// Gets or sets the overlay color. Default is black /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? OverlayColor { get; set; } /// - /// Whether to smooth scroll to the highlighted element. (default: false) + /// 获得/设置 是否平滑滚动到高亮元素,默认为 false + /// Gets or sets whether to smooth scroll to the highlighted element. Default is false /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public bool? SmoothScroll { get; set; } /// - /// Whether to allow closing the popover by clicking on the backdrop. (default: true) + /// 获得/设置 是否允许点击遮罩关闭弹窗,默认为 true + /// Gets or sets whether to allow closing the popover by clicking on the backdrop. Default is true /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public bool? AllowClose { get; set; } /// - /// Whether to allow scrolling the page while the tour is active. (default: true) + /// 获得/设置 引导激活时是否允许页面滚动,默认为 true + /// Gets or sets whether to allow scrolling the page while the tour is active. Default is true /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public bool? AllowScroll { get; set; } /// - /// Whether to skip the step when the target element is missing. (default: false) + /// 获得/设置 目标元素不存在时是否跳过该步骤,默认为 false + /// Gets or sets whether to skip the step when the target element is missing. Default is false /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public bool? SkipMissingElement { get; set; } /// - /// Opacity of the backdrop. (default: 0.5) + /// 获得/设置 遮罩透明度,默认为 0.5 + /// Gets or sets the opacity of the backdrop. Default is 0.5 /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public float? OverlayOpacity { get; set; } /// - /// Distance between the highlighted element and the cutout. (default: 10) + /// 获得/设置 高亮元素与镂空区域之间的距离,默认为 10 + /// Gets or sets the distance between the highlighted element and the cutout. Default is 10 /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public float? StagePadding { get; set; } /// - /// Radius of the cutout around the highlighted element. (default: 5) + /// 获得/设置 高亮元素镂空区域圆角,默认为 5 + /// Gets or sets the radius of the cutout around the highlighted element. Default is 5 /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public int? StageRadius { get; set; } /// - /// Whether to allow keyboard navigation. (default: true) + /// 获得/设置 是否允许键盘导航,默认为 true + /// Gets or sets whether to allow keyboard navigation. Default is true /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public bool? AllowKeyboardControl { get; set; } /// - /// Whether to disable interaction with the highlighted element. (default: false) + /// 获得/设置 是否禁止与高亮元素交互,默认为 false + /// Gets or sets whether to disable interaction with the highlighted element. Default is false /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public bool? DisableActiveInteraction { get; set; } /// - /// If you want to add custom class to the popover + /// 获得/设置 弹窗自定义样式类名 + /// Gets or sets the custom class to add to the popover /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? PopoverClass { get; set; } /// - /// Distance between the popover and the highlighted element. (default: 10) + /// 获得/设置 弹窗与高亮元素之间的距离,默认为 10 + /// Gets or sets the distance between the popover and the highlighted element. Default is 10 /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public float? PopoverOffset { get; set; } /// - /// Array of buttons to show in the popover. Defaults to ["next", "previous", "close"] + /// 获得/设置 弹窗显示按钮集合,默认为 ["next", "previous", "close"] + /// Gets or sets the array of buttons to show in the popover. Default is ["next", "previous", "close"] /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public List? ShowButtons { get; set; } /// - /// Array of buttons to disable. + /// 获得/设置 禁用按钮集合 + /// Gets or sets the array of buttons to disable /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public List? DisableButtons { get; set; } /// - /// Whether to show the progress text in popover. (default: false) + /// 获得/设置 是否在弹窗中显示进度文本,默认为 false + /// Gets or sets whether to show the progress text in popover. Default is false /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public bool? ShowProgress { get; set; } /// - /// Template for the progress text. You can use the following placeholders in the template: - /// - {{current}}: The current step number - /// - {{total}}: Total number of steps + /// 获得/设置 进度文本模板,模板中可使用占位符 {{current}} 当前步骤序号 {{total}} 总步骤数 + /// Gets or sets the template for the progress text. You can use the placeholders {{current}} for the current step number and {{total}} for the total number of steps /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? ProgressText { get; set; } /// - /// Text to show in the next buttons. + /// 获得/设置 下一步按钮文本 + /// Gets or sets the text to show in the next button /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? NextBtnText { get; set; } /// - /// Text to show in the prev buttons. + /// 获得/设置 上一步按钮文本 + /// Gets or sets the text to show in the previous button /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? PrevBtnText { get; set; } /// - /// Text to show in the done buttons. + /// 获得/设置 完成按钮文本 + /// Gets or sets the text to show in the done button /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? DoneBtnText { get; set; } @@ -147,7 +168,8 @@ public class DriverJsConfig private bool HookDestroyStarted => OnDestroyStartedAsync != null; /// - /// 获得/设置 组件销毁前回调方法名称 + /// 获得/设置 组件销毁前回调方法 + /// Gets or sets the callback before the component is destroyed /// [JsonIgnore] public Func>? OnDestroyStartedAsync { get; set; } @@ -156,13 +178,15 @@ public class DriverJsConfig private bool HookDestroyed => OnDestroyedAsync != null; /// - /// 获得/设置 组件销毁前回调方法名称 + /// 获得/设置 组件销毁后回调方法 + /// Gets or sets the callback after the component is destroyed /// [JsonIgnore] public Func? OnDestroyedAsync { get; set; } /// - /// 获得/设置 点击遮罩行为 close nextStep function 默认 close + /// 获得/设置 点击遮罩行为 close nextStep function,默认为 close + /// Gets or sets the overlay click behavior. close nextStep function. Default is close /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? OverlayClickBehavior { get; set; } @@ -171,7 +195,8 @@ public class DriverJsConfig private string OverlayClickCallbackMethod => nameof(OnOverlayClickedAsync); /// - /// 获得/设置 组件销毁前回调方法名称 + /// 获得/设置 点击遮罩回调方法 + /// Gets or sets the callback when the overlay is clicked /// [JsonIgnore] public Func? OnOverlayClickedAsync { get; set; } diff --git a/src/components/BootstrapBlazor.DriverJs/Components/DriverJsPopover.cs b/src/components/BootstrapBlazor.DriverJs/Components/DriverJsPopover.cs index ca2c2866..f1bcf712 100644 --- a/src/components/BootstrapBlazor.DriverJs/Components/DriverJsPopover.cs +++ b/src/components/BootstrapBlazor.DriverJs/Components/DriverJsPopover.cs @@ -1,84 +1,97 @@ -// Copyright (c) Argo Zhang (argo@163.com). All rights reserved. +// Copyright (c) Argo Zhang (argo@163.com). All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Website: https://www.blazor.zone or https://argozhang.github.io/ namespace BootstrapBlazor.Components; /// -/// FocusGuide Popover 配置类 +/// FocusGuide Popover 配置类 +/// FocusGuide popover configuration class /// public class DriverJsPopover : ComponentBase, IDriverJsPopover, IDisposable { /// - /// Title shown in the popover. + /// 获得/设置 弹窗标题 + /// Gets or sets the title shown in the popover /// [Parameter] [EditorRequired] public string? Title { get; set; } /// - /// Descriptions shown in the popover. + /// 获得/设置 弹窗描述文本 + /// Gets or sets the description shown in the popover /// [Parameter] [EditorRequired] public string? Description { get; set; } /// - /// The position of the popover. "top" | "right" | "bottom" | "left" + /// 获得/设置 弹窗位置 "top" | "right" | "bottom" | "left" + /// Gets or sets the position of the popover. "top" | "right" | "bottom" | "left" /// [Parameter] public string? Side { get; set; } /// - /// The alignment of the popover. "start" | "center" | "end" + /// 获得/设置 弹窗对齐方式 "start" | "center" | "end" + /// Gets or sets the alignment of the popover. "start" | "center" | "end" /// [Parameter] public string? Align { get; set; } /// - /// Array of buttons to show in the popover. "next" | "previous" | "close" + /// 获得/设置 弹窗显示按钮集合 "next" | "previous" | "close" + /// Gets or sets the array of buttons to show in the popover. "next" | "previous" | "close" /// [Parameter] public List? ShowButtons { get; set; } /// - /// An array of buttons to disable. "next" | "previous" | "close" + /// 获得/设置 禁用按钮集合 "next" | "previous" | "close" + /// Gets or sets the array of buttons to disable. "next" | "previous" | "close" /// [Parameter] public List? DisableButtons { get; set; } /// - /// Text to show in the next buttons. + /// 获得/设置 下一步按钮文本 + /// Gets or sets the text to show in the next button /// [Parameter] public string? NextBtnText { get; set; } /// - /// Text to show in the prev buttons. + /// 获得/设置 上一步按钮文本 + /// Gets or sets the text to show in the previous button /// [Parameter] public string? PrevBtnText { get; set; } /// - /// Text to show in the done buttons. + /// 获得/设置 完成按钮文本 + /// Gets or sets the text to show in the done button /// [Parameter] public string? DoneBtnText { get; set; } /// - /// Whether to show the progress text in popover. (default true) + /// 获得/设置 是否在弹窗中显示进度文本,默认为 true + /// Gets or sets whether to show the progress text in popover. Default is true /// [Parameter] public bool? ShowProgress { get; set; } /// - /// Template for the progress text. Defaults "{{current}} of {{total}}" + /// 获得/设置 进度文本模板,默认为 "{{current}} of {{total}}" + /// Gets or sets the template for the progress text. Default is "{{current}} of {{total}}" /// [Parameter] public string? ProgressText { get; set; } /// - /// Custom class to add to the popover element. + /// 获得/设置 弹窗自定义样式类名 + /// Gets or sets the custom class to add to the popover element /// [Parameter] public string? PopoverClass { get; set; } diff --git a/src/components/BootstrapBlazor.DriverJs/Components/DriverJsStep.cs b/src/components/BootstrapBlazor.DriverJs/Components/DriverJsStep.cs index ac90d116..83162f80 100644 --- a/src/components/BootstrapBlazor.DriverJs/Components/DriverJsStep.cs +++ b/src/components/BootstrapBlazor.DriverJs/Components/DriverJsStep.cs @@ -1,4 +1,4 @@ -// Copyright (c) Argo Zhang (argo@163.com). All rights reserved. +// Copyright (c) Argo Zhang (argo@163.com). All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Website: https://www.blazor.zone or https://argozhang.github.io/ @@ -7,40 +7,46 @@ namespace BootstrapBlazor.Components; /// -/// FocusGuide 组件步骤组件 +/// FocusGuide 组件步骤组件 +/// FocusGuide step component /// public class DriverJsStep : ComponentBase, IDisposable { /// - /// 获得/设置 当前步骤目标元素选择器 默认 null 必须设置 + /// 获得/设置 当前步骤目标元素选择器,默认为 null 必须设置 + /// Gets or sets the target element selector of the current step. Default is null. Required /// [Parameter] [JsonPropertyName("element")] public string? Selector { get; set; } /// - /// Title shown in the popover. + /// 获得/设置 弹窗标题 + /// Gets or sets the title shown in the popover /// [Parameter] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? Title { get; set; } /// - /// Descriptions shown in the popover. + /// 获得/设置 弹窗描述文本 + /// Gets or sets the description shown in the popover /// [Parameter] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? Description { get; set; } /// - /// Whether to skip this step when the target element is missing. (default: false) + /// 获得/设置 目标元素不存在时是否跳过该步骤,默认为 false + /// Gets or sets whether to skip this step when the target element is missing. Default is false /// [Parameter] [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public bool? SkipMissingElement { get; set; } /// - /// 获得/设置 子组件内容 + /// 获得/设置 子组件内容 + /// Gets or sets the child content /// [Parameter] [JsonIgnore] @@ -89,7 +95,8 @@ protected override void BuildRenderTree(RenderTreeBuilder builder) } /// - /// 更新 FocusGuidePopover 实例方法 + /// 更新 FocusGuidePopover 实例方法 + /// Updates the FocusGuidePopover instance /// /// public void UpdatePopover(IDriverJsPopover? popover) diff --git a/src/components/BootstrapBlazor.DriverJs/Components/IDriverJsPopover.cs b/src/components/BootstrapBlazor.DriverJs/Components/IDriverJsPopover.cs index fa5c147d..fd076ab9 100644 --- a/src/components/BootstrapBlazor.DriverJs/Components/IDriverJsPopover.cs +++ b/src/components/BootstrapBlazor.DriverJs/Components/IDriverJsPopover.cs @@ -1,80 +1,93 @@ -// Copyright (c) Argo Zhang (argo@163.com). All rights reserved. +// Copyright (c) Argo Zhang (argo@163.com). All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. // Website: https://www.blazor.zone or https://argozhang.github.io/ namespace BootstrapBlazor.Components; /// -/// IGuidePopover 接口定义 +/// IDriverJsPopover 接口定义 +/// IDriverJsPopover interface /// public interface IDriverJsPopover { /// - /// Title shown in the popover. + /// 获得/设置 弹窗标题 + /// Gets or sets the title shown in the popover /// string? Title { get; set; } /// - /// Descriptions shown in the popover. + /// 获得/设置 弹窗描述文本 + /// Gets or sets the description shown in the popover /// string? Description { get; set; } /// - /// The position of the popover. "top" | "right" | "bottom" | "left" + /// 获得/设置 弹窗位置 "top" | "right" | "bottom" | "left" + /// Gets or sets the position of the popover. "top" | "right" | "bottom" | "left" /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] string? Side { get; set; } /// - /// The alignment of the popover. "start" | "center" | "end" + /// 获得/设置 弹窗对齐方式 "start" | "center" | "end" + /// Gets or sets the alignment of the popover. "start" | "center" | "end" /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] string? Align { get; set; } /// - /// Array of buttons to show in the popover. "next" | "previous" | "close" + /// 获得/设置 弹窗显示按钮集合 "next" | "previous" | "close" + /// Gets or sets the array of buttons to show in the popover. "next" | "previous" | "close" /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] List? ShowButtons { get; set; } /// - /// An array of buttons to disable. "next" | "previous" | "close" + /// 获得/设置 禁用按钮集合 "next" | "previous" | "close" + /// Gets or sets the array of buttons to disable. "next" | "previous" | "close" /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] List? DisableButtons { get; set; } /// - /// Text to show in the next buttons. + /// 获得/设置 下一步按钮文本 + /// Gets or sets the text to show in the next button /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] string? NextBtnText { get; set; } /// - /// Text to show in the prev buttons. + /// 获得/设置 上一步按钮文本 + /// Gets or sets the text to show in the previous button /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] string? PrevBtnText { get; set; } /// - /// Text to show in the done buttons. + /// 获得/设置 完成按钮文本 + /// Gets or sets the text to show in the done button /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] string? DoneBtnText { get; set; } /// - /// Whether to show the progress text in popover. (default true) + /// 获得/设置 是否在弹窗中显示进度文本,默认为 true + /// Gets or sets whether to show the progress text in popover. Default is true /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] bool? ShowProgress { get; set; } /// - /// Template for the progress text. Defaults "{{current}} of {{total}}" + /// 获得/设置 进度文本模板,默认为 "{{current}} of {{total}}" + /// Gets or sets the template for the progress text. Default is "{{current}} of {{total}}" /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] string? ProgressText { get; set; } /// - /// Custom class to add to the popover element. + /// 获得/设置 弹窗自定义样式类名 + /// Gets or sets the custom class to add to the popover element /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] string? PopoverClass { get; set; } diff --git a/src/components/BootstrapBlazor.DriverJs/Models/DriverJsHighlightPopover.cs b/src/components/BootstrapBlazor.DriverJs/Models/DriverJsHighlightPopover.cs index 7e13405c..7cff8948 100644 --- a/src/components/BootstrapBlazor.DriverJs/Models/DriverJsHighlightPopover.cs +++ b/src/components/BootstrapBlazor.DriverJs/Models/DriverJsHighlightPopover.cs @@ -5,7 +5,8 @@ namespace BootstrapBlazor.Components; /// -/// DriverJsHighlightPopover 实例 +/// DriverJsHighlightPopover 高亮弹窗配置类 +/// DriverJsHighlightPopover highlight popover configuration class /// public class DriverJsHighlightPopover : IDriverJsPopover {