Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions src/BootstrapBlazor.Server/Components/Pages/GlobalOption.razor
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,13 @@
<li><code>OnTouchDelay</code> 移动端触控延时</li>
</ul>

<p class="code-label"><code>CacheManagerOptions</code> 缓存配置项</p>
<ul class="demo-ul">
<li><code>Enable</code> 是否开启</li>
<li><code>SlidingExpiration</code> 滑动缓存时长 默认 5 分钟</li>
<li><code>AbsoluteExpiration</code> 绝对过期时长 默认 10 秒钟</li>
</ul>

<Pre>{
"BootstrapBlazorOptions": {
"ToastDelay": 4000,
Expand Down Expand Up @@ -142,6 +149,11 @@
},
"WebClientOptions": {
"EnableIpLocator": true
},
"CacheManagerOptions": {
"Enable": true,
"SlidingExpiration": "00:05:00",
"AbsoluteExpiration": "00:00:10"
}
}
}</Pre>
Expand Down
4 changes: 2 additions & 2 deletions src/BootstrapBlazor.Server/Locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -2385,8 +2385,8 @@
"ValidateFormTitle": "Used in forms",
"ValidateFormIntro": "When you use <code>Checkbox</code> in a form, the display label text is placed in front of the component",
"ValidateFormDescription": "The pre-label explicit rules are consistent with the <code>BootstrapInput</code> component <a href='input'>[portal]</a>",
"RadiosItemTemplateTitle": "ItemTemplate",
"RadiosItemTemplateIntro": "Set <code>ItemTemplate</code> for customer the item UI",
"ItemTemplateTitle": "ItemTemplate",
"ItemTemplateIntro": "Set <code>ItemTemplate</code> for customer the item UI",
"OnBeforeStateChangedTitle": "OnBeforeStateChanged",
"OnBeforeStateChangedIntro": "By setting the <code>OnBeforeStateChanged</code> callback method, you can cancel the state change logic",
"OnBeforeStateChangedText": "Confirm",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ private DateTime StartDate
/// 获得 年月日显示表格样式
/// </summary>
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; }
Expand Down