Skip to content

Commit 0c381bf

Browse files
committed
doc: 更新参数注释值
1 parent 3b11cb0 commit 0c381bf

16 files changed

Lines changed: 206 additions & 111 deletions

src/components/BootstrapBlazor.DockView/Components/DockViewComponent.cs

Lines changed: 42 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -9,126 +9,146 @@
99
namespace BootstrapBlazor.Components;
1010

1111
/// <summary>
12-
/// DockContentItem 配置项子项对标 content 配置项内部 content 配置
12+
/// <para lang="zh">DockContentItem 配置项子项对标 content 配置项内部 content 配置</para>
13+
/// <para lang="en">DockContentItem configuration item sub-item corresponds to the content configuration item inside the content configuration item</para>
1314
/// </summary>
1415
public class DockViewComponent : DockViewComponentBase
1516
{
1617
/// <summary>
17-
/// 获得/设置 组件是否显示 Header 默认 true 显示
18+
/// <para lang="zh">获得/设置 组件是否显示 Header 默认 true 显示</para>
19+
/// <para lang="en">Gets or sets whether the component header is displayed. Default is true.</para>
1820
/// </summary>
1921
[Parameter]
2022
public bool ShowHeader { get; set; } = true;
2123

2224
/// <summary>
23-
/// 获得/设置 组件 Title
25+
/// <para lang="zh">获得/设置 组件 Title</para>
26+
/// <para lang="en">Gets or sets the component title.</para>
2427
/// </summary>
2528
[Parameter]
2629
public string? Title { get; set; }
2730

2831
/// <summary>
29-
/// 获得/设置 组件 Title 宽度 默认 null 未设置
32+
/// <para lang="zh">获得/设置 组件 Title 宽度 默认 null 未设置</para>
33+
/// <para lang="en">Gets or sets the component title width. Default is null (not set).</para>
3034
/// </summary>
3135
[Parameter]
3236
public int? TitleWidth { get; set; }
3337

3438
/// <summary>
35-
/// 获得/设置 组件 Title 样式 默认 null 未设置
39+
/// <para lang="zh">获得/设置 组件 Title 样式 默认 null 未设置</para>
40+
/// <para lang="en">Gets or sets the component title style. Default is null (not set).</para>
3641
/// </summary>
3742
[Parameter]
3843
public string? TitleClass { get; set; }
3944

4045
/// <summary>
41-
/// 获得/设置 Title 模板 默认 null 未设置
46+
/// <para lang="zh">获得/设置 Title 模板 默认 null 未设置</para>
47+
/// <para lang="en">Gets or sets the title template. Default is null (not set).</para>
4248
/// </summary>
4349
[Parameter]
4450
[JsonIgnore]
4551
public RenderFragment? TitleTemplate { get; set; }
4652

4753
/// <summary>
48-
/// 获得/设置 组件 Class 默认 null 未设置
54+
/// <para lang="zh">获得/设置 组件 Class 默认 null 未设置</para>
55+
/// <para lang="en">Gets or sets the component class. Default is null (not set).</para>
4956
/// </summary>
5057
[Parameter]
5158
public string? Class { get; set; }
5259

5360
/// <summary>
54-
/// 获得/设置 组件是否可见 默认 true 可见
61+
/// <para lang="zh">获得/设置 组件是否可见 默认 true 可见</para>
62+
/// <para lang="en">Gets or sets whether the component is visible. Default is true.</para>
5563
/// </summary>
5664
[Parameter]
5765
public bool Visible { get; set; } = true;
5866

5967
/// <summary>
60-
/// 获得/设置 组件是否允许关闭 默认 null 使用 DockView 的配置
68+
/// <para lang="zh">获得/设置 组件是否允许关闭 默认 null 使用 DockView 的配置</para>
69+
/// <para lang="en">Gets or sets whether the component is allowed to be closed. Default is null (uses DockView configuration).</para>
6170
/// </summary>
6271
[Parameter]
6372
public bool? ShowClose { get; set; }
6473

6574
/// <summary>
66-
/// 获得/设置 组件唯一标识值 默认 null 未设置时取 Title 作为唯一标识
75+
/// <para lang="zh">获得/设置 组件唯一标识值 默认 null 未设置时取 Title 作为唯一标识</para>
76+
/// <para lang="en">Gets or sets the unique identifier for the component. Default is null, uses Title as the identifier if not set.</para>
6777
/// </summary>
6878
[Parameter]
6979
public string? Key { get; set; }
7080

7181
/// <summary>
72-
/// 获得/设置 是否锁定 默认 null 未设置时取 DockView 的配置
82+
/// <para lang="zh">获得/设置 是否锁定 默认 null 未设置时取 DockView 的配置</para>
83+
/// <para lang="en">Gets or sets whether the component is locked. Default is null (uses DockView configuration).</para>
7384
/// </summary>
7485
/// <remarks>锁定后无法拖动</remarks>
7586
[Parameter]
7687
public bool? IsLock { get; set; }
7788

7889
/// <summary>
79-
/// 获得/设置 是否显示锁定按钮 默认 null 未设置时取 DockView 的配置
90+
/// <para lang="zh">获得/设置 是否显示锁定按钮 默认 null 未设置时取 DockView 的配置</para>
91+
/// <para lang="en">Gets or sets whether the lock button is displayed. Default is null (uses DockView configuration).</para>
8092
/// </summary>
8193
[Parameter]
8294
public bool? ShowLock { get; set; }
8395

8496
/// <summary>
85-
/// 获得/设置 是否悬浮 默认 null 未设置时取 DockView 的配置
97+
/// <para lang="zh">获得/设置 是否悬浮 默认 null 未设置时取 DockView 的配置</para>
98+
/// <para lang="en">Gets or sets whether the component is floating. Default is null (uses DockView configuration).</para>
8699
/// </summary>
87100
[Parameter]
88101
public bool? IsFloating { get; set; }
89102

90103
/// <summary>
91-
/// 获得/设置 是否显示可悬浮按钮 默认 null 未设置时取 DockView 的配置
104+
/// <para lang="zh">获得/设置 是否显示可悬浮按钮 默认 null 未设置时取 DockView 的配置</para>
105+
/// <para lang="en">Gets or sets whether the float button is displayed. Default is null (uses DockView configuration).</para>
92106
/// </summary>
93107
[Parameter]
94108
public bool? ShowFloat { get; set; }
95109

96110
/// <summary>
97-
/// 获得/设置 是否显示最大化按钮 默认 null 未设置时取 DockView 的配置
111+
/// <para lang="zh">获得/设置 是否显示最大化按钮 默认 null 未设置时取 DockView 的配置</para>
112+
/// <para lang="en">Gets or sets whether the maximize button is displayed. Default is null (uses DockView configuration).</para>
98113
/// </summary>
99114
[Parameter]
100115
public bool? ShowMaximize { get; set; }
101116

102117
/// <summary>
103-
/// 获得/设置 是否一直显示 默认 null 未设置时取 DockView 的配置
118+
/// <para lang="zh">获得/设置 是否一直显示 默认 null 未设置时取 DockView 的配置</para>
119+
/// <para lang="en">Gets or sets whether the component is always displayed. Default is null (uses DockView configuration).</para>
104120
/// </summary>
105121
[Parameter]
106122
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
107123
public string? Renderer { get; set; }
108124

109125
/// <summary>
110-
/// 获得/设置 是否显示标题前置图标 默认 false 不显示
126+
/// <para lang="zh">获得/设置 是否显示标题前置图标 默认 false 不显示</para>
127+
/// <para lang="en">Gets or sets whether the title bar icon is displayed. Default is false.</para>
111128
/// </summary>
112129
[Parameter]
113130
[JsonIgnore]
114131
public bool ShowTitleBar { get; set; }
115132

116133
/// <summary>
117-
/// 获得/设置 标题前置图标 默认 null 未设置使用默认图标
134+
/// <para lang="zh">获得/设置 标题前置图标 默认 null 未设置使用默认图标</para>
135+
/// <para lang="en">Gets or sets the title bar icon. Default is null, uses the default icon if not set.</para>
118136
/// </summary>
119137
[Parameter]
120138
[JsonIgnore]
121139
public string? TitleBarIcon { get; set; }
122140

123141
/// <summary>
124-
/// 获得/设置 标题前置图标 Url 默认 null 未设置使用默认图标
142+
/// <para lang="zh">获得/设置 标题前置图标 Url 默认 null 未设置使用默认图标</para>
143+
/// <para lang="en">Gets or sets the title bar icon URL. Default is null, uses the default icon if not set.</para>
125144
/// </summary>
126145
[Parameter]
127146
[JsonIgnore]
128147
public string? TitleBarIconUrl { get; set; }
129148

130149
/// <summary>
131-
/// 获得/设置 标题前置图标点击回调方法 默认 null
150+
/// <para lang="zh">获得/设置 标题前置图标点击回调方法 默认 null</para>
151+
/// <para lang="en">Gets or sets the callback method for clicking the title bar icon. Default is null.</para>
132152
/// </summary>
133153
[Parameter]
134154
[JsonIgnore]
@@ -192,7 +212,8 @@ private async Task OnClickBar()
192212
}
193213

