|
9 | 9 | namespace BootstrapBlazor.Components; |
10 | 10 |
|
11 | 11 | /// <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> |
13 | 14 | /// </summary> |
14 | 15 | public class DockViewComponent : DockViewComponentBase |
15 | 16 | { |
16 | 17 | /// <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> |
18 | 20 | /// </summary> |
19 | 21 | [Parameter] |
20 | 22 | public bool ShowHeader { get; set; } = true; |
21 | 23 |
|
22 | 24 | /// <summary> |
23 | | - /// 获得/设置 组件 Title |
| 25 | + /// <para lang="zh">获得/设置 组件 Title</para> |
| 26 | + /// <para lang="en">Gets or sets the component title.</para> |
24 | 27 | /// </summary> |
25 | 28 | [Parameter] |
26 | 29 | public string? Title { get; set; } |
27 | 30 |
|
28 | 31 | /// <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> |
30 | 34 | /// </summary> |
31 | 35 | [Parameter] |
32 | 36 | public int? TitleWidth { get; set; } |
33 | 37 |
|
34 | 38 | /// <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> |
36 | 41 | /// </summary> |
37 | 42 | [Parameter] |
38 | 43 | public string? TitleClass { get; set; } |
39 | 44 |
|
40 | 45 | /// <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> |
42 | 48 | /// </summary> |
43 | 49 | [Parameter] |
44 | 50 | [JsonIgnore] |
45 | 51 | public RenderFragment? TitleTemplate { get; set; } |
46 | 52 |
|
47 | 53 | /// <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> |
49 | 56 | /// </summary> |
50 | 57 | [Parameter] |
51 | 58 | public string? Class { get; set; } |
52 | 59 |
|
53 | 60 | /// <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> |
55 | 63 | /// </summary> |
56 | 64 | [Parameter] |
57 | 65 | public bool Visible { get; set; } = true; |
58 | 66 |
|
59 | 67 | /// <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> |
61 | 70 | /// </summary> |
62 | 71 | [Parameter] |
63 | 72 | public bool? ShowClose { get; set; } |
64 | 73 |
|
65 | 74 | /// <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> |
67 | 77 | /// </summary> |
68 | 78 | [Parameter] |
69 | 79 | public string? Key { get; set; } |
70 | 80 |
|
71 | 81 | /// <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> |
73 | 84 | /// </summary> |
74 | 85 | /// <remarks>锁定后无法拖动</remarks> |
75 | 86 | [Parameter] |
76 | 87 | public bool? IsLock { get; set; } |
77 | 88 |
|
78 | 89 | /// <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> |
80 | 92 | /// </summary> |
81 | 93 | [Parameter] |
82 | 94 | public bool? ShowLock { get; set; } |
83 | 95 |
|
84 | 96 | /// <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> |
86 | 99 | /// </summary> |
87 | 100 | [Parameter] |
88 | 101 | public bool? IsFloating { get; set; } |
89 | 102 |
|
90 | 103 | /// <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> |
92 | 106 | /// </summary> |
93 | 107 | [Parameter] |
94 | 108 | public bool? ShowFloat { get; set; } |
95 | 109 |
|
96 | 110 | /// <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> |
98 | 113 | /// </summary> |
99 | 114 | [Parameter] |
100 | 115 | public bool? ShowMaximize { get; set; } |
101 | 116 |
|
102 | 117 | /// <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> |
104 | 120 | /// </summary> |
105 | 121 | [Parameter] |
106 | 122 | [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] |
107 | 123 | public string? Renderer { get; set; } |
108 | 124 |
|
109 | 125 | /// <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> |
111 | 128 | /// </summary> |
112 | 129 | [Parameter] |
113 | 130 | [JsonIgnore] |
114 | 131 | public bool ShowTitleBar { get; set; } |
115 | 132 |
|
116 | 133 | /// <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> |
118 | 136 | /// </summary> |
119 | 137 | [Parameter] |
120 | 138 | [JsonIgnore] |
121 | 139 | public string? TitleBarIcon { get; set; } |
122 | 140 |
|
123 | 141 | /// <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> |
125 | 144 | /// </summary> |
126 | 145 | [Parameter] |
127 | 146 | [JsonIgnore] |
128 | 147 | public string? TitleBarIconUrl { get; set; } |
129 | 148 |
|
130 | 149 | /// <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> |
132 | 152 | /// </summary> |
133 | 153 | [Parameter] |
134 | 154 | [JsonIgnore] |
@@ -192,7 +212,8 @@ private async Task OnClickBar() |
192 | 212 | } |
193 | 213 |
|
194 | 214 | /// <summary> |
195 | | - /// 设置 Visible 参数方法 |
| 215 | + /// <para lang="zh">设置 Visible 参数方法</para> |
| 216 | + /// <para lang="en">Sets the Visible parameter.</para> |
196 | 217 | /// </summary> |
197 | 218 | /// <param name="visible"></param> |
198 | 219 | public void SetVisible(bool visible) |
|
0 commit comments