From 47dcf04207384a32f2e5102440384968d93a69df Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Thu, 5 Nov 2026 13:03:46 +0800 Subject: [PATCH 1/2] =?UTF-8?q?doc:=20=E5=AE=8C=E5=96=84=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/Samples/DateTimePickers.razor | 37 ++++++++++++++----- .../Samples/DateTimePickers.razor.cs | 3 +- src/BootstrapBlazor.Server/Locales/en-US.json | 9 ++++- src/BootstrapBlazor.Server/Locales/zh-CN.json | 9 ++++- 4 files changed, 44 insertions(+), 14 deletions(-) diff --git a/src/BootstrapBlazor.Server/Components/Samples/DateTimePickers.razor b/src/BootstrapBlazor.Server/Components/Samples/DateTimePickers.razor index 04e6cbfce33..d7cc008a755 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/DateTimePickers.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/DateTimePickers.razor @@ -5,16 +5,33 @@

@Localizer["Description"]

-
-
- - - - -
-
- +
+

@Localizer["DateTimePickerParameters"]

+
    +
  • @((MarkupString)Localizer["DateTimePickerIsButtonIntro"].Value)
  • +
  • @((MarkupString)Localizer["DateTimePickerPickTimeModeIntro"].Value)
  • +
+
+
+ + + + +
+
+ + + + + + + +
+
+
+ diff --git a/src/BootstrapBlazor.Server/Components/Samples/DateTimePickers.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/DateTimePickers.razor.cs index d7b42dc91d2..be3fc89fdad 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/DateTimePickers.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/DateTimePickers.razor.cs @@ -3,8 +3,6 @@ // See the LICENSE file in the project root for more information. // Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone -using System.Globalization; - namespace BootstrapBlazor.Server.Components.Samples; /// @@ -100,6 +98,7 @@ private string BindValueString private DateTime? _disabledNullValue = DateTime.Today; private DateTime _disabledValue = DateTime.Today; private bool _isButton = false; + private PickTimeMode _pickTimeMode = PickTimeMode.Clock; private async Task> OnGetDisabledDaysCallback(DateTime start, DateTime end) { diff --git a/src/BootstrapBlazor.Server/Locales/en-US.json b/src/BootstrapBlazor.Server/Locales/en-US.json index 4e17d12a453..2412507590b 100644 --- a/src/BootstrapBlazor.Server/Locales/en-US.json +++ b/src/BootstrapBlazor.Server/Locales/en-US.json @@ -1727,7 +1727,14 @@ "BlockGroupTitle": "InputGroup", "DateTimeOffsetIntro": "Select the control based on the date of the day in 「day」 as the base unit", "DateTimeOffsetTitle": "Click on the pop-up date box", - "DateTimePickerIntro": "Select the hour, minute, and second on the clock dial to obtain the current date and time.", + "DateTimePickerIntro": "Select the time using dropdowns or a clock dial to obtain the date and time.", + "DateTimePickerParameters": "Parameters:", + "DateTimePickerIsButtonIntro": "IsButton controls whether DateTimePicker is displayed as a button or an input field", + "DateTimePickerPickTimeModeIntro": "PickTimeMode controls whether the time picker uses dropdowns or a clock. In Clock mode, click a time value in the Header to switch to the clock dial, then drag to select the time. In Dropdown mode, select the time using dropdowns", + "DateTimePickerIsButtonLabel": "Button mode", + "DateTimePickerPickTimeModeLabel": "Time picker mode", + "DateTimePickerDropdownText": "Dropdown", + "DateTimePickerClockText": "Clock", "DateTimePickerTitle": "Select the time", "DayTemplateIntro": "By setting the DayTemplate custom display template, the disabled date template is DayDisabledTemplate", "DayTemplateTitle": "Custom date display", diff --git a/src/BootstrapBlazor.Server/Locales/zh-CN.json b/src/BootstrapBlazor.Server/Locales/zh-CN.json index ffd743a2e45..f792eaf3d8f 100644 --- a/src/BootstrapBlazor.Server/Locales/zh-CN.json +++ b/src/BootstrapBlazor.Server/Locales/zh-CN.json @@ -1727,7 +1727,14 @@ "BlockGroupTitle": "组合使用", "DateTimeOffsetIntro": "以「日」为基本单位,基础的日期选择控件,此示例绑定 DateTimeOffset 数据类型", "DateTimeOffsetTitle": "点击弹出日期框", - "DateTimePickerIntro": "通过时钟表盘选择时分秒,获取当前的日期和时间。", + "DateTimePickerIntro": "通过下拉框或时钟表盘选择时间,获取日期和时间。", + "DateTimePickerParameters": "参数说明:", + "DateTimePickerIsButtonIntro": "IsButton 控制 DateTimePicker 是以按钮形式还是输入框形式显示", + "DateTimePickerPickTimeModeIntro": "PickTimeMode 控制时间选择器是以下拉框还是时钟形式显示。Clock 模式下点击 Header 上的时间刻度切换到时钟表盘,通过鼠标拖动选择时间;Dropdown 模式下通过下拉框选择时间", + "DateTimePickerIsButtonLabel": "按钮形式", + "DateTimePickerPickTimeModeLabel": "时间选择模式", + "DateTimePickerDropdownText": "下拉框", + "DateTimePickerClockText": "时钟", "DateTimePickerTitle": "时间选择", "DayTemplateIntro": "通过设置 DayTemplate 自定义显示模板,禁用的日期模板为 DayDisabledTemplate", "DayTemplateTitle": "自定义日期显示", From a397809dbe806552fdb89410d4f7303abb5e54c0 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Thu, 5 Nov 2026 13:03:55 +0800 Subject: [PATCH 2/2] =?UTF-8?q?doc:=20=E6=9B=B4=E6=96=B0=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/Pages/GlobalOption.razor | 16 ++++++++-------- .../Components/Samples/Anchors.razor | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/BootstrapBlazor.Server/Components/Pages/GlobalOption.razor b/src/BootstrapBlazor.Server/Components/Pages/GlobalOption.razor index 8d18fcab022..a4a2d41fb49 100644 --- a/src/BootstrapBlazor.Server/Components/Pages/GlobalOption.razor +++ b/src/BootstrapBlazor.Server/Components/Pages/GlobalOption.razor @@ -51,7 +51,7 @@

