Skip to content

Commit c0610be

Browse files
committed
doc: 更新文档
1 parent f9d9922 commit c0610be

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,18 @@ private AttributeItem[] GetAttributes() =>
251251
/// <returns></returns>
252252
private EventItem[] GetEvents() =>
253253
[
254+
new()
255+
{
256+
Name = "OnClick",
257+
Description = Localizer["EventDesc1"],
258+
Type ="EventCallback<MouseEventArgs>"
259+
},
260+
new()
261+
{
262+
Name = "OnClickWithoutRender",
263+
Description = Localizer["EventDesc2"],
264+
Type ="Func<Task>"
265+
},
254266
new EventItem()
255267
{
256268
Name = "OnSelectedItemChanged",

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1793,6 +1793,8 @@
17931793
"AttributeButtonTemplate": "The template of button",
17941794
"AttributeItemTemplate": "The template of item",
17951795
"AttributeItemsTemplate": "The template of items",
1796+
"EventDesc1": "This event is triggered when the button is clicked",
1797+
"EventDesc2": "This event is triggered when the button is clicked and the current component is not refreshed for performance improvement",
17961798
"EventOnSelectedItemChanged": "Triggered when the value of the drop-down box changes",
17971799
"FixedButtonText": "The text of fixed button",
17981800
"Item1": "Melbourne",

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1793,6 +1793,8 @@
17931793
"AttributeButtonTemplate": "按钮模板",
17941794
"AttributeItemTemplate": "菜单项模板",
17951795
"AttributeItemsTemplate": "下拉菜单模板",
1796+
"EventDesc1": "点击按钮时触发此事件",
1797+
"EventDesc2": "点击按钮时触发此事件并且不刷新当前组件,用于提高性能时使用",
17961798
"EventOnSelectedItemChanged": "下拉框值发生改变时触发",
17971799
"FixedButtonText": "固定按钮显示文字",
17981800
"Item1": "北京",

0 commit comments

Comments
 (0)