diff --git a/src/BootstrapBlazor.Server/Components/Pages/GlobalOption.razor b/src/BootstrapBlazor.Server/Components/Pages/GlobalOption.razor index 78b5bb09636..b8eedf08a9d 100644 --- a/src/BootstrapBlazor.Server/Components/Pages/GlobalOption.razor +++ b/src/BootstrapBlazor.Server/Components/Pages/GlobalOption.razor @@ -99,6 +99,13 @@
OnTouchDelay 移动端触控延时CacheManagerOptions 缓存配置项
Enable 是否开启SlidingExpiration 滑动缓存时长 默认 5 分钟AbsoluteExpiration 绝对过期时长 默认 10 秒钟{
"BootstrapBlazorOptions": {
"ToastDelay": 4000,
@@ -142,6 +149,11 @@
},
"WebClientOptions": {
"EnableIpLocator": true
+ },
+ "CacheManagerOptions": {
+ "Enable": true,
+ "SlidingExpiration": "00:05:00",
+ "AbsoluteExpiration": "00:00:10"
}
}
}
diff --git a/src/BootstrapBlazor.Server/Locales/en-US.json b/src/BootstrapBlazor.Server/Locales/en-US.json
index da989fc7f7a..817a4a76d15 100644
--- a/src/BootstrapBlazor.Server/Locales/en-US.json
+++ b/src/BootstrapBlazor.Server/Locales/en-US.json
@@ -2385,8 +2385,8 @@
"ValidateFormTitle": "Used in forms",
"ValidateFormIntro": "When you use Checkbox in a form, the display label text is placed in front of the component",
"ValidateFormDescription": "The pre-label explicit rules are consistent with the BootstrapInput component [portal]",
- "RadiosItemTemplateTitle": "ItemTemplate",
- "RadiosItemTemplateIntro": "Set ItemTemplate for customer the item UI",
+ "ItemTemplateTitle": "ItemTemplate",
+ "ItemTemplateIntro": "Set ItemTemplate for customer the item UI",
"OnBeforeStateChangedTitle": "OnBeforeStateChanged",
"OnBeforeStateChangedIntro": "By setting the OnBeforeStateChanged callback method, you can cancel the state change logic",
"OnBeforeStateChangedText": "Confirm",
diff --git a/src/BootstrapBlazor/Components/DateTimePicker/DatePickerBody.razor.cs b/src/BootstrapBlazor/Components/DateTimePicker/DatePickerBody.razor.cs
index 221b51148db..8ec0f992a6c 100644
--- a/src/BootstrapBlazor/Components/DateTimePicker/DatePickerBody.razor.cs
+++ b/src/BootstrapBlazor/Components/DateTimePicker/DatePickerBody.razor.cs
@@ -115,7 +115,7 @@ private DateTime StartDate
/// 获得 年月日显示表格样式
///
private string? CurrentMonthViewClassName => CssBuilder.Default("picker-panel-header-label")
- .AddClass("d-none", CurrentViewMode == DatePickerViewMode.Year || CurrentViewMode == DatePickerViewMode.Month)
+ .AddClass("d-none", CurrentViewMode is DatePickerViewMode.Year or DatePickerViewMode.Month)
.Build();
private ClockPicker? TimePickerPanel { get; set; }