Skip to content

Commit 1e1ed9a

Browse files
authored
doc(CacheManagerOptions): add CacheManagerOptions config document (#5433)
* refactor: 重构代码 * doc: 增加 CacheManagerOptions 配置文档 * doc: 更新键值
1 parent 81f99be commit 1e1ed9a

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

src/BootstrapBlazor.Server/Components/Pages/GlobalOption.razor

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,13 @@
9999
<li><code>OnTouchDelay</code> 移动端触控延时</li>
100100
</ul>
101101

102+
<p class="code-label"><code>CacheManagerOptions</code> 缓存配置项</p>
103+
<ul class="demo-ul">
104+
<li><code>Enable</code> 是否开启</li>
105+
<li><code>SlidingExpiration</code> 滑动缓存时长 默认 5 分钟</li>
106+
<li><code>AbsoluteExpiration</code> 绝对过期时长 默认 10 秒钟</li>
107+
</ul>
108+
102109
<Pre>{
103110
"BootstrapBlazorOptions": {
104111
"ToastDelay": 4000,
@@ -142,6 +149,11 @@
142149
},
143150
"WebClientOptions": {
144151
"EnableIpLocator": true
152+
},
153+
"CacheManagerOptions": {
154+
"Enable": true,
155+
"SlidingExpiration": "00:05:00",
156+
"AbsoluteExpiration": "00:00:10"
145157
}
146158
}
147159
}</Pre>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2385,8 +2385,8 @@
23852385
"ValidateFormTitle": "Used in forms",
23862386
"ValidateFormIntro": "When you use <code>Checkbox</code> in a form, the display label text is placed in front of the component",
23872387
"ValidateFormDescription": "The pre-label explicit rules are consistent with the <code>BootstrapInput</code> component <a href='input'>[portal]</a>",
2388-
"RadiosItemTemplateTitle": "ItemTemplate",
2389-
"RadiosItemTemplateIntro": "Set <code>ItemTemplate</code> for customer the item UI",
2388+
"ItemTemplateTitle": "ItemTemplate",
2389+
"ItemTemplateIntro": "Set <code>ItemTemplate</code> for customer the item UI",
23902390
"OnBeforeStateChangedTitle": "OnBeforeStateChanged",
23912391
"OnBeforeStateChangedIntro": "By setting the <code>OnBeforeStateChanged</code> callback method, you can cancel the state change logic",
23922392
"OnBeforeStateChangedText": "Confirm",

src/BootstrapBlazor/Components/DateTimePicker/DatePickerBody.razor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ private DateTime StartDate
115115
/// 获得 年月日显示表格样式
116116
/// </summary>
117117
private string? CurrentMonthViewClassName => CssBuilder.Default("picker-panel-header-label")
118-
.AddClass("d-none", CurrentViewMode == DatePickerViewMode.Year || CurrentViewMode == DatePickerViewMode.Month)
118+
.AddClass("d-none", CurrentViewMode is DatePickerViewMode.Year or DatePickerViewMode.Month)
119119
.Build();
120120

121121
private ClockPicker? TimePickerPanel { get; set; }

0 commit comments

Comments
 (0)