From 09b5adfea651d39582cdcef4a386d16ecde377d4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 16 Jan 2026 03:35:48 +0000 Subject: [PATCH 1/9] Initial plan From 9c9d50754db60e023becca2faecb2e75c6d23c39 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 16 Jan 2026 03:41:38 +0000 Subject: [PATCH 2/9] Replace AttributeTable Items with Name parameter in all sample files Co-authored-by: ArgoZhang <22001478+ArgoZhang@users.noreply.github.com> --- .../Components/Samples/Alerts.razor | 2 +- .../Components/Samples/Alerts.razor.cs | 67 ---- .../Components/Samples/AnchorLinks.razor | 2 +- .../Components/Samples/AnchorLinks.razor.cs | 36 -- .../Components/Samples/Anchors.razor | 2 +- .../Components/Samples/Anchors.razor.cs | 43 --- .../Components/Samples/AutoCompletes.razor | 2 +- .../Components/Samples/AutoCompletes.razor.cs | 123 ------- .../Components/Samples/AutoFills.razor | 2 +- .../Components/Samples/AutoFills.razor.cs | 123 ------- .../Components/Samples/AutoRedirects.razor | 2 +- .../Components/Samples/AutoRedirects.razor.cs | 35 -- .../Components/Samples/Avatars.razor | 2 +- .../Components/Samples/Avatars.razor.cs | 75 ---- .../Components/Samples/Badges.razor | 2 +- .../Components/Samples/Badges.razor.cs | 35 -- .../Samples/BarcodeGenerators.razor | 2 +- .../Components/Samples/BarcodeReaders.razor | 2 +- .../Samples/BarcodeReaders.razor.cs | 123 ------- .../Components/Samples/Blocks.razor | 2 +- .../Components/Samples/Blocks.razor.cs | 36 -- .../Components/Samples/Buttons.razor | 2 +- .../Components/Samples/Buttons.razor.cs | 107 ------ .../Components/Samples/Calendars.razor | 2 +- .../Components/Samples/Calendars.razor.cs | 35 -- .../Components/Samples/Cameras.razor | 2 +- .../Components/Samples/Cameras.razor.cs | 83 ----- .../Components/Samples/Captchas.razor | 2 +- .../Components/Samples/Captchas.razor.cs | 83 ----- .../Components/Samples/Cards.razor | 2 +- .../Components/Samples/Cards.razor.cs | 83 ----- .../Components/Samples/Carousels.razor | 2 +- .../Components/Samples/Carousels.razor.cs | 51 --- .../Components/Samples/Cascaders.razor | 2 +- .../Components/Samples/Cascaders.razor.cs | 59 --- .../Components/Samples/Charts/Index.razor | 2 +- .../Components/Samples/Charts/Index.razor.cs | 135 ------- .../Components/Samples/CheckboxLists.razor | 2 +- .../Components/Samples/CheckboxLists.razor.cs | 45 --- .../Components/Samples/Checkboxs.razor | 2 +- .../Components/Samples/Checkboxs.razor.cs | 43 --- .../Components/Samples/CherryMarkdowns.razor | 2 +- .../Samples/CherryMarkdowns.razor.cs | 52 --- .../Components/Samples/Circles.razor | 2 +- .../Components/Samples/Circles.razor.cs | 51 --- .../Components/Samples/ClockPickers.razor | 2 +- .../Components/Samples/ClockPickers.razor.cs | 36 -- .../Components/Samples/Collapses.razor | 2 +- .../Components/Samples/Collapses.razor.cs | 28 -- .../Components/Samples/ColorPickers.razor | 2 +- .../Components/Samples/ColorPickers.razor.cs | 44 --- .../Components/Samples/Consoles.razor | 2 +- .../Components/Samples/Consoles.razor.cs | 129 ------- .../Components/Samples/CountButtons.razor | 2 +- .../Components/Samples/CountButtons.razor.cs | 28 -- .../Components/Samples/CountUps.razor | 2 +- .../Components/Samples/CountUps.razor.cs | 28 -- .../Components/Samples/DateTimePickers.razor | 2 +- .../Samples/DateTimePickers.razor.cs | 123 ------- .../Components/Samples/DateTimeRanges.razor | 2 +- .../Components/Samples/DialButtons.razor | 2 +- .../Components/Samples/DialButtons.razor.cs | 27 -- .../Components/Samples/Dialogs.razor | 2 +- .../Components/Samples/Dialogs.razor.cs | 139 ------- .../Components/Samples/Displays.razor | 2 +- .../Components/Samples/Displays.razor.cs | 44 --- .../Components/Samples/Dividers.razor | 2 +- .../Components/Samples/Dividers.razor.cs | 38 -- .../Components/Samples/DockViews/Index.razor | 2 +- .../Samples/DockViews/Index.razor.cs | 99 ----- .../Samples/DockViews2/Index.razor.cs | 99 ----- .../Components/Samples/DragDrops.razor | 2 +- .../Components/Samples/DragDrops.razor.cs | 19 - .../Components/Samples/Drawers.razor | 2 +- .../Components/Samples/Drawers.razor.cs | 99 ----- .../Components/Samples/DropdownWidgets.razor | 2 +- .../Samples/DropdownWidgets.razor.cs | 84 ----- .../Components/Samples/Dropdowns.razor | 2 +- .../Components/Samples/Dropdowns.razor.cs | 106 ------ .../Components/Samples/EditDialogs.razor | 2 +- .../Components/Samples/EditDialogs.razor.cs | 83 ----- .../Components/Samples/EditorForms.razor | 2 +- .../Components/Samples/EditorForms.razor.cs | 92 ----- .../Components/Samples/Editors.razor | 2 +- .../Components/Samples/Editors.razor.cs | 60 --- .../Components/Samples/Empties.razor | 2 +- .../Components/Samples/Empties.razor.cs | 51 --- .../Components/Samples/ExportPdfButtons.razor | 2 +- .../Samples/ExportPdfButtons.razor.cs | 76 ---- .../Components/Samples/FileIcons.razor | 2 +- .../Components/Samples/FileIcons.razor.cs | 28 -- .../Components/Samples/FileViewers.razor | 2 +- .../Components/Samples/FileViewers.razor.cs | 91 ----- .../Components/Samples/FlipClocks.razor | 2 +- .../Components/Samples/FlipClocks.razor.cs | 156 -------- .../Components/Samples/FloatingLabels.razor | 2 +- .../Samples/FloatingLabels.razor.cs | 68 ---- .../Components/Samples/Footers.razor | 2 +- .../Components/Samples/Footers.razor.cs | 35 -- .../Samples/FullScreenButtons.razor | 2 +- .../Samples/FullScreenButtons.razor.cs | 35 -- .../Components/Samples/GlobalException.razor | 2 +- .../Samples/GlobalException.razor.cs | 27 -- .../Components/Samples/GoTops.razor | 2 +- .../Components/Samples/GoTops.razor.cs | 11 - .../Components/Samples/GroupBoxes.razor | 2 +- .../Components/Samples/GroupBoxes.razor.cs | 11 - .../Components/Samples/Handwrittens.razor | 2 +- .../Components/Samples/Handwrittens.razor.cs | 36 -- .../Components/Samples/IFrames.razor | 2 +- .../Components/Samples/IFrames.razor.cs | 27 -- .../Components/Samples/ImageCroppers.razor | 2 +- .../Components/Samples/ImageCroppers.razor.cs | 44 --- .../Components/Samples/ImageViewers.razor | 2 +- .../Components/Samples/ImageViewers.razor.cs | 88 ----- .../Components/Samples/InputNumbers.razor | 2 +- .../Components/Samples/InputNumbers.razor.cs | 60 --- .../Components/Samples/Inputs.razor | 2 +- .../Components/Samples/Inputs.razor.cs | 122 ------ .../Samples/IntersectionObservers.razor | 2 +- .../Samples/IntersectionObservers.razor.cs | 60 --- .../Components/Samples/Layouts.razor | 2 +- .../Components/Samples/Layouts.razor.cs | 250 ------------- .../Components/Samples/Lights.razor | 2 +- .../Components/Samples/Lights.razor.cs | 36 -- .../Components/Samples/LinkButtons.razor | 2 +- .../Components/Samples/LinkButtons.razor.cs | 67 ---- .../Components/Samples/ListGroups.razor | 2 +- .../Components/Samples/ListGroups.razor.cs | 67 ---- .../Components/Samples/ListViews.razor | 2 +- .../Components/Samples/ListViews.razor.cs | 95 ----- .../Components/Samples/Live2DDisplays.razor | 2 +- .../Samples/Live2DDisplays.razor.cs | 75 ---- .../Components/Samples/Logouts.razor | 2 +- .../Components/Samples/Logouts.razor.cs | 74 ---- .../Components/Samples/Markdowns.razor | 2 +- .../Components/Samples/Markdowns.razor.cs | 76 ---- .../Components/Samples/Menus.razor | 2 +- .../Components/Samples/Menus.razor.cs | 56 --- .../Components/Samples/Mermaids.razor | 2 +- .../Components/Samples/Mermaids.razor.cs | 36 -- .../Components/Samples/Messages.razor | 2 +- .../Components/Samples/Messages.razor.cs | 20 - .../Components/Samples/MindMaps.razor | 2 +- .../Components/Samples/MindMaps.razor.cs | 43 --- .../Components/Samples/Modals.razor | 2 +- .../Components/Samples/Modals.razor.cs | 147 -------- .../Components/Samples/MouseFollowers.razor | 2 +- .../Samples/MouseFollowers.razor.cs | 27 -- .../Components/Samples/MultiSelects.razor | 2 +- .../Components/Samples/MultiSelects.razor.cs | 139 ------- .../Components/Samples/Navigation.razor | 2 +- .../Components/Samples/Navigation.razor.cs | 46 --- .../Samples/OnScreenKeyboards.razor | 2 +- .../Samples/OnScreenKeyboards.razor.cs | 59 --- .../Components/Samples/Paginations.razor | 2 +- .../Components/Samples/Paginations.razor.cs | 108 ------ .../Components/Samples/Players.razor | 2 +- .../Components/Samples/PopoverConfirms.razor | 2 +- .../Samples/PopoverConfirms.razor.cs | 123 ------- .../Components/Samples/Popovers.razor | 2 +- .../Components/Samples/Popovers.razor.cs | 35 -- .../Components/Samples/Progress.razor | 2 +- .../Components/Samples/Progress.razor.cs | 51 --- .../Components/Samples/QRCodes.razor | 2 +- .../Components/Samples/QRCodes.razor.cs | 91 ----- .../Components/Samples/Radios.razor | 2 +- .../Components/Samples/Radios.razor.cs | 76 ---- .../Components/Samples/Rates.razor | 2 +- .../Components/Samples/Rates.razor.cs | 60 --- .../Components/Samples/Reconnectors.razor | 2 +- .../Components/Samples/Reconnectors.razor.cs | 28 -- .../Components/Samples/Repeaters.razor | 2 +- .../Components/Samples/Repeaters.razor.cs | 68 ---- .../Components/Samples/Responsives.razor | 2 +- .../Components/Samples/Responsives.razor.cs | 12 - .../Components/Samples/RibbonTabs.razor | 2 +- .../Components/Samples/RibbonTabs.razor.cs | 84 ----- .../Components/Samples/Rows.razor | 2 +- .../Components/Samples/Rows.razor.cs | 36 -- .../Components/Samples/Scrolls.razor | 2 +- .../Components/Samples/Scrolls.razor.cs | 19 - .../Components/Samples/SearchDialogs.razor | 2 +- .../Components/Samples/SearchDialogs.razor.cs | 91 ----- .../Components/Samples/Searches.razor | 2 +- .../Components/Samples/Searches.razor.cs | 115 ------ .../Components/Samples/Segmenteds.razor | 2 +- .../Components/Samples/Segmenteds.razor.cs | 84 ----- .../Components/Samples/SelectGenerics.razor | 2 +- .../Samples/SelectGenerics.razor.cs | 115 ------ .../Components/Samples/SelectTables.razor | 2 +- .../Components/Samples/SelectTables.razor.cs | 75 ---- .../Components/Samples/Selects.razor | 2 +- .../Components/Samples/Selects.razor.cs | 147 -------- .../Components/Samples/SignaturePads.razor | 2 +- .../Components/Samples/SignaturePads.razor.cs | 187 ---------- .../Components/Samples/Skeletons.razor | 2 +- .../Components/Samples/Skeletons.razor.cs | 43 --- .../Components/Samples/SlideButtons.razor | 2 +- .../Components/Samples/SlideButtons.razor.cs | 11 - .../Components/Samples/Sliders.razor | 2 +- .../Components/Samples/Sliders.razor.cs | 19 - .../Components/Samples/SortableLists.razor | 2 +- .../Components/Samples/SortableLists.razor.cs | 36 -- .../Samples/Speeches/SpeechWaves.razor | 2 +- .../Samples/Speeches/SpeechWaves.razor.cs | 35 -- .../Components/Samples/Spinners.razor | 2 +- .../Components/Samples/Spinners.razor.cs | 35 -- .../Components/Samples/Splits.razor | 2 +- .../Components/Samples/Splits.razor.cs | 83 ----- .../Components/Samples/Splittings.razor | 2 +- .../Components/Samples/Splittings.razor.cs | 44 --- .../Components/Samples/Steps.razor | 2 +- .../Components/Samples/Steps.razor.cs | 28 -- .../Components/Samples/SweetAlerts.razor | 2 +- .../Components/Samples/SweetAlerts.razor.cs | 99 ----- .../Components/Samples/SwitchButtons.razor | 2 +- .../Components/Samples/SwitchButtons.razor.cs | 43 --- .../Components/Samples/Switches.razor | 2 +- .../Components/Samples/Switches.razor.cs | 123 ------- .../Components/Samples/Tabs.razor | 2 +- .../Components/Samples/Tabs.razor.cs | 347 ------------------ .../Components/Samples/Tags.razor | 2 +- .../Components/Samples/Tags.razor.cs | 43 --- .../Components/Samples/TextAreas.razor | 2 +- .../Components/Samples/TextAreas.razor.cs | 68 ---- .../Components/Samples/Timelines.razor | 2 +- .../Components/Samples/Timelines.razor.cs | 35 -- .../Components/Samples/Timers.razor | 2 +- .../Components/Samples/Timers.razor.cs | 44 --- .../Components/Samples/Toasts.razor | 2 +- .../Components/Samples/Toasts.razor.cs | 52 --- .../Components/Samples/Toggles.razor | 2 +- .../Components/Samples/Toggles.razor.cs | 75 ---- .../Components/Samples/Tooltips.razor | 2 +- .../Components/Samples/Topologies.razor | 2 +- .../Components/Samples/Topologies.razor.cs | 35 -- .../Components/Samples/Transfers.razor | 2 +- .../Components/Samples/Transfers.razor.cs | 107 ------ .../Components/Samples/Transitions.razor | 2 +- .../Components/Samples/Transitions.razor.cs | 32 -- .../Components/Samples/TreeViews.razor | 2 +- .../Components/Samples/TreeViews.razor.cs | 116 ------ .../Components/Samples/UploadAvatars.razor | 2 +- .../Components/Samples/UploadDrops.razor | 2 +- .../Components/Samples/UploadInputs.razor | 2 +- .../Components/Samples/ValidateForms.razor | 2 +- .../Components/Samples/ValidateForms.razor.cs | 75 ---- .../Components/Samples/Vditors.razor | 2 +- .../Components/Samples/Vditors.razor.cs | 52 --- .../Components/Samples/VideoPlayers.razor | 2 +- .../Components/Samples/VideoPlayers.razor.cs | 74 ---- .../Components/Samples/WinBoxes.razor | 2 +- .../Components/Samples/WinBoxes.razor.cs | 133 ------- 254 files changed, 130 insertions(+), 8889 deletions(-) diff --git a/src/BootstrapBlazor.Server/Components/Samples/Alerts.razor b/src/BootstrapBlazor.Server/Components/Samples/Alerts.razor index 63dba9bc495..36b0f28e387 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Alerts.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Alerts.razor @@ -66,6 +66,6 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Alerts.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Alerts.razor.cs index 99d0edf2b9b..b37bf8d6128 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Alerts.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Alerts.razor.cs @@ -121,71 +121,4 @@ private static EventItem[] GetEvents() => /// 获得属性方法 /// /// - private static AttributeItem[] GetAttributes() => - [ - new() - { - Name = "ChildContent", - Description = "Content", - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "Class", - Description = "Style", - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "Color", - Description = "Color", - Type = "Color", - ValueList = "Primary / Secondary / Success / Danger / Warning / Info / Dark", - DefaultValue = "Primary" - }, - new() - { - Name = "Icon", - Description = "Icon", - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "ShowDismiss", - Description = "Close Button", - Type = "bool", - ValueList = " — ", - DefaultValue = "false" - }, - new() - { - Name = "ShowBar", - Description = "Show the left Bar", - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = "ShowBorder", - Description = "Show border", - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = "ShowShadow", - Description = "Show Shadow", - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - } - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/AnchorLinks.razor b/src/BootstrapBlazor.Server/Components/Samples/AnchorLinks.razor index 271ef1d152d..eee2c97ca35 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/AnchorLinks.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/AnchorLinks.razor @@ -14,4 +14,4 @@
@((MarkupString)Localizer["AnchorLinkTips5"].Value)
- + diff --git a/src/BootstrapBlazor.Server/Components/Samples/AnchorLinks.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/AnchorLinks.razor.cs index 4ceef5f8b2f..4b888b74d3f 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/AnchorLinks.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/AnchorLinks.razor.cs @@ -13,40 +13,4 @@ public partial class AnchorLinks [Inject] [NotNull] private IStringLocalizer? Localizer { get; set; } - - private AttributeItem[] GetAttributes() => - [ - new() - { - Name = nameof(AnchorLink.Id), - Description = Localizer[$"Attr{nameof(AnchorLink.Id)}"], - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(AnchorLink.Icon), - Description = Localizer[$"Attr{nameof(AnchorLink.Icon)}"], - Type = "string", - ValueList = " — ", - DefaultValue = "fa-solid fa-link" - }, - new() - { - Name = nameof(AnchorLink.Text), - Description = Localizer[$"Attr{nameof(AnchorLink.Text)}"], - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(AnchorLink.TooltipText), - Description = Localizer[$"Attr{nameof(AnchorLink.TooltipText)}"], - Type = "string", - ValueList = " — ", - DefaultValue = " — " - } - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/Anchors.razor b/src/BootstrapBlazor.Server/Components/Samples/Anchors.razor index 16c17af06a8..720fadd34a1 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Anchors.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Anchors.razor @@ -33,4 +33,4 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Anchors.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Anchors.razor.cs index 822a2c8ca4b..6e6d31aef78 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Anchors.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Anchors.razor.cs @@ -18,47 +18,4 @@ public partial class Anchors /// 获得属性方法 /// /// - private AttributeItem[] GetAttributes() => - [ - new() - { - Name = "Target", - Description = Localizer["DescTarget"], - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "Container", - Description = Localizer["DescContainer"], - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "IsAnimation", - Description = Localizer["DescIsAnimation"], - Type = "boolean", - ValueList = "true|false", - DefaultValue = "true" - }, - new() - { - Name = "Offset", - Description = Localizer["DescOffset"], - Type = "int", - ValueList = " — ", - DefaultValue = "0" - }, - new() - { - Name = "ChildContent", - Description = Localizer["DescChildContent"], - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - } - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/AutoCompletes.razor b/src/BootstrapBlazor.Server/Components/Samples/AutoCompletes.razor index 37f11ceba7f..6f2fb1e9818 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/AutoCompletes.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/AutoCompletes.razor @@ -101,4 +101,4 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/AutoCompletes.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/AutoCompletes.razor.cs index 89d8de308b0..4c7ee9adf2e 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/AutoCompletes.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/AutoCompletes.razor.cs @@ -53,127 +53,4 @@ private Task GroupOnSelectedItemChanged(string val) /// 获得属性方法 /// /// - private AttributeItem[] GetAttributes() => - [ - new() - { - Name = "ShowLabel", - Description = Localizer["Att1"], - Type = "bool", - ValueList = "true|false", - DefaultValue = "true" - }, - new() - { - Name = "ChildContent", - Description = Localizer["Att2"], - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "ItemTemplate", - Description = Localizer["AttItemTemplate"], - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "Items", - Description = Localizer["Att3"], - Type = "IEnumerable", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "NoDataTip", - Description = Localizer["Att4"], - Type = "string", - ValueList = " — ", - DefaultValue = Localizer["Att4DefaultValue"]! - }, - new() - { - Name = "DisplayCount", - Description = Localizer["Att5"], - Type = "int?", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "ValueChanged", - Description = Localizer["Att6"], - Type = "Action", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "IsLikeMatch", - Description = Localizer["Att7"], - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = "IgnoreCase", - Description = Localizer["Att8"], - Type = "bool", - ValueList = "true|false", - DefaultValue = "true" - }, - new() - { - Name = "OnCustomFilter", - Description = Localizer["Att9"], - Type = "Func>>", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "Debounce", - Description = Localizer["Debounce"], - Type = "int", - ValueList = " — ", - DefaultValue = "0" - }, - new() - { - Name = nameof(AutoComplete.SkipEnter), - Description = Localizer[nameof(AutoComplete.SkipEnter)], - Type = "bool", - ValueList = "true/false", - DefaultValue = "false" - }, - new() - { - Name = nameof(AutoComplete.SkipEsc), - Description = Localizer[nameof(AutoComplete.SkipEsc)], - Type = "bool", - ValueList = "true/false", - DefaultValue = "false" - }, - new() - { - Name = nameof(AutoComplete.OnValueChanged), - Description = Localizer[nameof(AutoComplete.OnValueChanged)], - Type = "Func", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(AutoComplete.OnSelectedItemChanged), - Description = Localizer[nameof(AutoComplete.OnSelectedItemChanged)], - Type = "Func", - ValueList = " — ", - DefaultValue = " — " - } - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/AutoFills.razor b/src/BootstrapBlazor.Server/Components/Samples/AutoFills.razor index a7f8094fd17..cc70b1b10fc 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/AutoFills.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/AutoFills.razor @@ -148,4 +148,4 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/AutoFills.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/AutoFills.razor.cs index e4f6c7902ca..c1e2f5a9a31 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/AutoFills.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/AutoFills.razor.cs @@ -100,127 +100,4 @@ private async Task> OnQueryAsync(VirtualizeQueryOption option) /// Get property method /// /// - private AttributeItem[] GetAttributes() => - [ - new() - { - Name = "DisplayCount", - Description = Localizer["Att1"], - Type = "int", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "NoDataTip", - Description = Localizer["Att2"], - Type = "string", - ValueList = " — ", - DefaultValue = Localizer["Def2"] - }, - new() - { - Name = "IgnoreCase", - Description = Localizer["Att3"], - Type = "bool", - ValueList = "true/false", - DefaultValue = "true" - }, - new() - { - Name = "IsLikeMatch", - Description = Localizer["Att4"], - Type = "bool", - ValueList = "true/false", - DefaultValue = "false" - }, - new() - { - Name = "Items", - Description = Localizer["Att5"], - Type = "IEnumerable", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "Debounce", - Description = Localizer["Att6"], - Type = "int", - ValueList = " — ", - DefaultValue = "0" - }, - new() - { - Name = "OnCustomFilter", - Description = Localizer["Att7"], - Type = "Func>>", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "OnGetDisplayText", - Description = Localizer["Att8"], - Type = "Func", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "OnSelectedItemChanged", - Description = Localizer["Att9"], - Type = "Func", - ValueList = " — ", - DefaultValue = " — " - }, - //new() - //{ - // Name = nameof(AutoFill.ShowDropdownListOnFocus), - // Description = Localizer["Att10"], - // Type = "bool", - // ValueList = "true/false", - // DefaultValue = "true" - //}, - new() - { - Name = "Template", - Description = Localizer["Att11"], - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(AutoFill.SkipEnter), - Description = Localizer["Att12"], - Type = "bool", - ValueList = "true/false", - DefaultValue = "false" - }, - new() - { - Name = nameof(AutoFill.SkipEsc), - Description = Localizer["Att13"], - Type = "bool", - ValueList = "true/false", - DefaultValue = "false" - }, - new() - { - Name = nameof(AutoFill.IsVirtualize), - Description = Localizer["AttrIsVirtualize"], - Type = "bool", - ValueList = "true/false", - DefaultValue = "false" - }, - new() - { - Name=nameof(AutoFill.IsAutoClearWhenInvalid), - Description=Localizer["AttIsAutoClearWhenInvalid"], - Type="bool", - ValueList="true/false", - DefaultValue="false" - } - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/AutoRedirects.razor b/src/BootstrapBlazor.Server/Components/Samples/AutoRedirects.razor index 07a2eaa50c0..4e2cbb21183 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/AutoRedirects.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/AutoRedirects.razor @@ -9,4 +9,4 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/AutoRedirects.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/AutoRedirects.razor.cs index 817b89f4c19..b2cb2ed6da2 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/AutoRedirects.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/AutoRedirects.razor.cs @@ -23,39 +23,4 @@ private Task OnBeforeRedirectAsync() /// Get property method /// /// - private AttributeItem[] GetAttributes() => - [ - new() - { - Name = nameof(AutoRedirect.Interval), - Description = "Time interval", - Type = "int", - ValueList = " — ", - DefaultValue = "60000" - }, - new() - { - Name = nameof(AutoRedirect.RedirectUrl), - Description = "Redirect address", - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(AutoRedirect.IsForceLoad), - Description = "Whether to force redirection", - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(AutoRedirect.OnBeforeRedirectAsync), - Description = "Callback method before address jump", - Type = "Func>", - ValueList = " — ", - DefaultValue = " — " - } - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/Avatars.razor b/src/BootstrapBlazor.Server/Components/Samples/Avatars.razor index 06ae1fb7755..e8dd0c3edda 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Avatars.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Avatars.razor @@ -57,4 +57,4 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Avatars.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Avatars.razor.cs index 233d5e49782..731ce380724 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Avatars.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Avatars.razor.cs @@ -21,79 +21,4 @@ private async Task GetUrlAsync() /// 获得属性方法 /// /// - private AttributeItem[] GetAttributes() => - [ - new() - { - Name = "Size", - Description = Localizer["Size"], - Type = "Size", - ValueList = "ExtraSmall|Small|Medium|Large|ExtraLarge|ExtraExtraLarge", - DefaultValue = "None" - }, - new() - { - Name = "IsBorder", - Description = Localizer["IsBorder"], - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = "IsCircle", - Description = Localizer["IsCircle"], - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = "IsIcon", - Description = Localizer["IsIcon"], - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = "IsText", - Description = Localizer["IsText"], - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = "Icon", - Description = Localizer["Icon"], - Type = "string", - ValueList = " — ", - DefaultValue = "fa-solid fa-user" - }, - new() - { - Name = "Text", - Description = Localizer["Text"], - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "Url", - Description = Localizer["Url"], - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "GetUrlAsync", - Description = Localizer["GetUrlAsync"], - Type = "Func>", - ValueList = " — ", - DefaultValue = " — " - } - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/Badges.razor b/src/BootstrapBlazor.Server/Components/Samples/Badges.razor index d81402cee3d..4280817051f 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Badges.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Badges.razor @@ -49,4 +49,4 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Badges.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Badges.razor.cs index 2c5109c38d8..3d3440334f3 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Badges.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Badges.razor.cs @@ -14,39 +14,4 @@ public sealed partial class Badges /// 获得属性方法 /// /// - private AttributeItem[] GetAttributes() => - [ - new() - { - Name = "ChildContent", - Description = Localizer["ChildContent"], - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "Class", - Description = Localizer["Class"], - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "Color", - Description = Localizer["Color"], - Type = "Color", - ValueList = "Primary / Secondary / Success / Danger / Warning / Info / Dark", - DefaultValue = "Primary" - }, - new() - { - Name = "IsPill", - Description = Localizer["IsPill"], - Type = "boolean", - ValueList = " — ", - DefaultValue = "false" - } - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/BarcodeGenerators.razor b/src/BootstrapBlazor.Server/Components/Samples/BarcodeGenerators.razor index ef03326fdd1..0394299f238 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/BarcodeGenerators.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/BarcodeGenerators.razor @@ -14,6 +14,6 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/BarcodeReaders.razor b/src/BootstrapBlazor.Server/Components/Samples/BarcodeReaders.razor index 27f4b698e20..a940cb1de63 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/BarcodeReaders.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/BarcodeReaders.razor @@ -33,4 +33,4 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/BarcodeReaders.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/BarcodeReaders.razor.cs index 8749ec93e5b..6204ab4197c 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/BarcodeReaders.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/BarcodeReaders.razor.cs @@ -62,127 +62,4 @@ private Task OnImageError(string err) /// 获得属性 /// /// - private AttributeItem[] GetAttributes() => - [ - new() - { - Name = "ButtonScanText", - Description = Localizer["ButtonScanText"], - Type = "string", - ValueList = " — ", - DefaultValue = Localizer["ButtonScanTextDefaultValue"] - }, - new() - { - Name = "ButtonStopText", - Description = Localizer["ButtonStopText"], - Type = "string", - ValueList = " — ", - DefaultValue = Localizer["ButtonStopTextDefaultValue"] - }, - new() - { - Name = "AutoStopText", - Description = Localizer["AutoStopText"], - Type = "string", - ValueList = " — ", - DefaultValue = Localizer["AutoStopTextDefaultValue"] - }, - new() - { - Name = "DeviceLabel", - Description = Localizer["DeviceLabel"], - Type = "string", - ValueList = " — ", - DefaultValue = Localizer["DeviceLabelDefaultValue"] - }, - new() - { - Name = "InitDevicesString", - Description = Localizer["InitDevicesString"], - Type = "string", - ValueList = " — ", - DefaultValue = Localizer["InitDevicesStringDefaultValue"] - }, - new() - { - Name = "NotFoundDevicesString", - Description = Localizer["NotFoundDevicesString"], - Type = "string", - ValueList = " — ", - DefaultValue = Localizer["NotFoundDevicesStringDefaultValue"] - }, - new() - { - Name = "AutoStart", - Description = Localizer["AutoStart"], - Type = "boolean", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = "AutoStop", - Description = Localizer["AutoStart"], - Type = "boolean", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = "ScanType", - Description = "", - Type = "ScanType", - ValueList = "Camera|Image", - DefaultValue = "Camera" - }, - new() - { - Name = "OnInit", - Description = Localizer["OnInit"], - Type = "Func, Task>", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "OnResult", - Description = Localizer["OnResult"], - Type = "Func", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "OnStart", - Description = Localizer["OnStart"], - Type = "Func", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "OnClose", - Description = Localizer["OnClose"], - Type = "Func", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "OnError", - Description = Localizer["OnError"], - Type = "Func", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "OnDeviceChanged", - Description = Localizer["OnDeviceChanged"], - Type = "Func", - ValueList = " — ", - DefaultValue = " — " - } - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/Blocks.razor b/src/BootstrapBlazor.Server/Components/Samples/Blocks.razor index c6fbfee910f..47b6bbcd8c5 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Blocks.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Blocks.razor @@ -68,4 +68,4 @@

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

- + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Blocks.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Blocks.razor.cs index 47883f6c02b..206e0825550 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Blocks.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Blocks.razor.cs @@ -70,40 +70,4 @@ private async Task ToggleAuthor() private Task OnQueryCondition2(string name) => Task.FromResult(IsShow2); private Task OnQueryUser(string name) => Task.FromResult(IsAuth); - - private AttributeItem[] GetAttributes() => - [ - new() - { - Name = nameof(Block.OnQueryCondition), - Description = Localizer["OnQueryCondition"], - Type = "Func>", - ValueList = " — ", - DefaultValue = "true" - }, - new() - { - Name = nameof(Block.ChildContent), - Description = Localizer["ChildContent"], - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(Block.Authorized), - Description = Localizer["Authorized"], - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(Block.NotAuthorized), - Description = Localizer["NotAuthorized"], - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - } - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/Buttons.razor b/src/BootstrapBlazor.Server/Components/Samples/Buttons.razor index d27622df83e..9ec5994a6ac 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Buttons.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Buttons.razor @@ -156,7 +156,7 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Buttons.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Buttons.razor.cs index be2746921fe..19c689b2745 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Buttons.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Buttons.razor.cs @@ -77,113 +77,6 @@ private EventItem[] GetEvents() => /// 获得属性方法 /// /// - private AttributeItem[] GetAttributes() => - [ - new() - { - Name = "Color", - Description = Localizer["Att1"], - Type = "Color", - ValueList = "None / Active / Primary / Secondary / Success / Danger / Warning / Info / Light / Dark / Link", - DefaultValue = "Primary" - }, - new() - { - Name = "Icon", - Description = Localizer["Att2"], - Type = "string", - ValueList = "", - DefaultValue = "" - }, - new() - { - Name = "LoadingIcon", - Description = Localizer["Att3"], - Type = "string", - ValueList = "", - DefaultValue = "fa-fw fa-spin fa-solid fa-spinner" - }, - new() - { - Name = "Text", - Description = Localizer["Att4"], - Type = "string", - ValueList = "", - DefaultValue = "" - }, - new() - { - Name = "Size", - Description = Localizer["Att5"], - Type = "Size", - ValueList = "None / ExtraSmall / Small / Medium / Large / ExtraLarge", - DefaultValue = "None" - }, - new() - { - Name = "Class", - Description = Localizer["Att6"], - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "IsBlock", - Description = Localizer["Att7"], - Type = "boolean", - ValueList = " — ", - DefaultValue = "false" - }, - new() - { - Name = "IsDisabled", - Description = Localizer["Att8"], - Type = "boolean", - ValueList = " — ", - DefaultValue = "false" - }, - new() - { - Name = "IsOutline", - Description = Localizer["Att9"], - Type = "boolean", - ValueList = " — ", - DefaultValue = "false" - }, - new() - { - Name = "IsAsync", - Description = Localizer["Att10"], - Type = "boolean", - ValueList = " — ", - DefaultValue = "false" - }, - new() - { - Name = "ChildContent", - Description = Localizer["Att11"], - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "ButtonStyle", - Description = Localizer["Att12"], - Type = "ButtonStyle", - ValueList = "None / Circle / Round", - DefaultValue = "None" - }, - new() - { - Name = "ButtonType", - Description = Localizer["Att13"], - Type = "ButtonType", - ValueList = "Button / Submit / Reset", - DefaultValue = "Button" - } - ]; private MethodItem[] GetMethods() => [ diff --git a/src/BootstrapBlazor.Server/Components/Samples/Calendars.razor b/src/BootstrapBlazor.Server/Components/Samples/Calendars.razor index 2ec2ced7c91..95028c7876d 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Calendars.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Calendars.razor @@ -151,6 +151,6 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Calendars.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Calendars.razor.cs index 79fa16f239e..22ebc4772cb 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Calendars.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Calendars.razor.cs @@ -52,39 +52,4 @@ private EventItem[] GetEvents() => /// 获得属性方法 /// /// - private AttributeItem[] GetAttributes() => - [ - new() - { - Name = "Value", - Description = Localizer["Value"], - Type = "DateTime", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "ChildContent", - Description = Localizer["ChildContent"], - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "CellTemplate", - Description = Localizer["CellTemplate"], - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(Calendar.FirstDayOfWeek), - Description = Localizer["FirstDayOfWeek"], - Type = "DayOfWeek", - ValueList = " — ", - DefaultValue = "Sunday" - } - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/Cameras.razor b/src/BootstrapBlazor.Server/Components/Samples/Cameras.razor index f928bbaacdc..67fcea4b31b 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Cameras.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Cameras.razor @@ -50,4 +50,4 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Cameras.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Cameras.razor.cs index 24df426c884..110449c3b6b 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Cameras.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Cameras.razor.cs @@ -164,87 +164,4 @@ private Task OnClose() /// 获得属性方法 /// /// - private AttributeItem[] GetAttributes() => - [ - new() - { - Name = nameof(BootstrapBlazor.Components.Camera.VideoWidth), - Description = Localizer["VideoWidth"], - Type = "int", - ValueList = " — ", - DefaultValue = "320" - }, - new() - { - Name = nameof(BootstrapBlazor.Components.Camera.VideoHeight), - Description = Localizer["VideoHeight"], - Type = "int", - ValueList = " — ", - DefaultValue = "240" - }, - new() - { - Name = "ShowPreview", - Description = Localizer["ShowPreview"], - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = "AutoStart", - Description = Localizer["AutoStart"], - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = "DeviceLabel", - Description = Localizer["DeviceLabel"], - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "OnInit", - Description = Localizer["OnInit"], - Type = "Func, Task>", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "OnStart", - Description = Localizer["OnStart"], - Type = "Func", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "OnClose", - Description = Localizer["OnClose"], - Type = "Func", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(BootstrapBlazor.Components.Camera.CaptureJpeg), - Description = Localizer["CaptureJpeg"], - Type = "bool", - ValueList = " — ", - DefaultValue = "false" - }, - new() - { - Name = nameof(BootstrapBlazor.Components.Camera.Quality), - Description = Localizer["Quality"], - Type = "double", - ValueList = " — ", - DefaultValue = " 0.9d" - } - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/Captchas.razor b/src/BootstrapBlazor.Server/Components/Samples/Captchas.razor index 84f081b4c81..d94131d084b 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Captchas.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Captchas.razor @@ -17,7 +17,7 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Captchas.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Captchas.razor.cs index 81d509cd928..94169b0bf73 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Captchas.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Captchas.razor.cs @@ -73,89 +73,6 @@ private async Task OnValidAsync(bool ret) /// 获得属性方法 /// /// - private AttributeItem[] GetAttributes() => - [ - new() - { - Name = "ImagesPath", - Description = Localizer["ImagesPath"], - Type = "string", - ValueList = " — ", - DefaultValue = "images" - }, - new() - { - Name = "ImagesName", - Description = Localizer["ImagesName"], - Type = "string", - ValueList = " — ", - DefaultValue = "Pic.jpg" - }, - new() - { - Name = "HeaderText", - Description = Localizer["HeaderText"], - Type = "string", - ValueList = " — ", - DefaultValue = Localizer["HeaderTextDefaultValue"] - }, - new() - { - Name = "BarText", - Description = Localizer["BarText"], - Type = "string", - ValueList = " — ", - DefaultValue = Localizer["BarTextDefaultValue"] - }, - new() - { - Name = "FailedText", - Description = Localizer["FailedText"], - Type = "string", - ValueList = " — ", - DefaultValue = Localizer["FailedTextDefaultValue"] - }, - new() - { - Name = "LoadText", - Description = Localizer["LoadText"], - Type = "string", - ValueList = " — ", - DefaultValue = Localizer["LoadTextDefaultValue"] - }, - new() - { - Name = "TryText", - Description = Localizer["TryText"], - Type = "string", - ValueList = " — ", - DefaultValue = Localizer["TryTextDefaultValue"] - }, - new() - { - Name = "Offset", - Description = Localizer["Offset"], - Type = "int", - ValueList = " — ", - DefaultValue = "5" - }, - new() - { - Name = "Width", - Description = Localizer["Width"], - Type = "int", - ValueList = " — ", - DefaultValue = "280" - }, - new() - { - Name = "Height", - Description = Localizer["Height"], - Type = "int", - ValueList = " — ", - DefaultValue = "155" - } - ]; /// /// 获得事件方法 diff --git a/src/BootstrapBlazor.Server/Components/Samples/Cards.razor b/src/BootstrapBlazor.Server/Components/Samples/Cards.razor index aaea209990f..d53e7a2013c 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Cards.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Cards.razor @@ -230,4 +230,4 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Cards.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Cards.razor.cs index a236ed063ce..13a82a66574 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Cards.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Cards.razor.cs @@ -14,88 +14,5 @@ public sealed partial class Cards /// Card属性 /// /// - private AttributeItem[] GetAttributes() => - [ - new() - { - Name = "BodyTemplate", - Description = Localizer["BodyTemplate"], - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "FooterTemplate", - Description = Localizer["FooterTemplate"], - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "HeaderTemplate", - Description = Localizer["HeaderTemplate"], - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "Class", - Description = Localizer["Class"], - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(Card.HeaderPaddingY), - Description = Localizer["HeaderPaddingY"], - Type = "string?", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "Color", - Description = Localizer["Color"], - Type = "Color", - ValueList = "None / Primary / Secondary / Success / Danger / Warning / Info / Light / Dark", - DefaultValue = " — " - }, - new() - { - Name = "IsCenter", - Description = Localizer["IsCenter"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "false" - }, - new() - { - Name = "IsCollapsible", - Description = Localizer["IsCollapsible"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "false" - }, - new() - { - Name = nameof(Card.Collapsed), - Description = Localizer["Collapsed"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "false" - }, - new() - { - Name = "IsShadow", - Description = Localizer["IsShadow"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "false" - } - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/Carousels.razor b/src/BootstrapBlazor.Server/Components/Samples/Carousels.razor index 2ac953c9f49..aee1da8da65 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Carousels.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Carousels.razor @@ -208,4 +208,4 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Carousels.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Carousels.razor.cs index f136c83d900..ea423e52a05 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Carousels.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Carousels.razor.cs @@ -44,55 +44,4 @@ private Task OnClick(string imageUrl) /// 获得属性方法 /// /// - private AttributeItem[] GetAttributes() => - [ - new() - { - Name = "Images", - Description = Localizer["Images"], - Type = "IEnumerable", - ValueList = "—", - DefaultValue = "—" - }, - new() - { - Name = "IsFade", - Description = Localizer["IsFade"], - Type = "boolean", - ValueList = " — ", - DefaultValue = "false" - }, - new() - { - Name = "HoverPause", - Description = Localizer["HoverPause"], - Type = "bool", - ValueList = "true|false", - DefaultValue = "true" - }, - new() - { - Name = "Width", - Description = Localizer["Width"], - Type = "int", - ValueList = " — ", - DefaultValue = "—" - }, - new() - { - Name = "OnClick", - Description = Localizer["OnClick"], - Type = "Func", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "PlayMode", - Description = Localizer["PlayMode"], - Type = "CarouselPlayMode", - ValueList = "AutoPlayOnload|AutoPlayAfterManually|Manually", - DefaultValue = "AutoPlayOnload" - } - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/Cascaders.razor b/src/BootstrapBlazor.Server/Components/Samples/Cascaders.razor index fd960a0528d..fe6f4af13d3 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Cascaders.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Cascaders.razor @@ -126,6 +126,6 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Cascaders.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Cascaders.razor.cs index 448c0e76a18..e47ce3918af 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Cascaders.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Cascaders.razor.cs @@ -97,63 +97,4 @@ private async Task OnValidate() /// 获得属性方法 /// /// - private AttributeItem[] GetAttributes() => - [ - new() - { - Name = "ShowLabel", - Description = Localizer["Att1"], - Type = "bool", - ValueList = "true|false", - DefaultValue = "true" - }, - new() - { - Name = "DisplayText", - Description = Localizer["Att2"], - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "PlaceHolder", - Description = Localizer["Att3"], - Type = "string", - ValueList = " — ", - DefaultValue = Localizer["Att3Default"]! - }, - new() - { - Name = "Class", - Description = Localizer["Att4"], - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "Color", - Description = Localizer["Att5"], - Type = "Color", - ValueList = "Primary / Secondary / Success / Danger / Warning / Info / Dark", - DefaultValue = "Primary" - }, - new() - { - Name = "IsDisabled", - Description = Localizer["Att6"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "false" - }, - new() - { - Name = "Items", - Description = Localizer["Att7"], - Type = "IEnumerable", - ValueList = " — ", - DefaultValue = " — " - } - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/Charts/Index.razor b/src/BootstrapBlazor.Server/Components/Samples/Charts/Index.razor index 6ebf9d99748..046566b08d4 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Charts/Index.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Charts/Index.razor @@ -9,6 +9,6 @@

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

- + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Charts/Index.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Charts/Index.razor.cs index 1b4eadf7620..416e3294dd7 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Charts/Index.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Charts/Index.razor.cs @@ -14,141 +14,6 @@ public sealed partial class Index /// 获得属性列表 /// /// - private static AttributeItem[] GetAttributes() => - [ - new() { - Name = "Title", - Description = "图表标题", - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() { - Name = "Height", - Description = "组件高度支持单位, 如: 30% , 30px , 30em , calc(30%)", - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() { - Name = "Width", - Description = "组件宽度支持单位, 如: 30% , 30px , 30em , calc(30%)", - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() { - Name = "Responsive", - Description = "设置图表所在canvas是否随其容器大小变化而变化", - Type = "bool", - ValueList = "true|false", - DefaultValue = "true" - }, - new() { - Name = "MaintainAspectRatio", - Description = "设置是否约束图表比例", - Type = "bool", - ValueList = "true|false", - DefaultValue = "true" - }, - new() { - Name = "AspectRatio", - Description = "设置canvas的宽高比(值为1表示canvas是正方形),如果显示定义了canvas的高度,则此属性无效", - Type = "int", - ValueList = " - ", - DefaultValue = "2" - }, - new() { - Name = "ResizeDelay", - Description = "设置 图表尺寸延迟变化时间", - Type = "int", - ValueList = " - ", - DefaultValue = "0" - }, - new() { - Name = "Angle", - Description = "设置 Bubble 模式下显示角度 180 为 半圆 360 为正圆", - Type = "int", - ValueList = " - ", - DefaultValue = " - " - }, - new() { - Name = "LoadingText", - Description = "设置正在加载文本", - Type = "string", - ValueList = " - ", - DefaultValue = " - " - }, - new() { - Name = "ChartType", - Description = "图表组件渲染类型", - Type = "ChartType", - ValueList = "Line|Bar|Pie|Doughnut|Bubble", - DefaultValue = "Line" - }, - new() { - Name = "ChartAction", - Description = "图表组件组件方法", - Type = "ChartAction", - ValueList = "Update|AddDataset|RemoveDataset|AddData|RemoveData|SetAngle|Reload", - DefaultValue = "Update" - }, - new() { - Name = "DisplayLegend", - Description = "是否显示图例", - Type = "bool", - ValueList = "true|false", - DefaultValue = "true" - }, - new() { - Name = "LegendPosition", - Description = "图例显示位置", - Type = "ChartLegendPosition", - ValueList = "Top|Bottom|Left|Right", - DefaultValue = "Top" - }, - new() - { - Name = "OnInitAsync", - Description="组件数据初始化委托方法", - Type ="Func>", - ValueList = " - ", - DefaultValue = " - " - }, - new() - { - Name = "OnAfterInitAsync", - Description="客户端绘制图表完毕后回调此委托方法", - Type ="Func", - ValueList = " - ", - DefaultValue = " - " - }, - new() - { - Name = "OnAfterUpdateAsync", - Description="客户端更新图表完毕后回调此委托方法", - Type ="Func", - ValueList = " - ", - DefaultValue = " - " - }, - new() - { - Name = "Update", - Description="更新图表方法", - Type ="Task", - ValueList = " - ", - DefaultValue = " - " - }, - new() - { - Name = "Reload", - Description="重新加载,强制重新渲染图表", - Type ="Task", - ValueList = " - ", - DefaultValue = " - " - } - - ]; /// /// 获得方法列表 diff --git a/src/BootstrapBlazor.Server/Components/Samples/CheckboxLists.razor b/src/BootstrapBlazor.Server/Components/Samples/CheckboxLists.razor index ca2cd1aa84d..9412052edde 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/CheckboxLists.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/CheckboxLists.razor @@ -147,6 +147,6 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/CheckboxLists.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/CheckboxLists.razor.cs index 0d40e8d97dd..f5bb5b45442 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/CheckboxLists.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/CheckboxLists.razor.cs @@ -18,7 +18,6 @@ public partial class CheckboxLists EnumEducation.Middle, EnumEducation.Primary }; - [NotNull] private IEnumerable? Items1 { get; set; } @@ -171,50 +170,6 @@ class IconSelectedItem : SelectedItem public string? Icon { get; init; } } - private AttributeItem[] GetAttributes() => - [ - new() - { - Name = "Items", - Description = Localizer["Att1"], - Type = "IEnumerable", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "IsDisabled", - Description = Localizer["Att1"], - Type = "boolean", - ValueList = " — ", - DefaultValue = "false" - }, - new() - { - Name = "Value", - Description = Localizer["Att1"], - Type = "TValue", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "IsVertical", - Description = Localizer["Att1"], - Type = "boolean", - ValueList = " true / false ", - DefaultValue = " false " - }, - new() - { - Name = nameof(CheckboxList.MaxSelectedCount), - Description = Localizer["AttributeMaxSelectedCount"], - Type = "int", - ValueList = " — ", - DefaultValue = "0" - } - ]; - /// /// Get event method /// diff --git a/src/BootstrapBlazor.Server/Components/Samples/Checkboxs.razor b/src/BootstrapBlazor.Server/Components/Samples/Checkboxs.razor index 0bd662dc426..c7f60b614a2 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Checkboxs.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Checkboxs.razor @@ -159,6 +159,6 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Checkboxs.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Checkboxs.razor.cs index 3adef5c9c4a..fd3a4beeb77 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Checkboxs.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Checkboxs.razor.cs @@ -69,49 +69,6 @@ private Task OnBeforeStateChanged(CheckboxState state) => SwalService.Show /// GetAttributes /// /// - private AttributeItem[] GetAttributes() => - [ - new() - { - Name = "ShowLabel", - Description = Localizer["Att1"], - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = "ShowAfterLabel", - Description = Localizer["Att2"], - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = "DisplayText", - Description = Localizer["Att3"], - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "IsDisabled", - Description = Localizer["Att4"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "false" - }, - new() - { - Name = "State", - Description = Localizer["Att5"], - Type = "CheckboxState", - ValueList = "Mixed / Checked / UnChecked", - DefaultValue = "UnChecked" - } - ]; /// /// 获得事件方法 diff --git a/src/BootstrapBlazor.Server/Components/Samples/CherryMarkdowns.razor b/src/BootstrapBlazor.Server/Components/Samples/CherryMarkdowns.razor index a747bc6ca38..f5c53537dba 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/CherryMarkdowns.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/CherryMarkdowns.razor @@ -40,4 +40,4 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/CherryMarkdowns.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/CherryMarkdowns.razor.cs index f84e1d3e36b..a007c4fd055 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/CherryMarkdowns.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/CherryMarkdowns.razor.cs @@ -60,56 +60,4 @@ private async Task OnFileUpload(CherryMarkdownUploadFile arg) [Inject] [NotNull] private IStringLocalizer? Localizer { get; set; } - - private static AttributeItem[] GetAttributes() => - [ - new() - { - Name = "EditorSettings", - Description = "编辑器设置", - Type = "EditorSettings", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "ToolbarSettings", - Description = "工具栏设置", - Type = "ToolbarSettings", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "Value", - Description = "组件值", - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "Html", - Description = "组件 Html 代码", - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "OnFileUpload", - Description = "文件上传回调方法", - Type = "Func>", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "IsViewer", - Description = "组件是否为浏览器模式", - Type = "bool", - ValueList = "true/false", - DefaultValue = "false" - } - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/Circles.razor b/src/BootstrapBlazor.Server/Components/Samples/Circles.razor index 5379217cd0b..2293f040070 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Circles.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Circles.razor @@ -57,4 +57,4 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Circles.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Circles.razor.cs index 897ed8eff9e..431ab248c99 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Circles.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Circles.razor.cs @@ -22,56 +22,5 @@ private void Add(int interval) /// GetAttributes /// /// - private AttributeItem[] GetAttributes() => - [ - new() - { - Name = "Width", - Description = Localizer["Width"], - Type = "int", - ValueList = "", - DefaultValue = "120" - }, - new() - { - Name = "StrokeWidth", - Description = Localizer["StrokeWidth"], - Type = "int", - ValueList = "", - DefaultValue = "2" - }, - new() - { - Name = "Value", - Description = Localizer["Value"], - Type = "int", - ValueList = "0-100", - DefaultValue = "0" - }, - new() - { - Name = "Color", - Description = Localizer["Color"], - Type = "Color", - ValueList = "Primary / Secondary / Success / Danger / Warning / Info / Dark", - DefaultValue = "Primary" - }, - new() - { - Name = "ShowProgress", - Description = Localizer["ShowProgress"], - Type = "bool", - ValueList = "true / false", - DefaultValue = "true" - }, - new() - { - Name = "ChildContent", - Description = Localizer["ChildContent"], - Type = "RenderFragment", - ValueList = "", - DefaultValue = "" - } - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/ClockPickers.razor b/src/BootstrapBlazor.Server/Components/Samples/ClockPickers.razor index b8f95155b93..5fbefac3b27 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/ClockPickers.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/ClockPickers.razor @@ -35,4 +35,4 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/ClockPickers.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/ClockPickers.razor.cs index e66350cf4bf..67be76dde04 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/ClockPickers.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/ClockPickers.razor.cs @@ -23,40 +23,4 @@ public partial class ClockPickers private TimeSpan ScaleValue { get; set; } = TimeSpan.FromHours(12.5); private bool _autoSwitch = false; - - private AttributeItem[] GetAttributes() => - [ - new() - { - Name = nameof(ClockPicker.IsAutoSwitch), - Description = Localizer["IsAutoSwitchAttr"], - Type = "bool", - ValueList = "true / false", - DefaultValue = "true" - }, - new() - { - Name = nameof(ClockPicker.ShowClockScale), - Description = Localizer["ShowClockScaleAttr"], - Type = "bool", - ValueList = "true / false", - DefaultValue = "false" - }, - new() - { - Name = nameof(ClockPicker.ShowMinute), - Description = Localizer["ShowMinuteAttr"], - Type = "bool", - ValueList = "true / false", - DefaultValue = "true" - }, - new() - { - Name = nameof(ClockPicker.ShowSecond), - Description = Localizer["ShowSecondAttr"], - Type = "bool", - ValueList = "true / false", - DefaultValue = "true" - } - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/Collapses.razor b/src/BootstrapBlazor.Server/Components/Samples/Collapses.razor index aafe9e578c4..55729b6b352 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Collapses.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Collapses.razor @@ -175,6 +175,6 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Collapses.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Collapses.razor.cs index 12d9165666f..eefd338fa83 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Collapses.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Collapses.razor.cs @@ -34,34 +34,6 @@ private void OnToggle() new SelectedItem ("Shanghai", "上海") { Active = true }, }; - private AttributeItem[] GetAttributes() => - [ - new() - { - Name = "CollapseItems", - Description = Localizer["CollapseItems"], - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "IsAccordion", - Description = Localizer["IsAccordion"], - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = "OnCollapseChanged", - Description = Localizer["OnCollapseChanged"], - Type = "Func", - ValueList = " — ", - DefaultValue = " — " - } - ]; - private AttributeItem[] GetCollapseItemAttributes() => [ new() diff --git a/src/BootstrapBlazor.Server/Components/Samples/ColorPickers.razor b/src/BootstrapBlazor.Server/Components/Samples/ColorPickers.razor index f2ff2487570..b36b6ec86c4 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/ColorPickers.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/ColorPickers.razor @@ -60,4 +60,4 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/ColorPickers.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/ColorPickers.razor.cs index 69ecf04428d..f17af444fcc 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/ColorPickers.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/ColorPickers.razor.cs @@ -58,48 +58,4 @@ private static async Task FormatValueAsync(string v) } return ret; } - - private AttributeItem[] GetAttributes() => - [ - new() - { - Name = nameof(ColorPicker.Template), - Description = Localizer["AttributeTemplate"], - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(ColorPicker.Formatter), - Description = Localizer["AttributeFormatter"], - Type = "Func>", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(ColorPicker.IsSupportOpacity), - Description = Localizer["AttributeIsSupportOpacity"], - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = nameof(ColorPicker.Swatches), - Description = Localizer["AttributeSwatches"], - Type = "bool", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(ColorPicker.OnValueChanged), - Description = Localizer["EventOnValueChanged"], - Type = "Func", - ValueList = " — ", - DefaultValue = " — " - } - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/Consoles.razor b/src/BootstrapBlazor.Server/Components/Samples/Consoles.razor index aa67b5568cb..2ff5299f3e4 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Consoles.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Consoles.razor @@ -28,6 +28,6 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Consoles.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Consoles.razor.cs index ed79bcfc758..809d24a3902 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Consoles.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Consoles.razor.cs @@ -131,133 +131,4 @@ private static AttributeItem[] GetItemAttributes() => /// GetAttributes /// /// - private static AttributeItem[] GetAttributes() => - [ - new() - { - Name = nameof(BootstrapBlazor.Components.Console.Items), - Description = "组件数据源", - Type = "IEnumerable", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "Height", - Description = "组件高度", - Type = "int", - ValueList = " — ", - DefaultValue = "0" - }, - new() - { - Name = nameof(BootstrapBlazor.Components.Console.IsAutoScroll), - Description = "是否自动滚屏", - Type = "bool", - ValueList = "true|false", - DefaultValue = "true" - }, - new(){ - Name = "ShowAutoScroll", - Description = "是否显示自动滚屏选项", - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = "OnClear", - Description = "组件清屏回调方法", - Type = "int", - ValueList = " — ", - DefaultValue = "0" - }, - new() - { - Name = "HeaderText", - Description = "Header 显示文字", - Type = "string", - ValueList = " — ", - DefaultValue = "系统监控" - }, - new() - { - Name = "HeaderTemplate", - Description = "Header 模板", - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "ItemTemplate", - Description = "Item 模板", - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new(){ - Name = "LightTitle", - Description = "指示灯 Title", - Type = "string", - ValueList = " — ", - DefaultValue = "通讯指示灯" - }, - new() - { - Name = "IsFlashLight", - Description = "指示灯是否闪烁", - Type = "bool", - ValueList = "true/false", - DefaultValue = "true" - }, - new() - { - Name = "LightColor", - Description = "指示灯颜色", - Type = "Color", - ValueList = " — ", - DefaultValue = "Color.Success" - }, - new() - { - Name = "ShowLight", - Description = "是否显示指示灯", - Type = "bool", - ValueList = "true/false", - DefaultValue = "true" - }, - new() - { - Name = "ClearButtonText", - Description = "按钮显示文字", - Type = "string", - ValueList = " — ", - DefaultValue = "清屏" - }, - new() - { - Name = "ClearButtonIcon", - Description = "按钮显示图标", - Type = "string", - ValueList = " — ", - DefaultValue = "fa-fw fa-solid fa-xmark" - }, - new() - { - Name = "ClearButtonColor", - Description = "按钮颜色", - Type = "Color", - ValueList = "None / Active / Primary / Secondary / Success / Danger / Warning / Info / Light / Dark / Link", - DefaultValue = "Secondary" - }, - new() - { - Name = "FooterTemplate", - Description = "Footer 模板", - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - } - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/CountButtons.razor b/src/BootstrapBlazor.Server/Components/Samples/CountButtons.razor index 01820406039..ae651b3c9db 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/CountButtons.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/CountButtons.razor @@ -13,4 +13,4 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/CountButtons.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/CountButtons.razor.cs index 5ba51961b72..863ce59f476 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/CountButtons.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/CountButtons.razor.cs @@ -13,32 +13,4 @@ public partial class CountButtons private static Task OnClick() => Task.Delay(2000); private string CountTextCallback(int count) => Localizer["CountButtonText", count]; - - private AttributeItem[] GetAttributes() => - [ - new() - { - Name = nameof(CountButton.Count), - Description = Localizer["Count"], - Type = "TValue", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(CountButton.CountText), - Description = Localizer["CountText"], - Type = "CountOption", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(CountButton.CountTextCallback), - Description = Localizer["CountTextCallback"], - Type = "Func", - ValueList = " — ", - DefaultValue = " — " - } - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/CountUps.razor b/src/BootstrapBlazor.Server/Components/Samples/CountUps.razor index b29c03eb42d..aee948214ea 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/CountUps.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/CountUps.razor @@ -98,6 +98,6 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/CountUps.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/CountUps.razor.cs index c90205f9a61..25e57ae665b 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/CountUps.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/CountUps.razor.cs @@ -58,34 +58,6 @@ private Task OnSelectedItemChanged(SelectedItem item) return Task.CompletedTask; } - private AttributeItem[] GetAttributes() => - [ - new() - { - Name = "Value", - Description = Localizer["Value"], - Type = "TValue", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "Option", - Description = Localizer["CountOption"], - Type = "CountOption", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "OnCompleted", - Description = Localizer["OnCompleted"], - Type = "Func", - ValueList = " — ", - DefaultValue = " — " - } - ]; - private AttributeItem[] GetOptionAttributes() => [ new() diff --git a/src/BootstrapBlazor.Server/Components/Samples/DateTimePickers.razor b/src/BootstrapBlazor.Server/Components/Samples/DateTimePickers.razor index 828988d560d..bfe8c2cd1e4 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/DateTimePickers.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/DateTimePickers.razor @@ -242,6 +242,6 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/DateTimePickers.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/DateTimePickers.razor.cs index 0bafd2997be..f0c5c766854 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/DateTimePickers.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/DateTimePickers.razor.cs @@ -171,127 +171,4 @@ private EventItem[] GetEvents() => /// 获得属性方法 /// /// - private AttributeItem[] GetAttributes() => - [ - new() - { - Name = "ShowLabel", - Description = Localizer["Att1"], - Type = "bool", - ValueList = "true|false", - DefaultValue = "true" - }, - new() - { - Name = "ShowSidebar", - Description = Localizer["Att2"], - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = "DisplayText", - Description = Localizer["Att3"], - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "Format", - Description = Localizer["Att4"], - Type = "string", - ValueList = " — ", - DefaultValue = "yyyy-MM-dd" - }, - new() - { - Name = "IsDisabled", - Description = Localizer["Att6"], - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = "Value", - Description = Localizer["Att8"], - Type = "TValue", - ValueList = "DateTime | DateTime?", - DefaultValue = " — " - }, - new() - { - Name = nameof(DateTimePicker.FirstDayOfWeek), - Description = Localizer["AttrFirstDayOfWeek"], - Type = "DayOfWeek", - ValueList = " — ", - DefaultValue = "Sunday" - }, - new() - { - Name = "ViewMode", - Description = Localizer["Att9"], - Type = "DatePickerViewMode", - ValueList = " Date / DateTime / Year / Month", - DefaultValue = "Date" - }, - new() { - Name = "AutoClose", - Description = Localizer["AttrAutoClose"], - Type = "bool", - ValueList = "true/false", - DefaultValue = "false" - }, - new() { - Name = "IsEditable", - Description = Localizer["AttrIsEditable"], - Type = "bool", - ValueList = "true/false", - DefaultValue = "false" - }, - new() { - Name = "ShowLunar", - Description = Localizer["AttrShowLunar"], - Type = "bool", - ValueList = "true/false", - DefaultValue = "false" - }, - new() { - Name = "ShowSolarTerm", - Description = Localizer["AttrShowSolarTerm"], - Type = "bool", - ValueList = "true/false", - DefaultValue = "false" - }, - new() { - Name = "ShowFestivals", - Description = Localizer["AttrShowFestivals"], - Type = "bool", - ValueList = "true/false", - DefaultValue = "false" - }, - new() { - Name = "ShowHolidays", - Description = Localizer["AttrShowHolidays"], - Type = "bool", - ValueList = "true/false", - DefaultValue = "false" - }, - new() { - Name = "EnableDisabledDaysCache", - Description = Localizer["AttrEnableDisabledDaysCache"], - Type = "bool", - ValueList = "true/false", - DefaultValue = "true" - }, - new() { - Name = "DisplayDisabledDayAsEmpty", - Description = Localizer["AttrDisplayDisabledDayAsEmpty"], - Type = "bool", - ValueList = "true/false", - DefaultValue = "false" - } - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/DateTimeRanges.razor b/src/BootstrapBlazor.Server/Components/Samples/DateTimeRanges.razor index 1fe08efae26..2e913e0f66c 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/DateTimeRanges.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/DateTimeRanges.razor @@ -131,6 +131,6 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/DialButtons.razor b/src/BootstrapBlazor.Server/Components/Samples/DialButtons.razor index d55788c8bb1..c39b42a4a10 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/DialButtons.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/DialButtons.razor @@ -92,4 +92,4 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/DialButtons.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/DialButtons.razor.cs index eac4f2ebd0c..195607ff4d9 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/DialButtons.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/DialButtons.razor.cs @@ -25,31 +25,4 @@ private Task OnClick(DialMode mode) /// GetAttributes /// /// - private static AttributeItem[] GetAttributes() => - [ - new() - { - Name = nameof(DialButton.Placement), - Description = "the dial button placement", - Type = "Placement", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(DialButton.DialMode), - Description = "the dial button placement", - Type = "DialMode", - ValueList = "Linear/Radial", - DefaultValue = " — " - }, - new() - { - Name = nameof(DialButton.Radius), - Description = "the dial popup radius", - Type = "int", - ValueList = " — ", - DefaultValue = " — " - } - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/Dialogs.razor b/src/BootstrapBlazor.Server/Components/Samples/Dialogs.razor index 2d8113c1e30..e4c4ccecda5 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Dialogs.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Dialogs.razor @@ -206,4 +206,4 @@ private async Task OnClick() - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Dialogs.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Dialogs.razor.cs index f8f1d8978a6..d0f4c37af5a 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Dialogs.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Dialogs.razor.cs @@ -314,143 +314,4 @@ private async Task OnEmailButtonClick() /// 获得属性方法 /// /// - private static AttributeItem[] GetAttributes() => - [ - new() - { - Name = "Component", - Description = "Parameters of the component referenced in the dialog Body", - Type = "DynamicComponent", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "BodyContext", - Description = "pop-up window", - Type = "object", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "HeaderTemplate", - Description = "Modal body ModalHeader template", - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "BodyTemplate", - Description = "Modal body ModalBody component", - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "FooterTemplate", - Description = "ModalFooter component at the bottom of the modal", - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "IsCentered", - Description = "Whether to center vertically", - Type = "boolean", - ValueList = "true|false", - DefaultValue = "true" - }, - new() - { - Name = "IsScrolling", - Description = "Whether to scroll when the text of the pop-up window is too long", - Type = "boolean", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = "ShowCloseButton", - Description = "whether to show the close button", - Type = "boolean", - ValueList = "true|false", - DefaultValue = "true" - }, - new() - { - Name = "ShowHeaderCloseButton", - Description = "Whether to display the close button on the right side of the title bar", - Type = "boolean", - ValueList = "true|false", - DefaultValue = "true" - }, - new() - { - Name = "ShowFooter", - Description = "whether to display Footer", - Type = "boolean", - ValueList = "true|false", - DefaultValue = "true" - }, - new() - { - Name = nameof(DialogOption.ShowPrintButton), - Description = "Whether to show the print button", - Type = "boolean", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = nameof(DialogOption.ShowPrintButtonInHeader), - Description = "Whether the print button is displayed in the Header", - Type = "boolean", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = "Size", - Description = "Size of dialog", - Type = "Size", - ValueList = "None / ExtraSmall / Small / Medium / Large / ExtraLarge", - DefaultValue = "Large" - }, - new() - { - Name = nameof(DialogOption.FullScreenSize), - Description = "Full screen when smaller than a certain size", - Type = "Size", - ValueList = "None / Always / Small / Medium / Large / ExtraLarge", - DefaultValue = "None" - }, - new() - { - Name = "Title", - Description = "Popup title", - Type = "string", - ValueList = " — ", - DefaultValue = " not set " - }, - new() - { - Name = nameof(DialogOption.PrintButtonText), - Description = "print button display text", - Type = "string", - ValueList = " — ", - DefaultValue = "The value set in the resource file" - }, - new() - { - Name = nameof(DialogOption.ShowMaximizeButton), - Description = "Whether to show the maximize button", - Type = "boolean", - ValueList = "true|false", - DefaultValue = "false" - } - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/Displays.razor b/src/BootstrapBlazor.Server/Components/Samples/Displays.razor index 43b2e127dcf..8f8ab95e75f 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Displays.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Displays.razor @@ -151,4 +151,4 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Displays.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Displays.razor.cs index 929f2fc4b85..484ecb46874 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Displays.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Displays.razor.cs @@ -57,48 +57,4 @@ protected override void OnInitialized() Model.Hobby = Foo.GenerateHobbies(FooLocalizer).Take(3).Select(i => i.Text); Hobbies = Foo.GenerateHobbies(FooLocalizer); } - - private AttributeItem[] GetAttributes() => - [ - new() - { - Name = "ShowLabel", - Description = Localizer["ShowLabel"], - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = "DisplayText", - Description = Localizer["DisplayText"], - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "FormatString", - Description = Localizer["FormatString"], - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "Formatter", - Description = Localizer["Formatter"], - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(Display.TypeResolver), - Description = Localizer["TypeResolver"], - Type = "Func", - ValueList = " — ", - DefaultValue = " — " - } - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/Dividers.razor b/src/BootstrapBlazor.Server/Components/Samples/Dividers.razor index 8d0b9aba6b0..bf69dd49e87 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Dividers.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Dividers.razor @@ -69,4 +69,4 @@

@Localizer["ChildContent2"]

- + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Dividers.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Dividers.razor.cs index dbcff238727..a3947f9adc7 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Dividers.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Dividers.razor.cs @@ -14,42 +14,4 @@ public sealed partial class Dividers /// 获得属性方法 /// /// - private AttributeItem[] GetAttributes() => - [ - new() { - Name = "Text", - Description = Localizer["Desc1"], - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() { - Name = "Icon", - Description = Localizer["Desc2"], - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() { - Name = "Alignment", - Description = Localizer["Desc3"], - Type = "Aligment", - ValueList = "Left|Center|Right|Top|Bottom", - DefaultValue = "Center" - }, - new() { - Name = "IsVertical", - Description = Localizer["Desc4"], - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - }, - new() { - Name = "ChildContent", - Description = Localizer["Desc5"], - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - } - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/DockViews/Index.razor b/src/BootstrapBlazor.Server/Components/Samples/DockViews/Index.razor index 0438bac42b8..ea8c294a2c1 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/DockViews/Index.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/DockViews/Index.razor @@ -119,7 +119,7 @@ </DockView> - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/DockViews/Index.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/DockViews/Index.razor.cs index 85172256819..5ca167f5d6e 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/DockViews/Index.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/DockViews/Index.razor.cs @@ -10,105 +10,6 @@ namespace BootstrapBlazor.Server.Components.Samples.DockViews; /// public partial class Index { - private static AttributeItem[] GetAttributes() => - [ - new() - { - Name = "Name", - Description = "DockView 本地化存储识别键值", - Type = "string?", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "OnInitializedCallbackAsync", - Description = "客户端组件脚本初始化完成后回调此方法", - Type = "Func?", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "OnVisibleStateChangedAsync", - Description = "标签切换 Visible 状态时回调此方法", - Type = "Func?", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "OnTabDropCallbackAsync", - Description = "标签页拖动完成时回调此方法", - Type = "Func?", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "OnSplitterCallbackAsync", - Description = "标签页调整大小完成时回调此方法", - Type = "Func?", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "OnLockChangedCallbackAsync", - Description = "锁定状态回调此方法", - Type = "Func?", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "OnResizeCallbackAsync", - Description = "标签页位置变化时回调此方法", - Type = "Func?", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "IsLock", - Description = "是否锁定", - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = "LayoutConfig", - Description = "布局配置", - Type = "string?", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "Version", - Description = "版本设置", - Type = "string?", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "EnableLocalStorage", - Description = "是否启用本地存储布局", - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = "LocalStoragePrefix", - Description = "本地存储前缀", - Type = "string?", - ValueList = " — ", - DefaultValue = " — " - } - ]; private static AttributeItem[] GetDockContentAttributes() => [ diff --git a/src/BootstrapBlazor.Server/Components/Samples/DockViews2/Index.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/DockViews2/Index.razor.cs index e6475953f53..65d82e40bd9 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/DockViews2/Index.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/DockViews2/Index.razor.cs @@ -10,105 +10,6 @@ namespace BootstrapBlazor.Server.Components.Samples.DockViews2; /// public partial class Index { - private static AttributeItem[] GetAttributes() => - [ - new() - { - Name = "Name", - Description = "DockView 本地化存储识别键值", - Type = "string?", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "OnInitializedCallbackAsync", - Description = "客户端组件脚本初始化完成后回调此方法", - Type = "Func?", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "OnVisibleStateChangedAsync", - Description = "标签切换 Visible 状态时回调此方法", - Type = "Func?", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "OnTabDropCallbackAsync", - Description = "标签页拖动完成时回调此方法", - Type = "Func?", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "OnSplitterCallbackAsync", - Description = "标签页调整大小完成时回调此方法", - Type = "Func?", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "OnLockChangedCallbackAsync", - Description = "锁定状态回调此方法", - Type = "Func?", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "OnResizeCallbackAsync", - Description = "标签页位置变化时回调此方法", - Type = "Func?", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "IsLock", - Description = "是否锁定", - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = "LayoutConfig", - Description = "布局配置", - Type = "string?", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "Version", - Description = "版本设置", - Type = "string?", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "EnableLocalStorage", - Description = "是否启用本地存储布局", - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = "LocalStoragePrefix", - Description = "本地存储前缀", - Type = "string?", - ValueList = " — ", - DefaultValue = " — " - } - ]; private static AttributeItem[] GetDockContentAttributes() => [ diff --git a/src/BootstrapBlazor.Server/Components/Samples/DragDrops.razor b/src/BootstrapBlazor.Server/Components/Samples/DragDrops.razor index d394a6c6905..957eab5caf9 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/DragDrops.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/DragDrops.razor @@ -90,6 +90,6 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/DragDrops.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/DragDrops.razor.cs index c767bedce4a..1b8a73196b9 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/DragDrops.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/DragDrops.razor.cs @@ -83,25 +83,6 @@ protected override void OnInitialized() /// GetAttributes /// /// - private AttributeItem[] GetAttributes() => - [ - new() - { - Name = "MaxItems", - Description = Localizer["A1"], - Type = "int?", - ValueList = " — ", - DefaultValue = "null" - }, - new() - { - Name = "ChildContent", - Description = Localizer["A1"], - Type = "RenderFragment?", - ValueList = " — ", - DefaultValue = " — " - } - ]; /// /// GetMethods diff --git a/src/BootstrapBlazor.Server/Components/Samples/Drawers.razor b/src/BootstrapBlazor.Server/Components/Samples/Drawers.razor index 8d2844abe3a..620fe715380 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Drawers.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Drawers.razor @@ -75,4 +75,4 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Drawers.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Drawers.razor.cs index a1b2ea77676..e825c995f69 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Drawers.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Drawers.razor.cs @@ -74,103 +74,4 @@ private async Task DrawerServiceShow() => await DrawerService.Show(new DrawerOpt /// Get property method /// /// - private static AttributeItem[] GetAttributes() => - [ - new() - { - Name = "Width", - Description = "drawer width", - Type = "string", - ValueList = " — ", - DefaultValue = "360px" - }, - new() - { - Name = "Height", - Description = "drawer height", - Type = "string", - ValueList = " — ", - DefaultValue = "290px" - }, - new() - { - Name = "IsOpen", - Description = "Is the drawer open?", - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = "IsBackdrop", - Description = "Whether click on the mask closes the drawer", - Type = "bool", - ValueList = "true|false", - DefaultValue = "true" - }, - new() - { - Name = "AllowResize", - Description = "Whether allow drag resize the drawer", - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = "OnClickBackdrop", - Description = "Callback delegate method when background mask is clicked", - Type = "Action", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "Placement", - Description = "Where the component appears", - Type = "Placement", - ValueList = "Left|Right|Top|Bottom", - DefaultValue = "Left" - }, - new() - { - Name = "Position", - Description = "Where the component position", - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "BodyScroll", - Description = "Where the enable body scrolling when drawer is shown", - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = "ChildContent", - Description = "Subassembly", - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "ZIndex", - Description = "sets the z-order", - Type = "int?", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(Drawer.OnCloseAsync), - Description = "The callback when close drawer", - Type = "Func", - ValueList = " — ", - DefaultValue = " — " - } - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/DropdownWidgets.razor b/src/BootstrapBlazor.Server/Components/Samples/DropdownWidgets.razor index dd3f4609dd2..3f990489dea 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/DropdownWidgets.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/DropdownWidgets.razor @@ -86,4 +86,4 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/DropdownWidgets.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/DropdownWidgets.razor.cs index f8bcc384a10..c82cbad4880 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/DropdownWidgets.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/DropdownWidgets.razor.cs @@ -17,88 +17,4 @@ private Task OnItemCloseAsync(DropdownWidgetItem item) _logger.Log($"Item {item.BadgeNumber} closed"); return Task.CompletedTask; } - - private AttributeItem[] GetAttributes() => - [ - new() - { - Name = "Icon", - Description = Localizer["Icon"], - Type = "string", - ValueList = " — ", - DefaultValue = "fa-regular fa-bell" - }, - new() - { - Name = "BadgeColor", - Description = Localizer["BadgeColor"], - Type = "Color", - ValueList = " — ", - DefaultValue = "Success" - }, - new() - { - Name = "HeaderColor", - Description = Localizer["HeaderColor"], - Type = "Color", - ValueList = "Primary / Secondary / Info / Warning / Danger ", - DefaultValue = "Primary" - }, - new() - { - Name = "BadgeNumber", - Description = Localizer["BadgeNumber"], - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "ShowArrow", - Description = Localizer["ShowArrow"], - Type = "boolean", - ValueList = "true/false", - DefaultValue = "true" - }, - new() - { - Name = "MenuAlignment", - Description = Localizer["MenuAlignment"], - Type = "Alignment", - ValueList = "None / Left / Center / Right ", - DefaultValue = " — " - }, - new() - { - Name = "HeaderTemplate", - Description = Localizer["HeaderTemplate"], - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "BodyTemplate", - Description = Localizer["BodyTemplate"], - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "FooterTemplate", - Description = Localizer["FooterTemplate"], - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "OnItemCloseAsync", - Description = Localizer["OnItemCloseAsync"], - Type = "Func", - ValueList = " — ", - DefaultValue = " — " - } - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/Dropdowns.razor b/src/BootstrapBlazor.Server/Components/Samples/Dropdowns.razor index 0070f384d11..57f21cade3d 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Dropdowns.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Dropdowns.razor @@ -213,6 +213,6 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Dropdowns.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Dropdowns.razor.cs index 03b097dccd0..db5d5648802 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Dropdowns.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Dropdowns.razor.cs @@ -169,112 +169,6 @@ private async Task OnIsAsyncClick() /// GetAttributes /// /// - private AttributeItem[] GetAttributes() => - [ - new() - { - Name = "Value", - Description = Localizer["AttributeValue"], - Type = "TValue", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "Class", - Description = Localizer["AttributeClass"], - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() { - Name = "Color", - Description = Localizer["AttributeColor"], - Type = "Color", - ValueList = "Primary / Secondary / Info / Warning / Danger ", - DefaultValue = " — " - }, - new() - { - Name = "Direction", - Description = Localizer["AttributeDirection"], - Type = "Direction", - ValueList = "Dropup / Dropright / Dropleft", - DefaultValue = " None " - }, - new() - { - Name = "Items", - Description = Localizer["AttributeItems"], - Type = "list", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "MenuAlignment", - Description = Localizer["AttributeMenuAlignment"], - Type = "Alignment", - ValueList = "None / Left / Center / Right ", - DefaultValue = " — " - }, - new() - { - Name = "MenuItem", - Description = Localizer["AttributeMenuItem"], - Type = "string", - ValueList = "button / a ", - DefaultValue = " a " - }, - new() - { - Name = "Responsive", - Description = Localizer["AttributeResponsive"], - Type = "string", - ValueList = "dropdown-menu / dropdown-menu-end / dropdown-menu-{lg | md | sm }-{right | left}", - DefaultValue = " — " - }, - new() - { - Name = "ShowSplit", - Description = Localizer["AttributeShowSplit"], - Type = "bool", - ValueList = "true / false ", - DefaultValue = " false " - }, - new() - { - Name = "IsAsync", - Description = Localizer["AttributeIsAsync"], - Type = "boolean", - ValueList = " — ", - DefaultValue = "false" - }, - new() - { - Name = "Size", - Description = Localizer["AttributeSize"], - Type = "Size", - ValueList = "None / ExtraSmall / Small / Medium / Large / ExtraLarge / ExtraExtraLarge", - DefaultValue = "None" - }, - new() - { - Name = "TagName", - Description = Localizer["AttributeTagName"], - Type = "string", - ValueList = " a / button ", - DefaultValue = " — " - }, - new() - { - Name = nameof(Dropdown.FixedButtonText), - Description = Localizer["FixedButtonText"], - Type = "string", - ValueList = " — ", - DefaultValue = " — " - } - ]; /// /// GetEvents diff --git a/src/BootstrapBlazor.Server/Components/Samples/EditDialogs.razor b/src/BootstrapBlazor.Server/Components/Samples/EditDialogs.razor index 5125bdeb53b..6e33ae58c64 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/EditDialogs.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/EditDialogs.razor @@ -25,4 +25,4 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/EditDialogs.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/EditDialogs.razor.cs index 6e3faa58c61..b1ea746fde9 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/EditDialogs.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/EditDialogs.razor.cs @@ -128,87 +128,4 @@ private async Task NormalShowAlignDialog() /// get property method /// /// - private static AttributeItem[] GetAttributes() => - [ - new() - { - Name = "ShowLabel", - Description = "Whether to show labels", - Type = "bool", - ValueList = "true|false", - DefaultValue = "true" - }, - new() - { - Name = "Model", - Description = "Generic parameters are used to render the UI", - Type = "TModel", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "Items", - Description = "Edit item collection", - Type = "IEnumerable", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "DialogBodyTemplate", - Description = "EditDialog Body template", - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "CloseButtonText", - Description = "Close button text", - Type = "string", - ValueList = " — ", - DefaultValue = "closure" - }, - new() - { - Name = "SaveButtonText", - Description = "Save button text", - Type = "string", - ValueList = " — ", - DefaultValue = "save" - }, - new() - { - Name = "OnSaveAsync", - Description = "Save callback delegate", - Type = "Func", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "ItemsPerRow", - Description = "Displays the number of components per line", - Type = "int?", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "RowType", - Description = "Set the component layout", - Type = "RowType", - ValueList = "Row|Inline", - DefaultValue = "Row" - }, - new() - { - Name = "LabelAlign", - Description = "Inline Label alignment in layout mode", - Type = "Alignment", - ValueList = "None|Left|Center|Right", - DefaultValue = "None" - } - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/EditorForms.razor b/src/BootstrapBlazor.Server/Components/Samples/EditorForms.razor index fa0cb79b386..c832f516c32 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/EditorForms.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/EditorForms.razor @@ -138,6 +138,6 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/EditorForms.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/EditorForms.razor.cs index ccaac6089fd..71d7fc9ffdd 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/EditorForms.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/EditorForms.razor.cs @@ -55,98 +55,6 @@ protected override void OnInitialized() [NotNull] private Foo? ValidateModel { get; set; } - private AttributeItem[] GetAttributes() => - [ - new() - { - Name = "Model", - Description = Localizer["Att1"], - Type = "TModel", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "FieldItems", - Description = Localizer["Att2"], - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "Buttons", - Description = Localizer["Att3"], - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(EditorForm.IsDisplay), - Description = Localizer["IsDisplay"], - Type = "bool", - ValueList = "true/false", - DefaultValue = "false" - }, - new() - { - Name = "ShowLabel", - Description = Localizer["Att4"], - Type = "bool", - ValueList = "true/false", - DefaultValue = "true" - }, - new() - { - Name = "ShowLabelTooltip", - Description = Localizer["ShowLabelTooltip"], - Type = "bool?", - ValueList = "true/false/null", - DefaultValue = "null" - }, - new() - { - Name = "AutoGenerateAllItem", - Description = Localizer["Att5"], - Type = "bool", - ValueList = "true/false", - DefaultValue = "true" - }, - new() - { - Name = "ItemsPerRow", - Description = Localizer["Att6"], - Type = "int?", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "RowType", - Description = Localizer["Att7"], - Type = "RowType", - ValueList = "Row|Inline", - DefaultValue = "Row" - }, - new() - { - Name = "LabelAlign", - Description = Localizer["Att8"], - Type = "Alignment", - ValueList = "None|Left|Center|Right", - DefaultValue = "None" - }, - new() - { - Name = "LabelWidth", - Description = Localizer["LabelWidthAttr"], - Type = "int?", - ValueList = " — ", - DefaultValue = " — " - } - ]; - private List GetEditorItemAttributes() => [ new() diff --git a/src/BootstrapBlazor.Server/Components/Samples/Editors.razor b/src/BootstrapBlazor.Server/Components/Samples/Editors.razor index 49cf62bee4b..c59197e9e2e 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Editors.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Editors.razor @@ -87,4 +87,4 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Editors.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Editors.razor.cs index 2c340824e87..d4f9c749de5 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Editors.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Editors.razor.cs @@ -128,64 +128,4 @@ private async Task OnGetCode() { _editorCode = await Editor.GetCode(); } - - private AttributeItem[] GetAttributes() => - [ - new() - { - Name = "Placeholder", - Description = Localizer["Att1"], - Type = "string", - ValueList = " — ", - DefaultValue = Localizer["Att1DefaultValue"]! - }, - new() - { - Name = "IsEditor", - Description = Localizer["Att2"], - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = "ShowSubmit", - Description = Localizer["AttrShowSubmit"], - Type = "bool", - ValueList = "true|false", - DefaultValue = "true" - }, - new() - { - Name = "Height", - Description = Localizer["Att3"], - Type = "int", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "ToolbarItems", - Description = Localizer["Att4"], - Type = "IEnumerable", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "CustomerToolbarButtons", - Description = Localizer["Att5"], - Type = "IEnumerable", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "OnFileUpload", - Description = Localizer["OnFileUploadAttribute"], - Type = "Func", - ValueList = " — ", - DefaultValue = " — " - } - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/Empties.razor b/src/BootstrapBlazor.Server/Components/Samples/Empties.razor index 61a3792d4db..8acfa6e0577 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Empties.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Empties.razor @@ -27,5 +27,5 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Empties.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Empties.razor.cs index ea17edcc852..6fba06113d7 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Empties.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Empties.razor.cs @@ -14,55 +14,4 @@ public partial class Empties /// 获得属性方法 /// /// - private AttributeItem[] GetAttributes() => - [ - new() - { - Name = "Image", - Description = Localizer["Image"], - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "Text", - Description = Localizer["Text"], - Type = "string", - ValueList = " — ", - DefaultValue = Localizer["TextDefaultValue"] - }, - new() - { - Name = "Width", - Description = Localizer["Width"], - Type = "string", - ValueList = " — ", - DefaultValue = " 100 " - }, - new() - { - Name = "Height", - Description = Localizer["Height"], - Type = "string", - ValueList = " — ", - DefaultValue = " 100 " - }, - new() - { - Name = "Template", - Description = Localizer["Template"], - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "ChildContent", - Description = Localizer["ChildContent"], - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - } - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/ExportPdfButtons.razor b/src/BootstrapBlazor.Server/Components/Samples/ExportPdfButtons.razor index 315124c4b54..8532dfa063a 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/ExportPdfButtons.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/ExportPdfButtons.razor @@ -44,4 +44,4 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/ExportPdfButtons.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/ExportPdfButtons.razor.cs index f032a2c6f5c..bce910c0b57 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/ExportPdfButtons.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/ExportPdfButtons.razor.cs @@ -47,80 +47,4 @@ protected override void OnInitialized() Hobbies = Foo.GenerateHobbies(FooLocalizer); Model = Foo.Generate(FooLocalizer); } - - private AttributeItem[] GetAttributes() => - [ - new() - { - Name = nameof(ExportPdfButton.ElementId), - Description = Localizer["AttributeElementId"], - Type = "string?", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(ExportPdfButton.Selector), - Description = Localizer["AttributeSelector"], - Type = "string?", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(ExportPdfButton.StyleTags), - Description = Localizer["AttributeStyleTags"], - Type = "List", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(ExportPdfButton.ScriptTags), - Description = Localizer["AttributeScriptTags"], - Type = "List", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(ExportPdfButton.FileName), - Description = Localizer["AttributePdfFileName"], - Type = "string?", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(ExportPdfButton.AutoDownload), - Description = Localizer["AttributeAutoDownload"], - Type = "bool", - ValueList = "true|false", - DefaultValue = "true" - }, - new() - { - Name = nameof(ExportPdfButton.OnBeforeExport), - Description = Localizer["AttributeOnBeforeExport"], - Type = "Func?", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(ExportPdfButton.OnBeforeDownload), - Description = Localizer["AttributeOnBeforeDownload"], - Type = "Func?", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(ExportPdfButton.OnAfterDownload), - Description = Localizer["AttributeOnAfterDownload"], - Type = "Func?", - ValueList = " — ", - DefaultValue = " — " - } - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/FileIcons.razor b/src/BootstrapBlazor.Server/Components/Samples/FileIcons.razor index 731970f9aca..65a841a4db9 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/FileIcons.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/FileIcons.razor @@ -151,4 +151,4 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/FileIcons.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/FileIcons.razor.cs index c35de94d8b2..3e0f7a5c5a1 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/FileIcons.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/FileIcons.razor.cs @@ -13,32 +13,4 @@ public partial class FileIcons [Inject] [NotNull] private IStringLocalizer? Localizer { get; set; } - - private AttributeItem[] GetAttributes() => - [ - new() - { - Name = nameof(FileIcon.Extension), - Description = Localizer["ExtensionAttr"], - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(FileIcon.IconColor), - Description = Localizer["IconColorAttr"].Value, - Type = "Color", - ValueList = " — ", - DefaultValue = "Primary" - }, - new() - { - Name = nameof(FileIcon.BackgroundTemplate), - Description = Localizer["BackgroundTemplateAttr"].Value, - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - } - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/FileViewers.razor b/src/BootstrapBlazor.Server/Components/Samples/FileViewers.razor index c277b2954e4..984c3e5477e 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/FileViewers.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/FileViewers.razor @@ -37,4 +37,4 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/FileViewers.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/FileViewers.razor.cs index 874134a6ba1..8167ca379ed 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/FileViewers.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/FileViewers.razor.cs @@ -73,95 +73,4 @@ private async Task Apply() /// GetAttributes /// /// - private static AttributeItem[] GetAttributes() => - [ - new() - { - Name = nameof(FileViewer.Filename), - Description = "Excel/Word 文件路径或者URL", - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(FileViewer.Width), - Description = "宽度", - Type = "string", - ValueList = "-", - DefaultValue = "100%" - }, - new() - { - Name = nameof(FileViewer.Height), - Description = "高度", - Type = "string", - ValueList = " — ", - DefaultValue = "700px" - }, - new() - { - Name = nameof(FileViewer.StyleString), - Description = "组件外观 Css Style", - Type = "string", - ValueList = "-", - DefaultValue = "-" - }, - new() - { - Name = nameof(FileViewer.Html), - Description = "设置 Html 直接渲染", - Type = "string", - ValueList = "-", - DefaultValue = "-" - }, - new() - { - Name = nameof(FileViewer.Stream), - Description = "用于渲染的文件流,为空则用Filename参数读取文件", - Type = "Stream", - ValueList = "-", - DefaultValue = "-" - }, - new() - { - Name = nameof(FileViewer.IsExcel), - Description = "文件流模式需要指定是否 Excel", - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = nameof(FileViewer.NoDataString), - Description = "无数据提示文本", - Type = "string", - ValueList = "-", - DefaultValue = "无数据" - }, - new() - { - Name = nameof(FileViewer.LoadingString), - Description = "载入中提示文本", - Type = "string", - ValueList = "-", - DefaultValue = "载入中..." - }, - new() - { - Name = "Reload(string filename)", - Description = "重新载入文件方法", - Type = "async Task", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "Refresh()", - Description = "刷新方法", - Type = "async Task", - ValueList = " — ", - DefaultValue = " — " - } - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/FlipClocks.razor b/src/BootstrapBlazor.Server/Components/Samples/FlipClocks.razor index 6de934cdfe8..336b9463d4f 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/FlipClocks.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/FlipClocks.razor @@ -105,4 +105,4 @@ ShowHour="_showHour" ShowMinute="_showMinute" ShowSecond="_showSecond"> - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/FlipClocks.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/FlipClocks.razor.cs index b46e61fd54b..2ecb6ec5b29 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/FlipClocks.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/FlipClocks.razor.cs @@ -34,7 +34,6 @@ public partial class FlipClocks private string CardGroupMarginValueString => $"{CardGroupMarginValue}px"; - private bool _isCompleted; private bool _showYear = false; private bool _showMonth = false; @@ -54,159 +53,4 @@ private Task OnCompletedAsync() /// GetAttributes /// /// - private AttributeItem[] GetAttributes() => - [ - new() - { - Name = nameof(FlipClock.ShowYear), - Description = Localizer["ShowYear_Description"], - Type = "boolean", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = nameof(FlipClock.ShowMonth), - Description = Localizer["ShowMonth_Description"], - Type = "boolean", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = nameof(FlipClock.ShowDay), - Description = Localizer["ShowDay_Description"], - Type = "boolean", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = nameof(FlipClock.ShowHour), - Description = Localizer["ShowHour_Description"], - Type = "boolean", - ValueList = "true|false", - DefaultValue = "true" - }, - new() - { - Name = nameof(FlipClock.ShowMinute), - Description = Localizer["ShowMinute_Description"], - Type = "boolean", - ValueList = "true|false", - DefaultValue = "true" - }, - new() - { - Name = nameof(FlipClock.ViewMode), - Description = Localizer["ViewMode_Description"], - Type = "FlipClockViewMode", - ValueList = "DateTime|Count|CountDown", - DefaultValue = "DateTime" - }, - new() - { - Name = nameof(FlipClock.StartValue), - Description = Localizer["StartValue_Description"], - Type = "TimeSpan", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(FlipClock.OnCompletedAsync), - Description = Localizer["OnCompletedAsync_Description"], - Type = "Func", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(FlipClock.Height), - Description = Localizer["Height_Description"], - Type = "string?", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(FlipClock.BackgroundColor), - Description = Localizer["BackgroundColor_Description"], - Type = "string?", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(FlipClock.FontSize), - Description = Localizer["FontSize_Description"], - Type = "string?", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(FlipClock.CardWidth), - Description = Localizer["CardWidth_Description"], - Type = "string?", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(FlipClock.CardHeight), - Description = Localizer["CardHeight_Description"], - Type = "string?", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(FlipClock.CardColor), - Description = Localizer["CardColor_Description"], - Type = "string?", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(FlipClock.CardBackgroundColor), - Description = Localizer["CardBackgroundColor_Description"], - Type = "string?", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(FlipClock.CardDividerHeight), - Description = Localizer["CardDividerHeight_Description"], - Type = "string?", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(FlipClock.CardDividerColor), - Description = Localizer["CardDividerColor_Description"], - Type = "string?", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(FlipClock.CardMargin), - Description = Localizer["CardMargin_Description"], - Type = "string?", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(FlipClock.CardGroupMargin), - Description = Localizer["CardGroupMargin_Description"], - Type = "string?", - ValueList = " — ", - DefaultValue = " — " - } - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/FloatingLabels.razor b/src/BootstrapBlazor.Server/Components/Samples/FloatingLabels.razor index d5a2f9a47c9..467f3796893 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/FloatingLabels.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/FloatingLabels.razor @@ -79,4 +79,4 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/FloatingLabels.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/FloatingLabels.razor.cs index 6d8777f8327..02381f2e043 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/FloatingLabels.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/FloatingLabels.razor.cs @@ -36,72 +36,4 @@ protected override void OnInitialized() BindValueModel = new Foo() { Name = Localizer["FloatingLabelsTestName"] }; FormatStringModel = new Foo() { Name = Localizer["FloatingLabelsTestName"] }; } - - private AttributeItem[] GetAttributes() => - [ - new() - { - Name = "ChildContent", - Description = Localizer["FloatingLabelsChildContent"].Value, - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "ShowLabel", - Description = Localizer["FloatingLabelsShowLabel"].Value, - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = nameof(FloatingLabel.IsGroupBox), - Description = Localizer["FloatingLabelsGroupBox"].Value, - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = "DisplayText", - Description = Localizer["FloatingLabelsDisplayText"].Value, - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "FormatString", - Description = Localizer["FloatingLabelsFormatString"].Value, - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "Formatter", - Description = Localizer["FloatingLabelsFormatter"].Value, - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "type", - Description = Localizer["FloatingLabelsType"].Value, - Type = "string", - ValueList = "text / number / email / url / password", - DefaultValue = "text" - }, - new() - { - Name = "IsDisabled", - Description = Localizer["FloatingLabelsIsDisabled"].Value, - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - } - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/Footers.razor b/src/BootstrapBlazor.Server/Components/Samples/Footers.razor index 6f95e9237f1..445a02e53b7 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Footers.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Footers.razor @@ -60,4 +60,4 @@ --bb-footer-padding: .5rem 1rem; } - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Footers.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Footers.razor.cs index d5636609199..0af5062643a 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Footers.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Footers.razor.cs @@ -10,39 +10,4 @@ namespace BootstrapBlazor.Server.Components.Samples; /// public sealed partial class Footers { - private AttributeItem[] GetAttributes() => - [ - new() - { - Name = "Text", - Description = Localizer["Desc1"], - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "Target", - Description = Localizer["Desc2"], - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(Footer.ShowGoto), - Description = Localizer["ShowGotoDesc"], - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(Footer.ChildContent), - Description = Localizer["ChildContentDesc"], - Type = "string", - ValueList = " — ", - DefaultValue = " — " - } - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/FullScreenButtons.razor b/src/BootstrapBlazor.Server/Components/Samples/FullScreenButtons.razor index f20a46790e0..e1fe2fd9afb 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/FullScreenButtons.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/FullScreenButtons.razor @@ -15,4 +15,4 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/FullScreenButtons.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/FullScreenButtons.razor.cs index ed92f4139d7..fbf9ad9efb2 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/FullScreenButtons.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/FullScreenButtons.razor.cs @@ -14,39 +14,4 @@ public partial class FullScreenButtons /// GetAttributes /// /// - private static AttributeItem[] GetAttributes() => - [ - new() - { - Name = nameof(FullScreenButton.Icon), - Description = "全屏图标", - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(FullScreenButton.FullScreenExitIcon), - Description = "退出全屏图标", - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(FullScreenButton.TargetId), - Description = "全屏元素 Id", - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(FullScreenButton.Text), - Description = "显示文字", - Type = "string", - ValueList = " — ", - DefaultValue = " — " - } - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/GlobalException.razor b/src/BootstrapBlazor.Server/Components/Samples/GlobalException.razor index 6bdb3ac42b5..392bd987c97 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/GlobalException.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/GlobalException.razor @@ -76,4 +76,4 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Messages.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Messages.razor.cs index e8a0fa51b7b..58004c35fd1 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Messages.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Messages.razor.cs @@ -125,26 +125,6 @@ private Task ShowLastOnlyMessage() => MessageService.Show(new MessageOption() Content = $"This is a reminder message - {_count++}" }); - private static AttributeItem[] GetAttributes() => - [ - new() - { - Name = "Placement", - Description = "message popup location", - Type = "Placement", - ValueList = "Top|Bottom", - DefaultValue = "Top" - }, - new() - { - Name = "ShowMode", - Description = "Display mode", - Type = "MessageShowMode", - ValueList = "Single|Multiple", - DefaultValue = "Multiple" - } - ]; - /// /// get property method /// diff --git a/src/BootstrapBlazor.Server/Components/Samples/MindMaps.razor b/src/BootstrapBlazor.Server/Components/Samples/MindMaps.razor index 2e2fcbb9198..5a6c0777523 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/MindMaps.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/MindMaps.razor @@ -60,4 +60,4 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/MindMaps.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/MindMaps.razor.cs index f64df5d8c21..0c539ecf947 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/MindMaps.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/MindMaps.razor.cs @@ -88,47 +88,4 @@ async Task SetSample2() /// 获得属性方法 /// /// - private AttributeItem[] GetAttributes() => - [ - new() - { - Name = "Data", - Description = Localizer["Data"], - Type = "MindMapNode", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "Export", - Description = Localizer["Export"], - Type = "Task", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "GetData", - Description = Localizer["GetData"], - Type = "Task", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "SetData", - Description = Localizer["SetData"], - Type = "Task", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "Reset", - Description = Localizer["Reset"], - Type = "Task", - ValueList = " — ", - DefaultValue = " — " - } - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/Modals.razor b/src/BootstrapBlazor.Server/Components/Samples/Modals.razor index 8df2bf96ae2..b173005e2bb 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Modals.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Modals.razor @@ -272,4 +272,4 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Modals.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Modals.razor.cs index eb2530bfd71..709fadbe96e 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Modals.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Modals.razor.cs @@ -80,151 +80,4 @@ private static async Task OnSaveAsync() /// GetAttributes /// /// - private AttributeItem[] GetAttributes() => - [ - new() - { - Name = "FirstAfterRenderCallbackAsync", - Description = Localizer["ModalsAttributesFirstAfterRenderCallbackAsync"], - Type = "Func", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "HeaderTemplate", - Description = Localizer["ModalsAttributeHeaderTemplate"], - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "BodyTemplate", - Description = Localizer["ModalsAttributeBodyTemplate"], - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "ChildContent", - Description = Localizer["ModalsAttributeChildContent"], - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "FooterTemplate", - Description = Localizer["ModalsAttributeFooterTemplate"], - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "IsBackdrop", - Description = Localizer["ModalsAttributeIsBackdrop"], - Type = "boolean", - ValueList = " — ", - DefaultValue = "false" - }, - new() - { - Name = "IsKeyboard", - Description = Localizer["ModalsAttributeIsKeyboard"], - Type = "boolean", - ValueList = " — ", - DefaultValue = "true" - }, - new() - { - Name = "IsCentered", - Description = Localizer["ModalsAttributeIsCentered"], - Type = "boolean", - ValueList = " — ", - DefaultValue = "true" - }, - new() - { - Name = "IsScrolling", - Description = Localizer["ModalsAttributeIsScrolling"], - Type = "boolean", - ValueList = " — ", - DefaultValue = "false" - }, - new() - { - Name = "IsFade", - Description = Localizer["ModalsAttributeIsFade"], - Type = "boolean", - ValueList = " — ", - DefaultValue = "true" - }, - new() - { - Name = "IsDraggable", - Description = Localizer["ModalsAttributeIsDraggable"], - Type = "boolean", - ValueList = " — ", - DefaultValue = "false" - }, - new() - { - Name = "ShowCloseButton", - Description = Localizer["ModalsAttributeShowCloseButton"], - Type = "boolean", - ValueList = " — ", - DefaultValue = "true" - }, - new() - { - Name = "ShowFooter", - Description = Localizer["ModalsAttributeShowFooter"], - Type = "boolean", - ValueList = " — ", - DefaultValue = "true" - }, - new() - { - Name = "Size", - Description = Localizer["ModalsAttributeSize"], - Type = "Size", - ValueList = "None / ExtraSmall / Small / Medium / Large / ExtraLarge / ExtraExtraLarge", - DefaultValue = "ExtraExtraLarge" - }, - new() - { - Name = nameof(ModalDialog.FullScreenSize), - Description = Localizer["ModalsAttributeFullScreenSize"], - Type = "Size", - ValueList = "None / Always / Small / Medium / Large / ExtraLarge / ExtraExtraLarge", - DefaultValue = "None" - }, - new() - { - Name = "Title", - Description = Localizer["ModalsAttributeTitle"], - Type = "string", - ValueList = " — ", - DefaultValue = " not set " - }, - new() - { - Name = nameof(ModalDialog.ShowMaximizeButton), - Description = Localizer["ModalsAttributeShowMaximizeButton"], - Type = "boolean", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = "ShownCallbackAsync", - Description = Localizer["ModalsAttributeShownCallbackAsync"], - Type = "Func", - ValueList = " — ", - DefaultValue = " — " - } - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/MouseFollowers.razor b/src/BootstrapBlazor.Server/Components/Samples/MouseFollowers.razor index 7704180429e..5a0a869add9 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/MouseFollowers.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/MouseFollowers.razor @@ -85,4 +85,4 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/MouseFollowers.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/MouseFollowers.razor.cs index c4e717209d2..e2c0ba66dab 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/MouseFollowers.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/MouseFollowers.razor.cs @@ -29,31 +29,4 @@ public partial class MouseFollowers /// 获得属性方法 /// /// - private AttributeItem[] GetAttributes() => - [ - new() - { - Name = "FollowerMode", - Description = Localizer["MouseFollowersFollowerMode"], - Type = "Enum", - ValueList = " — ", - DefaultValue = "MouseFollowerMode.Normal" - }, - new() - { - Name = "GlobalMode", - Description = Localizer["MouseFollowersGlobalMode"], - Type = "bool", - ValueList = " — ", - DefaultValue = "false" - }, - new() - { - Name = "Content", - Description = Localizer["MouseFollowersContent"], - Type = "string?", - ValueList = " — ", - DefaultValue = " — " - } - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/MultiSelects.razor b/src/BootstrapBlazor.Server/Components/Samples/MultiSelects.razor index 12de9c0a865..803eba312bf 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/MultiSelects.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/MultiSelects.razor @@ -359,6 +359,6 @@ private enum MultiSelectEnumFoo - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/MultiSelects.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/MultiSelects.razor.cs index 840d57cbb4a..67b8541409a 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/MultiSelects.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/MultiSelects.razor.cs @@ -362,143 +362,4 @@ private EventItem[] GetEvents() => /// GetAttributes /// /// - private AttributeItem[] GetAttributes() => - [ - new() - { - Name = "ShowLabel", - Description = Localizer["MultiSelectsAttribute_ShowLabel"], - Type = "bool", - ValueList = "true|false", - DefaultValue = "true" - }, - new() - { - Name = "ShowCloseButton", - Description = Localizer["MultiSelectsAttribute_ShowCloseButton"], - Type = "bool", - ValueList = "true|false", - DefaultValue = "true" - }, - new() - { - Name = "ShowSearch", - Description = Localizer["MultiSelectsAttribute_ShowSearch"], - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = "ShowToolbar", - Description = Localizer["MultiSelectsAttribute_ShowToolbar"], - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = "ShowDefaultButtons", - Description = Localizer["MultiSelectsAttribute_ShowDefaultButtons"], - Type = "bool", - ValueList = "true|false", - DefaultValue = "true" - }, - new() - { - Name = "DisplayText", - Description = Localizer["MultiSelectsAttribute_DisplayText"], - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "PlaceHolder", - Description = Localizer["MultiSelectsAttribute_PlaceHolder"], - Type = "string", - ValueList = " — ", - DefaultValue = Localizer["MultiSelectsAttribute_PlaceHolder_DefaultValue"]! - }, - new() - { - Name = "Class", - Description = Localizer["MultiSelectsAttribute_Class"], - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "Color", - Description = Localizer["MultiSelectsAttribute_Color"], - Type = "Color", - ValueList = "Primary / Secondary / Success / Danger / Warning / Info / Dark", - DefaultValue = "Primary" - }, - new() - { - Name = "IsDisabled", - Description = Localizer["MultiSelectsAttribute_IsDisabled"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "false" - }, - new() - { - Name = nameof(MultiSelect.IsSingleLine), - Description = Localizer["MultiSelectsAttribute_IsSingleLine"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "false" - }, - new() - { - Name = "Items", - Description = Localizer["MultiSelectsAttribute_Items"], - Type = "IEnumerable", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "ButtonTemplate", - Description = Localizer["MultiSelectsAttribute_ButtonTemplate"], - Type = "RenderFragment>", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "ItemTemplate", - Description = Localizer["MultiSelectsAttribute_ItemTemplate"], - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "IsFixedHeight", - Description = Localizer["MultiSelectsAttribute_IsFixedHeight"], - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = nameof(MultiSelect.IsVirtualize), - Description = Localizer["MultiSelectsAttribute_IsVirtualize"], - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = nameof(MultiSelect.DefaultVirtualizeItemText), - Description = Localizer["MultiSelectsAttribute_DefaultVirtualizeItemText"], - Type = "string", - ValueList = " — ", - DefaultValue = " — " - } - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/Navigation.razor b/src/BootstrapBlazor.Server/Components/Samples/Navigation.razor index 1952664f3c6..2f258887f8b 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Navigation.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Navigation.razor @@ -86,4 +86,4 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Navigation.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Navigation.razor.cs index 446d9693350..714ae8e999d 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Navigation.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Navigation.razor.cs @@ -37,50 +37,4 @@ private List GetItems() /// 获得属性方法 /// /// - private AttributeItem[] GetAttributes() => - [ - new() - { - Name = "ChildContent", - Description = Localizer["NavsChildContent"], - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() { - Name = "Alignment", - Description = Localizer["NavsAlignment"], - Type = "Alignment", - ValueList = "Left|Center|Right", - DefaultValue = " — " - }, - new() { - Name = "IsVertical", - Description = Localizer["NavsIsVertical"], - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - }, - new() { - Name = "IsPills", - Description = Localizer["NavsIsPills"], - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - }, - new() { - Name = "IsFill", - Description = Localizer["NavsIsFill"], - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - }, - new() { - Name = "IsJustified", - Description = Localizer["NavsIsJustified"], - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - } - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/OnScreenKeyboards.razor b/src/BootstrapBlazor.Server/Components/Samples/OnScreenKeyboards.razor index ab9569dfb94..62f6445d231 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/OnScreenKeyboards.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/OnScreenKeyboards.razor @@ -84,7 +84,7 @@

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

- + diff --git a/src/BootstrapBlazor.Server/Components/Samples/OnScreenKeyboards.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/OnScreenKeyboards.razor.cs index cb91dede7ed..185a5f56740 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/OnScreenKeyboards.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/OnScreenKeyboards.razor.cs @@ -41,65 +41,6 @@ public sealed partial class OnScreenKeyboards /// 获得属性方法 /// /// - private static AttributeItem[] GetAttributes() => - [ - new() - { - Name = "ClassName", - Description = "获得/设置 组件 class 名称", - Type = "string", - ValueList = " — ", - DefaultValue = "virtualkeyboard" - }, - new() - { - Name = "KeyboardKeys", - Description = "获得/设置 键盘语言布局", - Type = "KeyboardKeysType?", - ValueList = "arabic|english|french|german|hungarian|persian|russian|spanish|turkish", - DefaultValue = "english" - }, - new() - { - Name = "Keyboard", - Description = "获得/设置 键盘类型", - Type = "KeyboardType", - ValueList = "全键盘 all | 字母 keyboard || 小数字键盘 numpad", - DefaultValue = "all" - }, - new() - { - Name = "Placement", - Description = "获得/设置 对齐", - Type = "KeyboardPlacement", - ValueList = "顶端 top | 底部 bottom", - DefaultValue = "bottom" - }, - new() - { - Name = "Placeholder", - Description = "获得/设置 占位符", - Type = "string", - ValueList = " — ", - DefaultValue = " - " - }, - new() - { - Name = "Specialcharacters", - Description = "获得/设置 显示特殊字符切换按钮", - Type = "bool", - ValueList = " - ", - DefaultValue = "true" - }, - new() - { - Name = "Option", - Description = "获得/设置 键盘配置", - Type = "KeyboardOption?", - ValueList = " - ", - DefaultValue = " - " - } - ]; /// /// 获得KeyboardOption属性 diff --git a/src/BootstrapBlazor.Server/Components/Samples/Paginations.razor b/src/BootstrapBlazor.Server/Components/Samples/Paginations.razor index 4a82ac7ef50..2e07a0c3b1e 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Paginations.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Paginations.razor @@ -54,4 +54,4 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Paginations.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Paginations.razor.cs index 85eb6dcf495..79f8ad74abe 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Paginations.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Paginations.razor.cs @@ -60,112 +60,4 @@ protected override void OnParametersSet() /// 获得属性方法 /// /// - private AttributeItem[] GetAttributes() => - [ - new() { - Name = "PageIndex", - Description = Localizer["PaginationsPageIndexAttr"], - Type = "int", - ValueList = " — ", - DefaultValue = "1" - }, - new() { - Name = "PageCount", - Description = Localizer["PaginationsPageCountAttr"], - Type = "int", - ValueList = " — ", - DefaultValue = " — " - }, - new() { - Name = "MaxPageLinkCount", - Description = Localizer["PaginationsMaxPageLinkCountAttr"], - Type = "int", - ValueList = " — ", - DefaultValue = "5" - }, - new() { - Name = "OnPageLinkClick", - Description = Localizer["PaginationsOnPageLinkClickAttr"], - Type = "Func", - ValueList = " — ", - DefaultValue = " — " - }, - new() { - Name = "Alignment", - Description = Localizer["PaginationsAlignmentAttr"], - Type = "Alignment", - ValueList = " — ", - DefaultValue = "Alignment.Right" - }, - new() { - Name = "ShowPageInfo", - Description = Localizer["PaginationsShowPageInfoAttr"], - Type = "bool", - ValueList = " — ", - DefaultValue = "true" - }, - new() { - Name = "PageInfoText", - Description = Localizer["PaginationsPageInfoTextAttr"], - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() { - Name = "PageInfoTemplate", - Description = Localizer["PaginationsPageInfoTemplateAttr"], - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() { - Name = "ShowGotoNavigator", - Description = Localizer["PaginationsShowGotoNavigatorAttr"], - Type = "bool", - ValueList = " — ", - DefaultValue = "false" - }, - new() { - Name = "GotoNavigatorLabelText", - Description = Localizer["PaginationsGotoNavigatorLabelTextAttr"], - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() { - Name = "GotoTemplate", - Description = Localizer["PaginationsGotoTemplateAttr"], - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() { - Name = "PrevPageIcon", - Description = Localizer["PaginationsPrevPageIconAttr"], - Type = "string", - ValueList = " — ", - DefaultValue = "fa-solid fa-angle-left" - }, - new() { - Name = "PrevEllipsisPageIcon", - Description = Localizer["PaginationsPrevEllipsisPageIconAttr"], - Type = "string", - ValueList = " — ", - DefaultValue = "fa-solid fa-ellipsis" - }, - new() { - Name = "NextPageIcon", - Description = Localizer["PaginationsNextPageIconAttr"], - Type = "string", - ValueList = " — ", - DefaultValue = "fa-solid fa-angle-right" - }, - new() { - Name = "NextEllipsisPageIcon", - Description = Localizer["PaginationsNextEllipsisPageIconAttr"], - Type = "string", - ValueList = " — ", - DefaultValue = "fa-solid fa-ellipsis" - } - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/Players.razor b/src/BootstrapBlazor.Server/Components/Samples/Players.razor index 1e72f29a70d..a1e69fc2836 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Players.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Players.razor @@ -49,5 +49,5 @@ -@* *@ +@* *@ diff --git a/src/BootstrapBlazor.Server/Components/Samples/PopoverConfirms.razor b/src/BootstrapBlazor.Server/Components/Samples/PopoverConfirms.razor index 6a02f4afb87..14d42b02bee 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/PopoverConfirms.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/PopoverConfirms.razor @@ -183,6 +183,6 @@ private Func<Task>? OnConfirmAsync { get; set; } - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/PopoverConfirms.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/PopoverConfirms.razor.cs index 0fc4a7bacc7..ac0dccc7de9 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/PopoverConfirms.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/PopoverConfirms.razor.cs @@ -69,129 +69,6 @@ private Task OnInValidSubmit(EditContext context) /// Get property method /// /// - private static AttributeItem[] GetAttributes() => - [ - new() - { - Name = nameof(PopConfirmButton.IsLink), - Description = "Whether to render the component for the A tag", - Type = "bool", - ValueList = "true/false", - DefaultValue = "false" - }, - new() - { - Name = "Text", - Description = "Show title", - Type = "string", - ValueList = "", - DefaultValue = "Delete" - }, - new() - { - Name = "Icon", - Description = "Button icon", - Type = "string", - ValueList = "", - DefaultValue = "fa-solid fa-xmark" - }, - new() - { - Name = "CloseButtonText", - Description = "Close button display text", - Type = "string", - ValueList = "", - DefaultValue = "Close" - }, - new() - { - Name = "CloseButtonColor", - Description = "Confirm button color", - Type = "Color", - ValueList = "None / Active / Primary / Secondary / Success / Danger / Warning / Info / Light / Dark / Link", - DefaultValue = "Secondary" - }, - new() - { - Name = "Color", - Description = "Color", - Type = "Color", - ValueList = "None / Active / Primary / Secondary / Success / Danger / Warning / Info / Light / Dark / Link", - DefaultValue = "None" - }, - new() - { - Name = "ConfirmButtonText", - Description = "Confirm button display text", - Type = "string", - ValueList = "", - DefaultValue = "Ok" - }, - new() - { - Name = "ConfirmButtonColor", - Description = "Confirm button color", - Type = "None / Active / Primary / Secondary / Success / Danger / Warning / Info / Light / Dark / Link", - ValueList = "", - DefaultValue = "Primary" - }, - new() - { - Name = "ConfirmIcon", - Description = "Confirmation box icon", - Type = "string", - ValueList = "", - DefaultValue = "fa-solid fa-circle-exclamation text-info" - }, - new() - { - Name = "Content", - Description = "Display text", - Type = "string", - ValueList = "", - DefaultValue = "Confirm delete?" - }, - new() - { - Name = "Placement", - Description = "Location", - Type = "Placement", - ValueList = "Auto / Top / Left / Bottom / Right", - DefaultValue = "Auto" - }, - new() - { - Name = "Title", - Description = "Popover Popup title", - Type = "string", - ValueList = "", - DefaultValue = " " - }, - new() - { - Name = nameof(PopConfirmButton.Trigger), - Description = "How pop confirm is triggered", - Type = "string", - ValueList = "click|hover|focus", - DefaultValue = "click" - }, - new() - { - Name = nameof(PopConfirmButton.ShowCloseButton), - Description = "Whether to display the close button", - Type = "string", - ValueList = "true/false", - DefaultValue = "true" - }, - new() - { - Name = nameof(PopConfirmButton.ShowConfirmButton), - Description = "Whether to display the confirm button", - Type = "string", - ValueList = "true/false", - DefaultValue = "true" - } - ]; /// /// Get event method diff --git a/src/BootstrapBlazor.Server/Components/Samples/Popovers.razor b/src/BootstrapBlazor.Server/Components/Samples/Popovers.razor index 90a8c2f40dc..f5d3c9659ca 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Popovers.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Popovers.razor @@ -81,4 +81,4 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Popovers.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Popovers.razor.cs index c9a32d7ca07..52a164e3fc9 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Popovers.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Popovers.razor.cs @@ -42,39 +42,4 @@ protected override void OnParametersSet() /// Get property method /// /// - private static AttributeItem[] GetAttributes() => - [ - new() - { - Name = "Content", - Description = "Popover content", - Type = "string", - ValueList = "", - DefaultValue = "Popover" - }, - new() - { - Name = "IsHtml", - Description = "Whether the content contains Html code", - Type = "boolean", - ValueList = "", - DefaultValue = "false" - }, - new() - { - Name = "Placement", - Description = "Location", - Type = "Placement", - ValueList = "Auto / Top / Left / Bottom / Right", - DefaultValue = "Auto" - }, - new() - { - Name = "Title", - Description = "Popover title", - Type = "string", - ValueList = "", - DefaultValue = "Popover" - } - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/Progress.razor b/src/BootstrapBlazor.Server/Components/Samples/Progress.razor index 3c2e3d19539..ea7ee23ac15 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Progress.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Progress.razor @@ -114,7 +114,7 @@ - + @code { diff --git a/src/BootstrapBlazor.Server/Components/Samples/Progress.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Progress.razor.cs index 38cb1c30429..478d026a7f0 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Progress.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Progress.razor.cs @@ -14,55 +14,4 @@ public sealed partial class Progress /// Get property method /// /// - private static AttributeItem[] GetAttributes() => - [ - new() - { - Name = "Color", - Description = "Color", - Type = "Color", - ValueList = "Primary / Secondary / Success / Danger / Warning / Info / Dark", - DefaultValue = "Primary" - }, - new() - { - Name = "Class", - Description = "Style", - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "Height", - Description = "Progress bar height", - Type = "int", - ValueList = " — ", - DefaultValue = "15" - }, - new() - { - Name = "IsAnimated", - Description = "Whether to display dynamically", - Type = "boolean", - ValueList = " — ", - DefaultValue = "false" - }, - new() - { - Name = "IsShowValue", - Description = "Whether to display the value", - Type = "boolean", - ValueList = " — ", - DefaultValue = "false" - }, - new() - { - Name = "IsStriped", - Description = "Whether to show stripes", - Type = "boolean", - ValueList = " — ", - DefaultValue = "false" - } - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/QRCodes.razor b/src/BootstrapBlazor.Server/Components/Samples/QRCodes.razor index 3e5c5f99177..5775d6789ae 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/QRCodes.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/QRCodes.razor @@ -32,4 +32,4 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/QRCodes.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/QRCodes.razor.cs index 527f53663c0..d9961c7d801 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/QRCodes.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/QRCodes.razor.cs @@ -29,95 +29,4 @@ private Task OnCleared() /// 获得属性方法 /// /// - private AttributeItem[] GetAttributes() => - [ - new() - { - Name = nameof(QRCode.PlaceHolder), - Description = Localizer[nameof(QRCode.PlaceHolder)], - Type = "string", - ValueList = " — ", - DefaultValue = Localizer["QRCodesPlaceHolderValue"] - }, - new() - { - Name = nameof(QRCode.Width), - Description = Localizer[nameof(QRCode.Width)], - Type = "int", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(QRCode.ClearButtonText), - Description = Localizer[nameof(QRCode.ClearButtonText)], - Type = "string", - ValueList = " — ", - DefaultValue = Localizer["QRCodesClearButtonTextValue"] - }, - new() - { - Name = nameof(QRCode.ClearButtonIcon), - Description = Localizer[nameof(QRCode.ClearButtonIcon)], - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(QRCode.GenerateButtonText), - Description = Localizer[nameof(QRCode.GenerateButtonText)], - Type = "string", - ValueList = " — ", - DefaultValue = Localizer["QRCodesGenerateButtonTextValue"] - }, - new() - { - Name = nameof(QRCode.GenerateButtonIcon), - Description = Localizer[nameof(QRCode.GenerateButtonIcon)], - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(QRCode.ShowButtons), - Description = Localizer[nameof(QRCode.ShowButtons)], - Type = "boolean", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(QRCode.DarkColor), - Description = Localizer[nameof(QRCode.DarkColor)], - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(QRCode.LightColor), - Description = Localizer[nameof(QRCode.LightColor)], - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(QRCode.OnGenerated), - Description = Localizer[nameof(QRCode.OnGenerated)], - Type = "Func", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(QRCode.OnCleared), - Description = Localizer[nameof(QRCode.OnCleared)], - Type = "Func", - ValueList = " — ", - DefaultValue = " — " - } - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/Radios.razor b/src/BootstrapBlazor.Server/Components/Samples/Radios.razor index 2aa4a75a258..379d912c9b6 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Radios.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Radios.razor @@ -136,7 +136,7 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Radios.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Radios.razor.cs index 5a75aea3600..f796d4bf76d 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Radios.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Radios.razor.cs @@ -121,82 +121,6 @@ class IconSelectedItem : SelectedItem public string? Icon { get; init; } } - private AttributeItem[] GetAttributes() => - [ - new() - { - Name = "DisplayText", - Description = Localizer["RadiosDisplayText"], - Type = "string", - ValueList = " — ", - DefaultValue = "—" - }, - new() - { - Name = "GroupName", - Description = Localizer["RadiosGroupName"], - Type = "string", - ValueList = " — ", - DefaultValue = "—" - }, - new() - { - Name = "NullItemText", - Description = Localizer["RadiosNullItemText"], - Type = "string", - ValueList = " — ", - DefaultValue = "—" - }, - new() - { - Name = "IsDisabled", - Description = Localizer["RadiosIsDisabled"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "false" - }, - new() - { - Name = "IsVertical", - Description = Localizer["RadiosIsVertical"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "false" - }, - new() - { - Name = nameof(RadioList.IsButton), - Description = Localizer["RadiosIsButton"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "false" - }, - new() - { - Name = "IsAutoAddNullItem", - Description = Localizer["RadiosIsAutoAddNullItem"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "false" - }, - new() - { - Name = "Items", - Description = Localizer["RadiosItems"], - Type = "IEnumerable", - ValueList = " — ", - DefaultValue = "—" - }, - new() - { - Name = "AutoSelectFirstWhenValueIsNull", - Description = Localizer["RadiosAutoSelectFirstWhenValueIsNull"], - Type = "bool", - ValueList = "true|false", - DefaultValue = "true" - } - ]; - /// /// 获得事件方法 /// diff --git a/src/BootstrapBlazor.Server/Components/Samples/Rates.razor b/src/BootstrapBlazor.Server/Components/Samples/Rates.razor index 408a0101c3e..85f9a89bc07 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Rates.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Rates.razor @@ -68,6 +68,6 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Rates.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Rates.razor.cs index e515acb9058..f1ed7161027 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Rates.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Rates.razor.cs @@ -60,64 +60,4 @@ private EventItem[] GetEvents() => Type ="EventCallback" } ]; - - private AttributeItem[] GetAttributes() => - [ - new() - { - Name = "Value", - Description = Localizer["RatesValue"], - Type = "int", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "Max", - Description = Localizer["RatesMax"], - Type = "int", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "IsDisabled", - Description = Localizer["RatesIsDisabled"], - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = "IsReadonly", - Description = Localizer["RatesIsReadonly"], - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = "IsWrap", - Description = Localizer["RatesIsWrap"], - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = "ShowValue", - Description = Localizer["RatesShowValue"], - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = "ItemTemplate", - Description = Localizer["RatesItemTemplate"], - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - } - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/Reconnectors.razor b/src/BootstrapBlazor.Server/Components/Samples/Reconnectors.razor index 4f6c7fa57da..feae5110942 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Reconnectors.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Reconnectors.razor @@ -268,4 +268,4 @@ </div> </ReconnectRejectedTemplate> - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Reconnectors.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Reconnectors.razor.cs index acac87f974a..b38fc41728f 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Reconnectors.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Reconnectors.razor.cs @@ -11,32 +11,4 @@ namespace BootstrapBlazor.Server.Components.Samples; public partial class Reconnectors { private string TemplateUrl => $"{WebsiteOption.Value.GiteeRepositoryUrl}/wikis/%E9%A1%B9%E7%9B%AE%E6%A8%A1%E6%9D%BF%E4%BD%BF%E7%94%A8%E6%95%99%E7%A8%8B"; - - private AttributeItem[] GetAttributes() => - [ - new() - { - Name = nameof(Reconnector.ReconnectingTemplate), - Description = Localizer["ReconnectingTemplateAttr"], - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(Reconnector.ReconnectFailedTemplate), - Description = Localizer["ReconnectFailedTemplateAttr"], - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(Reconnector.ReconnectRejectedTemplate), - Description = Localizer["ReconnectRejectedTemplateAttr"], - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/Repeaters.razor b/src/BootstrapBlazor.Server/Components/Samples/Repeaters.razor index b50142bcf80..b192475bf09 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Repeaters.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Repeaters.razor @@ -66,4 +66,4 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Repeaters.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Repeaters.razor.cs index e5339bc6f13..d6173909651 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Repeaters.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Repeaters.razor.cs @@ -37,72 +37,4 @@ private void OnDelete(Foo foo) { Items.Remove(foo); } - - private static AttributeItem[] GetAttributes() => - [ - new() - { - Name = nameof(Repeater.Items), - Description = "数据集合", - Type = "IEnumerable", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(Repeater.ShowLoading), - Description = "是否显示正在加载信息", - Type = "bool", - ValueList = "true/false", - DefaultValue = "true" - }, - new() - { - Name = nameof(Repeater.ShowEmpty), - Description = "是否显示空数据提示信息", - Type = "bool", - ValueList = "true/false", - DefaultValue = "true" - }, - new() - { - Name = nameof(Repeater.LoadingTemplate), - Description = "正在加载模板", - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(Repeater.EmptyTemplate), - Description = "空数据模板", - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(Repeater.ItemTemplate), - Description = "重复项模板", - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(Repeater.ContainerTemplate), - Description = "容器模板", - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(Repeater.EmptyText), - Description = "空数据提示信息", - Type = "string", - ValueList = " — ", - DefaultValue = " — " - } - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/Responsives.razor b/src/BootstrapBlazor.Server/Components/Samples/Responsives.razor index 5e997cc31ab..33e4babaa58 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Responsives.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Responsives.razor @@ -9,4 +9,4 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Responsives.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Responsives.razor.cs index 3b1fcacf8e1..fa682b9c58d 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Responsives.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Responsives.razor.cs @@ -18,16 +18,4 @@ private Task OnChanged(BreakPoint size) StateHasChanged(); return Task.CompletedTask; } - - private static AttributeItem[] GetAttributes() => - [ - new() - { - Name = nameof(Responsive.OnBreakPointChanged), - Description = "Callback method when breakpoint threshold changes", - Type = "Func>", - ValueList = " — ", - DefaultValue = " — " - } - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/RibbonTabs.razor b/src/BootstrapBlazor.Server/Components/Samples/RibbonTabs.razor index 29b9c0db600..37f973a03e8 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/RibbonTabs.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/RibbonTabs.razor @@ -51,4 +51,4 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/RibbonTabs.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/RibbonTabs.razor.cs index cb4895c50e9..9beb77b4273 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/RibbonTabs.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/RibbonTabs.razor.cs @@ -103,88 +103,4 @@ private List GenerateRibbonTabs() ]); return [item1, item2]; } - - private AttributeItem[] GetAttributes() => - [ - new() - { - Name = nameof(RibbonTab.ShowFloatButton), - Description = Localizer["RibbonTabsShowFloatButtonAttr"], - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = nameof(RibbonTab.OnFloatChanged), - Description = Localizer["RibbonTabsOnFloatChanged"], - Type = "bool", - ValueList = "Func", - DefaultValue = " — " - }, - new() - { - Name = nameof(RibbonTab.RibbonArrowUpIcon), - Description = Localizer["RibbonTabsRibbonArrowUpIcon"], - Type = "string", - ValueList = " — ", - DefaultValue = "fa-solid fa-angle-up fa-2x" - }, - new() - { - Name = nameof(RibbonTab.RibbonArrowDownIcon), - Description = Localizer["RibbonTabsRibbonArrowDownIcon"], - Type = "string", - ValueList = " — ", - DefaultValue = "fa-solid fa-angle-down fa-2x" - }, - new() - { - Name = nameof(RibbonTab.RibbonArrowPinIcon), - Description = Localizer["RibbonTabsRibbonArrowPinIcon"], - Type = "string", - ValueList = " — ", - DefaultValue = "fa-solid fa-thumbtack fa-rotate-90" - }, - new() - { - Name = nameof(RibbonTab.ShowFloatButton), - Description = Localizer["RibbonTabsShowFloatButton"], - Type = "bool", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(RibbonTab.Items), - Description = Localizer["RibbonTabsItems"], - Type = "IEnumerable", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(RibbonTab.OnItemClickAsync), - Description = Localizer["RibbonTabsOnItemClickAsync"], - Type = "Func", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(RibbonTab.OnMenuClickAsync), - Description = Localizer["OnMenuClickAsyncAttr"], - Type = "Func", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(RibbonTab.RightButtonsTemplate), - Description = Localizer["RibbonTabsRightButtonsTemplate"], - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - } - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/Rows.razor b/src/BootstrapBlazor.Server/Components/Samples/Rows.razor index f43687d1d16..7ed34061779 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Rows.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Rows.razor @@ -175,4 +175,4 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Rows.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Rows.razor.cs index ac2448bfa75..39d14811350 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Rows.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Rows.razor.cs @@ -74,40 +74,4 @@ private class RowFoo : Foo [AutoGenerateColumn(Order = 60)] public List? Educations { get; set; } } - - private AttributeItem[] GetAttributes() => - [ - new() - { - Name = "ItemsPerRow", - Description = Localizer["RowsItemsPerRow"], - Type = "enum", - ValueList = " One,Two,Three,Four,Six,Twelve ", - DefaultValue = " One " - }, - new() - { - Name = "RowType", - Description = Localizer["RowsRowType"], - Type = "enum?", - ValueList = "Normal, Inline", - DefaultValue = "null" - }, - new() - { - Name = "ColSpan", - Description = Localizer["RowsColSpan"], - Type = "int?", - ValueList = "-", - DefaultValue = "null" - }, - new() - { - Name = "MaxCount", - Description = Localizer["RowsMaxCount"], - Type = "int?", - ValueList = "-", - DefaultValue = "null" - } - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/Scrolls.razor b/src/BootstrapBlazor.Server/Components/Samples/Scrolls.razor index 9667be9c71f..75da343e878 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Scrolls.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Scrolls.razor @@ -25,4 +25,4 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Scrolls.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Scrolls.razor.cs index c1367d65615..5be53d5b29d 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Scrolls.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Scrolls.razor.cs @@ -14,25 +14,6 @@ public sealed partial class Scrolls /// 获得属性方法 /// /// - private AttributeItem[] GetAttributes() => - [ - new() - { - Name = "ChildContent", - Description = Localizer["Desc1"], - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "Height", - Description = Localizer["Desc2"], - Type = "string", - ValueList = " — ", - DefaultValue = " — " - } - ]; [NotNull] private Scroll? _scroll = null; diff --git a/src/BootstrapBlazor.Server/Components/Samples/SearchDialogs.razor b/src/BootstrapBlazor.Server/Components/Samples/SearchDialogs.razor index 3ab8aa92e52..9ccefe4259d 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/SearchDialogs.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/SearchDialogs.razor @@ -32,4 +32,4 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Topologies.razor b/src/BootstrapBlazor.Server/Components/Samples/Topologies.razor index 21cdc4a1662..ef267146d3e 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Topologies.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Topologies.razor @@ -19,4 +19,4 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Topologies.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Topologies.razor.cs index 163d82cd658..7219c52b3ed 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Topologies.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Topologies.razor.cs @@ -85,39 +85,4 @@ private async Task OnBeforePushData() /// 获得属性方法 /// /// - private static AttributeItem[] GetAttributes() => - [ - new() - { - Name = nameof(Topology.Content), - Description = "Load Graphical Json Content", - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(Topology.Interval), - Description = "Polling interval in polling mode", - Type = "int", - ValueList = " — ", - DefaultValue = "2000" - }, - new() - { - Name = nameof(Topology.OnQueryAsync), - Description = "Get push data callback delegate method", - Type = "Func>>", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(Topology.OnBeforePushData), - Description = "Callback method before starting to push data", - Type = "Func", - ValueList = " — ", - DefaultValue = " — " - } - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/Transfers.razor b/src/BootstrapBlazor.Server/Components/Samples/Transfers.razor index 8b9b450ca11..0ba8c4f9754 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Transfers.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Transfers.razor @@ -119,6 +119,6 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Transfers.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Transfers.razor.cs index 154e18bd63b..fcd1e272dd7 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Transfers.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Transfers.razor.cs @@ -111,113 +111,6 @@ private void OnAddItem() /// 获得属性方法 /// /// - private AttributeItem[] GetAttributes() => - [ - new() - { - Name = "Items", - Description = Localizer["Items"], - Type = "IEnumerable", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "LeftButtonText", - Description = Localizer["LeftButtonTextAttr"], - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "LeftPanelText", - Description = Localizer["LeftPanelTextAttr"], - Type = "string", - ValueList = " — ", - DefaultValue = Localizer["LeftPanelDefaultValue"]! - }, - new() - { - Name = "RightButtonText", - Description = Localizer["RightButtonTextAttr"], - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "RightPanelText", - Description = Localizer["RightPanelTextAttr"], - Type = "string", - ValueList = " — ", - DefaultValue = Localizer["RightPanelTextDefaultValue"]! - }, - new() - { - Name = "ShowSearch", - Description = "", - Type = "boolean", - ValueList = " — ", - DefaultValue = "false" - }, - new() - { - Name = "LeftPanelSearchPlaceHolderString", - Description = Localizer["LeftPanelSearchPlaceHolderString"], - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "RightPanelSearchPlaceHolderString", - Description = Localizer["RightPanelSearchPlaceHolderString"], - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "IsDisabled", - Description = Localizer["IsDisabled"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "false" - }, - new() - { - Name = "LeftHeaderTemplate", - Description = Localizer["LeftHeaderTemplate"], - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "LeftItemTemplate", - Description = Localizer["LeftItemTemplate"], - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "RightHeaderTemplate", - Description = Localizer["RightHeaderTemplate"], - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "RightItemTemplate", - Description = Localizer["RightItemTemplate"], - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - } - ]; /// /// 获得事件方法 diff --git a/src/BootstrapBlazor.Server/Components/Samples/Transitions.razor b/src/BootstrapBlazor.Server/Components/Samples/Transitions.razor index a680025ca8f..3fa192d7833 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Transitions.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Transitions.razor @@ -32,4 +32,4 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Transitions.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Transitions.razor.cs index 9db928d904c..007864bfb06 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Transitions.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Transitions.razor.cs @@ -55,36 +55,4 @@ private Task OnFadeInEndShow() StateHasChanged(); return Task.CompletedTask; } - - private static AttributeItem[] GetAttributes() => - [ - new() { - Name = "TransitionType", - Description = "Animation effect name", - Type = "TransitionType", - ValueList = " — ", - DefaultValue = "FadeIn" - }, - new() { - Name = "Show", - Description = "Control animation execution", - Type = "Boolean", - ValueList = "true|false", - DefaultValue = "true" - }, - new() { - Name = "Duration", - Description = "Control animation duration", - Type = "int", - ValueList = " — ", - DefaultValue = "0" - }, - new() { - Name = "OnTransitionEnd", - Description = "Animation execution complete callback", - Type = "Func", - ValueList = " — ", - DefaultValue = " — " - } - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/TreeViews.razor b/src/BootstrapBlazor.Server/Components/Samples/TreeViews.razor index e0d480c802f..76e2029d6ef 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/TreeViews.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/TreeViews.razor @@ -216,6 +216,6 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/TreeViews.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/TreeViews.razor.cs index d5ba6a5aaf3..e1169e9f5ae 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/TreeViews.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/TreeViews.razor.cs @@ -203,7 +203,6 @@ private static List GetDraggableItems() new() { Text = "Item H", Id = "7", ParentId = "3", Icon = "fa-solid fa-font-awesome" }, new() { Text = "Item I", Id = "8", ParentId = "3", Icon = "fa-solid fa-font-awesome" }, - ]; return _dragItems; } @@ -313,121 +312,6 @@ private Task OnUpdateCallbackAsync(TreeFoo foo, string? text) /// 获得属性方法 /// /// - private static AttributeItem[] GetAttributes() => - [ - new() - { - Name = "Items", - Description = "menu data set", - Type = "IEnumerable>", - ValueList = " — ", - DefaultValue = "new List>(20)" - }, - new() - { - Name = "ClickToggleNode", - Description = "Whether to expand or contract children when a node is clicked", - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = "ShowCheckbox", - Description = "Whether to display CheckBox", - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = "ShowIcon", - Description = "Whether to display Icon", - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = "ShowSkeleton", - Description = "Whether to display the loading skeleton screen", - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = nameof(TreeView.OnTreeItemClick), - Description = "Callback delegate when tree control node is clicked", - Type = "Func, Task>", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(TreeView.OnBeforeTreeItemClick), - Description = "点击节点前回调方法", - Type = "Func, Task>", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(TreeView.OnTreeItemChecked), - Description = "Callback delegate when tree control node is selected", - Type = "Func, Task>", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(TreeView.OnExpandNodeAsync), - Description = "Tree control node expand callback delegate", - Type = "Func, Task>", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(TreeView.IsDisabled), - Description = "Disable tree view", - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = nameof(TreeView.IsVirtualize), - Description = "Virtualize", - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = nameof(TreeView.CanExpandWhenDisabled), - Description = "Whether to expand when the control node is disabled", - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = nameof(TreeView.MaxSelectedCount), - Description = "The maximum count of selected node", - Type = "int", - ValueList = " — ", - DefaultValue = "0" - }, - new() - { - Name = nameof(TreeView.OnMaxSelectedCountExceed), - Description = "Select the callback method when the maximum number of nodes is reached", - Type = "Func", - ValueList = " — ", - DefaultValue = " — " - } - ]; private static AttributeItem[] GetTreeItemAttributes() => [ diff --git a/src/BootstrapBlazor.Server/Components/Samples/UploadAvatars.razor b/src/BootstrapBlazor.Server/Components/Samples/UploadAvatars.razor index a25da281e19..4dc536cf1f2 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/UploadAvatars.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/UploadAvatars.razor @@ -76,4 +76,4 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/UploadDrops.razor b/src/BootstrapBlazor.Server/Components/Samples/UploadDrops.razor index 2277d5c6c88..f9fc37afecb 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/UploadDrops.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/UploadDrops.razor @@ -57,4 +57,4 @@ ShowProgress="@_showProgress" ShowUploadFileList="@_showUploadFileList" ShowFooter="@_showFooter"> - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/UploadInputs.razor b/src/BootstrapBlazor.Server/Components/Samples/UploadInputs.razor index 201feac8a82..5d488aa0edb 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/UploadInputs.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/UploadInputs.razor @@ -46,4 +46,4 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/ValidateForms.razor b/src/BootstrapBlazor.Server/Components/Samples/ValidateForms.razor index 518138557f3..5d4e3859cbb 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/ValidateForms.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/ValidateForms.razor @@ -416,6 +416,6 @@ private Task OnClickValidate() - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/ValidateForms.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/ValidateForms.razor.cs index 2793819e325..0dd977dc993 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/ValidateForms.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/ValidateForms.razor.cs @@ -282,81 +282,6 @@ private Task OnInvalidValidatableObject(EditContext context) } #region 参数说明 - private AttributeItem[] GetAttributes() => - [ - new() - { - Name = "Model", - Description = Localizer["Model"], - Type = "object", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "ValidateAllProperties", - Description = Localizer["ValidateAllProperties"], - Type = "bool", - ValueList = "true/false", - DefaultValue = "false" - }, - new() - { - Name = nameof(ValidateForm.DisableAutoSubmitFormByEnter), - Description = Localizer[nameof(ValidateForm.DisableAutoSubmitFormByEnter)], - Type = "bool", - ValueList = "true/false", - DefaultValue = "false" - }, - new() - { - Name = "ShowRequiredMark", - Description = Localizer["ShowRequiredMark"], - Type = "bool", - ValueList = "true/false", - DefaultValue = "true" - }, - new() - { - Name = "ShowLabelTooltip", - Description = Localizer["ShowLabelTooltip"], - Type = "bool?", - ValueList = "true/false/null", - DefaultValue = "null" - }, - new() - { - Name = "LabelWidth", - Description = Localizer["LabelWidth"], - Type = "int?", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "ChildContent", - Description = Localizer["ChildContent"], - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "OnValidSubmit", - Description = Localizer["OnValidSubmit"], - Type = "EventCallback", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "OnInvalidSubmit", - Description = Localizer["OnInvalidSubmit"], - Type = "EventCallback", - ValueList = " — ", - DefaultValue = " — " - } - ]; /// /// 获得事件方法 diff --git a/src/BootstrapBlazor.Server/Components/Samples/Vditors.razor b/src/BootstrapBlazor.Server/Components/Samples/Vditors.razor index 24a5fc3c553..5ec096db1e4 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Vditors.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Vditors.razor @@ -51,4 +51,4 @@ - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Vditors.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Vditors.razor.cs index 70f0c4d0545..4b26a5a8eeb 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Vditors.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Vditors.razor.cs @@ -140,56 +140,4 @@ private async Task OnTriggerBlurAsync() { await _vditor.BlurAsync(); } - - private static AttributeItem[] GetAttributes() => - [ - new() - { - Name = "EditorSettings", - Description = "编辑器设置", - Type = "EditorSettings", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "ToolbarSettings", - Description = "工具栏设置", - Type = "ToolbarSettings", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "Value", - Description = "组件值", - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "Html", - Description = "组件 Html 代码", - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "OnFileUpload", - Description = "文件上传回调方法", - Type = "Func>", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "IsViewer", - Description = "组件是否为浏览器模式", - Type = "bool", - ValueList = "true/false", - DefaultValue = "false" - } - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/VideoPlayers.razor b/src/BootstrapBlazor.Server/Components/Samples/VideoPlayers.razor index e9bd3c7479f..f12211209c6 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/VideoPlayers.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/VideoPlayers.razor @@ -43,7 +43,7 @@ - +
@Localizer["MineType"]
    diff --git a/src/BootstrapBlazor.Server/Components/Samples/VideoPlayers.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/VideoPlayers.razor.cs index 6ffee4666ea..0aeebe5765c 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/VideoPlayers.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/VideoPlayers.razor.cs @@ -62,78 +62,4 @@ private async Task Apply() /// 获得属性方法 ///
/// - private AttributeItem[] GetAttributes() => - [ - - new() { - Name = nameof(VideoPlayer.Url), - Description = Localizer["ResourceUrl"], - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() { - Name = nameof(VideoPlayer.MineType), - Description = Localizer["MineTypeDesc"], - Type = "string?", - ValueList = Localizer["ValueList"], - DefaultValue = "application/x-mpegURL" - }, - new() { - Name = nameof(VideoPlayer.Width), - Description = Localizer["Width"], - Type = "int", - ValueList = " — ", - DefaultValue = "300" - }, - new() { - Name = nameof(VideoPlayer.Height), - Description = Localizer["Height"], - Type = "int", - ValueList = " — ", - DefaultValue = "200" - }, - new() { - Name = nameof(VideoPlayer.Controls), - Description = Localizer["ShowBar"], - Type = "bool", - ValueList = "true|false", - DefaultValue = "true" - }, - new() { - Name = nameof(VideoPlayer.AutoPlay), - Description = Localizer["AutoPaly"], - Type = "bool", - ValueList = "true|false", - DefaultValue = "true" - }, - new() { - Name = nameof(VideoPlayer.Poster), - Description = Localizer["Poster"], - Type = "string?", - ValueList = " — ", - DefaultValue = " — " - }, - new() { - Name = "Reload(string url, string type)", - Description = Localizer["SwitchResource"], - Type = "async Task", - ValueList = " — ", - DefaultValue = " — " - }, - new() { - Name = "SetPoster(string poster)", - Description = Localizer["SetPoster"], - Type = "async Task", - ValueList = " — ", - DefaultValue = " — " - }, - new() { - Name = "OnError", - Description = Localizer["OnError"], - Type = "Func?", - ValueList = " — ", - DefaultValue = " — " - }, - ]; } diff --git a/src/BootstrapBlazor.Server/Components/Samples/WinBoxes.razor b/src/BootstrapBlazor.Server/Components/Samples/WinBoxes.razor index b08e95a29e0..45e36a2ce66 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/WinBoxes.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/WinBoxes.razor @@ -115,4 +115,4 @@ private async Task Close()

更多参数信息可参考 WinBoxOption 注释

- + diff --git a/src/BootstrapBlazor.Server/Components/Samples/WinBoxes.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/WinBoxes.razor.cs index 0c584516aa9..dc9a7d882e7 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/WinBoxes.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/WinBoxes.razor.cs @@ -88,137 +88,4 @@ private async Task OpenWinBox(WinBoxOption? option) { "Option", option } }, option); } - - private AttributeItem[] GetAttributes() => - [ - new() - { - Name = "Root", - Description = Localizer["AttributeRoot"], - Type = "string?", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "Title", - Description = Localizer["AttributeTitle"], - Type = "string?", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "Class", - Description = Localizer["AttributeClass"], - Type = "string?", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "Background", - Description = Localizer["AttributeBackground"], - Type = "string?", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "Border", - Description = Localizer["AttributeBorder"], - Type = "int?", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "Icon", - Description = Localizer["AttributeIcon"], - Type = "string?", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "OnCreateAsync", - Description = Localizer["OnCreateAsync"], - Type = "Func", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "OnShownAsync", - Description = Localizer["OnShownAsync"], - Type = "Func", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "OnHideAsync", - Description = Localizer["OnHideAsync"], - Type = "Func", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "OnFocusAsync", - Description = Localizer["OnFocusAsync"], - Type = "Func", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "OnBlurAsync", - Description = Localizer["OnBlurAsync"], - Type = "Func", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "OnFullscreenAsync", - Description = Localizer["OnFullscreenAsync"], - Type = "Func", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "OnRestoreAsync", - Description = Localizer["OnRestoreAsync"], - Type = "Func", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "OnMaximizeAsync", - Description = Localizer["OnMaximizeAsync"], - Type = "Func", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "OnMinimizeAsync", - Description = Localizer["OnMinimizeAsync"], - Type = "Func", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "OnCloseAsync", - Description = Localizer["OnCloseAsync"], - Type = "Func", - ValueList = " — ", - DefaultValue = " — " - }, - - ]; } From c40f27020c326aad0a06d31b7bd7e1c8db2a9403 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 16 Jan 2026 03:44:16 +0000 Subject: [PATCH 3/9] Clean up orphaned XML comments after GetAttributes removal Co-authored-by: ArgoZhang <22001478+ArgoZhang@users.noreply.github.com> --- .../Components/Samples/Ajaxs.razor.cs | 5 ----- .../Components/Samples/Alerts.razor.cs | 5 ----- .../Components/Samples/Anchors.razor.cs | 5 ----- .../Components/Samples/AutoCompletes.razor.cs | 5 ----- .../Components/Samples/Avatars.razor.cs | 5 ----- .../Components/Samples/Badges.razor.cs | 4 ---- .../Components/Samples/BarcodeGenerators.razor.cs | 5 ----- .../Components/Samples/Buttons.razor.cs | 6 ------ .../Components/Samples/Calendars.razor.cs | 5 ----- .../Components/Samples/Cameras.razor.cs | 5 ----- .../Components/Samples/Captchas.razor.cs | 6 ------ .../Components/Samples/Carousels.razor.cs | 5 ----- .../Components/Samples/Cascaders.razor.cs | 5 ----- .../Components/Samples/Checkboxs.razor.cs | 6 ------ .../Components/Samples/Circles.razor.cs | 5 ----- .../Components/Samples/Consoles.razor.cs | 5 ----- .../Components/Samples/DateTimePickers.razor.cs | 5 ----- .../Components/Samples/DialButtons.razor.cs | 5 ----- .../Components/Samples/Dialogs.razor.cs | 5 ----- .../Components/Samples/Dividers.razor.cs | 4 ---- .../Components/Samples/DragDrops.razor.cs | 6 ------ .../Components/Samples/Dropdowns.razor.cs | 6 ------ .../Components/Samples/Empties.razor.cs | 4 ---- .../Components/Samples/FileViewers.razor.cs | 5 ----- .../Components/Samples/FlipClocks.razor.cs | 5 ----- .../Components/Samples/FullScreenButtons.razor.cs | 4 ---- .../Components/Samples/GlobalException.razor.cs | 5 ----- .../Components/Samples/LinkButtons.razor.cs | 5 ----- .../Components/Samples/ListGroups.razor.cs | 5 ----- .../Components/Samples/Live2DDisplays.razor.cs | 5 ----- .../Components/Samples/Mermaids.razor.cs | 6 ------ .../Components/Samples/MindMaps.razor.cs | 5 ----- .../Components/Samples/Modals.razor.cs | 5 ----- .../Components/Samples/MouseFollowers.razor.cs | 5 ----- .../Components/Samples/Navigation.razor.cs | 5 ----- .../Components/Samples/OnScreenKeyboards.razor.cs | 6 ------ .../Components/Samples/Paginations.razor.cs | 5 ----- .../Components/Samples/QRCodes.razor.cs | 5 ----- .../Components/Samples/Scrolls.razor.cs | 5 ----- .../Components/Samples/Searches.razor.cs | 5 ----- .../Components/Samples/SelectGenerics.razor.cs | 5 ----- .../Components/Samples/SelectTables.razor.cs | 5 ----- .../Components/Samples/Selects.razor.cs | 5 ----- .../Components/Samples/SignaturePads.razor.cs | 5 ----- .../Components/Samples/Skeletons.razor.cs | 4 ---- .../Components/Samples/SlideButtons.razor.cs | 5 ----- .../Components/Samples/Sliders.razor.cs | 6 ------ .../Components/Samples/Speeches/SpeechWaves.razor.cs | 5 ----- .../Components/Samples/Splits.razor.cs | 5 ----- .../Components/Samples/SweetAlerts.razor.cs | 5 ----- .../Components/Samples/SwitchButtons.razor.cs | 5 ----- .../Components/Samples/Switches.razor.cs | 6 ------ src/BootstrapBlazor.Server/Components/Samples/Tabs.razor.cs | 6 ------ src/BootstrapBlazor.Server/Components/Samples/Tags.razor.cs | 5 ----- .../Components/Samples/Timelines.razor.cs | 6 ------ .../Components/Samples/Toggles.razor.cs | 5 ----- .../Components/Samples/Tooltips.razor.cs | 5 ----- .../Components/Samples/Topologies.razor.cs | 5 ----- .../Components/Samples/Transfers.razor.cs | 6 ------ .../Components/Samples/Translators.razor.cs | 5 ----- .../Components/Samples/TreeViews.razor.cs | 6 ------ .../Components/Samples/VideoPlayers.razor.cs | 5 ----- 62 files changed, 318 deletions(-) diff --git a/src/BootstrapBlazor.Server/Components/Samples/Ajaxs.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Ajaxs.razor.cs index 9913abca239..683a41bb19c 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Ajaxs.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Ajaxs.razor.cs @@ -63,11 +63,6 @@ class User private Task Goto() => AjaxService.Goto("/introduction"); private Task GotoSelf() => AjaxService.Goto("/ajax"); - - /// - /// 获得属性方法 - /// - /// private List GetMethods() => [ new() diff --git a/src/BootstrapBlazor.Server/Components/Samples/Alerts.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Alerts.razor.cs index b37bf8d6128..e17f24023f8 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Alerts.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Alerts.razor.cs @@ -116,9 +116,4 @@ private static EventItem[] GetEvents() => Type = "EventCallback" } ]; - - /// - /// 获得属性方法 - /// - /// } diff --git a/src/BootstrapBlazor.Server/Components/Samples/Anchors.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Anchors.razor.cs index 6e6d31aef78..0f46fb8e014 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Anchors.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Anchors.razor.cs @@ -13,9 +13,4 @@ public partial class Anchors [Inject] [NotNull] private IStringLocalizer? Localizer { get; set; } - - /// - /// 获得属性方法 - /// - /// } diff --git a/src/BootstrapBlazor.Server/Components/Samples/AutoCompletes.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/AutoCompletes.razor.cs index 4c7ee9adf2e..7387b60f515 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/AutoCompletes.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/AutoCompletes.razor.cs @@ -48,9 +48,4 @@ private Task GroupOnSelectedItemChanged(string val) GroupLogger.Log($"Value: {val}"); return Task.CompletedTask; } - - /// - /// 获得属性方法 - /// - /// } diff --git a/src/BootstrapBlazor.Server/Components/Samples/Avatars.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Avatars.razor.cs index 731ce380724..854ec064996 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Avatars.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Avatars.razor.cs @@ -16,9 +16,4 @@ private async Task GetUrlAsync() await Task.Delay(500); return $"{WebsiteOption.Value.AssetRootPath}images/Argo-C.png"; } - - /// - /// 获得属性方法 - /// - /// } diff --git a/src/BootstrapBlazor.Server/Components/Samples/Badges.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Badges.razor.cs index 3d3440334f3..58744f45840 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Badges.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Badges.razor.cs @@ -10,8 +10,4 @@ namespace BootstrapBlazor.Server.Components.Samples; /// public sealed partial class Badges { - /// - /// 获得属性方法 - /// - /// } diff --git a/src/BootstrapBlazor.Server/Components/Samples/BarcodeGenerators.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/BarcodeGenerators.razor.cs index a6e1a0bbf84..0f9edfc579e 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/BarcodeGenerators.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/BarcodeGenerators.razor.cs @@ -22,11 +22,6 @@ private Task OnCompletedAsync(string? val) StateHasChanged(); return Task.CompletedTask; } - - /// - /// GetAttributes - /// - /// protected AttributeItem[] GetAttributes() => [ new() diff --git a/src/BootstrapBlazor.Server/Components/Samples/Buttons.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Buttons.razor.cs index 19c689b2745..c9692097578 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Buttons.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Buttons.razor.cs @@ -72,12 +72,6 @@ private EventItem[] GetEvents() => Type ="Func" } ]; - - /// - /// 获得属性方法 - /// - /// - private MethodItem[] GetMethods() => [ new() diff --git a/src/BootstrapBlazor.Server/Components/Samples/Calendars.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Calendars.razor.cs index 22ebc4772cb..0a951fa8478 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Calendars.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Calendars.razor.cs @@ -47,9 +47,4 @@ private EventItem[] GetEvents() => Type ="EventCallback" } ]; - - /// - /// 获得属性方法 - /// - /// } diff --git a/src/BootstrapBlazor.Server/Components/Samples/Cameras.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Cameras.razor.cs index 110449c3b6b..985a35ed901 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Cameras.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Cameras.razor.cs @@ -159,9 +159,4 @@ private Task OnClose() Logger.Log(TraceOnClose); return Task.CompletedTask; } - - /// - /// 获得属性方法 - /// - /// } diff --git a/src/BootstrapBlazor.Server/Components/Samples/Captchas.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Captchas.razor.cs index 94169b0bf73..e19819d85f6 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Captchas.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Captchas.razor.cs @@ -68,12 +68,6 @@ private async Task OnValidAsync(bool ret) await NormalCaptcha.Reset(); } } - - /// - /// 获得属性方法 - /// - /// - /// /// 获得事件方法 /// diff --git a/src/BootstrapBlazor.Server/Components/Samples/Carousels.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Carousels.razor.cs index ea423e52a05..e393c77f78c 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Carousels.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Carousels.razor.cs @@ -39,9 +39,4 @@ private Task OnClick(string imageUrl) OnClickLogger.Log($"Image Clicked: {imageUrl}"); return Task.CompletedTask; } - - /// - /// 获得属性方法 - /// - /// } diff --git a/src/BootstrapBlazor.Server/Components/Samples/Cascaders.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Cascaders.razor.cs index e47ce3918af..6fd9a2fbc87 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Cascaders.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Cascaders.razor.cs @@ -92,9 +92,4 @@ private async Task OnValidate() { await ValidateForm1.ValidateAsync(); } - - /// - /// 获得属性方法 - /// - /// } diff --git a/src/BootstrapBlazor.Server/Components/Samples/Checkboxs.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Checkboxs.razor.cs index fd3a4beeb77..eeff394a386 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Checkboxs.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Checkboxs.razor.cs @@ -64,12 +64,6 @@ private Task OnBeforeStateChanged(CheckboxState state) => SwalService.Show Title = Localizer["OnBeforeStateChangedSwalTitle"], Content = Localizer["OnBeforeStateChangedSwalContent"] }); - - /// - /// GetAttributes - /// - /// - /// /// 获得事件方法 /// diff --git a/src/BootstrapBlazor.Server/Components/Samples/Circles.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Circles.razor.cs index 431ab248c99..2477242022d 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Circles.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Circles.razor.cs @@ -17,10 +17,5 @@ private void Add(int interval) _circleValue += interval; _circleValue = Math.Min(100, Math.Max(0, _circleValue)); } - - /// - /// GetAttributes - /// - /// } diff --git a/src/BootstrapBlazor.Server/Components/Samples/Consoles.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Consoles.razor.cs index 809d24a3902..3781460cdd3 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Consoles.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Consoles.razor.cs @@ -126,9 +126,4 @@ private static AttributeItem[] GetItemAttributes() => DefaultValue = "None" } ]; - - /// - /// GetAttributes - /// - /// } diff --git a/src/BootstrapBlazor.Server/Components/Samples/DateTimePickers.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/DateTimePickers.razor.cs index f0c5c766854..7f3927f7695 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/DateTimePickers.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/DateTimePickers.razor.cs @@ -166,9 +166,4 @@ private EventItem[] GetEvents() => Type ="Func>>" } ]; - - /// - /// 获得属性方法 - /// - /// } diff --git a/src/BootstrapBlazor.Server/Components/Samples/DialButtons.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/DialButtons.razor.cs index 195607ff4d9..7c7c1e5917e 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/DialButtons.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/DialButtons.razor.cs @@ -20,9 +20,4 @@ private Task OnClick(DialMode mode) } private CheckboxState CheckState(string state) => Mode.ToString() == state ? CheckboxState.Checked : CheckboxState.UnChecked; - - /// - /// GetAttributes - /// - /// } diff --git a/src/BootstrapBlazor.Server/Components/Samples/Dialogs.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Dialogs.razor.cs index d0f4c37af5a..75e645b5033 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Dialogs.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Dialogs.razor.cs @@ -309,9 +309,4 @@ private async Task OnEmailButtonClick() EmailInputValue = string.Join(";", Emails); } } - - /// - /// 获得属性方法 - /// - /// } diff --git a/src/BootstrapBlazor.Server/Components/Samples/Dividers.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Dividers.razor.cs index a3947f9adc7..a816183e532 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Dividers.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Dividers.razor.cs @@ -10,8 +10,4 @@ namespace BootstrapBlazor.Server.Components.Samples; /// public sealed partial class Dividers { - /// - /// 获得属性方法 - /// - /// } diff --git a/src/BootstrapBlazor.Server/Components/Samples/DragDrops.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/DragDrops.razor.cs index 1b8a73196b9..b6e9f1ee7ed 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/DragDrops.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/DragDrops.razor.cs @@ -78,12 +78,6 @@ protected override void OnInitialized() "10" ]; } - - /// - /// GetAttributes - /// - /// - /// /// GetMethods /// diff --git a/src/BootstrapBlazor.Server/Components/Samples/Dropdowns.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Dropdowns.razor.cs index db5d5648802..114d0aa979e 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Dropdowns.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Dropdowns.razor.cs @@ -164,12 +164,6 @@ private async Task OnIsAsyncClick() } private Task OnClickAction(string actionName) => ToastService.Information("Custom Action", $"Trigger {actionName}"); - - /// - /// GetAttributes - /// - /// - /// /// GetEvents /// diff --git a/src/BootstrapBlazor.Server/Components/Samples/Empties.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Empties.razor.cs index 6fba06113d7..ee273af6d0c 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Empties.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Empties.razor.cs @@ -10,8 +10,4 @@ namespace BootstrapBlazor.Server.Components.Samples; /// public partial class Empties { - /// - /// 获得属性方法 - /// - /// } diff --git a/src/BootstrapBlazor.Server/Components/Samples/FileViewers.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/FileViewers.razor.cs index 8167ca379ed..8a2053c5efa 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/FileViewers.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/FileViewers.razor.cs @@ -68,9 +68,4 @@ private async Task Apply() { await fileViewer.Reload(CombineFilename(Url)); } - - /// - /// GetAttributes - /// - /// } diff --git a/src/BootstrapBlazor.Server/Components/Samples/FlipClocks.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/FlipClocks.razor.cs index 2ecb6ec5b29..0becafe9fb7 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/FlipClocks.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/FlipClocks.razor.cs @@ -48,9 +48,4 @@ private Task OnCompletedAsync() StateHasChanged(); return Task.CompletedTask; } - - /// - /// GetAttributes - /// - /// } diff --git a/src/BootstrapBlazor.Server/Components/Samples/FullScreenButtons.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/FullScreenButtons.razor.cs index fbf9ad9efb2..1d4da598516 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/FullScreenButtons.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/FullScreenButtons.razor.cs @@ -10,8 +10,4 @@ namespace BootstrapBlazor.Server.Components.Samples; /// public partial class FullScreenButtons { - /// - /// GetAttributes - /// - /// } diff --git a/src/BootstrapBlazor.Server/Components/Samples/GlobalException.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/GlobalException.razor.cs index 187200d321e..6f5914f660d 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/GlobalException.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/GlobalException.razor.cs @@ -47,9 +47,4 @@ private Task OnGotoPage() NavigationManager.NavigateTo("/error-page"); return Task.CompletedTask; } - - /// - /// 获得属性方法 - /// - /// } diff --git a/src/BootstrapBlazor.Server/Components/Samples/LinkButtons.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/LinkButtons.razor.cs index aa55cc525bf..c0085bdb8be 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/LinkButtons.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/LinkButtons.razor.cs @@ -17,9 +17,4 @@ private void OnClick() { Logger.Log($"{DateTimeOffset.Now}: Clicked!"); } - - /// - /// GetAttributes - /// - /// } diff --git a/src/BootstrapBlazor.Server/Components/Samples/ListGroups.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/ListGroups.razor.cs index ea429d4b06d..9322e94f4aa 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/ListGroups.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/ListGroups.razor.cs @@ -31,9 +31,4 @@ protected override void OnInitialized() } private static string? GetItemDisplayText(Foo item) => item.Name; - - /// - /// GetAttributes - /// - /// } diff --git a/src/BootstrapBlazor.Server/Components/Samples/Live2DDisplays.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Live2DDisplays.razor.cs index bec7f1ab7d8..9f086e27d9a 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Live2DDisplays.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Live2DDisplays.razor.cs @@ -55,9 +55,4 @@ protected override void OnInitialized() new SelectedItem("https://raw.githubusercontent.com/iCharlesZ/vscode-live2d-models/master/model-library/haruto/haruto.model.json", "haruto"), ]); } - - /// - /// 获得属性方法 - /// - /// } diff --git a/src/BootstrapBlazor.Server/Components/Samples/Mermaids.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Mermaids.razor.cs index c8e30308c2f..771203b0070 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Mermaids.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Mermaids.razor.cs @@ -154,12 +154,6 @@ section A section }; private Task OnDownloadPDFAsync() => _mermaid.DownloadPdfAsync($"mermaid-pdf-{DateTime.Now:HHmmss}.pdf"); - - /// - /// GetAttributes - /// - /// - /// /// Methods /// diff --git a/src/BootstrapBlazor.Server/Components/Samples/MindMaps.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/MindMaps.razor.cs index 0c539ecf947..8f5325b929a 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/MindMaps.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/MindMaps.razor.cs @@ -83,9 +83,4 @@ async Task SetSample2() _result = SampleData2; await SetData(); } - - /// - /// 获得属性方法 - /// - /// } diff --git a/src/BootstrapBlazor.Server/Components/Samples/Modals.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Modals.razor.cs index 709fadbe96e..15c98d3ed93 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Modals.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Modals.razor.cs @@ -75,9 +75,4 @@ private static async Task OnSaveAsync() await Task.Delay(1000); return true; } - - /// - /// GetAttributes - /// - /// } diff --git a/src/BootstrapBlazor.Server/Components/Samples/MouseFollowers.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/MouseFollowers.razor.cs index e2c0ba66dab..d43de58214f 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/MouseFollowers.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/MouseFollowers.razor.cs @@ -24,9 +24,4 @@ public partial class MouseFollowers ClassName = "mf-cursor bb-cursor", MediaClassName = "mf-cursor-media bb-cursor-media" }; - - /// - /// 获得属性方法 - /// - /// } diff --git a/src/BootstrapBlazor.Server/Components/Samples/Navigation.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Navigation.razor.cs index 714ae8e999d..9bd8008a06a 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Navigation.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Navigation.razor.cs @@ -32,9 +32,4 @@ private List GetItems() ret.Add(link); return ret; } - - /// - /// 获得属性方法 - /// - /// } diff --git a/src/BootstrapBlazor.Server/Components/Samples/OnScreenKeyboards.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/OnScreenKeyboards.razor.cs index 185a5f56740..f07c42e84ea 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/OnScreenKeyboards.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/OnScreenKeyboards.razor.cs @@ -36,12 +36,6 @@ public sealed partial class OnScreenKeyboards { autoScroll = true }; - - /// - /// 获得属性方法 - /// - /// - /// /// 获得KeyboardOption属性 /// diff --git a/src/BootstrapBlazor.Server/Components/Samples/Paginations.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Paginations.razor.cs index 79f8ad74abe..e881f199828 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Paginations.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Paginations.razor.cs @@ -55,9 +55,4 @@ protected override void OnParametersSet() new("20", "20条/页") ]; } - - /// - /// 获得属性方法 - /// - /// } diff --git a/src/BootstrapBlazor.Server/Components/Samples/QRCodes.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/QRCodes.razor.cs index d9961c7d801..b83ed046c8e 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/QRCodes.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/QRCodes.razor.cs @@ -24,9 +24,4 @@ private Task OnCleared() Logger.Log(Localizer["ClearText"]); return Task.CompletedTask; } - - /// - /// 获得属性方法 - /// - /// } diff --git a/src/BootstrapBlazor.Server/Components/Samples/Scrolls.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Scrolls.razor.cs index 5be53d5b29d..b3bd8e883bf 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Scrolls.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Scrolls.razor.cs @@ -10,11 +10,6 @@ namespace BootstrapBlazor.Server.Components.Samples; /// public sealed partial class Scrolls { - /// - /// 获得属性方法 - /// - /// - [NotNull] private Scroll? _scroll = null; diff --git a/src/BootstrapBlazor.Server/Components/Samples/Searches.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Searches.razor.cs index f56dc008f64..beec7bc48d6 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Searches.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Searches.razor.cs @@ -85,9 +85,4 @@ private async Task OnClickCamera(SearchContext context) private bool _isClearable = true; private bool _showClearButton = false; private bool _showSearchButton = false; - - /// - /// 获得属性方法 - /// - /// } diff --git a/src/BootstrapBlazor.Server/Components/Samples/SelectGenerics.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/SelectGenerics.razor.cs index 25e77f636d0..1d49e2c146f 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/SelectGenerics.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/SelectGenerics.razor.cs @@ -303,9 +303,4 @@ private EventItem[] GetEvents() => Type = "Func>" } ]; - - /// - /// 获得属性方法 - /// - /// } diff --git a/src/BootstrapBlazor.Server/Components/Samples/SelectTables.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/SelectTables.razor.cs index 4d87a86e4af..74eec594582 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/SelectTables.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/SelectTables.razor.cs @@ -92,9 +92,4 @@ class SelectTableMode [Required] public Foo? Foo { get; set; } } - - /// - /// 获得属性方法 - /// - /// } diff --git a/src/BootstrapBlazor.Server/Components/Samples/Selects.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Selects.razor.cs index f1fbe7b970b..c3f8f9a0c08 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Selects.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Selects.razor.cs @@ -299,9 +299,4 @@ private EventItem[] GetEvents() => Type = "Func>" } ]; - - /// - /// 获得属性方法 - /// - /// } diff --git a/src/BootstrapBlazor.Server/Components/Samples/SignaturePads.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/SignaturePads.razor.cs index 0c9d18508ba..d1a7626b64c 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/SignaturePads.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/SignaturePads.razor.cs @@ -45,9 +45,4 @@ private Task OnResult3(string result) StateHasChanged(); return Task.CompletedTask; } - - /// - /// 获得属性方法 - /// - /// } diff --git a/src/BootstrapBlazor.Server/Components/Samples/Skeletons.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Skeletons.razor.cs index 99cbaa07567..c0545763a12 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Skeletons.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Skeletons.razor.cs @@ -10,8 +10,4 @@ namespace BootstrapBlazor.Server.Components.Samples; /// public partial class Skeletons { - /// - /// 获得属性方法 - /// - /// } diff --git a/src/BootstrapBlazor.Server/Components/Samples/SlideButtons.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/SlideButtons.razor.cs index 8ae19077711..c64465103df 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/SlideButtons.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/SlideButtons.razor.cs @@ -26,9 +26,4 @@ private Task OnClickPlacement(Placement placement) } private CheckboxState CheckState(string state) => Placement.ToDescriptionString() == state ? CheckboxState.Checked : CheckboxState.UnChecked; - - /// - /// GetAttributes - /// - /// } diff --git a/src/BootstrapBlazor.Server/Components/Samples/Sliders.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Sliders.razor.cs index 79c9f1ac68b..3e510c72e4c 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Sliders.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Sliders.razor.cs @@ -42,12 +42,6 @@ private Task OnRangeSliderValueChanged(double value) Logger.Log($"RangeSlider: Bind Value: {value}"); return Task.CompletedTask; } - - /// - /// 获得属性方法 - /// - /// - /// /// 获得事件方法 /// diff --git a/src/BootstrapBlazor.Server/Components/Samples/Speeches/SpeechWaves.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Speeches/SpeechWaves.razor.cs index 04ea24947a9..b2e18a79f16 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Speeches/SpeechWaves.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Speeches/SpeechWaves.razor.cs @@ -18,9 +18,4 @@ private void OnClickShow() { IsShow = !IsShow; } - - /// - /// 获得属性方法 - /// - /// } diff --git a/src/BootstrapBlazor.Server/Components/Samples/Splits.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Splits.razor.cs index bd734da569d..a402f42cb18 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Splits.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Splits.razor.cs @@ -55,9 +55,4 @@ private Task OnResizedAsync(SplitterResizedEventArgs args) private Split Split1 = default!; private Task OnSetLeft(string leftWidth) => Split1.SetLeftWidth(leftWidth); - - /// - /// 获得属性方法 - /// - /// } diff --git a/src/BootstrapBlazor.Server/Components/Samples/SweetAlerts.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/SweetAlerts.razor.cs index 1ee7fffeeea..1e643c8e872 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/SweetAlerts.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/SweetAlerts.razor.cs @@ -118,9 +118,4 @@ private async Task ShowAutoCloseSwal() }; await SwalService.Show(op); } - - /// - /// GetAttributes - /// - /// } diff --git a/src/BootstrapBlazor.Server/Components/Samples/SwitchButtons.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/SwitchButtons.razor.cs index e8c8b8040c5..f62eed1c419 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/SwitchButtons.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/SwitchButtons.razor.cs @@ -19,9 +19,4 @@ private void OnClick() { Logger.Log("Clicked"); } - - /// - /// 获得属性方法 - /// - /// } diff --git a/src/BootstrapBlazor.Server/Components/Samples/Switches.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Switches.razor.cs index 2ae862b9a5b..6f33ac5b334 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Switches.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Switches.razor.cs @@ -32,12 +32,6 @@ private class Foo } private Foo Model { get; set; } = new Foo(); - - /// - /// 获得属性方法 - /// - /// - /// /// 获得事件方法 /// diff --git a/src/BootstrapBlazor.Server/Components/Samples/Tabs.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Tabs.razor.cs index 51e57e95f90..5c8d64a8b64 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Tabs.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Tabs.razor.cs @@ -162,12 +162,6 @@ private Task OnSetTitle(string text) StateHasChanged(); return Task.CompletedTask; } - - /// - /// 获得属性方法 - /// - /// - /// /// 获得方法 /// diff --git a/src/BootstrapBlazor.Server/Components/Samples/Tags.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Tags.razor.cs index 072731c61b3..787ff5c10ef 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Tags.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Tags.razor.cs @@ -32,9 +32,4 @@ private EventItem[] GetEvents() => Type ="EventCallback" } ]; - - /// - /// 获得属性方法 - /// - /// } diff --git a/src/BootstrapBlazor.Server/Components/Samples/Timelines.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Timelines.razor.cs index 24479bbe4e4..a90f2ca2ad5 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Timelines.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Timelines.razor.cs @@ -181,12 +181,6 @@ protected override async Task OnInitializedAsync() new("2", Localizer["TimelinesSelectedItem2"]) }; } - - /// - /// 获得属性方法 - /// - /// - /// /// 获得属性方法 /// diff --git a/src/BootstrapBlazor.Server/Components/Samples/Toggles.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Toggles.razor.cs index 23df0b42037..63b673251ff 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Toggles.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Toggles.razor.cs @@ -43,9 +43,4 @@ private EventItem[] GetEvents() => Type = "EventCallback" } ]; - - /// - /// 获得属性方法 - /// - /// } diff --git a/src/BootstrapBlazor.Server/Components/Samples/Tooltips.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Tooltips.razor.cs index ca0274194e4..d51ff51707d 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Tooltips.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Tooltips.razor.cs @@ -29,11 +29,6 @@ private async Task ToggleShow() await _tooltip.Toggle(); } } - - /// - /// 获得属性方法 - /// - /// protected AttributeItem[] GetAttributes() => [ new() { diff --git a/src/BootstrapBlazor.Server/Components/Samples/Topologies.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Topologies.razor.cs index 7219c52b3ed..acafe873551 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Topologies.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Topologies.razor.cs @@ -80,9 +80,4 @@ private async Task OnBeforePushData() // 数据订阅 DataService.OnDataChange = data => TopologyElement.PushData(data); } - - /// - /// 获得属性方法 - /// - /// } diff --git a/src/BootstrapBlazor.Server/Components/Samples/Transfers.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Transfers.razor.cs index fcd1e272dd7..240d560da03 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Transfers.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Transfers.razor.cs @@ -106,12 +106,6 @@ private void OnAddItem() "8" => "bg-warning text-white", _ => null }; - - /// - /// 获得属性方法 - /// - /// - /// /// 获得事件方法 /// diff --git a/src/BootstrapBlazor.Server/Components/Samples/Translators.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Translators.razor.cs index 6181cc431f9..2000aecfe70 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Translators.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Translators.razor.cs @@ -48,11 +48,6 @@ private static string FormatResult(TranslationText translation) var culture = new CultureInfo(translation.TargetLanguage); return $"{culture.NativeName}: {translation.Text}"; } - - /// - /// 获得属性方法 - /// - /// protected MethodItem[] GetMethods() => [ new() diff --git a/src/BootstrapBlazor.Server/Components/Samples/TreeViews.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/TreeViews.razor.cs index e1169e9f5ae..221a8da205e 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/TreeViews.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/TreeViews.razor.cs @@ -307,12 +307,6 @@ private Task OnUpdateCallbackAsync(TreeFoo foo, string? text) foo.Text = text; return Task.FromResult(true); } - - /// - /// 获得属性方法 - /// - /// - private static AttributeItem[] GetTreeItemAttributes() => [ new() diff --git a/src/BootstrapBlazor.Server/Components/Samples/VideoPlayers.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/VideoPlayers.razor.cs index 0aeebe5765c..d0c9fb47172 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/VideoPlayers.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/VideoPlayers.razor.cs @@ -57,9 +57,4 @@ private async Task Apply() await Player.SetPoster("//vjs.zencdn.net/v/oceans.png"); await Player.Reload(Url, MineType); } - - /// - /// 获得属性方法 - /// - /// } From 70bc2120596fc564cdc5ab53c61f0cdcd10fe076 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Sat, 24 Jan 2026 17:05:26 +0800 Subject: [PATCH 4/9] =?UTF-8?q?refactor:=20=E7=A7=BB=E9=99=A4=E4=B8=8D?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E7=9A=84=E7=A7=81=E6=9C=89=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/BootstrapBlazor.Server/Components/Samples/EmbedPdfs.razor.cs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/BootstrapBlazor.Server/Components/Samples/EmbedPdfs.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/EmbedPdfs.razor.cs index b17b152930b..e79834850f0 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/EmbedPdfs.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/EmbedPdfs.razor.cs @@ -13,7 +13,6 @@ public partial class EmbedPdfs private EmbedPDFTheme _theme = EmbedPDFTheme.System; private EmbedPDFScrollStrategy _strategy = EmbedPDFScrollStrategy.Vertical; private string _url = "./samples/sample.pdf"; - private string _streamFileName = ""; private string _language = ""; private List _languages = new List() { From 913a09ac467dfdaa510519e3f658d7921ed14d76 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Sat, 24 Jan 2026 17:05:42 +0800 Subject: [PATCH 5/9] =?UTF-8?q?refactor:=20=E6=9B=B4=E6=94=B9=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E4=B8=BA=E5=8F=AF=E4=B8=BA=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/BootstrapBlazor.Server/Data/AttributeItem.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/BootstrapBlazor.Server/Data/AttributeItem.cs b/src/BootstrapBlazor.Server/Data/AttributeItem.cs index aa5e44fc78b..4d8af99c410 100644 --- a/src/BootstrapBlazor.Server/Data/AttributeItem.cs +++ b/src/BootstrapBlazor.Server/Data/AttributeItem.cs @@ -13,32 +13,32 @@ public class AttributeItem /// /// 获得/设置 参数 /// - public string Name { get; set; } = ""; + public string? Name { get; set; } /// /// 获得/设置 说明 /// - public string Description { get; set; } = ""; + public string? Description { get; set; } /// /// 获得/设置 类型 /// - public string Type { get; set; } = ""; + public string? Type { get; set; } /// /// 获得/设置 可选值 /// - public string ValueList { get; set; } = ""; + public string? ValueList { get; set; } /// /// 获得/设置 版本 /// - public string Version { get; set; } = "10.2.2"; + public string? Version { get; set; } /// /// 获得/设置 默认值 /// - public string DefaultValue { get; set; } = ""; + public string? DefaultValue { get; set; } /// /// 获得/设置 是否已弃用 From b054ce7fe38d38c7e8e416db1b0cdaa3eff34526 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Sat, 24 Jan 2026 17:06:11 +0800 Subject: [PATCH 6/9] =?UTF-8?q?refactor:=20=E5=A2=9E=E5=8A=A0=20BootstrapB?= =?UTF-8?q?lazor=20=E6=B3=A8=E9=87=8A=E6=96=87=E6=A1=A3=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Services/ComponentAttributeCacheService.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/BootstrapBlazor.Server/Services/ComponentAttributeCacheService.cs b/src/BootstrapBlazor.Server/Services/ComponentAttributeCacheService.cs index 90237440886..33377fc87d5 100644 --- a/src/BootstrapBlazor.Server/Services/ComponentAttributeCacheService.cs +++ b/src/BootstrapBlazor.Server/Services/ComponentAttributeCacheService.cs @@ -18,6 +18,8 @@ public static class ComponentAttributeCacheService { private static readonly ConcurrentDictionary> _cache = new(); + private static XDocument? _xmlDoc; + /// /// 通过组件类型获取组件的 AttributeItem 列表 /// @@ -43,7 +45,9 @@ private static List GetAttributeCore(Type type) .ToArray(); } - var xmlDoc = GetXmlDocumentation(type.Assembly); + // 获得 BootstrapBlazor 程序集 xml 文档 + _xmlDoc ??= GetXmlDocumentation(type.Assembly); + return properties.Select(property => new AttributeItem { Name = property.Name, From 9abb421a33ef1a856d24bec500e3f28a4115b8de Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Sat, 24 Jan 2026 17:51:54 +0800 Subject: [PATCH 7/9] =?UTF-8?q?refactor:=20=E7=A7=BB=E9=99=A4=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Services/ComponentAttributeCacheService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/BootstrapBlazor.Server/Services/ComponentAttributeCacheService.cs b/src/BootstrapBlazor.Server/Services/ComponentAttributeCacheService.cs index 33377fc87d5..974bd2aab51 100644 --- a/src/BootstrapBlazor.Server/Services/ComponentAttributeCacheService.cs +++ b/src/BootstrapBlazor.Server/Services/ComponentAttributeCacheService.cs @@ -53,7 +53,7 @@ private static List GetAttributeCore(Type type) Name = property.Name, Type = GetFriendlyTypeName(property.PropertyType), Description = GetSummary(xmlDoc, property) ?? "", - Version = GetVersion(xmlDoc, property) ?? "10.0.0", + Version = GetVersion(xmlDoc, property), IsObsolete = property.GetCustomAttribute() != null }).OrderBy(i => i.Name).ToList(); } From 955be1770b4ab45f30acd584cb90d308c4101193 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Sat, 24 Jan 2026 17:56:29 +0800 Subject: [PATCH 8/9] =?UTF-8?q?refactor:=20=E6=94=AF=E6=8C=81=E6=89=A9?= =?UTF-8?q?=E5=B1=95=E7=BB=84=E4=BB=B6=E5=8C=85=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ComponentAttributeCacheService.cs | 23 ++++++++++++------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/src/BootstrapBlazor.Server/Services/ComponentAttributeCacheService.cs b/src/BootstrapBlazor.Server/Services/ComponentAttributeCacheService.cs index 974bd2aab51..a68a022db28 100644 --- a/src/BootstrapBlazor.Server/Services/ComponentAttributeCacheService.cs +++ b/src/BootstrapBlazor.Server/Services/ComponentAttributeCacheService.cs @@ -46,7 +46,13 @@ private static List GetAttributeCore(Type type) } // 获得 BootstrapBlazor 程序集 xml 文档 - _xmlDoc ??= GetXmlDocumentation(type.Assembly); + _xmlDoc ??= GetXmlDocumentation(typeof(BootstrapBlazorRoot).Assembly); + XDocument? xmlDoc = null; + if (type.Assembly.GetName().Name != "BootstrapBlazor") + { + // 扩展组件包 + xmlDoc = GetXmlDocumentation(type.Assembly); + } return properties.Select(property => new AttributeItem { @@ -63,18 +69,19 @@ private static List GetAttributeCore(Type type) /// private static string? GetSummary(XDocument? xmlDoc, PropertyInfo property) { - if (xmlDoc == null) return null; - var type = property.DeclaringType ?? property.PropertyType; - var typeName = type.FullName ?? $"BootstrapBlazor.Components.{type.Name}"; + var typeName = $"BootstrapBlazor.Components.{type.Name}"; var memberName = $"P:{typeName}.{property.Name}"; var summaryElement = FindSummaryElement(xmlDoc, memberName); return summaryElement == null ? null : GetLocalizedSummary(summaryElement); } - private static XElement? FindSummaryElement(XDocument xmlDoc, string memberName) + private static XElement? FindSummaryElement(XDocument? xmlDoc, string memberName) { - var memberElement = xmlDoc.Descendants("member") + // 如果 xmlDoc 为空表示为 BootstrapBlazor 组件 + var memberElement = xmlDoc?.Descendants("member") + .FirstOrDefault(x => x.Attribute("name")?.Value == memberName) + ?? _xmlDoc?.Descendants("member") .FirstOrDefault(x => x.Attribute("name")?.Value == memberName); var summaryElement = memberElement?.Element("summary"); @@ -83,8 +90,8 @@ private static List GetAttributeCore(Type type) return null; } - var doc = summaryElement.Element("inheritdoc")?.Attribute("cref")?.Value; - return doc != null ? FindSummaryElement(xmlDoc, doc) : summaryElement; + var v = summaryElement.Element("inheritdoc")?.Attribute("cref")?.Value; + return v != null ? FindSummaryElement(xmlDoc, v) : summaryElement; } private static string? GetLocalizedSummary(XElement? summaryElement) From 8f69aae3a88964a171ad962bda58d0fdef5d435a Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Sat, 24 Jan 2026 18:08:16 +0800 Subject: [PATCH 9/9] =?UTF-8?q?refactor:=20=E4=B8=B4=E6=97=B6=E6=8F=90?= =?UTF-8?q?=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/EditorForm/EditorItem.cs | 101 +++++++++++------- .../Components/EditorForm/IEditorItem.cs | 68 ++++++------ 2 files changed, 97 insertions(+), 72 deletions(-) diff --git a/src/BootstrapBlazor/Components/EditorForm/EditorItem.cs b/src/BootstrapBlazor/Components/EditorForm/EditorItem.cs index 3f565a73513..8b4a130b23e 100644 --- a/src/BootstrapBlazor/Components/EditorForm/EditorItem.cs +++ b/src/BootstrapBlazor/Components/EditorForm/EditorItem.cs @@ -9,40 +9,41 @@ namespace BootstrapBlazor.Components; /// -/// EditorItem component +/// EditorItem 组件 /// EditorItem component /// public class EditorItem : ComponentBase, IEditorItem { /// /// 获得/设置 绑定字段值 - /// Gets or sets Field Value + /// Gets or sets the bound field value /// [Parameter] public TValue? Field { get; set; } /// /// 获得/设置 绑定字段值变化回调委托 - /// Gets or sets Field Value Changed Callback + /// Gets or sets the bound field value changed callback /// [Parameter] public EventCallback FieldChanged { get; set; } /// - /// + /// 获得/设置 属性类型 + /// Gets or sets the property type /// [NotNull] public Type? PropertyType { get; set; } /// /// 获得/设置 ValueExpression 表达式 - /// Gets or sets ValueExpression + /// Gets or sets the value expression /// [Parameter] public Expression>? FieldExpression { get; set; } /// - /// + /// /// [Parameter] [Obsolete("已弃用,是否可编辑改用 Readonly 参数,是否可见改用 Ignore 参数; Deprecated If it is editable, use the Readonly parameter. If it is visible, use the Ignore parameter.")] @@ -50,7 +51,8 @@ public class EditorItem : ComponentBase, IEditorItem public bool Editable { get; set; } = true; /// - /// + /// 获得/设置 是否忽略显示 + /// Gets or sets whether the field is ignored /// [Parameter] public bool? Ignore { get; set; } @@ -62,55 +64,64 @@ public class EditorItem : ComponentBase, IEditorItem public bool? Readonly { get; set; } /// - /// + /// 获得/设置 是否必填 + /// Gets or sets whether the field is required /// [Parameter] public bool? Required { get; set; } /// - /// + /// 获得/设置 必填错误信息 + /// Gets or sets the required error message /// [Parameter] public string? RequiredErrorMessage { get; set; } /// - /// + /// 获得/设置 是否跳过校验 + /// Gets or sets whether to skip validation /// [Parameter] public bool SkipValidate { get; set; } /// - /// + /// 获得/设置 是否显示标签提示 + /// Gets or sets whether to show the label tooltip /// [Parameter] public bool? ShowLabelTooltip { get; set; } /// - /// + /// 获得/设置 显示文本 + /// Gets or sets the display text /// [Parameter] public string? Text { get; set; } /// - /// + /// 获得/设置 步长 + /// Gets or sets the step value /// [Parameter] public string? Step { get; set; } /// - /// + /// 获得/设置 行数 + /// Gets or sets the row count /// [Parameter] public int Rows { get; set; } /// - /// + /// 获得/设置 列数 + /// Gets or sets the column count /// [Parameter] public int Cols { get; set; } /// - /// + /// 获得/设置 编辑模板 + /// Gets or sets the edit template /// [Parameter] public RenderFragment? EditTemplate { get; set; } @@ -130,49 +141,57 @@ public class EditorItem : ComponentBase, IEditorItem } /// - /// + /// 获得/设置 组件类型 + /// Gets or sets the component type /// [Parameter] public Type? ComponentType { get; set; } /// - /// + /// 获得/设置 组件参数集合 + /// Gets or sets the component parameters /// [Parameter] public IEnumerable>? ComponentParameters { get; set; } /// - /// + /// 获得/设置 占位符 + /// Gets or sets the placeholder text /// [Parameter] public string? PlaceHolder { get; set; } /// - /// + /// 获得/设置 显示顺序 + /// Gets or sets the display order /// [Parameter] public int Order { get; set; } /// - /// + /// 获得/设置 绑定数据集合 + /// Gets or sets the bound data items /// [Parameter] public IEnumerable? Items { get; set; } /// - /// + /// 获得/设置 Lookup 数据集合 + /// Gets or sets the lookup data items /// [Parameter] public IEnumerable? Lookup { get; set; } /// - /// + /// 获得/设置 选择时是否显示搜索 + /// Gets or sets whether to show search when selecting /// [Parameter] public bool ShowSearchWhenSelect { get; set; } /// - /// + /// 获得/设置 选择时是否固定搜索 + /// Gets or sets whether the search is fixed when selecting /// [Parameter] [Obsolete("已弃用,请删除;Deprecated, please delete")] @@ -180,37 +199,43 @@ public class EditorItem : ComponentBase, IEditorItem public bool IsFixedSearchWhenSelect { get; set; } /// - /// + /// 获得/设置 是否显示为气泡 + /// Gets or sets whether to show as a popover /// [Parameter] public bool IsPopover { get; set; } /// - /// + /// 获得/设置 Lookup 比较方式 + /// Gets or sets the lookup string comparison /// [Parameter] public StringComparison LookupStringComparison { get; set; } = StringComparison.OrdinalIgnoreCase; /// - /// + /// 获得/设置 Lookup 服务键 + /// Gets or sets the lookup service key /// [Parameter] public string? LookupServiceKey { get; set; } /// - /// + /// 获得/设置 Lookup 服务数据 + /// Gets or sets the lookup service data /// [Parameter] public object? LookupServiceData { get; set; } /// - /// + /// 获得/设置 Lookup 服务实例 + /// Gets or sets the lookup service instance /// [Parameter] public ILookupService? LookupService { get; set; } /// - /// + /// 获得/设置 校验规则集合 + /// Gets or sets the validation rules /// [Parameter] public List? ValidateRules { get; set; } @@ -219,13 +244,15 @@ public class EditorItem : ComponentBase, IEditorItem private List? EditorItems { get; set; } /// - /// + /// 获得/设置 分组名称 + /// Gets or sets the group name /// [Parameter] public string? GroupName { get; set; } /// - /// + /// 获得/设置 分组顺序 + /// Gets or sets the group order /// [Parameter] public int GroupOrder { get; set; } @@ -243,22 +270,20 @@ protected override void OnInitialized() _fieldIdentifier = FieldIdentifier.Create(FieldExpression); } - // 获取模型属性定义类型 - // Get model property definition type PropertyType = typeof(TValue); } private FieldIdentifier? _fieldIdentifier; /// - /// 获得 the 显示 name for the field. - /// Gets the display name for the field. + /// 获得显示名称 + /// Gets the display name /// public virtual string GetDisplayName() => Text ?? _fieldIdentifier?.GetDisplayName() ?? string.Empty; /// - /// 获得 the field name for the field. - /// Gets the field name for the field. + /// 获得字段名称 + /// Gets the field name /// public string GetFieldName() => _fieldIdentifier?.FieldName ?? string.Empty; } diff --git a/src/BootstrapBlazor/Components/EditorForm/IEditorItem.cs b/src/BootstrapBlazor/Components/EditorForm/IEditorItem.cs index afdc959752e..62e3c9de79b 100644 --- a/src/BootstrapBlazor/Components/EditorForm/IEditorItem.cs +++ b/src/BootstrapBlazor/Components/EditorForm/IEditorItem.cs @@ -6,166 +6,166 @@ namespace BootstrapBlazor.Components; /// -/// IEditorItem interface -/// IEditorItem interface +/// EditorItem 接口 +/// EditorItem interface /// public interface IEditorItem : ILookup { /// - /// 获得/设置 the 类型 of the bound column. - /// Gets or sets the type of the bound column. + /// 获得 绑定列的类型。 + /// Gets the type of the bound column. /// Type PropertyType { get; } /// - /// 获得/设置 是否 the current edit item is editable. 默认为 true. + /// 获得/设置 是否可编辑,默认为 true。 /// Gets or sets whether the current edit item is editable. Default is true. /// [Obsolete("Deprecated. Use the Visible parameter. IsVisibleWhenAdd should be used when creating a new one, and IsVisibleWhenEdit should be used when editing. Use the Readonly parameter for read-only. IsReadonlyWhenAdd should be used when creating a new one, and IsReadonlyWhenEdit should be used when editing.")] bool Editable { get; set; } /// - /// 获得/设置 是否 the current edit item is read-only. 默认为 false. + /// 获得/设置 是否为只读,默认为 false。 /// Gets or sets whether the current edit item is read-only. Default is false. /// bool? Readonly { get; set; } /// - /// 获得/设置 是否 the current edit item is ignored. 默认为 false. When set to true, the UI will not generate this column. - /// Gets or sets whether the current edit item is ignored. Default is false. When set to true, the UI will not generate this column. + /// 获得/设置 是否忽略当前编辑项,默认为 false,设置为 true 时 UI 不生成此列。 + /// Gets or sets whether the current edit item is ignored. Default is false. When true, the UI will not generate this column. /// bool? Ignore { get; set; } /// - /// 获得/设置 是否 to skip validation. 默认为 false. + /// 获得/设置 是否跳过校验,默认为 false。 /// Gets or sets whether to skip validation. Default is false. /// bool SkipValidate { get; set; } /// - /// 获得/设置 the header 显示 text. + /// 获得/设置 表头显示文本。 /// Gets or sets the header display text. /// string? Text { get; set; } /// - /// 获得/设置 是否 to show label tooltip. Mostly used when the label text is too long and gets truncated. 默认为 null. - /// Gets or sets whether to show label tooltip. Mostly used when the label text is too long and gets truncated. Default is null. + /// 获得/设置 是否显示标签提示,常用于标签文本过长被截断时,默认为 null。 + /// Gets or sets whether to show the label tooltip, usually when the label text is too long and truncated. Default is null. /// bool? ShowLabelTooltip { get; set; } /// - /// 获得/设置 the placeholder text. 默认为 null. + /// 获得/设置 占位符文本,默认为 null。 /// Gets or sets the placeholder text. Default is null. /// string? PlaceHolder { get; set; } /// - /// 获得/设置 the additional 数据 source, generally used for components like Select or CheckboxList that require additional configuration. + /// 获得/设置 附加数据源,通常用于 Select 或 CheckboxList 等需要额外配置的组件。 /// Gets or sets the additional data source, generally used for components like Select or CheckboxList that require additional configuration. /// IEnumerable? Items { get; set; } /// - /// 获得/设置 the step. 默认为 null. When set to "any", validation is ignored. + /// 获得/设置 步长,默认为 null,设置为 "any" 时忽略校验。 /// Gets or sets the step. Default is null. When set to "any", validation is ignored. /// string? Step { get; set; } /// - /// 获得/设置 the number of rows for a Textarea. 默认为 0. + /// 获得/设置 Textarea 的行数,默认为 0。 /// Gets or sets the number of rows for a Textarea. Default is 0. /// int Rows { get; set; } /// - /// 获得/设置 the field expand columns. 默认为 0. - /// Gets or sets the field expand columns. Default is 0. + /// 获得/设置 字段的列跨度,默认为 0。 + /// Gets or sets the field column span. Default is 0. /// int Cols { get; set; } /// - /// 获得/设置 the edit 模板. + /// 获得/设置 编辑模板。 /// Gets or sets the edit template. /// RenderFragment? EditTemplate { get; set; } /// - /// 获得/设置 the component 类型. 默认为 null. + /// 获得/设置 组件类型,默认为 null。 /// Gets or sets the component type. Default is null. /// Type? ComponentType { get; set; } /// - /// 获得/设置 the custom component parameters. 默认为 null. + /// 获得/设置 自定义组件参数,默认为 null。 /// Gets or sets the custom component parameters. Default is null. /// IEnumerable>? ComponentParameters { get; set; } /// - /// 获得/设置 是否 to show the search bar in the dropdown list. 默认为 false. + /// 获得/设置 是否在下拉列表中显示搜索框,默认为 false。 /// Gets or sets whether to show the search bar in the dropdown list. Default is false. /// bool ShowSearchWhenSelect { get; set; } /// - /// 获得/设置 是否 to allow fixed search box within dropdown. 默认为 false. - /// Gets or sets whether to allow fixed search box within dropdown. Default is false. + /// 获得/设置 是否在下拉中使用固定搜索框,默认为 false。 + /// Gets or sets whether to allow a fixed search box within the dropdown. Default is false. /// [Obsolete("已弃用,请删除;Deprecated, please delete")] [ExcludeFromCodeCoverage] bool IsFixedSearchWhenSelect { get; set; } /// - /// 获得/设置 是否 to use Popover to render the dropdown list. 默认为 false. + /// 获得/设置 是否使用 Popover 渲染下拉列表,默认为 false。 /// Gets or sets whether to use Popover to render the dropdown list. Default is false. /// bool IsPopover { get; set; } /// - /// 获得/设置 the custom validation rules. + /// 获得/设置 自定义验证规则。 /// Gets or sets the custom validation rules. /// List? ValidateRules { get; set; } /// - /// 获得 the 显示 name of the bound field. + /// 获得 绑定字段的显示名称。 /// Gets the display name of the bound field. /// string GetDisplayName(); /// - /// 获得 the field information of the bound field. - /// Gets the field information of the bound field. + /// 获得 绑定字段的字段名。 + /// Gets the field name of the bound field. /// string GetFieldName(); /// - /// 获得/设置 the order number. + /// 获得/设置 顺序号。 /// Gets or sets the order number. /// int Order { get; set; } /// - /// 获得/设置 the group name of the current 属性. + /// 获得/设置 当前属性的分组名称。 /// Gets or sets the group name of the current property. /// string? GroupName { get; set; } /// - /// 获得/设置 the group order of the current 属性. 默认为 0. + /// 获得/设置 当前属性的分组顺序,默认为 0。 /// Gets or sets the group order of the current property. Default is 0. /// int GroupOrder { get; set; } /// - /// 获得/设置 是否 the field is required. 默认为 null. + /// 获得/设置 是否为必填项,默认为 null。 /// Gets or sets whether the field is required. Default is null. /// bool? Required { get; set; } /// - /// 获得/设置 the error message when the required field is missing. 默认为 null. + /// 获得/设置 必填项缺失时的错误消息,默认为 null。 /// Gets or sets the error message when the required field is missing. Default is null. /// string? RequiredErrorMessage { get; set; }