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