194214
/// <summary>
195-
/// 设置 Visible 参数方法
215+
/// <para lang="zh">设置 Visible 参数方法</para>
216+
/// <para lang="en">Sets the Visible parameter.</para>
196217
/// </summary>
197218
/// <param name="visible"></param>
198219
public void SetVisible(bool visible)

src/components/BootstrapBlazor.DockView/Components/DockViewComponentBase.cs

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright (c) Argo Zhang (argo@163.com). All rights reserved.
1+
// Copyright (c) Argo Zhang (argo@163.com). All rights reserved.
22
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
33
// Website: https://www.blazor.zone or https://argozhang.github.io/
44

@@ -8,37 +8,43 @@
88
namespace BootstrapBlazor.Components;
99

1010
/// <summary>
11-
/// DockComponent 基类
11+
/// <para lang="zh">DockComponent 基类</para>
12+
/// <para lang="en">Base class for DockComponent</para>
1213
/// </summary>
1314
public abstract class DockViewComponentBase : IdComponentBase, IDisposable
1415
{
1516
/// <summary>
16-
/// 获得/设置 渲染类型 默认 Component
17+
/// <para lang="zh">获得/设置 渲染类型 默认 Component</para>
18+
/// <para lang="en">Gets or sets the render type. Default is Component.</para>
1719
/// </summary>
1820
[Parameter]
1921
public DockViewContentType Type { get; set; }
2022

2123
/// <summary>
22-
/// 获得/设置 组件宽度百分比 默认 null 未设置
24+
/// <para lang="zh">获得/设置 组件宽度百分比 默认 null 未设置</para>
25+
/// <para lang="en">Gets or sets the component width percentage. Default is null (not set).</para>
2326
/// </summary>
2427
[Parameter]
2528
public int? Width { get; set; }
2629

2730
/// <summary>
28-
/// 获得/设置 组件高度百分比 默认 null 未设置
31+
/// <para lang="zh">获得/设置 组件高度百分比 默认 null 未设置</para>
32+
/// <para lang="en">Gets or sets the component height percentage. Default is null (not set).</para>
2933
/// </summary>
3034
[Parameter]
3135
public int? Height { get; set; }
3236

3337
/// <summary>
34-
/// 获得/设置 子组件
38+
/// <para lang="zh">获得/设置 子组件</para>
39+
/// <para lang="en">Gets or sets the child content.</para>
3540
/// </summary>
3641
[Parameter]
3742
[JsonIgnore]
3843
public RenderFragment? ChildContent { get; set; }
3944

4045
/// <summary>
41-
/// 获得/设置 DockContent 实例
46+
/// <para lang="zh">获得/设置 DockContent 实例</para>
47+
/// <para lang="en">Gets or sets the DockContent instance.</para>
4248
/// </summary>
4349
[CascadingParameter]
4450
private List<DockViewComponentBase>? Parent { get; set; }
@@ -54,7 +60,8 @@ protected override void OnInitialized()
5460
}
5561

