From 8e6ae57becd655c6e29d827eb92efbea9ed6e4ad Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Tue, 6 May 2025 12:41:30 +0800 Subject: [PATCH 1/2] =?UTF-8?q?doc:=20=E6=9B=B4=E6=96=B0=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/Samples/ExportPdfButtons.razor.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/BootstrapBlazor.Server/Components/Samples/ExportPdfButtons.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/ExportPdfButtons.razor.cs index fbad4619f87..f032a2c6f5c 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/ExportPdfButtons.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/ExportPdfButtons.razor.cs @@ -94,9 +94,9 @@ private AttributeItem[] GetAttributes() => { Name = nameof(ExportPdfButton.AutoDownload), Description = Localizer["AttributeAutoDownload"], - Type = "string?", - ValueList = " — ", - DefaultValue = " — " + Type = "bool", + ValueList = "true|false", + DefaultValue = "true" }, new() { From 3900dd13dfc9796ffc0f3a95608644552c9734ac Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Tue, 6 May 2025 12:41:43 +0800 Subject: [PATCH 2/2] =?UTF-8?q?refactor:=20=E6=9B=B4=E6=94=B9=20AutoDownlo?= =?UTF-8?q?ad=20=E5=8F=82=E6=95=B0=E9=BB=98=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/BootstrapBlazor/Components/Button/ExportPdfButton.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BootstrapBlazor/Components/Button/ExportPdfButton.cs b/src/BootstrapBlazor/Components/Button/ExportPdfButton.cs index 2a9c433b591..1eb493a5f40 100644 --- a/src/BootstrapBlazor/Components/Button/ExportPdfButton.cs +++ b/src/BootstrapBlazor/Components/Button/ExportPdfButton.cs @@ -59,10 +59,10 @@ public class ExportPdfButton : Button public Func? OnAfterDownload { get; set; } /// - /// 获得/设置 是否自动下载 Pdf 默认为 false + /// 获得/设置 是否自动下载 Pdf 默认为 true /// [Parameter] - public bool AutoDownload { get; set; } + public bool AutoDownload { get; set; } = true; [Inject, NotNull] private IHtml2Pdf? Html2PdfService { get; set; }