@@ -28,20 +28,19 @@ public class EditorItem<TModel, TValue> : ComponentBase, IEditorItem
2828 [ Parameter ]
2929 public EventCallback < TValue > FieldChanged { get ; set ; }
3030
31- /// <summary>
32- /// <para lang="zh">获得/设置 属性类型</para>
33- /// <para lang="en">Gets or sets the property type</para>
34- /// </summary>
35- [ NotNull ]
36- public Type ? PropertyType { get ; set ; }
37-
3831 /// <summary>
3932 /// <para lang="zh">获得/设置 ValueExpression 表达式</para>
4033 /// <para lang="en">Gets or sets the value expression</para>
4134 /// </summary>
4235 [ Parameter ]
4336 public Expression < Func < TValue > > ? FieldExpression { get ; set ; }
4437
38+ /// <summary>
39+ /// <inheritdoc cref="IEditorItem.PropertyType"/>
40+ /// </summary>
41+ [ NotNull ]
42+ public Type ? PropertyType { get ; set ; }
43+
4544 /// <summary>
4645 /// <inheritdoc cref="IEditorItem.Editable"/>
4746 /// </summary>
@@ -51,70 +50,61 @@ public class EditorItem<TModel, TValue> : ComponentBase, IEditorItem
5150 public bool Editable { get ; set ; } = true ;
5251
5352 /// <summary>
54- /// <para lang="zh">获得/设置 是否忽略显示</para>
55- /// <para lang="en">Gets or sets whether the field is ignored</para>
53+ /// <inheritdoc cref="IEditorItem.Ignore"/>
5654 /// </summary>
5755 [ Parameter ]
5856 public bool ? Ignore { get ; set ; }
5957
6058 /// <summary>
61- /// <inheritdoc/>
59+ /// <inheritdoc cref="IEditorItem.Readonly" />
6260 /// </summary>
6361 [ Parameter ]
6462 public bool ? Readonly { get ; set ; }
6563
6664 /// <summary>
67- /// <para lang="zh">获得/设置 是否必填</para>
68- /// <para lang="en">Gets or sets whether the field is required</para>
65+ /// <inheritdoc cref="IEditorItem.Required"/>
6966 /// </summary>
7067 [ Parameter ]
7168 public bool ? Required { get ; set ; }
7269
7370 /// <summary>
74- /// <para lang="zh">获得/设置 必填错误信息</para>
75- /// <para lang="en">Gets or sets the required error message</para>
71+ /// <inheritdoc cref="IEditorItem.RequiredErrorMessage"/>
7672 /// </summary>
7773 [ Parameter ]
7874 public string ? RequiredErrorMessage { get ; set ; }
7975
8076 /// <summary>
81- /// <para lang="zh">获得/设置 是否跳过校验</para>
82- /// <para lang="en">Gets or sets whether to skip validation</para>
77+ /// <inheritdoc cref="IEditorItem.SkipValidate"/>
8378 /// </summary>
8479 [ Parameter ]
8580 public bool SkipValidate { get ; set ; }
8681
8782 /// <summary>
88- /// <para lang="zh">获得/设置 是否显示标签提示</para>
89- /// <para lang="en">Gets or sets whether to show the label tooltip</para>
83+ /// <inheritdoc cref="IEditorItem.ShowLabelTooltip"/>
9084 /// </summary>
9185 [ Parameter ]
9286 public bool ? ShowLabelTooltip { get ; set ; }
9387
9488 /// <summary>
95- /// <para lang="zh">获得/设置 显示文本</para>
96- /// <para lang="en">Gets or sets the display text</para>
89+ /// <inheritdoc cref="IEditorItem.Text"/>
9790 /// </summary>
9891 [ Parameter ]
9992 public string ? Text { get ; set ; }
10093
10194 /// <summary>
102- /// <para lang="zh">获得/设置 步长</para>
103- /// <para lang="en">Gets or sets the step value</para>
95+ /// <inheritdoc cref="IEditorItem.Step"/>
10496 /// </summary>
10597 [ Parameter ]
10698 public string ? Step { get ; set ; }
10799
108100 /// <summary>
109- /// <para lang="zh">获得/设置 行数</para>
110- /// <para lang="en">Gets or sets the row count</para>
101+ /// <inheritdoc cref="IEditorItem.Rows"/>
111102 /// </summary>
112103 [ Parameter ]
113104 public int Rows { get ; set ; }
114105
115106 /// <summary>
116- /// <para lang="zh">获得/设置 列数</para>
117- /// <para lang="en">Gets or sets the column count</para>
107+ /// <inheritdoc cref="IEditorItem.Cols"/>
118108 /// </summary>
119109 [ Parameter ]
120110 public int Cols { get ; set ; }
@@ -141,122 +131,106 @@ public class EditorItem<TModel, TValue> : ComponentBase, IEditorItem
141131 }
142132
143133 /// <summary>
144- /// <para lang="zh">获得/设置 组件类型</para>
145- /// <para lang="en">Gets or sets the component type</para>
134+ /// <inheritdoc cref="IEditorItem.ComponentType"/>
146135 /// </summary>
147136 [ Parameter ]
148137 public Type ? ComponentType { get ; set ; }
149138
150139 /// <summary>
151- /// <para lang="zh">获得/设置 组件参数集合</para>
152- /// <para lang="en">Gets or sets the component parameters</para>
140+ /// <inheritdoc cref="IEditorItem.ComponentParameters"/>
153141 /// </summary>
154142 [ Parameter ]
155143 public IEnumerable < KeyValuePair < string , object > > ? ComponentParameters { get ; set ; }
156144
157145 /// <summary>
158- /// <para lang="zh">获得/设置 占位符</para>
159- /// <para lang="en">Gets or sets the placeholder text</para>
146+ /// <inheritdoc cref="IEditorItem.PlaceHolder"/>
160147 /// </summary>
161148 [ Parameter ]
162149 public string ? PlaceHolder { get ; set ; }
163150
164151 /// <summary>
165- /// <para lang="zh">获得/设置 显示顺序</para>
166- /// <para lang="en">Gets or sets the display order</para>
152+ /// <inheritdoc cref="IEditorItem.Order"/>
167153 /// </summary>
168154 [ Parameter ]
169155 public int Order { get ; set ; }
170156
171157 /// <summary>
172- /// <para lang="zh">获得/设置 绑定数据集合</para>
173- /// <para lang="en">Gets or sets the bound data items</para>
158+ /// <inheritdoc cref="IEditorItem.Items"/>
174159 /// </summary>
175160 [ Parameter ]
176161 public IEnumerable < SelectedItem > ? Items { get ; set ; }
177162
178163 /// <summary>
179- /// <para lang="zh">获得/设置 Lookup 数据集合</para>
180- /// <para lang="en">Gets or sets the lookup data items</para>
164+ /// <inheritdoc cref="ILookup.Lookup"/>
181165 /// </summary>
182166 [ Parameter ]
183167 public IEnumerable < SelectedItem > ? Lookup { get ; set ; }
184168
185169 /// <summary>
186- /// <para lang="zh">获得/设置 选择时是否显示搜索</para>
187- /// <para lang="en">Gets or sets whether to show search when selecting</para>
170+ /// <inheritdoc cref="IEditorItem.ShowSearchWhenSelect"/>
188171 /// </summary>
189172 [ Parameter ]
190173 public bool ShowSearchWhenSelect { get ; set ; }
191174
192175 /// <summary>
193- /// <para lang="zh">获得/设置 选择时是否固定搜索</para>
194- /// <para lang="en">Gets or sets whether the search is fixed when selecting</para>
176+ /// <inheritdoc cref="IEditorItem.IsFixedSearchWhenSelect"/>
195177 /// </summary>
196178 [ Parameter ]
197179 [ Obsolete ( "已弃用,请删除;Deprecated, please delete" ) ]
198180 [ ExcludeFromCodeCoverage ]
199181 public bool IsFixedSearchWhenSelect { get ; set ; }
200182
201183 /// <summary>
202- /// <para lang="zh">获得/设置 是否显示为气泡</para>
203- /// <para lang="en">Gets or sets whether to show as a popover</para>
184+ /// <inheritdoc cref="IEditorItem.IsPopover"/>
204185 /// </summary>
205186 [ Parameter ]
206187 public bool IsPopover { get ; set ; }
207188
208189 /// <summary>
209- /// <para lang="zh">获得/设置 Lookup 比较方式</para>
210- /// <para lang="en">Gets or sets the lookup string comparison</para>
190+ /// <inheritdoc cref="ILookup.LookupStringComparison"/>
211191 /// </summary>
212192 [ Parameter ]
213193 public StringComparison LookupStringComparison { get ; set ; } = StringComparison . OrdinalIgnoreCase ;
214194
215195 /// <summary>
216- /// <para lang="zh">获得/设置 Lookup 服务键</para>
217- /// <para lang="en">Gets or sets the lookup service key</para>
196+ /// <inheritdoc cref="ILookup.LookupServiceKey"/>
218197 /// </summary>
219198 [ Parameter ]
220199 public string ? LookupServiceKey { get ; set ; }
221200
222201 /// <summary>
223- /// <para lang="zh">获得/设置 Lookup 服务数据</para>
224- /// <para lang="en">Gets or sets the lookup service data</para>
202+ /// <inheritdoc cref="ILookup.LookupServiceData"/>
225203 /// </summary>
226204 [ Parameter ]
227205 public object ? LookupServiceData { get ; set ; }
228206
229207 /// <summary>
230- /// <para lang="zh">获得/设置 Lookup 服务实例</para>
231- /// <para lang="en">Gets or sets the lookup service instance</para>
208+ /// <inheritdoc cref="ILookup.LookupService"/>
232209 /// </summary>
233210 [ Parameter ]
234211 public ILookupService ? LookupService { get ; set ; }
235212
236213 /// <summary>
237- /// <para lang="zh">获得/设置 校验规则集合</para>
238- /// <para lang="en">Gets or sets the validation rules</para>
214+ /// <inheritdoc cref="IEditorItem.ValidateRules"/>
239215 /// </summary>
240216 [ Parameter ]
241217 public List < IValidator > ? ValidateRules { get ; set ; }
242218
243- [ CascadingParameter ]
244- private List < IEditorItem > ? EditorItems { get ; set ; }
245-
246219 /// <summary>
247- /// <para lang="zh">获得/设置 分组名称</para>
248- /// <para lang="en">Gets or sets the group name</para>
220+ /// <inheritdoc cref="IEditorItem.GroupName"/>
249221 /// </summary>
250222 [ Parameter ]
251223 public string ? GroupName { get ; set ; }
252224
253225 /// <summary>
254- /// <para lang="zh">获得/设置 分组顺序</para>
255- /// <para lang="en">Gets or sets the group order</para>
226+ /// <inheritdoc cref="IEditorItem.GroupOrder"/>
256227 /// </summary>
257228 [ Parameter ]
258229 public int GroupOrder { get ; set ; }
259230
231+ [ CascadingParameter ]
232+ private List < IEditorItem > ? EditorItems { get ; set ; }
233+
260234 /// <summary>
261235 /// <inheritdoc/>
262236 /// </summary>
@@ -276,14 +250,12 @@ protected override void OnInitialized()
276250 private FieldIdentifier ? _fieldIdentifier ;
277251
278252 /// <summary>
279- /// <para lang="zh">获得显示名称</para>
280- /// <para lang="en">Gets the display name</para>
253+ /// <inheritdoc cref="IEditorItem.GetDisplayName"/>
281254 /// </summary>
282255 public virtual string GetDisplayName ( ) => Text ?? _fieldIdentifier ? . GetDisplayName ( ) ?? string . Empty ;
283256
284257 /// <summary>
285- /// <para lang="zh">获得字段名称</para>
286- /// <para lang="en">Gets the field name</para>
258+ /// <inheritdoc cref="IEditorItem.GetFieldName"/>
287259 /// </summary>
288260 public string GetFieldName ( ) => _fieldIdentifier ? . FieldName ?? string . Empty ;
289261}
0 commit comments