TableSettings 表格全局统一配置

-
    +
    • CheckboxColumnWidth 复选框列宽度
    • DetailColumnWidth 明细行 Row Header 宽度
    • ShowCheckboxTextColumnWidth 显示文字的复选框列宽度
    • @@ -69,7 +69,7 @@

      @((MarkupString)Localizer["DateTimeSettingsIntro"].Value)

      -
        +
        • @((MarkupString)Localizer["DateTimeSettingsParseDateTimeCallback"].Value)
        • @((MarkupString)Localizer["DateTimeSettingsParseDateTimeOffsetCallback"].Value)
        @@ -83,7 +83,7 @@

        StepSettings 步长全局统一配置各种数据类型的步长值

        ConnectionHubOptions 步长全局统一配置各种数据类型的步长值

        -
          +
          • Enable 是否开启
          • EnableIpLocator 是否开启 IP 定位功能
          • ExpirationScanFrequency 过期扫描周期
          • @@ -92,30 +92,30 @@

          WebClientOptions WebClientService 配置项

          -
            +
            • EnableIpLocator 是否开启 IP 定位功能

            IIpLocatorProvider 服务内部使用

            -
              +
              • ProviderName 定位器名称
              • EnableCache 是否开启缓存降低请求频率
              • SlidingExpiration 是否开启缓存降低请求频率

              ScrollOptions 滚动条配置

              -
                +
                • ScrollWidth 滚动条宽度
                • ScrollHoverWidth 滚动条鼠标悬浮宽度

                ContextMenuOptions 右键菜单配置

                -
                  +
                  • OnTouchDelay 移动端触控延时

                  CacheManagerOptions 缓存配置项

                  -
                    +
                    • Enable 是否开启
                    • SlidingExpiration 滑动缓存时长 默认 5 分钟
                    • AbsoluteExpiration 绝对过期时长 默认 10 秒钟
                    • diff --git a/src/BootstrapBlazor.Server/Components/Samples/Anchors.razor b/src/BootstrapBlazor.Server/Components/Samples/Anchors.razor index ff3eb3d3aae..060dc1cf513 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Anchors.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Anchors.razor @@ -7,7 +7,7 @@

                      @((MarkupString)Localizer["IntroText2"].Value)

                      -
                        +
                        • Anchor1