diff --git a/src/BootstrapBlazor.Server/Components/Components/AttributeTable.razor b/src/BootstrapBlazor.Server/Components/Components/AttributeTable.razor index adeda25536b..ad87245079b 100644 --- a/src/BootstrapBlazor.Server/Components/Components/AttributeTable.razor +++ b/src/BootstrapBlazor.Server/Components/Components/AttributeTable.razor @@ -1,7 +1,13 @@
-

@Title

+

+ @Title + @if (Type != null) + { + Automatically generated + } +

- +
diff --git a/src/BootstrapBlazor.Server/Components/Components/AttributeTable.razor.css b/src/BootstrapBlazor.Server/Components/Components/AttributeTable.razor.css new file mode 100644 index 00000000000..de9dd927f86 --- /dev/null +++ b/src/BootstrapBlazor.Server/Components/Components/AttributeTable.razor.css @@ -0,0 +1,12 @@ +.table-attr { + margin-top: 1rem; +} + +.table-attr-desc { + display: flex; + justify-content: space-between; +} + +.table-attr-mark { + font-size: 90%; +} diff --git a/src/BootstrapBlazor.Server/Components/Samples/Charts/Index.razor b/src/BootstrapBlazor.Server/Components/Samples/Charts/Index.razor index 6ebf9d99748..db8a4d1a410 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Charts/Index.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Charts/Index.razor @@ -1,4 +1,4 @@ -@page "/chart/index" +@page "/chart/index" @layout MainLayout @inject IStringLocalizer Localizer @@ -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..3cca87fab2c 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Charts/Index.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Charts/Index.razor.cs @@ -1,4 +1,4 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the Apache 2.0 License // See the LICENSE file in the project root for more information. // Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone @@ -10,146 +10,6 @@ namespace BootstrapBlazor.Server.Components.Samples.Charts; /// 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/Table/Tables.razor b/src/BootstrapBlazor.Server/Components/Samples/Table/Tables.razor index 28d8edaff8d..2b912b7cc24 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Table/Tables.razor +++ b/src/BootstrapBlazor.Server/Components/Samples/Table/Tables.razor @@ -111,8 +111,4 @@
- - - - - + diff --git a/src/BootstrapBlazor.Server/Components/Samples/Table/Tables.razor.cs b/src/BootstrapBlazor.Server/Components/Samples/Table/Tables.razor.cs index ffa49a9b151..c675d3eed47 100644 --- a/src/BootstrapBlazor.Server/Components/Samples/Table/Tables.razor.cs +++ b/src/BootstrapBlazor.Server/Components/Samples/Table/Tables.razor.cs @@ -349,1017 +349,4 @@ private AttributeItem[] GetTableColumnAttributes() => DefaultValue = "false" } ]; - - private AttributeItem[] GetAttributes() => - [ - new() - { - Name = "TableSize", - Description = Localizer["TableSizeAttr"], - Type = "TableSize", - ValueList = "Normal|Compact", - DefaultValue = "Normal" - }, - new() - { - Name = "HeaderStyle", - Description = Localizer["HeaderStyleAttr"], - Type = "TableHeaderStyle", - ValueList = "None|Light|Dark", - DefaultValue = "None" - }, - new() - { - Name = "HeaderTextWrap", - Description = Localizer["HeaderTextWrap"], - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = "Height", - Description = Localizer["HeightAttr"], - Type = "int", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "PageItems", - Description = Localizer["PageItemsAttr"], - Type = "int", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "AutoRefreshInterval", - Description = Localizer["AutoRefreshIntervalAttr"], - Type = "int", - ValueList = " — ", - DefaultValue = "2000" - }, - new() - { - Name = "ExtendButtonColumnWidth", - Description = Localizer["ExtendButtonColumnWidthAttr"], - Type = "int", - ValueList = " — ", - DefaultValue = "130" - }, - new() - { - Name = "RenderModeResponsiveWidth", - Description = Localizer["RenderModeResponsiveWidthAttr"], - Type = "int", - ValueList = " — ", - DefaultValue = "768" - }, - new() - { - Name = "IndentSize", - Description = Localizer["IndentSizeAttr"], - Type = "int", - ValueList = " — ", - DefaultValue = "16" - }, - new() - { - Name = "Items", - Description = Localizer["ItemsAttr"], - Type = "IEnumerable", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "PageItemsSource", - Description = Localizer["PageItemsSourceAttr"], - Type = "IEnumerable", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "EditMode", - Description = Localizer["EditModeAttr"], - Type = "EditMode", - ValueList = "Popup|Inline|InCell", - DefaultValue = "Popup" - }, - new() - { - Name = "MultiHeaderTemplate", - Description = Localizer["MultiHeaderTemplateAttr"], - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "TableFooter", - Description = Localizer["TableFooterAttr"], - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "TableToolbarTemplate", - Description = Localizer["TableToolbarTemplateAttr"], - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "EditTemplate", - Description = Localizer["EditTemplateAttr"], - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "ShowAdvancedSearch", - Description = Localizer["ShowAdvancedSearchAttr"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "true" - }, - new() - { - Name = "SearchTemplate", - Description = Localizer["SearchTemplateAttr"], - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "BeforeRowButtonTemplate", - Description = Localizer["BeforeRowButtonTemplateAttr"], - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "RowButtonTemplate", - Description = Localizer["RowButtonTemplateAttr"], - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "DetailRowTemplate", - Description = Localizer["DetailRowTemplateAttr"], - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "IsAutoCollapsedToolbarButton", - Description = Localizer["IsAutoCollapsedToolbarButtonAttr"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "true" - }, - new() - { - Name = "IsBordered", - Description = Localizer["IsBorderedAttr"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = " — " - }, - new() - { - Name = "IsPagination", - Description = Localizer["IsPaginationAttr"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = " — " - }, - new() - { - Name = "ShowGotoNavigator", - Description = Localizer["ShowGotoNavigatorAttr"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "true" - }, - new() - { - Name = "GotoTemplate", - Description = Localizer["GotoTemplateAttr"], - Type = "RenderFragment?", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "GotoNavigatorLabelText", - Description = Localizer["GotoNavigatorLabelTextAttr"], - Type = "string?", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "ShowPageInfo", - Description = Localizer["ShowPageInfoAttr"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "true" - }, - new() - { - Name = "PageInfoTemplate", - Description = Localizer["PageInfoTemplateAttr"], - Type = "RenderFragment?", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "PageInfoText", - Description = Localizer["PageInfoTextAttr"], - Type = "string?", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "IsStriped", - Description = Localizer["IsStripedAttr"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = " — " - }, - new() - { - Name = "IsRendered", - Description = Localizer["IsRenderedAttr"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "false" - }, - new() - { - Name = "IsMultipleSelect", - Description = Localizer["IsMultipleSelectAttr"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "false" - }, - new() - { - Name = "IsAutoRefresh", - Description = Localizer["IsAutoRefreshAttr"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "false" - }, - new() - { - Name = "IsTree", - Description = Localizer["IsTreeAttr"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "false" - }, - new() - { - Name = "IsDetails", - Description = Localizer["IsDetailsAttr"], - Type = "boolean", - ValueList = "true / false / null", - DefaultValue = "null" - }, - new() - { - Name = nameof(Table.IsHideFooterWhenNoData), - Description = Localizer["IsHideFooterWhenNoDataAttr"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "false" - }, - new() - { - Name = nameof(Table.IsKeepSelectedRows), - Description = Localizer["IsKeepSelectedRowsAttr"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "false" - }, - new() - { - Name = nameof(Table.IsKeepSelectedRowAfterAdd), - Description = Localizer["IsKeepSelectedRowAfterAddAttr"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "false" - }, - new() - { - Name = "ClickToSelect", - Description = Localizer["ClickToSelectAttr"], - Type = "boolean", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = "ShowCheckboxText", - Description = Localizer["ShowCheckboxTextAttr"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = " — " - }, - new() - { - Name = "ShowFooter", - Description = Localizer["ShowFooterAttr"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "false" - }, - new() - { - Name = nameof(Table.ShowFilterHeader), - Description = Localizer["ShowFilterHeaderAttr"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "false" - }, - new() - { - Name = nameof(Table.ShowMultiFilterHeader), - Description = Localizer["ShowMultiFilterHeaderAttr"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "false" - }, - new() - { - Name = "ShowSearch", - Description = Localizer["ShowSearchAttr"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "false" - }, - new() - { - Name = "ShowSearchText", - Description = Localizer["ShowSearchTextAttr"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "true" - }, - new() - { - Name = "ShowSearchTextTooltip", - Description = Localizer["ShowSearchTextTooltipAttr"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "true" - }, - new() - { - Name = "ShowResetButton", - Description = Localizer["ShowResetButtonAttr"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "true" - }, - new() - { - Name = "ShowSearchButton", - Description = Localizer["ShowSearchButtonAttr"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "true" - }, - new() - { - Name = "SearchMode", - Description = Localizer["SearchModeAttr"], - Type = "SearchMode", - ValueList = "Popup / Top", - DefaultValue = "Popup" - }, - new() - { - Name = nameof(Table.CollapsedTopSearch), - Description = Localizer["CollapsedTopSearchAttr"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "false" - }, - new() - { - Name = "ShowToolbar", - Description = Localizer["ShowToolbarAttr"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "false" - }, - new() - { - Name = "ShowLineNo", - Description = Localizer["ShowLineNoAttr"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "false" - }, - new() - { - Name = "ShowDefaultButtons", - Description = Localizer["ShowDefaultButtonsAttr"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "true" - }, - new() - { - Name = "ShowAddButton", - Description = Localizer["ShowAddButtonAttr"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "true" - }, - new() - { - Name = "ShowEditButton", - Description = Localizer["ShowEditButtonAttr"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "true" - }, - new() - { - Name = "ShowEditButtonCallback", - Description = Localizer["ShowEditButtonCallbackAttr"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "true" - }, - new() - { - Name = "ShowDeleteButton", - Description = Localizer["ShowDeleteButtonAttr"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "true" - }, - new() - { - Name = "ShowDeleteButtonCallback", - Description = Localizer["ShowDeleteButtonCallbackAttr"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "true" - }, - new() - { - Name = "ShowExtendButtons", - Description = Localizer["ShowExtendButtonsAttr"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "false" - }, - new() - { - Name = nameof(Table.ShowExtendEditButton), - Description = Localizer["ShowExtendEditButtonAttr"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "true" - }, - new() - { - Name = nameof(Table.ShowExtendEditButtonCallback), - Description = Localizer["ShowExtendEditButtonCallbackAttr"], - Type = "Func", - ValueList = " - ", - DefaultValue = " - " - }, - new() - { - Name = nameof(Table.DisableExtendEditButton), - Description = Localizer["ShowExtendEditButtonAttr"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "true" - }, - new() - { - Name = nameof(Table.DisableExtendEditButtonCallback), - Description = Localizer["DisableExtendEditButtonCallbackAttr"], - Type = "Func", - ValueList = " - ", - DefaultValue = " - " - }, - new() - { - Name = nameof(Table.ShowExtendDeleteButton), - Description = Localizer["ShowExtendDeleteButtonAttr"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "true" - }, - new() - { - Name = nameof(Table.ShowExtendDeleteButtonCallback), - Description = Localizer["ShowExtendDeleteButtonCallbackAttr"], - Type = "Func", - ValueList = " - ", - DefaultValue = " - " - }, - new() - { - Name = nameof(Table.DisableExtendDeleteButton), - Description = Localizer["ShowExtendDeleteButtonAttr"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "true" - }, - new() - { - Name = nameof(Table.DisableExtendDeleteButtonCallback), - Description = Localizer["DisableExtendDeleteButtonCallbackAttr"], - Type = "Func", - ValueList = " - ", - DefaultValue = " - " - }, - new() - { - Name = nameof(Table.ShowUnsetGroupItemsOnTop), - Description = Localizer["ShowUnsetGroupItemsOnTopAttr"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "false" - }, - new() - { - Name = "ShowSkeleton", - Description = Localizer["ShowSkeletonAttr"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "false" - }, - new() - { - Name = "ShowLoadingInFirstRender", - Description = Localizer["ShowLoadingInFirstRenderAttr"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "true" - }, - new() - { - Name = "ShowColumnList", - Description = Localizer["ShowColumnListAttr"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "false" - }, - new() - { - Name = "OnColumnVisibleChanged", - Description = Localizer["OnColumnVisibleChangedAttr"], - Type = "Func", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "ShowEmpty", - Description = Localizer["ShowEmptyAttr"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "false" - }, - new() - { - Name = "ShowToastAfterSaveOrDeleteModel", - Description = Localizer["ShowToastAfterSaveOrDeleteModelAttr"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "true" - }, - new() - { - Name = "ShowToastBeforeExport", - Description = Localizer["ShowToastBeforeExport"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "true" - }, - new() - { - Name = "ShowToastAfterExport", - Description = Localizer["ShowToastAfterExport"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "true" - }, - new() - { - Name = "BeforeExportCallback", - Description = Localizer["BeforeExportCallback"], - Type = "Func", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "AfterExportCallback", - Description = Localizer["AfterExportCallback"], - Type = "Func", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "TreeIcon", - Description = Localizer["TreeIconAttr"], - Type = "string", - ValueList = " — ", - DefaultValue = "fa-caret-right" - }, - new() - { - Name = "ScrollingDialogContent", - Description = Localizer["ScrollingDialogContentAttr"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "false" - }, - new() - { - Name = "FixedExtendButtonsColumn", - Description = Localizer["FixedExtendButtonsColumnAttr"], - Type = "boolean", - ValueList = "true / false", - DefaultValue = "false" - }, - new() - { - Name = "OnQueryAsync", - Description = Localizer["OnQueryAsyncAttr"], - Type = "Func>>", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "OnAddAsync", - Description = Localizer["OnAddAsyncAttr"], - Type = "Func>", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(Table.OnColumnCreating), - Description = Localizer["OnColumnCreatingAttr"], - Type = "Func,Task>", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(Table.ColumnOrderCallback), - Description = Localizer["ColumnOrderCallbackAttr"], - Type = "Func, IEnumerable>", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(Table.OnDoubleClickCellCallback), - Description = Localizer["OnDoubleClickCellCallbackAttr"], - Type = "Func", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "OnDeleteAsync", - Description = Localizer["OnDeleteAsyncAttr"], - Type = "Func, Task>", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "OnEditAsync", - Description = Localizer["OnEditAsyncAttr"], - Type = "Func", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "OnSaveAsync", - Description = Localizer["OnSaveAsyncAttr"], - Type = "Func", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "OnResetSearchAsync", - Description = Localizer["OnResetSearchAsyncAttr"], - Type = "Func", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "OnClickRowCallback", - Description = Localizer["OnClickRowCallbackAttr"], - Type = "Func", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "OnAfterSaveAsync", - Description = Localizer["OnAfterSaveAsyncAttr"], - Type = "Func", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "OnAfterDeleteAsync", - Description = Localizer["OnAfterDeleteAsyncAttr"], - Type = "Func, Task>", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "OnAfterModifyAsync", - Description = Localizer["OnAfterModifyAsyncAttr"], - Type = "Func", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(Table.OnAfterRenderCallback), - Description = Localizer["OnAfterRenderCallbackAttr"], - Type = "Func, Task>", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "OnTreeExpand", - Description = Localizer["OnTreeExpandAttr"], - Type = "Func>>", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "OnDoubleClickRowCallback", - Description = Localizer["OnDoubleClickRowCallbackAttr"], - Type = "Func", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "SortIcon", - Description = Localizer["SortIconAttr"], - Type = "string", - ValueList = " — ", - DefaultValue = "fa-solid fa-sort" - }, - new() - { - Name = "SortIconAsc", - Description = Localizer["SortIconAscAttr"], - Type = "string", - ValueList = " — ", - DefaultValue = "fa-solid fa-sort-up" - }, - new() - { - Name = "SortIconDesc", - Description = Localizer["SortIconDescAttr"], - Type = "string", - ValueList = " — ", - DefaultValue = "fa-solid fa-sort-down" - }, - new() - { - Name = "EditDialogSaveButtonText", - Description = Localizer["EditDialogSaveButtonTextAttr"], - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(Table.EditDialogIsDraggable), - Description = Localizer["EditDialogIsDraggableAttr"], - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = nameof(Table.EditDialogShowMaximizeButton), - Description = Localizer["EditDialogShowMaximizeButtonAttr"], - Type = "bool", - ValueList = "true|false", - DefaultValue = "true" - }, - new() - { - Name = "EditDialogSize", - Description = Localizer["EditDialogSizeAttr"], - Type = "Size", - ValueList = " — ", - DefaultValue = "Large" - }, - new() - { - Name = "ExportButtonDropdownTemplate", - Description = Localizer["ExportButtonDropdownTemplateAttr"], - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(Table.SearchDialogIsDraggable), - Description = Localizer["SearchDialogIsDraggableAttr"], - Type = "bool", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = nameof(Table.SearchDialogShowMaximizeButton), - Description = Localizer["SearchDialogShowMaximizeButtonAttr"], - Type = "bool", - ValueList = "true|false", - DefaultValue = "true" - }, - new() - { - Name = "SearchDialogSize", - Description = Localizer["SearchDialogSizeAttr"], - Type = "Size", - ValueList = " — ", - DefaultValue = "Large" - }, - new() - { - Name = "AddModalTitle", - Description = Localizer["AddModalTitleAttr"], - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "EditModalTitle", - Description = Localizer["EditModalTitleAttr"], - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "UnsetText", - Description = Localizer["UnsetTextAttr"], - Type = "string", - ValueList = " — ", - DefaultValue = Localizer["UnsetTextValue"] - }, - new() - { - Name = "SortAscText", - Description = Localizer["SortAscTextAttr"], - Type = "string", - ValueList = " — ", - DefaultValue = Localizer["SortAscTextValue"] - }, - new() - { - Name = "SortDescText", - Description = Localizer["SortDescTextAttr"], - Type = "string", - ValueList = " — ", - DefaultValue = Localizer["SortDescTextValue"] - }, - new() - { - Name = "RenderMode", - Description = Localizer["RenderModeAttr"], - Type = "TableRenderMode", - ValueList = "Auto|Table|CardView", - DefaultValue = "Auto" - }, - new() - { - Name = "EmptyText", - Description = Localizer["EmptyTextAttr"], - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = nameof(Table.EmptyImage), - Description = Localizer["EmptyImageAttr"], - Type = "string", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "EmptyTemplate", - Description = Localizer["EmptyTemplateAttr"], - Type = "RenderFragment", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "EditDialogItemsPerRow", - Description = Localizer["EditDialogItemsPerRowAttr"], - Type = "int?", - ValueList = " — ", - DefaultValue = " — " - }, - new() - { - Name = "EditDialogRowType", - Description = Localizer["EditDialogRowTypeAttr"], - Type = "RowType", - ValueList = "Row|Inline", - DefaultValue = "Row" - }, - new() - { - Name = "EditDialogLabelAlign", - Description = Localizer["EditDialogLabelAlignAttr"], - Type = "Alignment", - ValueList = "None|Left|Center|Right", - DefaultValue = "None" - }, - new() - { - Name = "AllowDragColumn", - Description = Localizer["AllowDragOrderAttr"], - Type = "boolean", - ValueList = "true|false", - DefaultValue = "false" - }, - new() - { - Name = nameof(Table.AutoScrollLastSelectedRowToView), - Description = Localizer["AutoScrollLastSelectedRowToViewAttr"], - Type = "boolean", - ValueList = "true|false", - DefaultValue = "false" - } - ]; - - private MethodItem[] GetMethods() => - [ - new() - { - Name = nameof(Table.AddAsync), - Description = Localizer["AddAsyncMethod"], - Parameters = " — ", - ReturnValue = "Task" - }, - new() - { - Name = nameof(Table.EditAsync), - Description = Localizer["EditAsyncMethod"], - Parameters = " — ", - ReturnValue = " — " - }, - new() - { - Name = nameof(Table.QueryAsync), - Description = Localizer["QueryAsyncMethod"], - Parameters = " — ", - ReturnValue = "Task" - } - ]; } diff --git a/src/BootstrapBlazor.Server/Data/AttributeItem.cs b/src/BootstrapBlazor.Server/Data/AttributeItem.cs index e761968fd09..36d0d20e607 100644 --- a/src/BootstrapBlazor.Server/Data/AttributeItem.cs +++ b/src/BootstrapBlazor.Server/Data/AttributeItem.cs @@ -33,7 +33,7 @@ public class AttributeItem /// /// 获得/设置 版本 /// - public string Version { get; set; } = ""; + public string Version { get; set; } = "10.2.2"; /// /// diff --git a/src/BootstrapBlazor.Server/Locales/en-US.json b/src/BootstrapBlazor.Server/Locales/en-US.json index ac9688a8fa5..8557e9c85c6 100644 --- a/src/BootstrapBlazor.Server/Locales/en-US.json +++ b/src/BootstrapBlazor.Server/Locales/en-US.json @@ -4886,178 +4886,8 @@ "TableBaseHeaderStyleIntro": "By setting headerstyle Properties", "TableBaseHeaderStyleDescription": " Headerstyle is the table header style, and the default value is none ", "AttributeTitle": "Table Attribute", - "TableSizeAttr": "Table Size", - "HeaderStyleAttr": "Table Header Style", - "HeaderTextWrap": "Table header text wrap", - "HeightAttr": "Fixed Header", - "PageItemsAttr": "IsPagination=true Sets the number of data to display per page", - "AutoRefreshIntervalAttr": "Auto Refresh Interval", - "ExtendButtonColumnWidthAttr": "Row action button column width", - "RenderModeResponsiveWidthAttr": "Component Layout Mode Automatic Switching Threshold", - "IndentSizeAttr": "Tree data indent width (pixel px)", - "ItemsAttr": "Data Collection", - "PageItemsSourceAttr": "IsPagination=true Sets the external data source for the number of data displayed per page", - "EditModeAttr": "Set edit row data mode", - "MultiHeaderTemplateAttr": "Header Grouping Template", - "TableFooterAttr": "Table Footer Template", - "TableToolbarTemplateAttr": "Custom Button Template", - "EditTemplateAttr": "Edit Pop-up Template", - "ExportButtonDropdownTemplateAttr": "The template of Export dropdown button item", - "ShowAdvancedSearchAttr": "Show advanced search", - "SearchTemplateAttr": "Advanced Search Template", - "BeforeRowButtonTemplateAttr": "Table Row Button Template Before Button", - "RowButtonTemplateAttr": "Table Row Button Templates are placed after buttons by default", - "DetailRowTemplateAttr": "Table Detail Line Template", - "IsAutoCollapsedToolbarButtonAttr": "Whether auto collapsed the buttons on toolbar", - "IsBorderedAttr": "Border", - "IsPaginationAttr": "Display pagination", - "IsStripedAttr": "Zebra stripe", - "IsRenderedAttr": "Whether the component is rendered", - "IsMultipleSelectAttr": "If it is multi-select mode, the first column is automatically a checkbox column when true", - "IsAutoRefreshAttr": "Do you automatically refresh the table", - "IsTreeAttr": "Is it tree data", - "IsDetailsAttr": "Whether it is a detail row table, use DetailRowTemplate for logical judgment when not set", - "IsHideFooterWhenNoDataAttr": "Whether to show Footer when no data is available", - "IsKeepSelectedRowsAttr": "Whether to keep the selected row after switch page index", - "IsKeepSelectedRowAfterAddAttr": "Whether to keep the selected row after call add method", - "ClickToSelectAttr": "Click on the line to select the line", - "ShowCheckboxTextAttr": "Selection column that displays text", - "ShowFooterAttr": "Show feet", - "ShowFilterHeaderAttr": "Show filtered rows", - "ShowMultiFilterHeaderAttr": "Whether to display filtered rows for multilevel headers", - "ShowSearchAttr": "Show search bar", - "ShowSearchTextAttr": "Show search text box", - "ShowSearchTextTooltipAttr": "Do you show the search box text prompt bar", - "ShowResetButtonAttr": "Show empty search button", - "ShowSearchButtonAttr": "Show Search Button", - "SearchModeAttr": "Search Bar Rendering", - "CollapsedTopSearchAttr": "Shrink the top search box", - "ShowToolbarAttr": "Show Toolbar", - "ShowLineNoAttr": "Show Line Number", - "ShowDefaultButtonsAttr": "Show default button to add edit delete", - "ShowAddButtonAttr": "Show Add Button", - "ShowEditButtonAttr": "Show Edit Button", - "ShowEditButtonCallbackAttr": "Displays an inline edit button, use showEditButton value when not set", - "ShowDeleteButtonAttr": "Show delete button", - "ShowDeleteButtonCallbackAttr": "Show Use ShowEditButton value when the inline delete button is not set", - "ShowExtendButtonsAttr": "Show row action button", - "ShowExtendEditButtonAttr": "Show row edit action button", - "ShowExtendEditButtonCallbackAttr": "Show row edit action button callback", - "ShowExtendDeleteButtonAttr": "Show row delete action button", - "ShowExtendDeleteButtonCallbackAttr": "Show row delete action button callback", - "DisableExtendEditButtonAttr": "Disable row edit action button", - "DisableExtendEditButtonCallbackAttr": "Disable row edit action button callback", - "DisableExtendDeleteButtonAttr": "Disable row delete action button", - "DisableExtendDeleteButtonCallbackAttr": "Disable row delete action button callback", - "ShowUnsetGroupItemsOnTopAttr": "Whether ungrouped edits are rendered at the beginning", - "ShowSkeletonAttr": "Whether to display skeleton screen when first render", - "ShowLoadingInFirstRenderAttr": "Whether to display the loading animation when first render", - "ShowColumnListAttr": "Show Column show/hide control buttons", - "OnColumnVisibleChangedAttr": "Trigger this callback when switch show/hide column in the list", - "ShowEmptyAttr": "Show no data prompts", - "ShowToastAfterSaveOrDeleteModelAttr": "Do you show a toast prompt box after a save/delete failure", - "ShowToastBeforeExport": "Whether show the Toast popup before export", - "ShowToastAfterExport": "Whether show the Toast popup after export", - "BeforeExportCallback": "The callback before export", - "AfterExportCallback": "The callback after export", - "TreeIconAttr": "Small arrow for tree data rows", - "ScrollingDialogContentAttr": "Edit whether the pop-up box appears inside the scroll bar", - "FixedExtendButtonsColumnAttr": "Whether to fix the extended button column", - "OnQueryAsyncAttr": "Asynchronous query callback method", - "OnAddAsyncAttr": "New Button Callback Method", - "OnColumnCreatingAttr": "Callback delegate method on column creation", - "ColumnOrderCallbackAttr": "Callback delegate method on column order", - "OnDoubleClickCellCallbackAttr": "Set cell double-click event", - "OnDeleteAsyncAttr": "Delete Button Asynchronous Callback Method", - "OnEditAsyncAttr": "Edit button asynchronous callback method", - "OnSaveAsyncAttr": "Save button asynchronous callback method", - "OnResetSearchAsyncAttr": "Reset Search Button Asynchronous Callback Method", - "OnClickRowCallbackAttr": "Click on row callback delegate method", - "OnAfterSaveAsyncAttr": "Asynchronous callback method after save data", - "OnAfterDeleteAsyncAttr": "Asynchronous callback method after delete data", - "OnAfterModifyAsyncAttr": "Asynchronous callback method after save or delete data", - "OnAfterRenderCallbackAttr": "Callback method after table rendering", - "OnTreeExpandAttr": "Tree data node expandable callback delegate method", - "OnDoubleClickRowCallbackAttr": "Double-click row callback delegate method", - "SortIconAttr": "Sort default icon", - "SortIconAscAttr": "Sort ascending icon", - "SortIconDescAttr": "Sort Descending Icon", - "EditDialogSaveButtonTextAttr": "Edit pop-up save button text", - "EditDialogIsDraggableAttr": "Edit pop-up is draggable", - "EditDialogShowMaximizeButtonAttr": "Edit pop-ups show the maximize button", - "EditDialogSizeAttr": "Edit pop-up size", - "SearchDialogIsDraggableAttr": "Search pop-ups are draggable", - "SearchDialogShowMaximizeButtonAttr": "Search pop-ups show the maximize button", - "SearchDialogSizeAttr": "Search pop-up size", - "AddModalTitleAttr": "New Data Pop-up Title", - "EditModalTitleAttr": "Edit data pop-up Title", - "UnsetTextAttr": "tooltip displays text when sort is not set", - "UnsetTextValue": "Click ascending", - "SortAscTextAttr": "tooltip displays text when sorting in ascending order", - "SortAscTextValue": "Click-down", - "SortDescTextAttr": "tooltip displays text when sorting in descending order", - "SortDescTextValue": "Unsort", - "RenderModeAttr": "Table Component Layout Mode Settings", - "EmptyTextAttr": "EmptyText", - "EmptyImageAttr": "Show picture link address when no data", - "EmptyTemplateAttr": "Display template when no data", - "EditDialogItemsPerRowAttr": "Number of components per line", - "EditDialogRowTypeAttr": "Set component layout", - "EditDialogLabelAlignAttr": "Label alignment in Inline Layout mode", - "AddAsyncMethod": "Manual data addition method", - "EditAsyncMethod": "Methods for Manually Editing Data", - "QueryAsyncMethod": "Manual query data method", - "TextWrapAttr": "Allow line breaks", - "AutoGenerateColumnsAttr": "Whether columns are automatically generated", - "CssClassAttr": "Custom Cell Style", - "EditableAttr": "Whether to generate edit components", - "EditTemplateColumnAttr": "Template", - "FilterableAttr": "Filterable data", - "FilterTemplateAttr": "Filter Template", - "FilterAttr": "Column Filter", - "HeaderTemplateAttr": "Header Template", - "IsReadonlyWhenAddAttr": "This column is read-only when new", - "IsReadonlyWhenEditAttr": "This column is read-only when editing", - "LookupAttr": "Dictionary Data Source", - "LookupStringComparisonAttr": "Dictionary Data Source Comparison Rules", - "LookupServiceKeyAttr": "The LookupService service gets the Lookup data collection key value", - "LookupServiceDataAttr": "The LookupService service gets the Lookup data collection data value", - "ReadonlyAttr": "Is it read-only mode when editing", - "SearchTemplateColumnAttr": "Template", - "ShowTipsAttr": "Show cell Tooltips", - "SearchableAttr": "Participate in the search", - "SortableAttr": "Sort or not", - "DefaultSortAttr": "Is the default sort sequence", - "DefaultSortOrderAttr": "Default collation", - "ShowAdvancedSortAttr": "Whether to show the Advanced Sort button", - "TextAttr": "Header Displays Text", - "TextEllipsisAttr": "Whether to omit text when exceeded", - "TemplateAttr": "Template", - "VisibleAttr": "Whether to display this column", - "IsVisibleWhenAddAttr": "Whether to display this column in new item dialog", - "IsVisibleWhenEditAttr": "Whether to display this column in edit item dialog", - "WidthAttr": "Column width (px)", - "FixedAttr": "Whether to fix this column", - "GroupNameAttr": "Current Property Grouping", - "GroupOrderAttr": "Current Property Grouping order", - "ShownWithBreakPointAttr": "Show Node Threshold", - "FormatStringAttr": "Format String", - "FormatterAttr": "Column Formatting Callback Delegate", - "AlignAttr": "Text Alignment", - "OrderAttr": "Sequence Number", - "OnCellRenderAttr": "Cell callback method", - "IsMarkupStringAttr": "Whether column is MarkupString string", - "ShowGotoNavigatorAttr": "Whether show the Goto navigator", - "GotoTemplateAttr": "The template for Goto custom component", - "GotoNavigatorLabelTextAttr": "Goto label text", - "ShowPageInfoAttr": "Whethere show the pagination info", - "PageInfoTemplateAttr": "The template for custom page info", - "PageInfoTextAttr": "Pagination label text", - "AllowDragOrderAttr": "Allow dragging column headings to adjust table column order", - "AutoScrollLastSelectedRowToViewAttr": "whether the last selected row will automatically scroll to the view", "TableBaseNormalRefreshText": "Refresh", - "TableBaseHeaderStyleMode": "The style of table header", - "IsPopoverToolbarDropdownButtonAttr": "Whether float the popup window for dropdown button in the toolbar" + "TableBaseHeaderStyleMode": "The style of table header" }, "BootstrapBlazor.Server.Components.Samples.Table.TablesColumn": { "TablesColumnTitle": "Table Column", diff --git a/src/BootstrapBlazor.Server/Locales/zh-CN.json b/src/BootstrapBlazor.Server/Locales/zh-CN.json index cd7a003982d..820d0ac2c12 100644 --- a/src/BootstrapBlazor.Server/Locales/zh-CN.json +++ b/src/BootstrapBlazor.Server/Locales/zh-CN.json @@ -4886,178 +4886,8 @@ "TableBaseHeaderStyleIntro": "通过设置 HeaderStyle 属性", "TableBaseHeaderStyleDescription": "HeaderStyle 为表格表头样式,默认值为 None", "AttributeTitle": "Table 属性", - "TableSizeAttr": "表格大小", - "HeaderStyleAttr": "表格 Header 样式", - "HeaderTextWrap": "表头是否折行", - "HeightAttr": "固定表头", - "PageItemsAttr": "IsPagination=true 设置每页显示数据数量", - "AutoRefreshIntervalAttr": "自动刷新时间间隔", - "ExtendButtonColumnWidthAttr": "行操作按钮列宽度", - "RenderModeResponsiveWidthAttr": "组件布局模式自动切换阈值", - "IndentSizeAttr": "树状数据缩进宽度(像素px)", - "ItemsAttr": "数据集合", - "PageItemsSourceAttr": "IsPagination=true 设置每页显示数据数量的外部数据源", - "EditModeAttr": "设置编辑行数据模式", - "MultiHeaderTemplateAttr": "表头分组模板", - "TableFooterAttr": "Table Footer 模板", - "TableToolbarTemplateAttr": "自定义按钮模板", - "EditTemplateAttr": "编辑弹窗模板", - "ExportButtonDropdownTemplateAttr": "导出按钮下拉框模板", - "ShowAdvancedSearchAttr": "是否显示高级搜索", - "SearchTemplateAttr": "高级搜索模板", - "BeforeRowButtonTemplateAttr": "Table 行按钮模板 放置到按钮前", - "RowButtonTemplateAttr": "Table 行按钮模板 默认放置到按钮后", - "DetailRowTemplateAttr": "Table 明细行模板", - "IsAutoCollapsedToolbarButtonAttr": "小屏时是否自动收缩工具栏按钮", - "IsBorderedAttr": "边框", - "IsPaginationAttr": "显示分页", - "IsStripedAttr": "斑马纹", - "IsRenderedAttr": "组件是否渲染完毕", - "IsMultipleSelectAttr": "是否为多选模式,为 true 时第一列自动为复选框列", - "IsAutoRefreshAttr": "是否自动刷新表格", - "IsTreeAttr": "是否为树形数据", - "IsDetailsAttr": "是否为明细行表格,未设置时使用 DetailRowTemplate 进行逻辑判断", - "IsHideFooterWhenNoDataAttr": "无数据时是否显示 Footer", - "IsKeepSelectedRowsAttr": "翻页后是否保持选中行数据", - "IsKeepSelectedRowAfterAddAttr": "新建数据后是否保持选中行", - "ClickToSelectAttr": "点击行即选中本行", - "ShowCheckboxTextAttr": "显示文字的选择列", - "ShowFooterAttr": "是否显示表脚", - "ShowFilterHeaderAttr": "是否显示过滤行", - "ShowMultiFilterHeaderAttr": "是否显示多级表头的过滤行", - "ShowSearchAttr": "显示搜索栏", - "ShowSearchTextAttr": "显示搜索文本框", - "ShowSearchTextTooltipAttr": "是否显示搜索框文本提示栏", - "ShowResetButtonAttr": "显示清空搜索按钮", - "ShowSearchButtonAttr": "显示搜索按钮", - "SearchModeAttr": "搜索栏渲染方式", - "CollapsedTopSearchAttr": "是否收缩顶部搜索框", - "ShowToolbarAttr": "显示 Toolbar", - "ShowLineNoAttr": "显示 行号", - "ShowDefaultButtonsAttr": "显示默认按钮 增加编辑删除", - "ShowAddButtonAttr": "显示增加按钮", - "ShowEditButtonAttr": "显示编辑按钮", - "ShowEditButtonCallbackAttr": "显示行内编辑按钮,未设置时使用 ShowEditButton 值", - "ShowDeleteButtonAttr": "显示删除按钮", - "ShowDeleteButtonCallbackAttr": "显示行内删除按钮未设置时使用 ShowEditButton 值", - "ShowExtendButtonsAttr": "显示行操作按钮", - "ShowExtendEditButtonAttr": "是否显示行编辑操作按钮", - "ShowExtendEditButtonCallbackAttr": "是否显示行内编辑操作按钮回调方法", - "ShowExtendDeleteButtonAttr": "是否显示行删除操作按钮", - "ShowExtendDeleteButtonCallbackAttr": "是否显示行内删除操作按钮回调方法", - "DisableExtendEditButtonAttr": "是否禁用行内编辑操作按钮", - "DisableExtendEditButtonCallbackAttr": "是否禁用行内编辑操作按钮回调方法", - "DisableExtendDeleteButtonAttr": "是否禁用行内删除操作按钮", - "DisableExtendDeleteButtonCallbackAttr": "是否禁用行内删除操作按钮回调方法", - "ShowUnsetGroupItemsOnTopAttr": "未分组编辑项是否在开头渲染", - "ShowSkeletonAttr": "首次加载时是否显示骨架屏", - "ShowLoadingInFirstRenderAttr": "首次加载时是否显示加载动画", - "ShowColumnListAttr": "是否显示列显示/隐藏控制按钮", - "OnColumnVisibleChangedAttr": "改变列是否显示时触发此回调", - "ShowEmptyAttr": "是否显示无数据提示", - "ShowToastAfterSaveOrDeleteModelAttr": "保存/删除失败后是否显示 Toast 提示框", - "ShowToastBeforeExport": "导出数据前是否弹出 Toast 提示框", - "ShowToastAfterExport": "导出数据后是否弹出 Toast 提示框", - "BeforeExportCallback": "导出数据前回调方法", - "AfterExportCallback": "导出数据后回调方法", - "TreeIconAttr": "树形数据行小箭头", - "ScrollingDialogContentAttr": "编辑弹窗框是否为内部出现滚动条", - "FixedExtendButtonsColumnAttr": "是否固定扩展按钮列", - "OnQueryAsyncAttr": "异步查询回调方法", - "OnAddAsyncAttr": "新建按钮回调方法", - "OnColumnCreatingAttr": "列创建时回调委托方法", - "ColumnOrderCallbackAttr": "列排序回调委托方法", - "OnDoubleClickCellCallbackAttr": "设置单元格双击事件", - "OnDeleteAsyncAttr": "删除按钮异步回调方法", - "OnEditAsyncAttr": "编辑按钮异步回调方法", - "OnSaveAsyncAttr": "保存按钮异步回调方法", - "OnResetSearchAsyncAttr": "重置搜索按钮异步回调方法", - "OnClickRowCallbackAttr": "点击行回调委托方法", - "OnAfterSaveAsyncAttr": "保存数据后异步回调方法", - "OnAfterDeleteAsyncAttr": "删除数据后异步回调方法", - "OnAfterModifyAsyncAttr": "保存或者删除数据后异步回调方法", - "OnAfterRenderCallbackAttr": "表格渲染完毕后回调方法", - "OnTreeExpandAttr": "树形数据节点展开式回调委托方法", - "OnDoubleClickRowCallbackAttr": "双击行回调委托方法", - "SortIconAttr": "排序默认图标", - "SortIconAscAttr": "排序升序图标", - "SortIconDescAttr": "排序降序图标", - "EditDialogSaveButtonTextAttr": "编辑弹窗中保存按钮文字", - "EditDialogIsDraggableAttr": "编辑弹窗是否可拖拽", - "EditDialogShowMaximizeButtonAttr": "编辑弹窗是否显示最大化按钮", - "EditDialogSizeAttr": "编辑弹窗大小", - "SearchDialogIsDraggableAttr": "搜索弹窗是否可拖拽", - "SearchDialogShowMaximizeButtonAttr": "搜索弹窗是否显示最大化按钮", - "SearchDialogSizeAttr": "搜索弹窗大小", - "AddModalTitleAttr": "新建数据弹窗 Title", - "EditModalTitleAttr": "编辑数据弹窗 Title", - "UnsetTextAttr": "未设置排序时 tooltip 显示文字", - "UnsetTextValue": "点击升序", - "SortAscTextAttr": "升序排序时 tooltip 显示文字", - "SortAscTextValue": "点击降序", - "SortDescTextAttr": "降序排序时 tooltip 显示文字", - "SortDescTextValue": "取消排序", - "RenderModeAttr": "Table 组件布局模式设置", - "EmptyTextAttr": "EmptyText", - "EmptyImageAttr": "无数据时显示图片链接地址", - "EmptyTemplateAttr": "无数据时显示模板", - "EditDialogItemsPerRowAttr": "每行显示组件数量", - "EditDialogRowTypeAttr": "设置组件布局方式", - "EditDialogLabelAlignAttr": "Inline 布局模式下标签对齐方式", - "AddAsyncMethod": "手工添加数据方法", - "EditAsyncMethod": "手工编辑数据方法", - "QueryAsyncMethod": "手工查询数据方法", - "TextWrapAttr": "是否允许换行", - "AutoGenerateColumnsAttr": "是否自动生成列", - "CssClassAttr": "自定义单元格样式", - "EditableAttr": "是否生成编辑组件", - "EditTemplateColumnAttr": "模板", - "FilterableAttr": "是否可过滤数据", - "FilterTemplateAttr": "过滤模板", - "FilterAttr": "列过滤器", - "HeaderTemplateAttr": "表头模板", - "IsReadonlyWhenAddAttr": "新建时此列只读", - "IsReadonlyWhenEditAttr": "编辑时此列只读", - "LookupAttr": "字典数据源", - "LookupStringComparisonAttr": "字典数据源比较规则", - "LookupServiceKeyAttr": "LookupService 服务获取 Lookup 数据集合键值", - "LookupServiceDataAttr": "LookupService 服务获取 Lookup 数据集合自定义数据", - "ReadonlyAttr": "编辑时是否只读模式", - "SearchTemplateColumnAttr": "模板", - "ShowTipsAttr": "显示单元格 Tooltips", - "SearchableAttr": "是否参与搜索", - "SortableAttr": "是否排序", - "DefaultSortAttr": "是否为默认排序列", - "DefaultSortOrderAttr": "默认排序规则", - "ShowAdvancedSortAttr": "是否显示高级排序按钮", - "TextAttr": "表头显示文字", - "TextEllipsisAttr": "是否文本超出时省略", - "TemplateAttr": "模板", - "VisibleAttr": "是否显示此列", - "IsVisibleWhenAddAttr": "新建时此列是否显示", - "IsVisibleWhenEditAttr": "编辑时此列是否显示", - "WidthAttr": "列宽度(像素px)", - "FixedAttr": "是否固定本列", - "GroupNameAttr": "当前属性分组", - "GroupOrderAttr": "当前属性分组顺序", - "ShownWithBreakPointAttr": "显示节点阈值", - "FormatStringAttr": "格式化字符串", - "FormatterAttr": "列格式化回调委托", - "AlignAttr": "文字对齐方式", - "OrderAttr": "顺序号", - "OnCellRenderAttr": "单元格回调方法", - "IsMarkupStringAttr": "是否为 MarkupString", - "ShowGotoNavigatorAttr": "是否显示 Goto 跳转导航", - "GotoTemplateAttr": "Goto 导航自定义组件", - "GotoNavigatorLabelTextAttr": "Goto 导航标签文字", - "ShowPageInfoAttr": "是否显示分页详细信息", - "PageInfoTemplateAttr": "分页详细信息自定义组件", - "PageInfoTextAttr": "分页信息显示文字", - "AllowDragOrderAttr": "是否允许拖动列标题调整表格列顺序", - "AutoScrollLastSelectedRowToViewAttr": "选中行最后一个是否自动滚动到可视视窗内", "TableBaseNormalRefreshText": "刷新", - "TableBaseHeaderStyleMode": "表头模式", - "IsPopoverToolbarDropdownButtonAttr": "工具栏下拉框按钮是否浮动" + "TableBaseHeaderStyleMode": "表头模式" }, "BootstrapBlazor.Server.Components.Samples.Table.TablesColumn": { "TablesColumnTitle": "Table 表格", diff --git a/src/BootstrapBlazor/Components/BaseComponents/BootstrapComponentBase.cs b/src/BootstrapBlazor/Components/BaseComponents/BootstrapComponentBase.cs index 22fdcee4abf..87a2255f2d9 100644 --- a/src/BootstrapBlazor/Components/BaseComponents/BootstrapComponentBase.cs +++ b/src/BootstrapBlazor/Components/BaseComponents/BootstrapComponentBase.cs @@ -16,6 +16,7 @@ public abstract class BootstrapComponentBase : ComponentBase, IHandleEvent /// /// 获得/设置 用户自定义属性 /// Gets or sets user defined attributes + /// 10.2.2 /// [Parameter(CaptureUnmatchedValues = true)] [JsonIgnore] diff --git a/src/BootstrapBlazor/Components/ContextMenu/ContextMenuTrigger.cs b/src/BootstrapBlazor/Components/ContextMenu/ContextMenuTrigger.cs index e5a4b8bea4c..119f5a46a93 100644 --- a/src/BootstrapBlazor/Components/ContextMenu/ContextMenuTrigger.cs +++ b/src/BootstrapBlazor/Components/ContextMenu/ContextMenuTrigger.cs @@ -43,6 +43,7 @@ public class ContextMenuTrigger : BootstrapComponentBase /// /// 触摸事件触发菜单的超时时间(毫秒)。默认值为 毫秒。必须大于 0。 /// The timeout duration for touch events to trigger the context menu (in milliseconds). Default is milliseconds. Must be greater than 0. + /// 10.2.2 /// [Parameter] public int? OnTouchDelay { get; set; } diff --git a/src/BootstrapBlazor/Components/Layout/Layout.razor.cs b/src/BootstrapBlazor/Components/Layout/Layout.razor.cs index 732624b988e..c8e735ccfaf 100644 --- a/src/BootstrapBlazor/Components/Layout/Layout.razor.cs +++ b/src/BootstrapBlazor/Components/Layout/Layout.razor.cs @@ -194,6 +194,7 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 是否显示分割栏 默认 false 不显示 仅在 左右布局时有效 /// Get/Set Whether to show split bar. Default false Effective only in Left-Right Layout + /// 10.2.2 /// [Parameter] [ExcludeFromCodeCoverage] diff --git a/src/BootstrapBlazor/Extensions/LambdaExtensions.cs b/src/BootstrapBlazor/Extensions/LambdaExtensions.cs index c8cfaa18083..9d57e778e45 100644 --- a/src/BootstrapBlazor/Extensions/LambdaExtensions.cs +++ b/src/BootstrapBlazor/Extensions/LambdaExtensions.cs @@ -816,11 +816,9 @@ public static Expression> GetKeyValue(Type? /// /// 数组转成字符串表达式 - /// 数组转成字符串表达式 + /// Array to string expression /// /// - /// - /// (",", IEnumerable)]]> public static Expression> EnumerableConvertToStringLambda() { var typeArguments = typeof(TValue).GenericTypeArguments; @@ -832,12 +830,10 @@ public static Expression> EnumerableConvertToStringLambda - /// 泛型集合转换成 ]]> 方法 - /// Generic collection convert to ]]> method + /// 泛型集合转换成 方法 + /// Generic collection convert to method /// /// - /// ]]> to ]]> - /// public static Expression>> ConvertToStringEnumerableLambda() { var typeArguments = typeof(TValue).GenericTypeArguments; diff --git a/src/BootstrapBlazor/Localization/Json/JsonLocalizationServiceCollectionExtensions.cs b/src/BootstrapBlazor/Localization/Json/JsonLocalizationServiceCollectionExtensions.cs index 9fb8f810621..e204f83f71d 100644 --- a/src/BootstrapBlazor/Localization/Json/JsonLocalizationServiceCollectionExtensions.cs +++ b/src/BootstrapBlazor/Localization/Json/JsonLocalizationServiceCollectionExtensions.cs @@ -18,13 +18,16 @@ internal static class JsonLocalizationServiceCollectionExtensions /// 注入 Json 格式多语言服务 /// Inject Json format multi-language service /// - /// IServiceCollection 实例IServiceCollection instance - /// JsonLocalizationOptions 配置回调方法JsonLocalizationOptions configuration callback method + /// + /// IServiceCollection 实例 + /// IServiceCollection instance + /// + /// JsonLocalizationOptions 配置回调方法 + /// JsonLocalizationOptions configuration callback method + /// /// public static IServiceCollection AddJsonLocalization(this IServiceCollection services, Action? localizationConfigure = null) { - // 防止被 AddLocalization 覆盖掉 - // Prevent being overwritten by AddLocalization services.AddSingleton(); services.TryAddTransient(typeof(IStringLocalizer<>), typeof(StringLocalizer<>)); services.TryAddTransient();