5662
/// <summary>
57-
/// 资源销毁方法
63+
/// <para lang="zh">资源销毁方法</para>
64+
/// <para lang="en">Resource disposal method</para>
5865
/// </summary>
5966
/// <param name="disposing"></param>
6067
protected virtual void Dispose(bool disposing)
@@ -66,7 +73,8 @@ protected virtual void Dispose(bool disposing)
6673
}
6774

6875
/// <summary>
69-
/// 资源销毁方法
76+
/// <para lang="zh">资源销毁方法</para>
77+
/// <para lang="en">Resource disposal method</para>
7078
/// </summary>
7179
public void Dispose()
7280
{

src/components/BootstrapBlazor.DockView/Components/DockViewConfig.cs

Lines changed: 36 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,98 +9,116 @@ namespace BootstrapBlazor.Components;
99
class DockViewConfig
1010
{
1111
/// <summary>
12-
/// 获得/设置 是否启用本地布局保持 默认 true
12+
/// <para lang="zh">获得/设置 是否启用本地布局保持 默认 true</para>
13+
/// <para lang="en">Gets or sets whether to enable local layout persistence. Default is true.</para>
1314
/// </summary>
1415
public bool EnableLocalStorage { get; set; } = true;
1516

1617
/// <summary>
17-
/// 获得/设置 是否锁定 默认 false
18+
/// <para lang="zh">获得/设置 是否锁定 默认 false</para>
19+
/// <para lang="en">Gets or sets whether the component is locked. Default is false.</para>
1820
/// </summary>
1921
/// <remarks>锁定后无法拖动</remarks>
2022
[JsonPropertyName("lock")]
2123
public bool IsLock { get; set; }
2224

2325
/// <summary>
24-
/// 获得/设置 是否显示锁定按钮 默认 true 显示
26+
/// <para lang="zh">获得/设置 是否显示锁定按钮 默认 true 显示</para>
27+
/// <para lang="en">Gets or sets whether the lock button is displayed. Default is true.</para>
2528
/// </summary>
2629
public bool ShowLock { get; set; }
2730

2831
/// <summary>
29-
/// 获得/设置 是否悬浮 默认 false
32+
/// <para lang="zh">获得/设置 是否悬浮 默认 false</para>
33+
/// <para lang="en">Gets or sets whether the component is floating. Default is false.</para>
3034
/// </summary>
3135
/// <remarks>锁定后无法拖动</remarks>
3236
public bool IsFloating { get; set; }
3337

3438
/// <summary>
35-
/// 获得/设置 是否显示可悬浮按钮 默认 true
39+
/// <para lang="zh">获得/设置 是否显示可悬浮按钮 默认 true</para>
40+
/// <para lang="en">Gets or sets whether the float button is displayed. Default is true.</para>
3641
/// </summary>
3742
public bool ShowFloat { get; set; } = true;
3843

3944
/// <summary>
40-
/// 获得/设置 是否显示关闭按钮 默认 true 显示
45+
/// <para lang="zh">获得/设置 是否显示关闭按钮 默认 true 显示</para>
46+
/// <para lang="en">Gets or sets whether the close button is displayed. Default is true.</para>
4147
/// </summary>
4248
public bool ShowClose { get; set; }
4349

4450
/// <summary>
45-
/// 获得/设置 是否显示显示图钉按钮 默认 true
51+
/// <para lang="zh">获得/设置 是否显示图钉按钮 默认 true</para>
52+
/// <para lang="en">Gets or sets whether the pin button is displayed. Default is true.</para>
4653
/// </summary>
4754
public bool ShowPin { get; set; } = true;
4855

4956
/// <summary>
50-
/// 获得/设置 是否显示最大化按钮 默认 true
57+
/// <para lang="zh">获得/设置 是否显示最大化按钮 默认 true</para>
58+
/// <para lang="en">Gets or sets whether the maximize button is displayed. Default is true.</para>
5159
/// </summary>
5260
public bool ShowMaximize { get; set; } = true;
5361

5462
/// <summary>
55-
/// 获得/设置 客户端渲染模式 默认 null 客户端默认使用 always onlyWhenVisible 值
63+
/// <para lang="zh">获得/设置 客户端渲染模式 默认 null 客户端默认使用 always onlyWhenVisible 值</para>
64+
/// <para lang="en">Gets or sets the client render mode. Default is null, the client will use always onlyWhenVisible value.</para>
5665
/// </summary>
5766
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
5867
public DockViewRenderMode Renderer { get; set; }
5968

6069
/// <summary>
61-
/// 获得/设置 标签页可见状态改变事件回调
70+
/// <para lang="zh">获得/设置 标签页可见状态改变事件回调</para>
71+
/// <para lang="en">Gets or sets the callback for when the tab visibility changes.</para>
6272
/// </summary>
6373
public string? PanelVisibleChangedCallback { get; set; }
6474

6575
/// <summary>
66-
/// 获得/设置 组件初始化完成事件回调
76+
/// <para lang="zh">获得/设置 组件初始化完成事件回调</para>
77+
/// <para lang="en">Gets or sets the callback for when the component is initialized.</para>
6778
/// </summary>
6879
public string? InitializedCallback { get; set; }
6980

7081
/// <summary>
71-
/// 获得/设置 锁定事件回调
82+
/// <para lang="zh">获得/设置 锁定事件回调</para>
83+
/// <para lang="en">Gets or sets the callback for when the lock state changes.</para>
7284
/// </summary>
7385
public string? LockChangedCallback { get; set; }
7486

7587
/// <summary>
76-
/// 获得/设置 分割栏调整事件回调
88+
/// <para lang="zh">获得/设置 分割栏调整事件回调</para>
89+
/// <para lang="en">Gets or sets the callback for when the splitter is adjusted.</para>
7790
/// </summary>
7891
public string? SplitterCallback { get; set; }
7992

8093
/// <summary>
81-
/// 获得/设置 加载当前激活标签页事件回调
94+
/// <para lang="zh">获得/设置 加载当前激活标签页事件回调</para>
95+
/// <para lang="en">Gets or sets the callback for loading the currently active tab.</para>
8296
/// </summary>
8397
public string? LoadTabs { get; set; }
8498

8599
/// <summary>
86-
/// 获得/设置 客户端缓存键值
100+
/// <para lang="zh">获得/设置 客户端缓存键值</para>
101+
/// <para lang="en">Gets or sets the client-side cache key.</para>
87102
/// </summary>
88103
public string? LocalStorageKey { get; set; }
89104

90105
/// <summary>
91-
/// 获得/设置 Golden-Layout 配置项集合 默认 空集合
106+
/// <para lang="zh">获得/设置 配置项集合 默认 空集合</para>
107+
/// <para lang="en">Gets or sets the configuration items. Default is an empty collection.</para>
92108
/// </summary>
93109
[JsonPropertyName("content")]
94110
[JsonConverter(typeof(DockViewComponentConverter))]
95111
public List<DockViewComponentBase> Contents { get; set; } = [];
96112

97113
/// <summary>
98-
/// 获得/设置 组件主题 默认 null 未设置
114+
/// <para lang="zh">获得/设置 组件主题 默认 null 未设置</para>
115+
/// <para lang="en">Gets or sets the component theme. Default is null, not set.</para>
99116
/// </summary>
100117
public string? Theme { get; set; }
101118

102119
/// <summary>
103-
/// 获得/设置 布局配置 默认 null 未设置
120+
/// <para lang="zh">获得/设置 布局配置 默认 null 未设置</para>
121+
/// <para lang="en">Gets or sets the layout configuration. Default is null, not set.</para>
104122
/// </summary>
105123
public string? LayoutConfig { get; set; }
106124
}

0 commit comments

Comments
 (0)