From f054a5aabae175329f53abc77e07961fef7604f0 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Fri, 24 Jan 2025 13:46:14 +0800 Subject: [PATCH] =?UTF-8?q?doc:=20=E5=A2=9E=E5=8A=A0=20ButtonTemplate=20?= =?UTF-8?q?=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/Samples/Dropdowns.razor | 68 +++++++++++-------- src/BootstrapBlazor.Server/Locales/en-US.json | 2 + src/BootstrapBlazor.Server/Locales/zh-CN.json | 2 + 3 files changed, 42 insertions(+), 30 deletions(-) diff --git a/src/BootstrapBlazor.Server/Components/Samples/Dropdowns.razor b/src/BootstrapBlazor.Server/Components/Samples/Dropdowns.razor index fb96993c63a..71a55356052 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Dropdowns.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Dropdowns.razor @@ -6,27 +6,27 @@

@Localizer["Description"]

- + - +
- +
- +
- +
- +
@@ -34,16 +34,16 @@
- +
- +
- +
- +
@@ -51,22 +51,22 @@
- +
- +
- +
- +
- +
- +
@@ -74,16 +74,16 @@
- +
- +
- +
- +
@@ -96,7 +96,7 @@ Color="Color.Secondary" MenuAlignment="Alignment.Left" Direction="Direction.Dropdown" - ShowLabel="true" DisplayText="Start" /> + ShowLabel="true" DisplayText="Start">
+ ShowLabel="true" DisplayText="End">
+ ShowLabel="true" DisplayText="Center">
+ DisplayText="Center">
@@ -129,8 +129,7 @@
- - +
@@ -155,20 +154,29 @@
- +
- +
- + - + + + + + + + + @context.Text + + diff --git a/src/BootstrapBlazor.Server/Locales/en-US.json b/src/BootstrapBlazor.Server/Locales/en-US.json index 1e40b93fe59..e04989c351e 100644 --- a/src/BootstrapBlazor.Server/Locales/en-US.json +++ b/src/BootstrapBlazor.Server/Locales/en-US.json @@ -1773,6 +1773,8 @@ "IsFixedButtonTextIntro": "Set IsFixedButtonText to true make the ButtonText to const", "FixedButtonTextTitle": "Set the fixed button text", "FixedButtonTextIntro": "Set the FixedButtonText value for fixed button text", + "ButtonTemplateTitle": "Button Template", + "ButtonTemplateIntro": "You can customize the displayed content by setting ButtonTemlate", "AttributeValue": "Currently selected value", "AttributeClass": "Style", "AttributeColor": "Color", diff --git a/src/BootstrapBlazor.Server/Locales/zh-CN.json b/src/BootstrapBlazor.Server/Locales/zh-CN.json index 535f9120fe6..e48800bfe47 100644 --- a/src/BootstrapBlazor.Server/Locales/zh-CN.json +++ b/src/BootstrapBlazor.Server/Locales/zh-CN.json @@ -1773,6 +1773,8 @@ "IsFixedButtonTextIntro": "通过设置 IsFixedButtonText 使更改下拉选项时按钮文本不变", "FixedButtonTextTitle": "设置固定按钮文字", "FixedButtonTextIntro": "通过设置 FixedButtonText 来设置固定按钮的初始文字", + "ButtonTemplateTitle": "按钮模板", + "ButtonTemplateIntro": "通过设置 ButtonTemlate 可以自定义显示内容", "AttributeValue": "当前选中的值", "AttributeClass": "样式", "AttributeColor": "颜色",