Skip to content

Commit 373ef46

Browse files
committed
doc: 增加参数文档
1 parent 74da400 commit 373ef46

File tree

4 files changed

+24
-4
lines changed

4 files changed

+24
-4
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,14 @@ private AttributeItem[] GetAttributes() =>
7777
Type = "RenderFragment<CalendarCellValue>",
7878
ValueList = " — ",
7979
DefaultValue = " — "
80+
},
81+
new()
82+
{
83+
Name = nameof(Calendar.FirstDayOfWeek),
84+
Description = Localizer["FirstDayOfWeek"],
85+
Type = "DayOfWeek",
86+
ValueList = " — ",
87+
DefaultValue = "Sunday"
8088
}
8189
];
8290
}

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,14 @@ private AttributeItem[] GetAttributes() =>
221221
DefaultValue = " — "
222222
},
223223
new()
224+
{
225+
Name = nameof(DateTimePicker<DateTime>.FirstDayOfWeek),
226+
Description = Localizer["AttrFirstDayOfWeek"],
227+
Type = "DayOfWeek",
228+
ValueList = " — ",
229+
DefaultValue = "Sunday"
230+
},
231+
new()
224232
{
225233
Name = "ViewMode",
226234
Description = Localizer["Att9"],

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2572,7 +2572,8 @@
25722572
"FeatureShowHolidaysIntro": "<code>ShowHolidays</code> Whether to display holidays",
25732573
"OnGetDisabledDaysCallbackEvent": "Disable date callback method",
25742574
"AttrEnableDisabledDaysCache": "Whether to enable custom disabled date cache",
2575-
"AttrDisplayDisabledDayAsEmpty": "Display disabled date as an empty string"
2575+
"AttrDisplayDisabledDayAsEmpty": "Display disabled date as an empty string",
2576+
"AttrFirstDayOfWeek": "The first day of the week"
25762577
},
25772578
"BootstrapBlazor.Server.Components.Samples.TimePickers": {
25782579
"Title": "TimePicker",
@@ -3768,7 +3769,8 @@
37683769
"Chinese": "Chinese",
37693770
"Math": "Math",
37703771
"English": "English",
3771-
"Study": "Study"
3772+
"Study": "Study",
3773+
"FirstDayOfWeek": "The first day of the week"
37723774
},
37733775
"BootstrapBlazor.Server.Components.Samples.Cameras": {
37743776
"Title": "Camera",

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2572,7 +2572,8 @@
25722572
"FeatureShowHolidaysIntro": "<code>ShowHolidays</code> 是否显示假日",
25732573
"OnGetDisabledDaysCallbackEvent": "获得自定义禁用日期回调方法",
25742574
"AttrEnableDisabledDaysCache": "是否启用获得自定义禁用日期缓存",
2575-
"AttrDisplayDisabledDayAsEmpty": "显示禁用日期为空字符串"
2575+
"AttrDisplayDisabledDayAsEmpty": "显示禁用日期为空字符串",
2576+
"AttrFirstDayOfWeek": "设置每周第一天"
25762577
},
25772578
"BootstrapBlazor.Server.Components.Samples.TimePickers": {
25782579
"Title": "TimePicker 时间选择器",
@@ -3768,7 +3769,8 @@
37683769
"Chinese": "语文",
37693770
"Math": "数学",
37703771
"English": "英语",
3771-
"Study": "自习"
3772+
"Study": "自习",
3773+
"FirstDayOfWeek": "设置每周第一天"
37723774
},
37733775
"BootstrapBlazor.Server.Components.Samples.Cameras": {
37743776
"Title": "Camera 摄像头拍照组件",

0 commit comments

Comments
 (0)