From 8f7c2bcabd854ed348acf32b713f7248a5aea138 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Sun, 23 Feb 2025 09:30:18 +0800 Subject: [PATCH 1/4] =?UTF-8?q?refactor:=20=E9=87=8D=E6=9E=84=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/DateTimePicker/DatePickerBody.razor.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } From 033b781346880cb5b078dbcb19127689930cd097 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Sun, 23 Feb 2025 09:45:02 +0800 Subject: [PATCH 2/4] =?UTF-8?q?doc:=20=E5=A2=9E=E5=8A=A0=20CacheManagerOpt?= =?UTF-8?q?ions=20=E9=85=8D=E7=BD=AE=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/Pages/GlobalOption.razor | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/BootstrapBlazor.Server/Components/Pages/GlobalOption.razor b/src/BootstrapBlazor.Server/Components/Pages/GlobalOption.razor index 78b5bb09636..58691dea7f7 100644 --- a/src/BootstrapBlazor.Server/Components/Pages/GlobalOption.razor +++ b/src/BootstrapBlazor.Server/Components/Pages/GlobalOption.razor @@ -99,6 +99,13 @@
  • OnTouchDelay 移动端触控延时
  • +

    CacheManagerOptions 缓存配置项

    + +
    {
       "BootstrapBlazorOptions": {
         "ToastDelay": 4000,
    @@ -142,6 +149,11 @@
         },
         "WebClientOptions": {
           "EnableIpLocator": true
    +    },
    +    "CacheManagerOptions": {
    +      "Enable": true,
    +      "SlidingExpiration:" "00:05:00",
    +      "AbsoluteExpiration:" "00:00:10"
         }
       }
     }
    From 77e70189dc22c1739e2fa8b0880d963f7350cecb Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Sun, 23 Feb 2025 10:16:48 +0800 Subject: [PATCH 3/4] =?UTF-8?q?doc:=20=E6=9B=B4=E6=96=B0=E9=94=AE=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/BootstrapBlazor.Server/Locales/en-US.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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", From 7cb6f5f449e7ca36d0bb144a87af83abdf2f66e1 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Sun, 23 Feb 2025 11:13:36 +0800 Subject: [PATCH 4/4] =?UTF-8?q?doc:=20=E6=9B=B4=E6=AD=A3=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/Pages/GlobalOption.razor | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BootstrapBlazor.Server/Components/Pages/GlobalOption.razor b/src/BootstrapBlazor.Server/Components/Pages/GlobalOption.razor index 58691dea7f7..b8eedf08a9d 100644 --- a/src/BootstrapBlazor.Server/Components/Pages/GlobalOption.razor +++ b/src/BootstrapBlazor.Server/Components/Pages/GlobalOption.razor @@ -152,8 +152,8 @@ }, "CacheManagerOptions": { "Enable": true, - "SlidingExpiration:" "00:05:00", - "AbsoluteExpiration:" "00:00:10" + "SlidingExpiration": "00:05:00", + "AbsoluteExpiration": "00:00:10" } } }