Skip to content

Commit bf7cc0d

Browse files
committed
doc: 增加参数文档注释
1 parent b910405 commit bf7cc0d

File tree

3 files changed

+29
-3
lines changed

3 files changed

+29
-3
lines changed

src/BootstrapBlazor.Server/Components/Samples/MultiSelects.razor.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -374,6 +374,22 @@ private AttributeItem[] GetAttributes() =>
374374
DefaultValue = "true"
375375
},
376376
new()
377+
{
378+
Name = "ShowSearch",
379+
Description = Localizer["MultiSelectsAttribute_ShowSearch"],
380+
Type = "bool",
381+
ValueList = "true|false",
382+
DefaultValue = "false"
383+
},
384+
new()
385+
{
386+
Name = "IsFixedSearch",
387+
Description = Localizer["MultiSelectsAttribute_IsFixedSearch"],
388+
Type = "bool",
389+
ValueList = "true|false",
390+
DefaultValue = "false"
391+
},
392+
new()
377393
{
378394
Name = "ShowToolbar",
379395
Description = Localizer["MultiSelectsAttribute_ShowToolbar"],

src/BootstrapBlazor.Server/Locales/en-US.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3024,7 +3024,12 @@
30243024
"MultiSelectOptionChangeLog": "Select the collection of items",
30253025
"MultiSelectIsEditableTitle": "Editable",
30263026
"MultiSelectIsEditableIntro": "Make the component editable by setting the <code>IsEditable</code> parameter",
3027-
"MultiSelectIsEditableDescription": "By setting the <code>EditSubmitKey</code> parameter, you can specify whether to submit via <kbd>Enter</kbd> or <kbd>Space</kbd>"
3027+
"MultiSelectIsEditableDescription": "By setting the <code>EditSubmitKey</code> parameter, you can specify whether to submit via <kbd>Enter</kbd> or <kbd>Space</kbd>",
3028+
"MultiSelectVirtualizeTitle": "Virtualize",
3029+
"MultiSelectVirtualizeIntro": "Set <code>IsVirtualize</code> to <b>true</b> enable virtual scroll for large data",
3030+
"MultiSelectVirtualizeDescription": "Component virtual scrolling supports two ways of providing data through <code>Items</code> or <code>OnQueryAsync</code> callback methods",
3031+
"MultiSelectsAttribute_ShowSearch": "Whether to display the search box",
3032+
"MultiSelectsAttribute_IsFixedSearch": "Whether fixed the search box"
30283033
},
30293034
"BootstrapBlazor.Server.Components.Samples.Radios": {
30303035
"RadiosTitle": "Radio",
@@ -3193,7 +3198,7 @@
31933198
"SelectsIsEditableIntro": "By setting <code>IsEditable=\"true\"</code> to make the component editable",
31943199
"SelectsIsEditableDesc": "After the editable function is enabled, if the input value is not in the candidate items, the new value can be returned through the <code>TextConvertToValueCallback</code> callback method, and the <code>Items</code> data source can be updated through the <code>OnInputChangedCallback</code> callback to prevent the input value from being lost after the page is refreshed.",
31953200
"SelectsVirtualizeTitle": "Virtualize",
3196-
"SelectsVirtualizeIntro": "Set <code>IsVirtualize</code> to <b>true</b> enable virtual scroll for larg data",
3201+
"SelectsVirtualizeIntro": "Set <code>IsVirtualize</code> to <b>true</b> enable virtual scroll for large data",
31973202
"SelectsVirtualizeDescription": "Component virtual scrolling supports two ways of providing data through <code>Items</code> or <code>OnQueryAsync</code> callback methods",
31983203
"SelectsGenericTitle": "Generic",
31993204
"SelectsGenericIntro": "Data source <code>Items</code> supports generics when using <code>SelectedItem&lt;TValue&gt;</code>",

src/BootstrapBlazor.Server/Locales/zh-CN.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3024,7 +3024,12 @@
30243024
"MultiSelectOptionChangeLog": "选中项集合",
30253025
"MultiSelectIsEditableTitle": "可编辑",
30263026
"MultiSelectIsEditableIntro": "通过设置 <code>IsEditable</code> 参数,使组件可编辑",
3027-
"MultiSelectIsEditableDescription": "通过设置 <code>EditSubmitKey</code> 参数可以指定通过 <kbd>Enter</kbd> 还是 <kbd>Space</kbd> 进行提交"
3027+
"MultiSelectIsEditableDescription": "通过设置 <code>EditSubmitKey</code> 参数可以指定通过 <kbd>Enter</kbd> 还是 <kbd>Space</kbd> 进行提交",
3028+
"MultiSelectVirtualizeTitle": "虚拟滚动",
3029+
"MultiSelectVirtualizeIntro": "通过设置 <code>IsVirtualize</code> 参数开启组件虚拟功能特性",
3030+
"MultiSelectVirtualizeDescription": "组件虚拟滚动支持两种形式通过 <code>Items</code> 或者 <code>OnQueryAsync</code> 回调方法提供数据",
3031+
"MultiSelectsAttribute_ShowSearch": "是否显示搜索框",
3032+
"MultiSelectsAttribute_IsFixedSearch": "是否固定搜索栏"
30283033
},
30293034
"BootstrapBlazor.Server.Components.Samples.Radios": {
30303035
"RadiosTitle": "Radio 单选框",

0 commit comments

Comments
 (0)