From 924eb6034aa393fcad3cf6ef4e97f0ea42945a39 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Tue, 20 Jan 2026 14:47:38 +0800 Subject: [PATCH 1/3] =?UTF-8?q?doc:=20=E6=9B=B4=E6=96=B0=E6=B3=A8=E9=87=8A?= =?UTF-8?q?=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/Modal/Modal.razor.cs | 42 +++++++++---------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/src/BootstrapBlazor/Components/Modal/Modal.razor.cs b/src/BootstrapBlazor/Components/Modal/Modal.razor.cs index b7fd0fddd24..84842e0ad1d 100644 --- a/src/BootstrapBlazor/Components/Modal/Modal.razor.cs +++ b/src/BootstrapBlazor/Components/Modal/Modal.razor.cs @@ -8,7 +8,7 @@ namespace BootstrapBlazor.Components; /// -/// Modal component +/// Modal 组件 /// Modal component /// public partial class Modal @@ -18,7 +18,7 @@ public partial class Modal private IOptionsMonitor? Options { get; set; } /// - /// 获得 the 样式 string + /// 获得样式字符串 /// Gets the style string /// private string? ClassString => CssBuilder.Default("modal") @@ -27,7 +27,7 @@ public partial class Modal .Build(); /// - /// 获得 the 集合 of ModalDialog + /// 获得ModalDialog的集合 /// Gets the collection of ModalDialog /// protected List Dialogs { get; } = new(8); @@ -35,7 +35,7 @@ public partial class Modal private readonly ConcurrentDictionary> _shownCallbackCache = []; /// - /// 获得/设置 是否 to close the popup in the background, default is false + /// 获得/设置 是否在后台关闭弹出窗口,默认为 false /// Gets or sets whether to close the popup in the background, default is false /// 10.2.2 /// @@ -43,7 +43,7 @@ public partial class Modal public bool IsBackdrop { get; set; } /// - /// 获得/设置 是否 to enable keyboard support, default is true to respond to the ESC key + /// 获得/设置 是否启用键盘支持,默认为 true 响应 ESC 键 /// Gets or sets whether to enable keyboard support, default is true to respond to the ESC key /// 10.2.2 /// @@ -51,7 +51,7 @@ public partial class Modal public bool IsKeyboard { get; set; } = true; /// - /// 获得/设置 是否 to enable fade in and out animation, default is null + /// 获得/设置 是否启用淡入淡出动画,默认为 null /// Gets or sets whether to enable fade in and out animation, default is null /// 10.2.2 /// @@ -59,7 +59,7 @@ public partial class Modal public bool? IsFade { get; set; } /// - /// 获得/设置 the child component + /// 获得/设置 子组件 /// Gets or sets the child component /// 10.2.2 /// @@ -67,7 +67,7 @@ public partial class Modal public RenderFragment? ChildContent { get; set; } /// - /// 获得/设置 the 回调方法 when the component has finished rendering + /// 获得/设置 组件完成渲染时的回调方法 /// Gets or sets the callback method when the component has finished rendering /// 10.2.2 /// @@ -75,7 +75,7 @@ public partial class Modal public Func? FirstAfterRenderCallbackAsync { get; set; } /// - /// 获得/设置 the 回调方法 when the popup is shown + /// 获得/设置 弹出窗口显示时的回调方法 /// Gets or sets the callback method when the popup is shown /// 10.2.2 /// @@ -83,7 +83,7 @@ public partial class Modal public Func? OnShownAsync { get; set; } /// - /// 获得/设置 the 回调 委托 when the popup is closed + /// 获得/设置 弹出窗口关闭时的回调委托 /// Gets or sets the callback delegate when the popup is closed /// 10.2.2 /// @@ -91,7 +91,7 @@ public partial class Modal public Func? OnCloseAsync { get; set; } /// - /// 获得 the background close popup setting + /// 获得后台关闭弹出窗口的设置 /// Gets the background close popup setting /// private string? Backdrop => IsBackdrop ? null : "static"; @@ -120,7 +120,7 @@ protected override async Task OnAfterRenderAsync(bool firstRender) protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id, Interop, nameof(ShownCallback), nameof(CloseCallback)); /// - /// Method to add a dialog + /// 添加对话框的方法 /// Method to add a dialog /// /// @@ -131,7 +131,7 @@ internal void AddDialog(ModalDialog dialog) } /// - /// Method to remove a dialog + /// 删除对话框的方法 /// Method to remove a dialog /// /// @@ -156,7 +156,7 @@ private void ResetShownDialog(ModalDialog dialog) } /// - /// Callback method when the popup has been shown, called by JSInvoke + /// 弹出窗口显示时的回调方法,由 JSInvoke 调用 /// Callback method when the popup has been shown, called by JSInvoke /// /// @@ -175,7 +175,7 @@ public async Task ShownCallback() } /// - /// Callback method when the popup has been closed, called by JSInvoke + /// 弹出窗口关闭时的回调方法,由 JSInvoke 调用 /// Callback method when the popup has been closed, called by JSInvoke /// /// @@ -202,7 +202,7 @@ public async Task CloseCallback() } /// - /// Method to toggle the popup state + /// 切换弹出窗口状态的方法 /// Method to toggle the popup state /// public async Task Toggle() @@ -212,7 +212,7 @@ public async Task Toggle() } /// - /// Method to show the popup + /// 显示弹出窗口的方法 /// Method to show the popup /// /// @@ -223,14 +223,14 @@ public async Task Show() } /// - /// Method to close the current popup + /// 关闭当前弹出窗口的方法 /// Method to close the current popup /// /// public Task Close() => InvokeVoidAsync("execute", Id, "hide"); /// - /// Method to set the header text + /// 设置标题文本的方法 /// Method to set the header text /// /// @@ -241,7 +241,7 @@ public void SetHeaderText(string text) } /// - /// Registers a 回调方法 to be called after the popup is shown, equivalent to setting the OnShownAsync parameter + /// 注册弹出窗口显示后调用的回调方法,等同于设置 OnShownAsync 参数 /// Registers a callback method to be called after the popup is shown, equivalent to setting the OnShownAsync parameter /// /// Component @@ -252,7 +252,7 @@ public void RegisterShownCallback(IComponent component, Func value) } /// - /// Unregisters the 回调方法 to be called after the popup is shown + /// 注销弹出窗口显示后调用的回调方法 /// Unregisters the callback method to be called after the popup is shown /// /// Component From e7f969a0850548c80c79a1e179b4e218380429e7 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Wed, 21 Jan 2026 09:13:28 +0800 Subject: [PATCH 2/3] =?UTF-8?q?doc:=20=E6=9B=B4=E6=96=B0=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- exclusion.dic | 1 + .../ComponentAttributeCacheService.cs | 5 +- .../Attributes/FileValidationAttribute.cs | 1 - .../Components/Affix/Affix.razor.cs | 4 - .../Components/Alert/Alert.razor.cs | 3 - .../Components/Alert/AlertBase.cs | 6 - .../Components/Anchor/Anchor.razor.cs | 5 - .../Components/AnchorLink/AnchorLink.razor.cs | 3 - .../AutoComplete/AutoComplete.razor.cs | 14 - .../AutoComplete/PopoverCompleteBase.cs | 25 +- .../Components/AutoFill/AutoFill.razor.cs | 22 - .../Components/AutoRedirect/AutoRedirect.cs | 5 - .../Components/Avatar/Avatar.razor.cs | 11 - .../Components/Badge/Badge.razor.cs | 3 - .../Components/Badge/ShieldBadge.razor.cs | 9 - .../BootstrapBlazorRoot.razor.cs | 8 - .../BaseComponents/BootstrapComponentBase.cs | 1 - .../BootstrapModuleComponentBase.cs | 9 - .../BaseComponents/DynamicElement.cs | 11 - .../BaseComponents/IdComponentBase.cs | 1 - .../BaseComponents/RenderTemplate.razor.cs | 3 - src/BootstrapBlazor/Components/Block/Block.cs | 9 - .../BootstrapBlazorRootContent.cs | 4 - .../BootstrapBlazorRootOutlet.cs | 3 - .../Components/Breadcrumb/Breadcrumb.razor.cs | 1 - .../Components/Button/Button.razor.cs | 2 - .../Components/Button/ButtonBase.cs | 22 - .../Components/Button/CountButton.cs | 3 - .../Components/Button/DialButton.razor.cs | 18 - .../Components/Button/DialButtonItem.cs | 3 - .../Components/Button/ExportPdfButton.cs | 10 - .../Components/Button/LinkButton.cs | 5 - .../Button/PopConfirmButton.razor.cs | 4 - .../Components/Button/PopConfirmButtonBase.cs | 22 - .../Button/PopConfirmButtonContent.razor.cs | 14 - .../Components/Button/PulseButton.razor.cs | 2 - .../Components/Button/ShareButton.cs | 2 - .../Components/Button/SlideButton.razor.cs | 20 - .../Components/Button/SlideButtonItem.cs | 2 - .../Components/Button/SwitchButton.razor.cs | 5 - .../Components/Button/ToggleButton.razor.cs | 3 - .../Components/Calendar/Calendar.razor.cs | 13 - .../Components/Camera/Camera.razor.cs | 21 - .../Components/Camera/DeviceItem.cs | 12 +- .../Components/Captcha/Captcha.razor.cs | 113 +++--- .../Components/Captcha/CaptchaOption.cs | 36 +- .../Components/Card/Card.razor.cs | 14 - .../Components/Carousel/Carousel.razor.cs | 17 - .../Components/Carousel/CarouselImage.cs | 2 - .../Components/Carousel/CarouselItem.cs | 5 - .../Components/Cascader/Cascader.razor.cs | 14 - .../Components/Cascader/SubCascader.razor.cs | 3 - .../Components/Checkbox/Checkbox.razor.cs | 13 - .../Components/Checkbox/CheckboxList.razor.cs | 13 - .../Checkbox/CheckboxListGeneric.razor.cs | 13 - .../Components/Circle/Circle.razor.cs | 1 - .../Components/Circle/CircleBase.cs | 5 - .../Components/Clipboard/ClipboardItem.cs | 16 +- .../ClockPicker/ClockPicker.razor.cs | 6 - .../Components/Collapse/Collapse.razor.cs | 3 - .../Components/Collapse/CollapseItem.cs | 8 - .../ColorPicker/ColorPicker.razor.cs | 7 - .../Components/ConnectionHub/ConnectionHub.cs | 2 - .../Components/Console/Console.razor.cs | 19 - .../Components/Console/ConsoleLogger.razor.cs | 3 - .../Console/ConsoleMessageCollection.cs | 2 - .../ContextMenu/ContextMenu.razor.cs | 3 - .../Components/ContextMenu/ContextMenuItem.cs | 5 - .../ContextMenu/ContextMenuTrigger.cs | 3 - .../Components/CountUp/CountUp.razor.cs | 6 - .../Components/CountUp/CountUpOption.cs | 16 - .../DateTimePicker/DatePickerBody.razor.cs | 53 --- .../DateTimePicker/DatePickerCell.razor.cs | 8 - .../DateTimePicker/DateTimePicker.razor.cs | 40 -- .../DateTimePicker/PopoverDropdownBase.cs | 3 - .../DateTimePicker/TimePickerSetting.cs | 4 - .../DateTimeRange/DateTimeRange.razor.cs | 32 -- .../DateTimeRange/DateTimeRangeValue.cs | 1 - .../Components/Dialog/Dialog.razor.cs | 1 - .../Components/Dialog/DialogBase.cs | 8 - .../Components/Dialog/DialogCloseButton.cs | 2 - .../Components/Dialog/DialogOption.cs | 165 ++++---- .../Components/Dialog/DialogSaveButton.cs | 2 - .../Components/Dialog/DialogService.cs | 1 - .../Components/Dialog/EditDialog.razor.cs | 12 - .../Components/Dialog/IResultDialog.cs | 2 - .../Components/Dialog/IconDialog.razor.cs | 5 - .../Dialog/ResultDialogFooter.razor.cs | 15 - .../Components/Dialog/SearchDialog.razor.cs | 8 - .../Components/Dialog/SearchDialogOption.cs | 2 - .../Components/Display/Display.razor.cs | 11 - .../Components/Display/DisplayBase.cs | 7 - .../Components/Divider/Divider.razor.cs | 5 - .../Components/Download/Download.cs | 2 - .../Components/DragDrap/Dropzone.razor.cs | 11 - .../Components/Drawer/Drawer.razor.cs | 20 - .../Components/Dropdown/Dropdown.razor.cs | 24 -- .../Components/Dropdown/DropdownItem.razor.cs | 6 - .../DropdownWidget/DropdownWidget.razor.cs | 6 - .../DropdownWidget/DropdownWidgetItem.cs | 9 - .../Components/EditorForm/EditorForm.razor.cs | 19 - .../Components/EditorForm/EditorItem.cs | 31 -- .../Components/EditorForm/IEditorItem.cs | 108 ++--- .../Components/Empty/Empty.razor.cs | 4 - .../BootstrapBlazorErrorBoundary.cs | 4 - .../Components/ErrorLogger/ErrorLogger.cs | 5 - .../Components/ErrorLogger/IErrorLogger.cs | 7 - .../Components/FileIcon/FileIcon.razor.cs | 4 - .../Components/Filters/BoolFilter.razor.cs | 26 +- .../Filters/DateTimeFilter.razor.cs | 26 +- .../Components/Filters/EnumFilter.razor.cs | 3 - .../Components/Filters/FilterBase.cs | 6 - .../Components/Filters/FilterButton.razor.cs | 3 - .../Components/Filters/FilterContext.cs | 16 +- .../Filters/FilterLogicItem.razor.cs | 2 - .../Filters/FilterProvider.razor.cs | 11 - .../Components/Filters/IFilterAction.cs | 1 - .../Components/Filters/LookupFilter.razor.cs | 1 - .../Components/Filters/MultiFilter.razor.cs | 13 - .../Filters/MultiSelectFilter.razor.cs | 2 - .../Components/Filters/MultipleFilterBase.cs | 4 +- .../Filters/NotSupportFilter.razor.cs | 2 - .../Components/Filters/NumberFilter.razor.cs | 26 +- .../Components/Filters/SearchFilterAction.cs | 2 - .../Filters/SerializeFilterAction.cs | 2 - .../Components/Filters/StringFilter.razor.cs | 30 +- .../Filters/TableColumnFilter.razor.cs | 9 - .../Components/FlipClock/FlipClock.razor.cs | 21 - .../Components/Footer/Footer.razor.cs | 5 - .../FullScreen/FullScreenButton.razor.cs | 3 - .../Geolocation/GeolocationPosition.cs | 2 - .../Components/GoTop/GoTop.razor.cs | 4 - .../Components/GroupBox/GroupBox.razor.cs | 2 - .../Handwritten/Handwritten.razor.cs | 6 - .../Components/HtmlTag/Link.razor.cs | 3 - .../Components/HtmlTag/Script.razor.cs | 2 - .../Components/IFrame/IFrame.razor.cs | 8 - .../Components/IPLocator/BaiDuIPLocator.cs | 2 - .../Components/IPLocator/DefaultIPLocator.cs | 2 - .../IPLocator/DefaultIPLocatorProvider.cs | 1 - .../IPLocator/IIPLocatorProvider.cs | 1 - .../Icon/BootstrapBlazorIcon.razor.cs | 4 - .../ImagePreviewer/ImagePreviewer.razor.cs | 11 - .../ImageViewer/ImageViewer.razor.cs | 18 - .../Components/Input/BootstrapInput.razor.cs | 8 - .../Components/Input/BootstrapInputBase.cs | 19 - .../Input/BootstrapInputEventBase.cs | 1 - .../Input/BootstrapInputGroup.razor.cs | 1 - .../Input/BootstrapInputGroupIcon.razor.cs | 1 - .../Input/BootstrapInputGroupLabel.cs | 5 - .../Components/Input/FloatingLabel.razor.cs | 1 - .../Components/Input/OtpInput.razor.cs | 6 - .../InputNumber/BootstrapInputNumber.razor.cs | 14 - .../InputNumber/BootstrapInputNumberBase.cs | 1 - .../IntersectionObserver.razor.cs | 9 - .../IntersectionObserverItem.razor.cs | 1 - .../IntersectionObserver/LoadMore.razor.cs | 6 - .../Components/Label/BootstrapLabel.razor.cs | 4 - .../Label/BootstrapLabelSetting.razor.cs | 2 - .../Components/Layout/Layout.razor.cs | 77 ---- .../Components/Layout/LayoutHeader.cs | 1 - .../Components/Layout/LayoutSplitBar.razor.cs | 3 - .../Components/LazyLoad/LazyLoad.cs | 3 - .../Components/Light/Light.razor.cs | 3 - .../Components/ListGroup/ListGroup.razor.cs | 7 - .../Components/ListView/ListView.razor.cs | 23 -- .../Components/Logout/Logout.razor.cs | 10 - .../Components/Logout/LogoutLink.razor.cs | 3 - .../Components/Marquee/Marquee.razor.cs | 6 - .../Components/Mask/Mask.razor.cs | 1 - .../Components/Mask/MaskService.cs | 2 - .../Components/Menu/Menu.razor.cs | 12 - .../Components/Menu/MenuItem.cs | 1 - .../Components/Menu/MenuLink.razor.cs | 3 - .../Components/Menu/SideMenu.razor.cs | 4 - .../Components/Menu/SubMenu.razor.cs | 6 - .../Components/Menu/TopMenu.razor.cs | 5 - .../Components/Message/Message.razor.cs | 11 - .../Components/Modal/Modal.razor.cs | 13 - .../Components/Modal/ModalDialog.razor.cs | 40 -- .../Components/Nav/Nav.razor.cs | 10 +- .../Components/Navbar/Navbar.razor.cs | 23 +- .../Components/Navbar/NavbarBrand.razor.cs | 9 +- .../Components/Navbar/NavbarCollapse.razor.cs | 9 +- .../Components/Navbar/NavbarDropdown.razor.cs | 28 +- .../Navbar/NavbarDropdownItem.razor.cs | 19 +- .../Components/Navbar/NavbarGroup.razor.cs | 23 +- .../Components/Navbar/NavbarItem.razor.cs | 9 +- .../Components/Navbar/NavbarLink.razor.cs | 24 +- .../Navbar/NavbarToggleButton.razor.cs | 14 +- .../NetworkMonitorIndicator.razor.cs | 31 +- .../NetworkMonitor/NetworkMonitorState.cs | 16 +- .../Notification/NotificationItem.cs | 32 +- .../Components/Pagination/GotoNavigator.razor | 4 +- .../Pagination/GotoNavigator.razor.cs | 21 +- .../Components/Pagination/Pagination.razor.cs | 53 +-- .../Pagination/PaginationItem.razor.cs | 25 +- .../Components/Popover/Popover.razor.cs | 17 +- .../Components/Popover/PopupOptionBase.cs | 16 +- .../Components/Print/PrintButton.razor.cs | 5 +- .../Components/Progress/Progress.razor.cs | 61 +-- .../QueryBuilder/QueryBuilder.razor.cs | 39 +- .../Components/QueryBuilder/QueryColumn.cs | 12 +- .../QueryBuilder/QueryGroup.razor.cs | 17 +- .../Components/Radio/Radio.razor.cs | 8 +- .../Components/Radio/RadioList.razor.cs | 27 +- .../Radio/RadioListGeneric.razor.cs | 60 +-- .../Components/Rate/Rate.razor.cs | 50 +-- .../Components/Reconnector/IReconnector.cs | 6 +- .../Reconnector/IReconnectorProvider.cs | 4 +- .../Components/Reconnector/Reconnector.cs | 3 - .../Reconnector/ReconnectorContent.razor.cs | 7 - .../Reconnector/ReconnectorOutlet.cs | 12 +- .../Components/Redirect/Redirect.cs | 14 +- .../Components/Repeater/Repeater.razor.cs | 34 +- .../Components/Responsive/Responsive.cs | 9 +- .../Components/RibbonTab/RibbonTab.razor.cs | 57 +-- .../RibbonTab/RibbonTabHeader.razor.cs | 44 +- .../Components/RibbonTab/RibbonTabItem.cs | 56 ++- .../Components/Row/Row.razor.cs | 4 - .../Components/Scroll/Scroll.razor.cs | 5 - .../Components/Search/Search.razor.cs | 21 - .../Components/Segmented/Segmented.razor.cs | 12 - .../Components/Segmented/SegmentedItem.cs | 6 - .../Components/Select/ISelectObjectContext.cs | 1 - .../Select/InternalSelectObjectContext.cs | 1 - .../Components/Select/MultiSelect.razor.cs | 29 -- .../Components/Select/PopoverSelectBase.cs | 2 - .../Components/Select/Select.razor.cs | 23 -- .../Components/Select/SelectBase.cs | 19 - .../Components/Select/SelectObject.razor.cs | 15 - .../Components/Select/SelectOption.cs | 5 - .../Components/Select/SelectTable.razor.cs | 27 -- .../Components/Select/SelectTree.razor.cs | 20 - .../Components/Select/SimpleSelectBase.cs | 9 - .../SelectGeneric/MultiSelectGeneric.razor.cs | 35 -- .../SelectGeneric/SelectGeneric.razor.cs | 26 -- .../SelectGeneric/SelectOptionGeneric.cs | 5 - .../Skeleton/SkeletonAvatar.razor.cs | 1 - .../Components/Skeleton/SkeletonBase.cs | 2 - .../Skeleton/SkeletonTable.razor.cs | 3 - .../Components/Skeleton/SkeletonTree.razor.cs | 1 - .../Components/Slider/Slider.razor.cs | 3 - .../Components/Speech/IRecognizerProvider.cs | 1 - .../Components/Speech/ISynthesizerProvider.cs | 1 - .../Components/Speech/RecognizerService.cs | 1 - .../Components/Speech/SpeechWave.razor.cs | 6 - .../Components/Speech/SynthesizerService.cs | 1 - .../Components/Spinner/Spinner.razor.cs | 3 - .../Components/Split/Split.razor.cs | 15 - .../Components/Stack/Stack.razor.cs | 6 - .../Components/Stack/StackItem.cs | 3 - .../Components/Step/Step.razor.cs | 6 - .../Components/Step/StepItem.cs | 8 - .../Components/SweetAlert/SwalOption.cs | 1 - .../Components/SweetAlert/SweetAlert.razor.cs | 1 - .../SweetAlert/SweetAlertBody.razor.cs | 16 - .../Components/Switch/NullSwitch.razor.cs | 8 - .../Components/Switch/Switch.razor.cs | 7 - .../Tab/BootstrapBlazorAuthorizeView.cs | 4 - .../Components/Tab/Tab.razor.cs | 69 ---- src/BootstrapBlazor/Components/Tab/TabItem.cs | 11 - .../Components/Tab/TabItemContent.cs | 1 - .../Components/Tab/TabLink.razor.cs | 6 - .../Components/Tab/TabToolbarButton.razor.cs | 3 - .../Components/Table/IColumnCollection.cs | 8 +- .../Components/Table/ITableColumn.cs | 33 -- .../Table/ITableEditDialogOption.cs | 15 - .../Components/Table/ITableExportContext.cs | 5 - .../Table/ITableExportDataContext.cs | 4 - .../Components/Table/ITableSearchModel.cs | 2 - .../Components/Table/ITableToolbarButton.cs | 14 +- .../Components/Table/IToolbarComponent.cs | 5 +- .../Components/Table/InternalTableColumn.cs | 236 +++++------ .../Components/Table/LookupContent.cs | 1 - .../Components/Table/Table.razor.Checkbox.cs | 7 - .../Components/Table/Table.razor.Edit.cs | 38 -- .../Table/Table.razor.Localization.cs | 260 +++++------- .../Table/Table.razor.Pagination.cs | 16 - .../Components/Table/Table.razor.Search.cs | 139 +++---- .../Components/Table/Table.razor.Sort.cs | 25 -- .../Components/Table/Table.razor.Toolbar.cs | 80 ---- .../Components/Table/Table.razor.TreeNode.cs | 9 - .../Components/Table/Table.razor.cs | 109 ----- .../Table/TableAdvancedSortDialog.razor.cs | 6 - .../Components/Table/TableCellButton.cs | 2 - .../Components/Table/TableCellComponent.cs | 3 - .../Table/TableCellPopConfirmButton.cs | 2 - .../Components/Table/TableColumn.cs | 2 - .../Components/Table/TableExportContext.cs | 1 - .../Table/TableExtensionButton.razor.cs | 2 - .../Components/Table/TableFooterCell.razor.cs | 9 - .../Components/Table/TableFormatContent.cs | 2 - .../Components/Table/TableToolbar.razor.cs | 5 - .../Components/Table/TableToolbarButton.cs | 2 - .../Components/Table/TableToolbarComponent.cs | 2 - .../Table/TableToolbarPopConfirmButton.cs | 4 - .../Components/Textarea/Textarea.razor.cs | 5 - .../ThemeProvider/ThemeProvider.razor.cs | 12 - .../Components/TimePicker/TimePicker.razor.cs | 5 - .../TimePicker/TimePickerCell.razor.cs | 8 - .../Components/Timeline/Timeline.razor.cs | 4 - .../Components/Timeline/TimelineItem.cs | 1 - .../Components/Timer/Timer.razor.cs | 11 - src/BootstrapBlazor/Components/Title/Title.cs | 1 - .../Components/Toast/Toast.razor.cs | 1 - .../Components/Toast/ToastContainer.razor.cs | 1 - .../Components/Toggle/Toggle.razor.cs | 1 - .../Components/Toggle/ToggleBase.cs | 3 - .../Components/Toolbar/Toolbar.razor.cs | 2 - .../Toolbar/ToolbarButtonGroup.razor.cs | 1 - .../Components/Toolbar/ToolbarItem.razor.cs | 1 - .../Components/Tooltip/ITooltip.cs | 8 - .../Components/Tooltip/Tooltip.razor.cs | 6 - .../Components/Tooltip/TooltipWrapperBase.cs | 3 - .../Components/Transfer/Transfer.razor.cs | 28 -- .../Transfer/TransferPanel.razor.cs | 10 - .../Components/Transition/Transition.razor.cs | 6 - .../Components/Tree/Tree.razor.cs | 20 - .../Components/Tree/TreeItem.cs | 1 - .../Components/TreeView/TreeView.razor.cs | 50 --- .../Components/TreeView/TreeViewRow.razor.cs | 21 - .../TreeViewToolbarEditButton.razor.cs | 5 - .../Components/Typed/Typed.razor.cs | 6 - .../Components/Typed/TypedOptions.cs | 3 - .../Components/Upload/AvatarUpload.razor.cs | 17 - .../Components/Upload/ButtonUpload.razor.cs | 11 - .../Components/Upload/CardUpload.razor.cs | 23 -- .../Components/Upload/DropUpload.razor.cs | 13 - .../Components/Upload/FileListUploadBase.cs | 7 - .../Components/Upload/InputUpload.razor.cs | 8 - .../Components/Upload/UploadBase.cs | 21 - .../Components/Upload/UploadFile.cs | 2 - .../Upload/UploadPreviewList.razor.cs | 25 -- .../Validate/IValidateCollection.cs | 3 - .../Components/Validate/IValidateComponent.cs | 1 - .../Components/Validate/ValidateBase.cs | 16 - ...BootstrapBlazorDataAnnotationsValidator.cs | 29 +- .../ValidateForm/ValidateForm.razor.cs | 15 - .../Components/Waterfall/Waterfall.razor.cs | 10 - .../Components/Waterfall/WaterfallItem.cs | 12 +- .../Components/Watermark/Watermark.razor.cs | 10 - .../Recognition/WebSpeechRecognition.cs | 85 ++-- .../Recognition/WebSpeechRecognitionError.cs | 12 +- .../Recognition/WebSpeechRecognitionEvent.cs | 12 +- .../Recognition/WebSpeechRecognitionOption.cs | 20 +- .../Synthesizer/WebSpeechSynthesisError.cs | 16 +- .../WebSpeechSynthesisUtterance.cs | 28 +- .../Synthesizer/WebSpeechSynthesisVoice.cs | 24 +- .../Synthesizer/WebSpeechSynthesizer.cs | 7 - .../Components/WebSpeech/WebSpeechService.cs | 14 +- .../Converter/ColumnVisibleItemConverter.cs | 1 - .../JsonFilterKeyValueActionConverter.cs | 1 - .../Converter/JsonQueryPageOptionConverter.cs | 1 - .../Dynamic/DataTableDynamicContext.cs | 7 - .../Dynamic/DataTableDynamicObject.cs | 1 - .../Dynamic/DynamicColumnsObject.cs | 1 - src/BootstrapBlazor/Dynamic/DynamicObject.cs | 1 - .../Dynamic/DynamicObjectContext.cs | 6 - src/BootstrapBlazor/Dynamic/IDynamicObject.cs | 1 - .../Dynamic/IDynamicObjectContext.cs | 5 - src/BootstrapBlazor/Enums/MarqueeDirection.cs | 20 +- src/BootstrapBlazor/Enums/MessageShowMode.cs | 12 +- src/BootstrapBlazor/Enums/ObjectFitMode.cs | 24 +- src/BootstrapBlazor/Enums/OtpInputType.cs | 16 +- src/BootstrapBlazor/Enums/Placement.cs | 80 ++-- src/BootstrapBlazor/Enums/PopoverType.cs | 12 +- src/BootstrapBlazor/Enums/RecognizerStatus.cs | 20 +- src/BootstrapBlazor/Enums/RowType.cs | 12 +- src/BootstrapBlazor/Enums/ScrollMode.cs | 12 +- .../Enums/ScrollToViewAlign.cs | 20 +- src/BootstrapBlazor/Enums/SearchMode.cs | 12 +- src/BootstrapBlazor/Enums/Size.cs | 32 +- src/BootstrapBlazor/Enums/SortOrder.cs | 16 +- src/BootstrapBlazor/Enums/SpinnerType.cs | 12 +- src/BootstrapBlazor/Enums/StackAlignItems .cs | 24 +- src/BootstrapBlazor/Enums/StackJustify.cs | 28 +- src/BootstrapBlazor/Enums/StepStatus.cs | 24 +- src/BootstrapBlazor/Enums/SwalCategory.cs | 24 +- .../Enums/SynthesizerStatus.cs | 20 +- src/BootstrapBlazor/Enums/TabStyle.cs | 16 +- src/BootstrapBlazor/Enums/TableExportType.cs | 20 +- src/BootstrapBlazor/Enums/TableHeaderStyle.cs | 16 +- src/BootstrapBlazor/Enums/TableRenderModel.cs | 16 +- .../Enums/TimePickerCellViewModel.cs | 16 +- src/BootstrapBlazor/Enums/ToastCategory.cs | 20 +- src/BootstrapBlazor/Enums/TransitionType.cs | 384 +++++++++--------- src/BootstrapBlazor/Enums/UploadStyle.cs | 20 +- .../Enums/WebClientDeviceType.cs | 16 +- .../Extensions/AssemblyExtensions.cs | 1 - .../Extensions/BluetoothExtensions.cs | 1 - ...tstrapBlazorServiceCollectionExtensions.cs | 7 - .../Extensions/ConfigurationExtensions.cs | 4 - .../ConsoleItemMessageExtensions.cs | 1 - .../Extensions/DateTimeExtensions.cs | 3 - .../Extensions/DialogServiceExtensions.cs | 6 - .../Extensions/DownloadServiceExtensions.cs | 5 - .../Extensions/DrawerOptionExtensions.cs | 1 - .../Extensions/EnumExtensions.cs | 8 - .../Extensions/ExceptionExtensions.cs | 2 - .../Extensions/ExpandableNodeExtensions.cs | 4 - .../Extensions/FieldIdentifierExtensions.cs | 4 - .../Extensions/FullScreenServiceExtensions.cs | 2 - .../Extensions/ICacheEntryExtensions.cs | 1 - .../Extensions/IEditorItemExtensions.cs | 4 - .../Extensions/IIconThemeExtensions.cs | 1 - .../Extensions/ILooupExtensions.cs | 4 - .../IModelEqualityComparerExtensions.cs | 1 - .../Extensions/IQueryableExtensions.cs | 4 - .../Extensions/IStringLocalizerExtensions.cs | 1 - .../Extensions/ITableColumnExtensions.cs | 2 - .../Extensions/JSModuleExtensions.cs | 3 - .../Extensions/LambdaExtensions.cs | 15 - .../LocalizationOptionsExtensions.cs | 1 - .../Extensions/MaskServiceExtensions.cs | 2 - .../Extensions/MenuItemExtensions.cs | 2 - .../Extensions/NavigationManagerExtensions.cs | 1 - .../Extensions/ObjectExtensions.cs | 10 - .../Extensions/PrintServiceExtensions.cs | 1 - .../Extensions/PropertyInfoExtensions.cs | 3 - .../Extensions/QueryPageOptionsExtensions.cs | 4 - .../Extensions/SwalExtensions.cs | 2 - .../Extensions/TableColumnFilterExtensions.cs | 4 - .../Extensions/TreeViewExtensions.cs | 3 - .../Extensions/TypeExtensions.cs | 2 - .../Extensions/UploadFileExtensions.cs | 6 - .../Extensions/ValidateContextExtensions.cs | 1 - .../Localization/ILocalizationResolve.cs | 2 - ...LocalizationServiceCollectionExtensions.cs | 1 - .../Localization/Json/JsonStringLocalizer.cs | 3 - .../Json/JsonStringLocalizerFactory.cs | 3 - .../Localization/NullLocalizationResolve.cs | 2 - .../Misc/ExpandableNodeCache.cs | 2 - .../Misc/IModelEqualityComparer.cs | 1 - .../Misc/ModelHashSetComparer.cs | 2 - src/BootstrapBlazor/Misc/TreeNodeCache.cs | 3 - .../Options/BootstrapBlazorOptions.cs | 1 - src/BootstrapBlazor/Options/OtpOptions.cs | 3 - src/BootstrapBlazor/Options/StepSettings.cs | 1 - .../Options/TabItemMenuBindOptions.cs | 8 +- .../Options/TabItemTextOptions.cs | 29 +- .../Options/TableExportOptions.cs | 32 +- src/BootstrapBlazor/Options/TableSettings.cs | 36 +- .../Options/ThrottleOptions.cs | 16 +- .../Options/WebClientOptions.cs | 8 +- .../Router/RouteTableFactory.cs | 1 - src/BootstrapBlazor/Services/ArchiveEntry.cs | 16 +- .../Services/Bluetooth/BluetoothDeviceInfo.cs | 64 +-- .../Services/Bluetooth/BluetoothFilter.cs | 24 +- .../BluetoothManufacturerDataFilter.cs | 16 +- .../Bluetooth/BluetoothRequestOptions.cs | 29 +- .../Bluetooth/BluetoothServiceDataFilter.cs | 16 +- .../Services/Bluetooth/BluetoothServices.cs | 160 ++++---- .../Bluetooth/BluetoothUUIDAttribute.cs | 8 +- .../Services/Bluetooth/DefaultBluetooth.cs | 2 - .../DefaultBluetoothCharacteristic.cs | 3 - .../Bluetooth/DefaultBluetoothDevice.cs | 9 - .../Bluetooth/DefaultBluetoothService.cs | 2 - .../Services/Bluetooth/IBluetooth.cs | 3 - .../Bluetooth/IBluetoothCharacterics.cs | 3 - .../Services/Bluetooth/IBluetoothDevice.cs | 8 - .../Services/Bluetooth/IBluetoothService.cs | 2 - .../BootstrapBlazorRootRegisterService.cs | 1 - .../Services/BootstrapServiceBase.cs | 1 - src/BootstrapBlazor/Services/CacheManager.cs | 13 - .../Services/ClipboardService.cs | 2 - .../Services/ComponentHtmlRenderer.cs | 2 - .../Services/DataServiceBase.cs | 4 - .../Services/DefaultCalendarFestivals.cs | 1 - .../Services/DefaultCalendarHolidayss.cs | 2 - .../Services/DefaultConnectionService.cs | 1 - .../Services/DefaultGeoLocationService.cs | 4 - .../Services/DefaultIconTheme.cs | 1 - .../Services/DefaultIdGenerator.cs | 1 - .../Services/DefaultJSVersionService.cs | 1 - .../Services/DefaultNetworkMonitorService.cs | 2 - .../Services/DefaultTableExport.cs | 4 - .../Services/EyeDropperService.cs | 1 - .../Services/FullScreenService.cs | 1 - .../Services/IBrowserFingerService.cs | 2 - src/BootstrapBlazor/Services/ICacheManager.cs | 5 - .../Services/ICalendarFestivals.cs | 1 - .../Services/ICalendarHolidays.cs | 2 - .../Services/IComponentHtmlRenderer.cs | 2 - .../Services/IComponentIdGenerator.cs | 1 - .../Services/IConnectionService.cs | 1 - src/BootstrapBlazor/Services/IDataService.cs | 6 - .../IEntityFrameworkCoreDataService.cs | 2 - src/BootstrapBlazor/Services/IExportPdf.cs | 2 - .../Services/IGeoLocationService.cs | 3 - src/BootstrapBlazor/Services/IIconTheme.cs | 1 - .../IPLocator/BaiduIpLocatorProvider.cs | 3 - .../IPLocator/BaiduIpLocatorProviderV2.cs | 2 - .../IPLocator/DefaultIPLocatorProvider.cs | 2 - .../Services/IPLocator/IIpLocatorFactory.cs | 1 - .../Services/IRootComponentGenerator.cs | 1 - .../Services/IThrottleDispatcherFactory.cs | 2 - src/BootstrapBlazor/Services/ITotpService.cs | 6 - .../Services/IVersionService.cs | 2 - .../MediaDevices/DefaultAudioDevice.cs | 1 - .../MediaDevices/DefaultVideoDevice.cs | 1 - .../Services/MediaDevices/IAudioDevice.cs | 4 - .../Services/MediaDevices/IMediaDevices.cs | 8 - .../Services/MediaDevices/IVideoDevice.cs | 7 - .../Services/NotificationService.cs | 5 - .../Services/Pinyin/IPinyinService.cs | 4 - src/BootstrapBlazor/Services/PrintService.cs | 1 - .../Services/Serial/DefaultSerialService.cs | 1 - .../Services/Serial/ISerialPort.cs | 7 - .../Services/Serial/ISerialService.cs | 1 - .../Services/Serial/SerialPort.cs | 8 - .../Services/ThrottleDispatcher.cs | 1 - src/BootstrapBlazor/Services/TitleService.cs | 1 - .../Services/WebClientService.cs | 3 - .../Utils/BootstrapDynamicComponent.cs | 4 - src/BootstrapBlazor/Utils/EmitHelper.cs | 1 - src/BootstrapBlazor/Utils/JSModule.cs | 6 - src/BootstrapBlazor/Utils/Utility.cs | 37 -- .../Validators/MinValidator.cs | 1 - .../Validators/RequiredValidator.cs | 2 - 520 files changed, 1743 insertions(+), 5077 deletions(-) diff --git a/exclusion.dic b/exclusion.dic index 5ddaf652c01..e392d608af8 100644 --- a/exclusion.dic +++ b/exclusion.dic @@ -125,3 +125,4 @@ alertdialog blazorbootstrap llms ebook +cref diff --git a/src/BootstrapBlazor.Server/Services/ComponentAttributeCacheService.cs b/src/BootstrapBlazor.Server/Services/ComponentAttributeCacheService.cs index 9aa35fffdc5..7b27072fe1b 100644 --- a/src/BootstrapBlazor.Server/Services/ComponentAttributeCacheService.cs +++ b/src/BootstrapBlazor.Server/Services/ComponentAttributeCacheService.cs @@ -76,9 +76,8 @@ private static List GetAttributeCore(Type type) return null; } - var inheritDoc = summaryElement.Element("inheritdoc"); - var cref = inheritDoc?.Attribute("cref")?.Value; - return cref != null ? FindSummaryElement(xmlDoc, cref) : summaryElement; + var doc = summaryElement.Element("inheritdoc")?.Attribute("cref")?.Value; + return doc != null ? FindSummaryElement(xmlDoc, doc) : summaryElement; } private static string? GetLocalizedSummary(XElement? summaryElement) diff --git a/src/BootstrapBlazor/Attributes/FileValidationAttribute.cs b/src/BootstrapBlazor/Attributes/FileValidationAttribute.cs index 829a845fd9d..302f836b83b 100644 --- a/src/BootstrapBlazor/Attributes/FileValidationAttribute.cs +++ b/src/BootstrapBlazor/Attributes/FileValidationAttribute.cs @@ -35,7 +35,6 @@ public class FileValidationAttribute : ValidationAttribute /// /// /// - /// protected override ValidationResult? IsValid(object? value, ValidationContext validationContext) { ValidationResult? ret = null; diff --git a/src/BootstrapBlazor/Components/Affix/Affix.razor.cs b/src/BootstrapBlazor/Components/Affix/Affix.razor.cs index 8e5f5ff9148..147ca09567d 100644 --- a/src/BootstrapBlazor/Components/Affix/Affix.razor.cs +++ b/src/BootstrapBlazor/Components/Affix/Affix.razor.cs @@ -16,7 +16,6 @@ public partial class Affix /// /// 获得/设置 指定偏移量后触发 /// Gets or sets the offset value to trigger - /// 10.2.2 /// [Parameter] public float Offset { get; set; } @@ -24,7 +23,6 @@ public partial class Affix /// /// 获得/设置 固定位置枚举 默认 /// Gets or sets the affix position. Default is - /// 10.2.2 /// [Parameter] public AffixPosition Position { get; set; } @@ -32,7 +30,6 @@ public partial class Affix /// /// 获得/设置 z-index 值 默认 100 /// Gets or sets the z-index value. Default is 100 - /// 10.2.2 /// [Parameter] public int? ZIndex { get; set; } @@ -40,7 +37,6 @@ public partial class Affix /// /// 获得/设置 组件内容 /// Gets or sets the child content - /// 10.2.2 /// [Parameter] [EditorRequired] diff --git a/src/BootstrapBlazor/Components/Alert/Alert.razor.cs b/src/BootstrapBlazor/Components/Alert/Alert.razor.cs index fc3c835e55e..7b67a199714 100644 --- a/src/BootstrapBlazor/Components/Alert/Alert.razor.cs +++ b/src/BootstrapBlazor/Components/Alert/Alert.razor.cs @@ -15,7 +15,6 @@ public partial class Alert /// 获得 样式集合 /// Gets the class name /// - /// private string? ClassName => CssBuilder.Default("alert fade show") .AddClass($"alert-{Color.ToDescriptionString()}", Color != Color.None) .AddClass($"border-{Color.ToDescriptionString()}", ShowBorder) @@ -31,7 +30,6 @@ public partial class Alert /// /// 获得/设置 是否显示阴影 默认 false 不显示 /// Gets or sets whether to show shadow. Default is false - /// 10.2.2 /// [Parameter] public bool ShowShadow { get; set; } @@ -39,7 +37,6 @@ public partial class Alert /// /// 获得/设置 是否显示边框 默认 false 不显示 /// Gets or sets whether to show border. Default is false - /// 10.2.2 /// [Parameter] public bool ShowBorder { get; set; } diff --git a/src/BootstrapBlazor/Components/Alert/AlertBase.cs b/src/BootstrapBlazor/Components/Alert/AlertBase.cs index ed735400720..81c20ea3d59 100644 --- a/src/BootstrapBlazor/Components/Alert/AlertBase.cs +++ b/src/BootstrapBlazor/Components/Alert/AlertBase.cs @@ -22,7 +22,6 @@ public abstract class AlertBase : BootstrapComponentBase /// /// 获得/设置 颜色 /// Gets or sets the color - /// 10.2.2 /// [Parameter] public Color Color { get; set; } = Color.Primary; @@ -30,7 +29,6 @@ public abstract class AlertBase : BootstrapComponentBase /// /// 获得/设置 是否显示关闭按钮 /// Gets or sets whether to show the dismiss button - /// 10.2.2 /// [Parameter] public bool ShowDismiss { get; set; } @@ -38,7 +36,6 @@ public abstract class AlertBase : BootstrapComponentBase /// /// 获得/设置 显示图标 /// Gets or sets the icon - /// 10.2.2 /// [Parameter] public string? Icon { get; set; } @@ -46,7 +43,6 @@ public abstract class AlertBase : BootstrapComponentBase /// /// 获得/设置 是否显示左侧 Bar /// Gets or sets whether to show the left bar - /// 10.2.2 /// [Parameter] public bool ShowBar { get; set; } @@ -54,7 +50,6 @@ public abstract class AlertBase : BootstrapComponentBase /// /// 子组件 /// Child content - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } @@ -62,7 +57,6 @@ public abstract class AlertBase : BootstrapComponentBase /// /// 关闭警告框回调方法 /// Callback method when the alert is dismissed - /// 10.2.2 /// [Parameter] public Func? OnDismiss { get; set; } diff --git a/src/BootstrapBlazor/Components/Anchor/Anchor.razor.cs b/src/BootstrapBlazor/Components/Anchor/Anchor.razor.cs index 5895e3d100d..26d69a84e52 100644 --- a/src/BootstrapBlazor/Components/Anchor/Anchor.razor.cs +++ b/src/BootstrapBlazor/Components/Anchor/Anchor.razor.cs @@ -14,7 +14,6 @@ public partial class Anchor /// /// 获得/设置 目标组件 Id /// Gets or sets the target component Id - /// 10.2.2 /// [Parameter] public string? Target { get; set; } @@ -22,7 +21,6 @@ public partial class Anchor /// /// 获得/设置 滚动组件 Id 默认为 null 使用最近滚动条容器元素 /// Gets or sets the scroll component Id. Default is null, using the nearest scroll container element - /// 10.2.2 /// [Parameter] public string? Container { get; set; } @@ -30,7 +28,6 @@ public partial class Anchor /// /// 获得/设置 滚动时是否开启动画 默认 true /// Gets or sets whether to enable animation when scrolling. Default is true - /// 10.2.2 /// [Parameter] public bool IsAnimation { get; set; } = true; @@ -44,7 +41,6 @@ public partial class Anchor /// /// 获得/设置 距离顶端偏移量 默认为 0 /// Gets or sets the offset from the top. Default is 0 - /// 10.2.2 /// [Parameter] public int Offset { get; set; } @@ -52,7 +48,6 @@ public partial class Anchor /// /// 获得/设置 子内容 /// Gets or sets the child content - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } diff --git a/src/BootstrapBlazor/Components/AnchorLink/AnchorLink.razor.cs b/src/BootstrapBlazor/Components/AnchorLink/AnchorLink.razor.cs index 8523fc03e59..11875788514 100644 --- a/src/BootstrapBlazor/Components/AnchorLink/AnchorLink.razor.cs +++ b/src/BootstrapBlazor/Components/AnchorLink/AnchorLink.razor.cs @@ -14,7 +14,6 @@ public partial class AnchorLink /// /// 获得/设置 组件 Text 显示文字 /// Gets or sets the component text display - /// 10.2.2 /// [Parameter] public string? Text { get; set; } @@ -22,7 +21,6 @@ public partial class AnchorLink /// /// 获得/设置 组件 拷贝成功后 显示文字 /// Gets or sets the display text after successful copy - /// 10.2.2 /// [Parameter] public string? TooltipText { get; set; } @@ -30,7 +28,6 @@ public partial class AnchorLink /// /// 获得/设置 锚点图标 默认 fa-solid fa-link /// Gets or sets the anchor icon. Default is fa-solid fa-link - /// 10.2.2 /// [Parameter] public string? Icon { get; set; } diff --git a/src/BootstrapBlazor/Components/AutoComplete/AutoComplete.razor.cs b/src/BootstrapBlazor/Components/AutoComplete/AutoComplete.razor.cs index 20af86de2a8..4da01883f23 100644 --- a/src/BootstrapBlazor/Components/AutoComplete/AutoComplete.razor.cs +++ b/src/BootstrapBlazor/Components/AutoComplete/AutoComplete.razor.cs @@ -16,7 +16,6 @@ public partial class AutoComplete /// /// 获得/设置 通过输入字符串获得的匹配数据集合 /// Gets or sets the collection of matching data obtained by inputting a string - /// 10.2.2 /// [Parameter] [NotNull] @@ -25,7 +24,6 @@ public partial class AutoComplete /// /// 获得/设置 自定义集合过滤规则 默认为 null /// Gets or sets custom collection filtering rules, default is null - /// 10.2.2 /// [Parameter] public Func>>? OnCustomFilter { get; set; } @@ -33,7 +31,6 @@ public partial class AutoComplete /// /// 获得/设置 图标 /// Gets or sets the icon - /// 10.2.2 /// [Parameter] public string? Icon { get; set; } @@ -41,7 +38,6 @@ public partial class AutoComplete /// /// 获得/设置 加载图标 /// Gets or sets the loading icon - /// 10.2.2 /// [Parameter] public string? LoadingIcon { get; set; } @@ -49,7 +45,6 @@ public partial class AutoComplete /// /// 获得/设置 匹配数据时显示的数量 /// Gets or sets the number of items to display when matching data - /// 10.2.2 /// [Parameter] [NotNull] @@ -58,7 +53,6 @@ public partial class AutoComplete /// /// 获得/设置 是否开启模糊搜索 默认为 false /// Gets or sets whether to enable fuzzy search, default is false - /// 10.2.2 /// [Parameter] public bool IsLikeMatch { get; set; } @@ -66,7 +60,6 @@ public partial class AutoComplete /// /// 获得/设置 匹配时是否忽略大小写 默认为 true /// Gets or sets whether to ignore case when matching, default is true - /// 10.2.2 /// [Parameter] public bool IgnoreCase { get; set; } = true; @@ -74,7 +67,6 @@ public partial class AutoComplete /// /// 获得/设置 获得焦点时是否展开下拉候选菜单 默认为 true /// Gets or sets whether to expand the dropdown candidate menu when focused, default is true - /// 10.2.2 /// [Parameter] public bool ShowDropdownListOnFocus { get; set; } = true; @@ -82,7 +74,6 @@ public partial class AutoComplete /// /// 获得/设置 是否显示无匹配数据选项 默认为 true /// Gets or sets whether to show the no matching data option, default is true - /// 10.2.2 /// [Parameter] public bool ShowNoDataTip { get; set; } = true; @@ -162,7 +153,6 @@ protected override void OnParametersSet() /// /// /// - /// protected override async Task OnAfterRenderAsync(bool firstRender) { await base.OnAfterRenderAsync(firstRender); @@ -180,7 +170,6 @@ protected override async Task OnAfterRenderAsync(bool firstRender) /// /// /// - /// protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id, Interop, Value, GetChangedEventCallbackName()); private string? GetChangedEventCallbackName() => (OnValueChanged != null || ValueChanged.HasDelegate) ? nameof(TriggerChange) : null; @@ -189,7 +178,6 @@ protected override async Task OnAfterRenderAsync(bool firstRender) /// 获得 是否显示清除按钮 /// Gets whether show the clear button. /// - /// private bool GetClearable() => IsClearable && !IsDisabled; /// @@ -222,7 +210,6 @@ private async Task OnClickItem(string val) /// 点击清空按钮时调用此方法 由 Javascript 触发 /// Method called when the clear button is clicked. Triggered by Javascript /// - /// [JSInvokable] public async Task TriggerClear() { @@ -268,7 +255,6 @@ public async Task TriggerFilter(string val) /// Supports two-way binding. Triggered by client-side JavaScript /// /// - /// [JSInvokable] public void TriggerChange(string v) { diff --git a/src/BootstrapBlazor/Components/AutoComplete/PopoverCompleteBase.cs b/src/BootstrapBlazor/Components/AutoComplete/PopoverCompleteBase.cs index 9b51e48f3c8..3afea6eb77b 100644 --- a/src/BootstrapBlazor/Components/AutoComplete/PopoverCompleteBase.cs +++ b/src/BootstrapBlazor/Components/AutoComplete/PopoverCompleteBase.cs @@ -21,22 +21,19 @@ public abstract class PopoverCompleteBase : BootstrapInputBase, protected IIconTheme? IconTheme { get; set; } /// - /// - /// 10.2.2 + /// /// [Parameter] public Placement Placement { get; set; } = Placement.Bottom; /// - /// - /// 10.2.2 + /// /// [Parameter] public string? CustomClass { get; set; } /// - /// - /// 10.2.2 + /// /// [Parameter] public bool ShowShadow { get; set; } = true; @@ -44,22 +41,19 @@ public abstract class PopoverCompleteBase : BootstrapInputBase, /// /// 获得/设置 无匹配数据时显示提示信息 默认提示"无匹配数据" /// Gets or sets the tip info when no matching data. Default is "No matched data" - /// 10.2.2 /// [Parameter] [NotNull] public string? NoDataTip { get; set; } /// - /// - /// 10.2.2 + /// /// [Parameter] public bool IsPopover { get; set; } /// - /// - /// 10.2.2 + /// /// [Parameter] public string? Offset { get; set; } @@ -67,7 +61,6 @@ public abstract class PopoverCompleteBase : BootstrapInputBase, /// /// 获得/设置 防抖时间 默认为 0 即不开启 /// Gets or sets the debounce time. Default is 0 (disabled) - /// 10.2.2 /// [Parameter] public int Debounce { get; set; } @@ -75,7 +68,6 @@ public abstract class PopoverCompleteBase : BootstrapInputBase, /// /// 获得/设置 下拉菜单选择回调方法 默认 null /// Gets or sets the callback method for dropdown item selection. Default is null - /// 10.2.2 /// [Parameter] public Func? OnSelectedItemChanged { get; set; } @@ -83,7 +75,6 @@ public abstract class PopoverCompleteBase : BootstrapInputBase, /// /// 获得/设置 是否跳过 Enter 按键处理 默认 false /// Gets or sets whether to skip Enter key processing. Default is false - /// 10.2.2 /// [Parameter] public bool SkipEnter { get; set; } @@ -91,7 +82,6 @@ public abstract class PopoverCompleteBase : BootstrapInputBase, /// /// 获得/设置 是否跳过 Esc 按键处理 默认 false /// Gets or sets whether to skip Esc key processing. Default is false - /// 10.2.2 /// [Parameter] public bool SkipEsc { get; set; } @@ -99,7 +89,6 @@ public abstract class PopoverCompleteBase : BootstrapInputBase, /// /// 获得/设置 滚动行为 默认 /// Gets or sets the scroll behavior. Default is - /// 10.2.2 /// [Parameter] public ScrollIntoViewBehavior ScrollIntoViewBehavior { get; set; } = ScrollIntoViewBehavior.Smooth; @@ -107,7 +96,6 @@ public abstract class PopoverCompleteBase : BootstrapInputBase, /// /// 获得/设置 候选项模板 默认 null /// Gets or sets the item template. Default is null - /// 10.2.2 /// [Parameter] public RenderFragment? ItemTemplate { get; set; } @@ -115,7 +103,6 @@ public abstract class PopoverCompleteBase : BootstrapInputBase, /// /// 获得/设置 选择组件是否可清除 默认为 false /// Gets or sets whether the select component is clearable. Default is false. - /// 10.2.2 /// [Parameter] public bool IsClearable { get; set; } @@ -123,7 +110,6 @@ public abstract class PopoverCompleteBase : BootstrapInputBase, /// /// 获得/设置 右侧清除图标 默认为 fa-solid fa-angle-up /// Gets or sets the right-side clear icon. Default is fa-solid fa-angle-up. - /// 10.2.2 /// [Parameter] [NotNull] @@ -216,7 +202,6 @@ protected override void OnParametersSet() /// 触发 OnBlurAsync 回调前回调方法 /// Callback method before triggering OnBlurAsync /// - /// protected virtual Task OnBeforeBlurAsync() => Task.CompletedTask; /// diff --git a/src/BootstrapBlazor/Components/AutoFill/AutoFill.razor.cs b/src/BootstrapBlazor/Components/AutoFill/AutoFill.razor.cs index f776a16789f..171f13523c3 100644 --- a/src/BootstrapBlazor/Components/AutoFill/AutoFill.razor.cs +++ b/src/BootstrapBlazor/Components/AutoFill/AutoFill.razor.cs @@ -19,7 +19,6 @@ public partial class AutoFill /// /// 获得/设置 组件数据集合 /// Gets or sets the collection of items for the component. - /// 10.2.2 /// [Parameter] [NotNull] @@ -28,7 +27,6 @@ public partial class AutoFill /// /// 获得/设置 匹配数据时显示的数量 默认为 null /// Gets or sets the number of items to display when matching data. Default is null. - /// 10.2.2 /// [Parameter] [NotNull] @@ -37,7 +35,6 @@ public partial class AutoFill /// /// 获得/设置 是否开启模糊搜索 默认为 false /// Gets or sets whether to enable fuzzy search. Default is false. - /// 10.2.2 /// [Parameter] public bool IsLikeMatch { get; set; } @@ -45,7 +42,6 @@ public partial class AutoFill /// /// 获得/设置 匹配时是否忽略大小写 默认为 true /// Gets or sets whether to ignore case when matching. Default is true. - /// 10.2.2 /// [Parameter] public bool IgnoreCase { get; set; } = true; @@ -53,7 +49,6 @@ public partial class AutoFill /// /// 获得/设置 获得焦点时是否展开下拉候选菜单 默认为 true /// Gets or sets whether to expand the dropdown candidate menu when focused. Default is true. - /// 10.2.2 /// [Parameter] public bool ShowDropdownListOnFocus { get; set; } = true; @@ -61,7 +56,6 @@ public partial class AutoFill /// /// 获得/设置 获取显示文本方法 默认为使用 ToString 方法 /// Gets or sets the method to get the display text from the model. Default is to use the ToString override method. - /// 10.2.2 /// [Parameter] [NotNull] @@ -70,7 +64,6 @@ public partial class AutoFill /// /// 获得/设置 图标 /// Gets or sets the icon. - /// 10.2.2 /// [Parameter] public string? Icon { get; set; } @@ -78,7 +71,6 @@ public partial class AutoFill /// /// 获得/设置 加载图标 /// Gets or sets the loading icon. - /// 10.2.2 /// [Parameter] public string? LoadingIcon { get; set; } @@ -86,7 +78,6 @@ public partial class AutoFill /// /// 获得/设置 自定义集合过滤规则 /// Gets or sets the custom collection filtering rules. - /// 10.2.2 /// [Parameter] public Func>>? OnCustomFilter { get; set; } @@ -94,7 +85,6 @@ public partial class AutoFill /// /// 获得/设置 是否显示无匹配数据选项 默认为 true /// Gets or sets whether to show the no matching data option. Default is true. - /// 10.2.2 /// [Parameter] public bool ShowNoDataTip { get; set; } = true; @@ -102,7 +92,6 @@ public partial class AutoFill /// /// 获得/设置 候选项模板 默认为 null /// Gets or sets the candidate item template. Default is null. - /// 10.2.2 /// [Parameter] [Obsolete("已弃用,请使用 ItemTemplate 代替;Deprecated please use ItemTemplate parameter")] @@ -112,7 +101,6 @@ public partial class AutoFill /// /// 获得/设置 是否开启虚拟滚动 默认为 false /// Gets or sets whether virtual scrolling is enabled. Default is false. - /// 10.2.2 /// [Parameter] public bool IsVirtualize { get; set; } @@ -120,7 +108,6 @@ public partial class AutoFill /// /// 获得/设置 虚拟滚动行高 默认为 50f /// Gets or sets the row height for virtual scrolling. Default is 50f. - /// 10.2.2 /// /// /// 为 true 时生效 @@ -132,7 +119,6 @@ public partial class AutoFill /// /// 获得/设置 虚拟滚动预加载行数 默认为 3 /// Gets or sets the overscan count for virtual scrolling. Default is 3. - /// 10.2.2 /// /// /// 为 true 时生效 @@ -144,7 +130,6 @@ public partial class AutoFill /// /// 获得/设置 虚拟滚动加载回调方法 /// Gets or sets the callback method for loading virtualized items. - /// 10.2.2 /// [Parameter] [NotNull] @@ -153,7 +138,6 @@ public partial class AutoFill /// /// 获得/设置 点击清除按钮回调方法 默认为 null /// Gets or sets the callback method when the clear button is clicked. Default is null. - /// 10.2.2 /// [Parameter] public Func? OnClearAsync { get; set; } @@ -161,7 +145,6 @@ public partial class AutoFill /// /// 获得/设置 输入框内容无效时是否自动清空内容 默认 false /// Gets or sets whether to clear the content automatically when the input is invalid. Default is false - /// 10.2.2 /// [Parameter] public bool IsAutoClearWhenInvalid { get; set; } @@ -229,7 +212,6 @@ protected override void OnParametersSet() /// /// /// - /// protected override async Task OnAfterRenderAsync(bool firstRender) { await base.OnAfterRenderAsync(firstRender); @@ -252,7 +234,6 @@ protected override async Task OnAfterRenderAsync(bool firstRender) /// /// /// - /// protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id, Interop, _displayText, nameof(TriggerChange)); private string? _clientValue; @@ -262,7 +243,6 @@ protected override async Task OnAfterRenderAsync(bool firstRender) /// Triggered by client-side JavaScript /// /// - /// [JSInvokable] public void TriggerChange(string v) { @@ -275,7 +255,6 @@ public void TriggerChange(string v) /// 获得 是否显示清除按钮 /// Gets whether show the clear button. /// - /// private bool GetClearable() => IsClearable && !IsDisabled && IsNullable(); /// @@ -375,7 +354,6 @@ public async Task TriggerFilter(string val) /// /// /// - /// protected override async Task OnBeforeBlurAsync() { if (IsAutoClearWhenInvalid && GetDisplayText(Value) != _clientValue) diff --git a/src/BootstrapBlazor/Components/AutoRedirect/AutoRedirect.cs b/src/BootstrapBlazor/Components/AutoRedirect/AutoRedirect.cs index 904c6c2a8a9..583cb14ff32 100644 --- a/src/BootstrapBlazor/Components/AutoRedirect/AutoRedirect.cs +++ b/src/BootstrapBlazor/Components/AutoRedirect/AutoRedirect.cs @@ -15,7 +15,6 @@ public class AutoRedirect : BootstrapModuleComponentBase /// /// 获得/设置 重定向地址 /// Gets or sets the redirect URL - /// 10.2.2 /// [Parameter] public string? RedirectUrl { get; set; } @@ -23,7 +22,6 @@ public class AutoRedirect : BootstrapModuleComponentBase /// /// 获得/设置 是否强制导航 默认 false /// Gets or sets whether to force load. Default is false - /// 10.2.2 /// [Parameter] public bool IsForceLoad { get; set; } @@ -31,7 +29,6 @@ public class AutoRedirect : BootstrapModuleComponentBase /// /// 获得/设置 自动锁屏间隔单位 秒 默认 60000 毫秒 /// Gets or sets the auto lock screen interval in milliseconds. Default is 60000 ms - /// 10.2.2 /// [Parameter] public int Interval { get; set; } = 60000; @@ -39,7 +36,6 @@ public class AutoRedirect : BootstrapModuleComponentBase /// /// 获得/设置 地址跳转前回调方法 返回 true 时中止跳转 /// Gets or sets the callback method before redirect. Returns true to cancel redirect - /// 10.2.2 /// [Parameter] public Func>? OnBeforeRedirectAsync { get; set; } @@ -55,7 +51,6 @@ public class AutoRedirect : BootstrapModuleComponentBase /// /// /// - /// protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id, Interop, Interval, nameof(Lock)); /// diff --git a/src/BootstrapBlazor/Components/Avatar/Avatar.razor.cs b/src/BootstrapBlazor/Components/Avatar/Avatar.razor.cs index f8f481f93fd..45e0fa7dc15 100644 --- a/src/BootstrapBlazor/Components/Avatar/Avatar.razor.cs +++ b/src/BootstrapBlazor/Components/Avatar/Avatar.razor.cs @@ -15,7 +15,6 @@ public partial class Avatar /// 获得 样式集合 /// Gets the class name /// - /// private string? ClassName => CssBuilder.Default("avatar") .AddClass("avatar-circle", IsCircle) .AddClass($"avatar-{Size.ToDescriptionString()}", Size != Size.None && Size != Size.Medium) @@ -34,7 +33,6 @@ public partial class Avatar /// /// 获得/设置 是否为圆形 /// Gets or sets whether it is a circle - /// 10.2.2 /// [Parameter] public bool IsCircle { get; set; } @@ -42,7 +40,6 @@ public partial class Avatar /// /// 获得/设置 Image 头像路径地址 /// Gets or sets the image path - /// 10.2.2 /// [Parameter] public string? Url { get; set; } @@ -50,7 +47,6 @@ public partial class Avatar /// /// 获得/设置 是否为图标 /// Gets or sets whether it is an icon - /// 10.2.2 /// [Parameter] public bool IsIcon { get; set; } @@ -58,7 +54,6 @@ public partial class Avatar /// /// 获得/设置 头像框显示图标 /// Gets or sets the icon - /// 10.2.2 /// [Parameter] public string? Icon { get; set; } @@ -66,7 +61,6 @@ public partial class Avatar /// /// 获得/设置 是否显示为文字 /// Gets or sets whether to display text - /// 10.2.2 /// [Parameter] public bool IsText { get; set; } @@ -74,7 +68,6 @@ public partial class Avatar /// /// 获得/设置 头像框显示文字 /// Gets or sets the text - /// 10.2.2 /// [Parameter] public string? Text { get; set; } @@ -82,7 +75,6 @@ public partial class Avatar /// /// 获得/设置 头像框大小 /// Gets or sets the size - /// 10.2.2 /// [Parameter] public Size Size { get; set; } = Size.Medium; @@ -90,7 +82,6 @@ public partial class Avatar /// /// 获得/设置 是否显示 Border 默认为 false /// Gets or sets whether to show border. Default is false - /// 10.2.2 /// [Parameter] public bool IsBorder { get; set; } @@ -98,7 +89,6 @@ public partial class Avatar /// /// 获得/设置 获取图片地址异步回调方法 /// Gets or sets the async callback method to get image url - /// 10.2.2 /// [Parameter] public Func>? GetUrlAsync { get; set; } @@ -117,7 +107,6 @@ public partial class Avatar /// OnParametersSetAsync 方法 /// OnParametersSetAsync method /// - /// protected override async Task OnParametersSetAsync() { await base.OnParametersSetAsync(); diff --git a/src/BootstrapBlazor/Components/Badge/Badge.razor.cs b/src/BootstrapBlazor/Components/Badge/Badge.razor.cs index e52a9c6ced1..87d2ce8278c 100644 --- a/src/BootstrapBlazor/Components/Badge/Badge.razor.cs +++ b/src/BootstrapBlazor/Components/Badge/Badge.razor.cs @@ -20,7 +20,6 @@ public partial class Badge /// /// 获得/设置 徽章颜色 默认为 /// Gets or sets the color of the badge. Default is . - /// 10.2.2 /// [Parameter] public Color Color { get; set; } = Color.Primary; @@ -28,7 +27,6 @@ public partial class Badge /// /// 获得/设置 徽章是否显示为胶囊形式 默认为 false /// Gets or sets whether the badge should be displayed as a pill (rounded) or not. Default is false. - /// 10.2.2 /// /// [Parameter] @@ -37,7 +35,6 @@ public partial class Badge /// /// 获得/设置 子组件内容 默认为 false /// Gets or sets the child content of the component. Default is false. - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } diff --git a/src/BootstrapBlazor/Components/Badge/ShieldBadge.razor.cs b/src/BootstrapBlazor/Components/Badge/ShieldBadge.razor.cs index 0af11045477..ea6c5b1b0c9 100644 --- a/src/BootstrapBlazor/Components/Badge/ShieldBadge.razor.cs +++ b/src/BootstrapBlazor/Components/Badge/ShieldBadge.razor.cs @@ -14,7 +14,6 @@ public partial class ShieldBadge /// /// 获得/设置 图标 默认为 null /// Gets or sets the icon. Default is null. - /// 10.2.2 /// [Parameter] public string? Icon { get; set; } @@ -22,7 +21,6 @@ public partial class ShieldBadge /// /// 获得/设置 图标颜色 默认为 null /// Gets or sets the icon color. Default is null. - /// 10.2.2 /// [Parameter] public string? IconColor { get; set; } @@ -30,7 +28,6 @@ public partial class ShieldBadge /// /// 获得/设置 徽章文本 默认为 null /// Gets or sets the text of badge. Default is null. - /// 10.2.2 /// [Parameter] public string? Text { get; set; } @@ -38,7 +35,6 @@ public partial class ShieldBadge /// /// 获得/设置 文本颜色 默认为 null /// Gets or sets the text color. Default is null. - /// 10.2.2 /// [Parameter] public string? TextColor { get; set; } @@ -46,7 +42,6 @@ public partial class ShieldBadge /// /// 获得/设置 文本背景颜色 默认为 null /// Gets or sets the text background color. Default is null. - /// 10.2.2 /// [Parameter] public string? TextBackgroundColor { get; set; } @@ -54,7 +49,6 @@ public partial class ShieldBadge /// /// 获得/设置 徽章标签 默认为 null /// Gets or sets the label of badge. Default is null. - /// 10.2.2 /// [Parameter] public string? Label { get; set; } @@ -62,7 +56,6 @@ public partial class ShieldBadge /// /// 获得/设置 标签颜色 默认为 null /// Gets or sets the label color of badge. Default is null. - /// 10.2.2 /// [Parameter] public string? LabelColor { get; set; } @@ -70,7 +63,6 @@ public partial class ShieldBadge /// /// 获得/设置 标签背景颜色 默认为 null /// Gets or sets the label background color. Default is null. - /// 10.2.2 /// [Parameter] public string? LabelBackgroundColor { get; set; } @@ -78,7 +70,6 @@ public partial class ShieldBadge /// /// 获得/设置 徽章圆角半径 默认为 3 /// Gets or sets the badge radius. Default is 3. - /// 10.2.2 /// [Parameter] public int Radius { get; set; } = 3; diff --git a/src/BootstrapBlazor/Components/BaseComponents/BootstrapBlazorRoot.razor.cs b/src/BootstrapBlazor/Components/BaseComponents/BootstrapBlazorRoot.razor.cs index 096db46b6c6..af3d86abc67 100644 --- a/src/BootstrapBlazor/Components/BaseComponents/BootstrapBlazorRoot.razor.cs +++ b/src/BootstrapBlazor/Components/BaseComponents/BootstrapBlazorRoot.razor.cs @@ -27,7 +27,6 @@ public partial class BootstrapBlazorRoot /// /// 获得/设置 子组件 /// Gets or sets child content - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } @@ -49,7 +48,6 @@ public partial class BootstrapBlazorRoot /// /// 获得/设置 是否开启全局异常捕获 默认 null 使用 设置值 /// Gets or sets whether to enable global exception handling. Default is null (use ) - /// 10.2.2 /// [Parameter] public bool? EnableErrorLogger { get; set; } @@ -57,7 +55,6 @@ public partial class BootstrapBlazorRoot /// /// 获得/设置 是否记录异常到 默认 null 使用 设置值 /// Gets or sets whether to log exceptions to . Default is null (use ) - /// 10.2.2 /// [Parameter] public bool? EnableErrorLoggerILogger { get; set; } @@ -65,7 +62,6 @@ public partial class BootstrapBlazorRoot /// /// 获得/设置 是否显示 Error 提示弹窗 默认 null 使用 设置值 /// Gets or sets whether to show Error toast. Default is null (use ) - /// 10.2.2 /// [Parameter] [Obsolete("已弃用,请使用 ShowErrorLoggerToast 参数. Deprecated, please use ShowErrorLoggerToast parameter")] @@ -75,7 +71,6 @@ public partial class BootstrapBlazorRoot /// /// 获得/设置 是否显示 Error 提示弹窗 默认 null 使用 设置值 /// Gets or sets whether to show Error toast. Default is null (use ) - /// 10.2.2 /// [Parameter] public bool? ShowErrorLoggerToast { get; set; } @@ -83,7 +78,6 @@ public partial class BootstrapBlazorRoot /// /// 获得/设置 Error Toast 弹窗标题 /// Gets or sets Error Toast title - /// 10.2.2 /// [Parameter] public string? ToastTitle { get; set; } @@ -91,7 +85,6 @@ public partial class BootstrapBlazorRoot /// /// 获得/设置 自定义错误处理回调方法 /// Gets or sets custom error callback method - /// 10.2.2 /// [Parameter] public Func? OnErrorHandleAsync { get; set; } @@ -106,7 +99,6 @@ public partial class BootstrapBlazorRoot /// /// /// - /// public override async Task SetParametersAsync(ParameterView parameters) { Cache.SetStartTime(); diff --git a/src/BootstrapBlazor/Components/BaseComponents/BootstrapComponentBase.cs b/src/BootstrapBlazor/Components/BaseComponents/BootstrapComponentBase.cs index 87a2255f2d9..22fdcee4abf 100644 --- a/src/BootstrapBlazor/Components/BaseComponents/BootstrapComponentBase.cs +++ b/src/BootstrapBlazor/Components/BaseComponents/BootstrapComponentBase.cs @@ -16,7 +16,6 @@ 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/BaseComponents/BootstrapModuleComponentBase.cs b/src/BootstrapBlazor/Components/BaseComponents/BootstrapModuleComponentBase.cs index b338d852d00..3776bd5200e 100644 --- a/src/BootstrapBlazor/Components/BaseComponents/BootstrapModuleComponentBase.cs +++ b/src/BootstrapBlazor/Components/BaseComponents/BootstrapModuleComponentBase.cs @@ -115,7 +115,6 @@ protected virtual void OnLoadJSModule() /// 调用 JavaScript 方法 /// Call JavaScript method /// - /// protected virtual Task InvokeInitAsync() => InvokeVoidAsync("init", Id, Interop); /// @@ -124,7 +123,6 @@ protected virtual void OnLoadJSModule() /// /// /// - /// protected Task InvokeVoidAsync(string identifier, params object?[]? args) => InvokeVoidAsync(identifier, CancellationToken.None, args); /// @@ -134,7 +132,6 @@ protected virtual void OnLoadJSModule() /// /// /// - /// protected async Task InvokeVoidAsync(string identifier, TimeSpan timeout, params object?[]? args) { if (Module != null) @@ -150,7 +147,6 @@ protected async Task InvokeVoidAsync(string identifier, TimeSpan timeout, params /// /// /// - /// protected async Task InvokeVoidAsync(string identifier, CancellationToken cancellationToken = default, params object?[]? args) { if (Module != null) @@ -165,7 +161,6 @@ protected async Task InvokeVoidAsync(string identifier, CancellationToken cancel /// /// /// - /// protected Task InvokeAsync(string identifier, params object?[]? args) => InvokeAsync(identifier, CancellationToken.None, args); /// @@ -175,7 +170,6 @@ protected async Task InvokeVoidAsync(string identifier, CancellationToken cancel /// /// /// - /// protected async Task InvokeAsync(string identifier, TimeSpan timeout, params object?[]? args) { TValue? ret = default; @@ -193,7 +187,6 @@ protected async Task InvokeVoidAsync(string identifier, CancellationToken cancel /// /// /// - /// protected async Task InvokeAsync(string identifier, CancellationToken cancellationToken = default, params object?[]? args) { TValue? ret = default; @@ -209,7 +202,6 @@ protected async Task InvokeVoidAsync(string identifier, CancellationToken cancel /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously. /// /// - /// protected virtual async ValueTask DisposeAsync(bool disposing) { if (disposing) @@ -234,7 +226,6 @@ protected virtual async ValueTask DisposeAsync(bool disposing) /// /// /// - /// public async ValueTask DisposeAsync() { await DisposeAsync(true); diff --git a/src/BootstrapBlazor/Components/BaseComponents/DynamicElement.cs b/src/BootstrapBlazor/Components/BaseComponents/DynamicElement.cs index 81b637fa9e4..367ec6a8136 100644 --- a/src/BootstrapBlazor/Components/BaseComponents/DynamicElement.cs +++ b/src/BootstrapBlazor/Components/BaseComponents/DynamicElement.cs @@ -17,7 +17,6 @@ public class DynamicElement : BootstrapComponentBase /// /// 获得/设置 TagName 属性 默认为 div /// Gets or sets TagName property Default is为 div - /// 10.2.2 /// [Parameter] [NotNull] @@ -26,7 +25,6 @@ public class DynamicElement : BootstrapComponentBase /// /// 获得/设置 是否触发 Click 事件 默认 true /// Gets or sets whether触发 Click 事件 Default is true - /// 10.2.2 /// [Parameter] public bool TriggerClick { get; set; } = true; @@ -34,7 +32,6 @@ public class DynamicElement : BootstrapComponentBase /// /// 获得/设置 是否阻止默认行为 默认 false /// Gets or sets whether阻止Default is行为 Default is false - /// 10.2.2 /// [Parameter] public bool PreventDefault { get; set; } @@ -42,7 +39,6 @@ public class DynamicElement : BootstrapComponentBase /// /// 获得/设置 是否事件冒泡 默认为 false /// Gets or sets whether事件冒泡 Default is为 false - /// 10.2.2 /// [Parameter] public bool StopPropagation { get; set; } @@ -50,7 +46,6 @@ public class DynamicElement : BootstrapComponentBase /// /// 获得/设置 Click 回调委托 /// Gets or sets Click 回调delegate - /// 10.2.2 /// [Parameter] public Func? OnClick { get; set; } @@ -58,7 +53,6 @@ public class DynamicElement : BootstrapComponentBase /// /// 获得/设置 是否触发 DoubleClick 事件 默认 true /// Gets or sets whether触发 DoubleClick 事件 Default is true - /// 10.2.2 /// [Parameter] public bool TriggerDoubleClick { get; set; } = true; @@ -66,7 +60,6 @@ public class DynamicElement : BootstrapComponentBase /// /// 获得/设置 DoubleClick 回调委托 /// Gets or sets DoubleClick 回调delegate - /// 10.2.2 /// [Parameter] public Func? OnDoubleClick { get; set; } @@ -74,7 +67,6 @@ public class DynamicElement : BootstrapComponentBase /// /// 获得/设置 OnContextMenu 回调委托 /// Gets or sets OnContextMenu 回调delegate - /// 10.2.2 /// [Parameter] public Func? OnContextMenu { get; set; } @@ -82,7 +74,6 @@ public class DynamicElement : BootstrapComponentBase /// /// 获得/设置 是否触发 OnContextMenu 事件 默认 false /// Gets or sets whether触发 OnContextMenu 事件 Default is false - /// 10.2.2 /// [Parameter] public bool TriggerContextMenu { get; set; } @@ -90,7 +81,6 @@ public class DynamicElement : BootstrapComponentBase /// /// 获得/设置 内容组件 /// Gets or sets contentcomponent - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } @@ -98,7 +88,6 @@ public class DynamicElement : BootstrapComponentBase /// /// 获得/设置 是否生成指定 Tag 元素 默认 true 生成 /// Gets or sets whether生成指定 Tag 元素 Default is true 生成 - /// 10.2.2 /// [Parameter] public bool GenerateElement { get; set; } = true; diff --git a/src/BootstrapBlazor/Components/BaseComponents/IdComponentBase.cs b/src/BootstrapBlazor/Components/BaseComponents/IdComponentBase.cs index 81d861e440d..91ea6c9ed4a 100644 --- a/src/BootstrapBlazor/Components/BaseComponents/IdComponentBase.cs +++ b/src/BootstrapBlazor/Components/BaseComponents/IdComponentBase.cs @@ -14,7 +14,6 @@ public abstract class IdComponentBase : BootstrapComponentBase /// /// 获得/设置 组件 id 属性 /// Gets or sets the component id - /// 10.2.2 /// [Parameter] [NotNull] diff --git a/src/BootstrapBlazor/Components/BaseComponents/RenderTemplate.razor.cs b/src/BootstrapBlazor/Components/BaseComponents/RenderTemplate.razor.cs index e71f305fd0c..8e6391116cb 100644 --- a/src/BootstrapBlazor/Components/BaseComponents/RenderTemplate.razor.cs +++ b/src/BootstrapBlazor/Components/BaseComponents/RenderTemplate.razor.cs @@ -14,7 +14,6 @@ public partial class RenderTemplate /// /// 获得/设置 the child component /// Gets or sets the child component - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } @@ -22,7 +21,6 @@ public partial class RenderTemplate /// /// 获得/设置 the 回调 委托 for the first load /// Gets or sets the callback delegate for the first load - /// 10.2.2 /// [Parameter] public Func? OnRenderAsync { get; set; } @@ -31,7 +29,6 @@ public partial class RenderTemplate /// /// /// - /// protected override async Task OnAfterRenderAsync(bool firstRender) { await base.OnAfterRenderAsync(firstRender); diff --git a/src/BootstrapBlazor/Components/Block/Block.cs b/src/BootstrapBlazor/Components/Block/Block.cs index ac842addb53..2db61135435 100644 --- a/src/BootstrapBlazor/Components/Block/Block.cs +++ b/src/BootstrapBlazor/Components/Block/Block.cs @@ -18,7 +18,6 @@ public class Block : BootstrapComponentBase /// /// 获得/设置 Block 名字 此名字通过 第一个参数传递给使用者 /// Gets or sets the Block name. This name is passed to the user via the first parameter of - /// 10.2.2 /// [Parameter] public string? Name { get; set; } @@ -26,7 +25,6 @@ public class Block : BootstrapComponentBase /// /// 获得/设置 Block 允许的角色集合 /// Gets or sets the allowed roles for the Block - /// 10.2.2 /// [Parameter] public IEnumerable? Roles { get; set; } @@ -34,7 +32,6 @@ public class Block : BootstrapComponentBase /// /// 获得/设置 Block 允许的用户集合 /// Gets or sets the allowed users for the Block - /// 10.2.2 /// [Parameter] public IEnumerable? Users { get; set; } @@ -42,7 +39,6 @@ public class Block : BootstrapComponentBase /// /// 获得/设置 是否显示此 Block 默认显示 返回 true 时显示 /// Gets or sets whether to show this Block. Default is true - /// 10.2.2 /// [Parameter] public Func>? OnQueryCondition { get; set; } @@ -50,7 +46,6 @@ public class Block : BootstrapComponentBase /// /// 获得/设置 是否显示此 Block 默认显示 null 未参与判断 设置 true 时显示 /// Gets or sets whether to show this Block. Default is null (not participating in judgment). Show if set to true - /// 10.2.2 /// [Parameter] public bool? Condition { get; set; } @@ -58,7 +53,6 @@ public class Block : BootstrapComponentBase /// /// 获得/设置 子组件内容 /// Gets or sets the child content - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } @@ -66,7 +60,6 @@ public class Block : BootstrapComponentBase /// /// 获得/设置 符合条件显示的内容 /// Gets or sets the authorized content - /// 10.2.2 /// [Parameter] public RenderFragment? Authorized { get; set; } @@ -74,7 +67,6 @@ public class Block : BootstrapComponentBase /// /// 获得/设置 不符合条件显示的内容 /// Gets or sets the not authorized content - /// 10.2.2 /// [Parameter] public RenderFragment? NotAuthorized { get; set; } @@ -88,7 +80,6 @@ public class Block : BootstrapComponentBase /// OnParametersSetAsync 方法 /// OnParametersSetAsync method /// - /// protected override async Task OnParametersSetAsync() { await base.OnParametersSetAsync(); diff --git a/src/BootstrapBlazor/Components/BootstrapBlazorRootOutlet/BootstrapBlazorRootContent.cs b/src/BootstrapBlazor/Components/BootstrapBlazorRootOutlet/BootstrapBlazorRootContent.cs index efe41898c00..e4c411dddbd 100644 --- a/src/BootstrapBlazor/Components/BootstrapBlazorRootOutlet/BootstrapBlazorRootContent.cs +++ b/src/BootstrapBlazor/Components/BootstrapBlazorRootOutlet/BootstrapBlazorRootContent.cs @@ -16,21 +16,18 @@ public class BootstrapBlazorRootContent : IComponent, IDisposable /// /// 获得/设置 the ID that determines which 实例 will render the 内容 of this 实例. /// Gets or sets the ID that determines which instance will render the content of this instance. - /// 10.2.2 /// [Parameter] public string? RootName { get; set; } /// /// 获得/设置 the ID that determines which 实例 will render the 内容 of this 实例. /// Gets or sets the ID that determines which instance will render the content of this instance. - /// 10.2.2 /// [Parameter] public object? RootId { get; set; } /// /// 获得/设置 the 内容. /// Gets or sets the content. - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } @@ -51,7 +48,6 @@ void IComponent.Attach(RenderHandle renderHandle) /// /// /// - /// Task IComponent.SetParametersAsync(ParameterView parameters) { parameters.SetParameterProperties(this); diff --git a/src/BootstrapBlazor/Components/BootstrapBlazorRootOutlet/BootstrapBlazorRootOutlet.cs b/src/BootstrapBlazor/Components/BootstrapBlazorRootOutlet/BootstrapBlazorRootOutlet.cs index ecba0b6b7e8..09ada8d031f 100644 --- a/src/BootstrapBlazor/Components/BootstrapBlazorRootOutlet/BootstrapBlazorRootOutlet.cs +++ b/src/BootstrapBlazor/Components/BootstrapBlazorRootOutlet/BootstrapBlazorRootOutlet.cs @@ -29,7 +29,6 @@ public class BootstrapBlazorRootOutlet : IComponent, IDisposable /// /// 获得/设置确定哪些 实例将为此实例提供内容的 ID /// Gets or sets the ID that determines which instances will provide content to this instance. - /// 10.2.2 /// [Parameter] public string? RootName { get; set; } @@ -37,7 +36,6 @@ public class BootstrapBlazorRootOutlet : IComponent, IDisposable /// /// 获得/设置确定哪些 实例将为此实例提供内容的 ID /// Gets or sets the ID that determines which instances will provide content to this instance. - /// 10.2.2 /// [Parameter] public object? RootId { get; set; } @@ -51,7 +49,6 @@ void IComponent.Attach(RenderHandle renderHandle) /// /// /// - /// Task IComponent.SetParametersAsync(ParameterView parameters) { parameters.SetParameterProperties(this); diff --git a/src/BootstrapBlazor/Components/Breadcrumb/Breadcrumb.razor.cs b/src/BootstrapBlazor/Components/Breadcrumb/Breadcrumb.razor.cs index b55c620dbdf..d0d72b64d49 100644 --- a/src/BootstrapBlazor/Components/Breadcrumb/Breadcrumb.razor.cs +++ b/src/BootstrapBlazor/Components/Breadcrumb/Breadcrumb.razor.cs @@ -14,7 +14,6 @@ public sealed partial class Breadcrumb /// /// 获得/设置 数据集 /// Gets or sets the data collection - /// 10.2.2 /// [Parameter] [NotNull] diff --git a/src/BootstrapBlazor/Components/Button/Button.razor.cs b/src/BootstrapBlazor/Components/Button/Button.razor.cs index 56fe6019f7f..2d725c9b866 100644 --- a/src/BootstrapBlazor/Components/Button/Button.razor.cs +++ b/src/BootstrapBlazor/Components/Button/Button.razor.cs @@ -14,7 +14,6 @@ public partial class Button : ButtonBase /// /// 获得/设置 是否自动获取焦点 默认 false 不自动获取焦点 /// Gets or sets whether to auto focus. Default is false - /// 10.2.2 /// [Parameter] public bool IsAutoFocus { get; set; } @@ -68,6 +67,5 @@ protected virtual async Task OnClickButton() /// 自动获得焦点方法 /// Auto focus method /// - /// public ValueTask FocusAsync() => ButtonElement.FocusAsync(); } diff --git a/src/BootstrapBlazor/Components/Button/ButtonBase.cs b/src/BootstrapBlazor/Components/Button/ButtonBase.cs index 6197c01d63d..31f97e4be12 100644 --- a/src/BootstrapBlazor/Components/Button/ButtonBase.cs +++ b/src/BootstrapBlazor/Components/Button/ButtonBase.cs @@ -18,7 +18,6 @@ public abstract class ButtonBase : TooltipWrapperBase /// 获得 按钮样式集合 /// Gets the button style collection /// - /// protected string? ClassName => CssBuilder.Default("btn") .AddClass($"btn-outline-{Color.ToDescriptionString()}", IsOutline) .AddClass($"btn-{Color.ToDescriptionString()}", !IsOutline && Color != Color.None) @@ -50,7 +49,6 @@ public abstract class ButtonBase : TooltipWrapperBase /// /// 获得/设置 按钮风格枚举 /// Gets or sets the button style enum - /// 10.2.2 /// [Parameter] public ButtonStyle ButtonStyle { get; set; } @@ -58,7 +56,6 @@ public abstract class ButtonBase : TooltipWrapperBase /// /// 获得/设置 按钮类型 Submit 为表单提交按钮 Reset 为表单重置按钮 默认为 Button /// Gets or sets the button type. Submit for form submission, Reset for form reset. Default is Button - /// 10.2.2 /// [Parameter] public ButtonType ButtonType { get; set; } = ButtonType.Button; @@ -66,7 +63,6 @@ public abstract class ButtonBase : TooltipWrapperBase /// /// 获得/设置 OnClick 事件 /// Gets or sets the OnClick event - /// 10.2.2 /// [Parameter] public EventCallback OnClick { get; set; } @@ -74,7 +70,6 @@ public abstract class ButtonBase : TooltipWrapperBase /// /// 获得/设置 OnClick 事件不刷新父组件 /// Gets or sets the OnClickWithoutRender event - /// 10.2.2 /// [Parameter] public Func? OnClickWithoutRender { get; set; } @@ -82,7 +77,6 @@ public abstract class ButtonBase : TooltipWrapperBase /// /// 获得/设置 按钮颜色 默认 /// Gets or sets the button color. Default is - /// 10.2.2 /// [Parameter] public virtual Color Color { get; set; } = Color.Primary; @@ -90,7 +84,6 @@ public abstract class ButtonBase : TooltipWrapperBase /// /// 获得/设置 显示图标 /// Gets or sets the icon - /// 10.2.2 /// [Parameter] public string? Icon { get; set; } @@ -98,7 +91,6 @@ public abstract class ButtonBase : TooltipWrapperBase /// /// 获得/设置 正在加载动画图标 默认为 fa-solid fa-spin fa-spinner /// Gets or sets the loading icon. Default is fa-solid fa-spin fa-spinner - /// 10.2.2 /// [Parameter] [NotNull] @@ -107,7 +99,6 @@ public abstract class ButtonBase : TooltipWrapperBase /// /// 获得/设置 是否为异步按钮,默认为 false 如果为 true 表示是异步按钮,点击按钮后禁用自身并且等待异步完成,过程中显示 loading 动画 /// Gets or sets whether it is an async button. Default is false. If true, it disables itself after click and shows loading animation until async operation completes - /// 10.2.2 /// [Parameter] public bool IsAsync { get; set; } @@ -115,7 +106,6 @@ public abstract class ButtonBase : TooltipWrapperBase /// /// 获得/设置 是否异步结束后是否保持禁用状态,默认为 false /// Gets or sets whether to keep disabled state after async operation. Default is false - /// 10.2.2 /// /// 开启时有效Effective when is true [Parameter] @@ -124,7 +114,6 @@ public abstract class ButtonBase : TooltipWrapperBase /// /// 获得/设置 显示文字 /// Gets or sets the display text - /// 10.2.2 /// [Parameter] public string? Text { get; set; } @@ -132,7 +121,6 @@ public abstract class ButtonBase : TooltipWrapperBase /// /// 获得/设置 Outline 样式 默认 false /// Gets or sets the Outline style. Default is false - /// 10.2.2 /// [Parameter] public bool IsOutline { get; set; } @@ -140,7 +128,6 @@ public abstract class ButtonBase : TooltipWrapperBase /// /// 获得/设置 Size 大小 /// Gets or sets the Size - /// 10.2.2 /// [Parameter] public Size Size { get; set; } @@ -148,7 +135,6 @@ public abstract class ButtonBase : TooltipWrapperBase /// /// 获得/设置 Block 模式 /// Gets or sets the Block mode - /// 10.2.2 /// [Parameter] public bool IsBlock { get; set; } @@ -156,7 +142,6 @@ public abstract class ButtonBase : TooltipWrapperBase /// /// 获得/设置 是否禁用 默认为 false /// Gets or sets whether it is disabled. Default is false - /// 10.2.2 /// [Parameter] public bool IsDisabled { get; set; } @@ -164,7 +149,6 @@ public abstract class ButtonBase : TooltipWrapperBase /// /// 获得/设置 点击事件是否向上传播 默认 false /// Gets or sets whether to propagate click event. Default is false - /// 10.2.2 /// [Parameter] public bool StopPropagation { get; set; } @@ -172,7 +156,6 @@ public abstract class ButtonBase : TooltipWrapperBase /// /// 获得/设置 RenderFragment 实例 /// Gets or sets the RenderFragment instance - /// 10.2.2 /// [Parameter] [NotNull] @@ -244,7 +227,6 @@ protected override void OnParametersSet() /// OnAfterRenderAsync method /// /// - /// protected override async Task OnAfterRenderAsync(bool firstRender) { await base.OnAfterRenderAsync(firstRender); @@ -284,7 +266,6 @@ protected override async Task OnAfterRenderAsync(bool firstRender) /// 处理点击方法 /// Handle click method /// - /// protected virtual async Task HandlerClick() { if (OnClickWithoutRender != null) @@ -327,7 +308,6 @@ internal void TriggerAsync(bool loading) /// 显示 Tooltip 方法 /// Show Tooltip method /// - /// public virtual async Task ShowTooltip() { if (Tooltip == null && !string.IsNullOrEmpty(TooltipText)) @@ -340,7 +320,6 @@ public virtual async Task ShowTooltip() /// 销毁 Tooltip 方法 /// Remove Tooltip method /// - /// public virtual async Task RemoveTooltip() { if (Tooltip == null) @@ -354,7 +333,6 @@ public virtual async Task RemoveTooltip() /// DisposeAsyncCore method /// /// - /// protected override async ValueTask DisposeAsync(bool disposing) { if (disposing) diff --git a/src/BootstrapBlazor/Components/Button/CountButton.cs b/src/BootstrapBlazor/Components/Button/CountButton.cs index 1d45a0209b1..1737af374ad 100644 --- a/src/BootstrapBlazor/Components/Button/CountButton.cs +++ b/src/BootstrapBlazor/Components/Button/CountButton.cs @@ -14,7 +14,6 @@ public class CountButton : Button /// /// 倒计时数量 默认 5 秒 /// Countdown seconds. Default is 5 - /// 10.2.2 /// [Parameter] public int Count { get; set; } = 5; @@ -22,7 +21,6 @@ public class CountButton : Button /// /// 倒计时文本 默认 null 使用 参数 /// Countdown text. Default is null (uses ) - /// 10.2.2 /// [Parameter] public string? CountText { get; set; } @@ -30,7 +28,6 @@ public class CountButton : Button /// /// 倒计时格式化回调方法 /// Countdown format callback method - /// 10.2.2 /// [Parameter] public Func? CountTextCallback { get; set; } diff --git a/src/BootstrapBlazor/Components/Button/DialButton.razor.cs b/src/BootstrapBlazor/Components/Button/DialButton.razor.cs index 83245fc2362..05ac367a1b3 100644 --- a/src/BootstrapBlazor/Components/Button/DialButton.razor.cs +++ b/src/BootstrapBlazor/Components/Button/DialButton.razor.cs @@ -14,7 +14,6 @@ public partial class DialButton /// /// 数据项模板 /// Data item template - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } @@ -22,7 +21,6 @@ public partial class DialButton /// /// 按钮模板 /// Button template - /// 10.2.2 /// [Parameter] public RenderFragment? ButtonTemplate { get; set; } @@ -30,7 +28,6 @@ public partial class DialButton /// /// 展开部分模板 /// Expanded section template - /// 10.2.2 /// [Parameter] public RenderFragment? ItemTemplate { get; set; } @@ -38,7 +35,6 @@ public partial class DialButton /// /// 展开项集合 /// Expanded item collection - /// 10.2.2 /// [Parameter] [NotNull] @@ -47,7 +43,6 @@ public partial class DialButton /// /// 获得/设置 按钮颜色 /// Gets or sets the button color - /// 10.2.2 /// [Parameter] public Color Color { get; set; } = Color.Primary; @@ -55,7 +50,6 @@ public partial class DialButton /// /// 获得/设置 动画延时 默认 400 单位 ms 毫秒 /// Gets or sets the animation duration. Default is 400ms - /// 10.2.2 /// [Parameter] public int Duration { get; set; } = 400; @@ -63,7 +57,6 @@ public partial class DialButton /// /// 获得/设置 位置 /// Gets or sets the placement - /// 10.2.2 /// [Parameter] public Placement Placement { get; set; } @@ -71,7 +64,6 @@ public partial class DialButton /// /// 获得/设置 时扇形分布半径值 默认 75; /// Gets or sets the radial radius when is . Default is 75 - /// 10.2.2 /// [Parameter] public int Radius { get; set; } = 75; @@ -79,7 +71,6 @@ public partial class DialButton /// /// 获得/设置 弹窗偏移量 默认 8px /// Gets or sets the offset. Default is 8px - /// 10.2.2 /// [Parameter] public float Offset { get; set; } = 8; @@ -87,7 +78,6 @@ public partial class DialButton /// /// 获得/设置 Size 大小 /// Gets or sets the Size - /// 10.2.2 /// [Parameter] public Size Size { get; set; } @@ -95,7 +85,6 @@ public partial class DialButton /// /// 获得/设置 显示图标 /// Gets or sets the icon - /// 10.2.2 /// [Parameter] public string? Icon { get; set; } @@ -103,7 +92,6 @@ public partial class DialButton /// /// 获得/设置 是否禁用 默认为 false /// Gets or sets whether it is disabled. Default is false - /// 10.2.2 /// [Parameter] public bool IsDisabled { get; set; } @@ -111,7 +99,6 @@ public partial class DialButton /// /// 获得/设置 是否自动关闭弹窗 默认为 true /// Gets or sets whether to auto close. Default is true - /// 10.2.2 /// [Parameter] public bool IsAutoClose { get; set; } = true; @@ -119,7 +106,6 @@ public partial class DialButton /// /// 获得/设置 OnClick 事件 /// Gets or sets the OnClick event - /// 10.2.2 /// [Parameter] public EventCallback OnClick { get; set; } @@ -127,7 +113,6 @@ public partial class DialButton /// /// 获得/设置 呈现方式 默认为 直线 /// Gets or sets the presentation mode. Default is Linear - /// 10.2.2 /// [Parameter] public DialMode DialMode { get; set; } @@ -136,7 +121,6 @@ public partial class DialButton /// 获得 按钮样式集合 /// Gets the button style collection /// - /// private string? ClassString => CssBuilder.Default("dial-button") .AddClass("is-radial", DialMode == DialMode.Radial) .AddClassFromAttributes(AdditionalAttributes) @@ -146,7 +130,6 @@ public partial class DialButton /// 获得 按钮样式集合 /// Gets the button style collection /// - /// private string? ButtonClassString => CssBuilder.Default("btn") .AddClass($"btn-{Color.ToDescriptionString()}", Color != Color.None) .AddClass($"btn-{Size.ToDescriptionString()}", Size != Size.None) @@ -186,7 +169,6 @@ protected override void OnParametersSet() /// /// /// - /// protected override async Task OnAfterRenderAsync(bool firstRender) { await base.OnAfterRenderAsync(firstRender); diff --git a/src/BootstrapBlazor/Components/Button/DialButtonItem.cs b/src/BootstrapBlazor/Components/Button/DialButtonItem.cs index c2e8e98f0cd..a43ecc61142 100644 --- a/src/BootstrapBlazor/Components/Button/DialButtonItem.cs +++ b/src/BootstrapBlazor/Components/Button/DialButtonItem.cs @@ -14,7 +14,6 @@ public class DialButtonItem : ComponentBase, IDisposable /// /// 获得/设置 显示图标 /// Gets or sets the icon - /// 10.2.2 /// [Parameter] [NotNull] @@ -23,7 +22,6 @@ public class DialButtonItem : ComponentBase, IDisposable /// /// 获得/设置 选项值 /// Gets or sets the value - /// 10.2.2 /// [Parameter] [NotNull] @@ -32,7 +30,6 @@ public class DialButtonItem : ComponentBase, IDisposable /// /// 获得/设置 组件内容 /// Gets or sets the child content - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } diff --git a/src/BootstrapBlazor/Components/Button/ExportPdfButton.cs b/src/BootstrapBlazor/Components/Button/ExportPdfButton.cs index 8b1518b4a21..9029ad4bfbf 100644 --- a/src/BootstrapBlazor/Components/Button/ExportPdfButton.cs +++ b/src/BootstrapBlazor/Components/Button/ExportPdfButton.cs @@ -14,7 +14,6 @@ public class ExportPdfButton : Button /// /// 获得/设置 导出 Pdf 选择器 默认为 null /// Gets or sets the export PDF selector. Default is null - /// 10.2.2 /// [Parameter] public string? Selector { get; set; } @@ -22,7 +21,6 @@ public class ExportPdfButton : Button /// /// 获得/设置 导出 Pdf 元素 Id 默认为 null /// Gets or sets the export PDF element Id. Default is null - /// 10.2.2 /// [Parameter] public string? ElementId { get; set; } @@ -30,7 +28,6 @@ public class ExportPdfButton : Button /// /// 获得/设置 导出 Pdf 所需样式表文件集合 默认为 null /// Gets or sets the export PDF properties style tags. Default is null - /// 10.2.2 /// [Parameter] public List? StyleTags { get; set; } @@ -38,7 +35,6 @@ public class ExportPdfButton : Button /// /// 获得/设置 导出 Pdf 所需脚本文件集合 默认为 null /// Gets or sets the export PDF properties script tags. Default is null - /// 10.2.2 /// [Parameter] public List? ScriptTags { get; set; } @@ -46,7 +42,6 @@ public class ExportPdfButton : Button /// /// 获得/设置 导出 Pdf 文件名 默认为 null 未设置时使用 pdf-时间戳.pdf /// Gets or sets the export PDF file name. Default is null (uses pdf-timestamp.pdf) - /// 10.2.2 /// [Parameter] public string? FileName { get; set; } @@ -54,7 +49,6 @@ public class ExportPdfButton : Button /// /// 获得/设置 导出 Pdf 之前回调委托 默认为 null /// Gets or sets the callback delegate before export PDF. Default is null - /// 10.2.2 /// [Parameter] public Func? OnBeforeExport { get; set; } @@ -62,7 +56,6 @@ public class ExportPdfButton : Button /// /// 获得/设置 下载 Pdf 之前回调委托 默认为 null /// Gets or sets the callback delegate before download PDF. Default is null - /// 10.2.2 /// [Parameter] public Func? OnBeforeDownload { get; set; } @@ -70,7 +63,6 @@ public class ExportPdfButton : Button /// /// 获得/设置 下载 Pdf 之后回调委托 默认为 null /// Gets or sets the callback delegate after download PDF. Default is null - /// 10.2.2 /// [Parameter] public Func? OnAfterDownload { get; set; } @@ -78,7 +70,6 @@ public class ExportPdfButton : Button /// /// 获得/设置 是否自动下载 Pdf 默认为 true /// Gets or sets whether to auto download PDF. Default is true - /// 10.2.2 /// [Parameter] public bool AutoDownload { get; set; } = true; @@ -107,7 +98,6 @@ protected override void OnParametersSet() /// /// /// - /// protected override async Task HandlerClick() { await base.HandlerClick(); diff --git a/src/BootstrapBlazor/Components/Button/LinkButton.cs b/src/BootstrapBlazor/Components/Button/LinkButton.cs index c3a1cc43f04..40695064766 100644 --- a/src/BootstrapBlazor/Components/Button/LinkButton.cs +++ b/src/BootstrapBlazor/Components/Button/LinkButton.cs @@ -17,7 +17,6 @@ public class LinkButton : ButtonBase /// /// 获得/设置 Url 默认为 # /// Gets or sets the URL. Default is # - /// 10.2.2 /// [Parameter] public string? Url { get; set; } @@ -25,7 +24,6 @@ public class LinkButton : ButtonBase /// /// 获得/设置 A 标签 target 参数 默认 null /// Gets or sets the anchor target parameter. Default is null - /// 10.2.2 /// [Parameter] public string? Target { get; set; } @@ -33,7 +31,6 @@ public class LinkButton : ButtonBase /// /// 获得/设置 显示图片地址 默认为 null /// Gets or sets the image URL. Default is null - /// 10.2.2 /// [Parameter] public string? ImageUrl { get; set; } @@ -41,7 +38,6 @@ public class LinkButton : ButtonBase /// /// css class of img element default value null /// The css class of img element default value null - /// 10.2.2 /// [Parameter] public string? ImageCss { get; set; } @@ -49,7 +45,6 @@ public class LinkButton : ButtonBase /// /// 获得/设置 是否为垂直布局 默认 false /// Gets or sets whether it is vertical layout. Default is false - /// 10.2.2 /// [Parameter] public bool IsVertical { get; set; } diff --git a/src/BootstrapBlazor/Components/Button/PopConfirmButton.razor.cs b/src/BootstrapBlazor/Components/Button/PopConfirmButton.razor.cs index b2a699c8dfe..e97c42930b9 100644 --- a/src/BootstrapBlazor/Components/Button/PopConfirmButton.razor.cs +++ b/src/BootstrapBlazor/Components/Button/PopConfirmButton.razor.cs @@ -33,7 +33,6 @@ public partial class PopConfirmButton /// /// 获得/设置 按钮颜色 /// Gets or sets the button color - /// 10.2.2 /// [Parameter] public override Color Color { get; set; } = Color.None; @@ -62,13 +61,11 @@ protected override void OnParametersSet() /// /// /// - /// public override Task ShowTooltip() => Task.CompletedTask; /// /// /// - /// public override Task RemoveTooltip() => Task.CompletedTask; private string? ConfirmString => OnBeforeClick != null ? "true" : null; @@ -97,7 +94,6 @@ private async Task Show() /// 确认回调方法 /// Confirm callback method /// - /// private async Task OnClickConfirm() { if (IsAsync) diff --git a/src/BootstrapBlazor/Components/Button/PopConfirmButtonBase.cs b/src/BootstrapBlazor/Components/Button/PopConfirmButtonBase.cs index 19459b5b0b0..60a678f8b05 100644 --- a/src/BootstrapBlazor/Components/Button/PopConfirmButtonBase.cs +++ b/src/BootstrapBlazor/Components/Button/PopConfirmButtonBase.cs @@ -27,7 +27,6 @@ public abstract class PopConfirmButtonBase : ButtonBase /// /// 获得/设置 是否为 A 标签 默认 false 使用 button 渲染 /// Gets or sets whether it is an anchor tag. Default is false (renders as button) - /// 10.2.2 /// [Parameter] public bool IsLink { get; set; } @@ -35,7 +34,6 @@ public abstract class PopConfirmButtonBase : ButtonBase /// /// 获得/设置 弹窗显示位置 默认 /// Gets or sets the popup placement. Default is - /// 10.2.2 /// /// 仅支持 Only supports [Parameter] @@ -44,7 +42,6 @@ public abstract class PopConfirmButtonBase : ButtonBase /// /// 获得/设置 弹窗触发方式 默认 click 可设置 hover focus /// Gets or sets the popup trigger method. Default is click (can be hover, focus) - /// 10.2.2 /// [Parameter] public string? Trigger { get; set; } @@ -52,7 +49,6 @@ public abstract class PopConfirmButtonBase : ButtonBase /// /// 获得/设置 显示文字 /// Gets or sets the display text - /// 10.2.2 /// [Parameter] public string? Content { get; set; } @@ -60,7 +56,6 @@ public abstract class PopConfirmButtonBase : ButtonBase /// /// 获得/设置 自定义内容 /// Gets or sets the custom content - /// 10.2.2 /// [Parameter] [NotNull] @@ -69,7 +64,6 @@ public abstract class PopConfirmButtonBase : ButtonBase /// /// 获得/设置 点击确认时回调方法 /// Gets or sets the callback method when confirm is clicked - /// 10.2.2 /// [Parameter] public Func? OnConfirm { get; set; } @@ -77,7 +71,6 @@ public abstract class PopConfirmButtonBase : ButtonBase /// /// 获得/设置 是否显示确认按钮 /// Gets or sets whether to show the confirm button - /// 10.2.2 /// [Parameter] public bool ShowConfirmButton { get; set; } = true; @@ -85,7 +78,6 @@ public abstract class PopConfirmButtonBase : ButtonBase /// /// 获得/设置 点击关闭时回调方法 /// Gets or sets the callback method when close is clicked - /// 10.2.2 /// [Parameter] public Func? OnClose { get; set; } @@ -93,7 +85,6 @@ public abstract class PopConfirmButtonBase : ButtonBase /// /// 获得/设置 是否显示关闭按钮 /// Gets or sets whether to show the close button - /// 10.2.2 /// [Parameter] public bool ShowCloseButton { get; set; } = true; @@ -101,7 +92,6 @@ public abstract class PopConfirmButtonBase : ButtonBase /// /// 获得/设置 点击确认弹窗前回调方法 返回真时弹出弹窗 返回假时不弹出 默认 null /// Gets or sets the callback method before showing the confirm popup. Returns true to show, false to prevent. Default is null - /// 10.2.2 /// [Parameter] [NotNull] @@ -110,7 +100,6 @@ public abstract class PopConfirmButtonBase : ButtonBase /// /// 获得/设置 显示标题 /// Gets or sets the title - /// 10.2.2 /// [Parameter] public string? Title { get; set; } @@ -118,7 +107,6 @@ public abstract class PopConfirmButtonBase : ButtonBase /// /// 获得/设置 关闭按钮颜色 /// Gets or sets the close button color - /// 10.2.2 /// [Parameter] public Color CloseButtonColor { get; set; } = Color.Secondary; @@ -126,7 +114,6 @@ public abstract class PopConfirmButtonBase : ButtonBase /// /// 获得/设置 关闭按钮显示文字 默认为 关闭 /// Gets or sets the close button text. Default is Close - /// 10.2.2 /// [Parameter] [NotNull] @@ -135,7 +122,6 @@ public abstract class PopConfirmButtonBase : ButtonBase /// /// 获得/设置 关闭按钮显示图标 /// Gets or sets the close button icon - /// 10.2.2 /// [Parameter] public string? CloseButtonIcon { get; set; } @@ -143,7 +129,6 @@ public abstract class PopConfirmButtonBase : ButtonBase /// /// 获得/设置 确认按钮显示文字 默认为 确定 /// Gets or sets the confirm button text. Default is OK - /// 10.2.2 /// [Parameter] [NotNull] @@ -152,7 +137,6 @@ public abstract class PopConfirmButtonBase : ButtonBase /// /// 获得/设置 确认按钮颜色 /// Gets or sets the confirm button color - /// 10.2.2 /// [Parameter] public Color ConfirmButtonColor { get; set; } = Color.Primary; @@ -160,7 +144,6 @@ public abstract class PopConfirmButtonBase : ButtonBase /// /// 获得/设置 确认按钮显示图标 /// Gets or sets the confirm button icon - /// 10.2.2 /// [Parameter] public string? ConfirmButtonIcon { get; set; } @@ -168,7 +151,6 @@ public abstract class PopConfirmButtonBase : ButtonBase /// /// 获得/设置 确认框图标 /// Gets or sets the confirm icon - /// 10.2.2 /// [Parameter] [NotNull] @@ -177,7 +159,6 @@ public abstract class PopConfirmButtonBase : ButtonBase /// /// 获得/设置 自定义样式 默认 null /// Gets or sets the custom class. Default is null - /// 10.2.2 /// /// 由 data-bs-custom-class 实现Implemented by data-bs-custom-class [Parameter] @@ -186,7 +167,6 @@ public abstract class PopConfirmButtonBase : ButtonBase /// /// 获得/设置 是否显示阴影 默认 true /// Gets or sets whether to show shadow. Default is true - /// 10.2.2 /// [Parameter] public bool ShowShadow { get; set; } = true; @@ -211,14 +191,12 @@ protected override void OnParametersSet() /// /// /// - /// protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id, Interop, nameof(TriggerCloseCallback)); /// /// Trigger OnClose event 回调. /// Trigger OnClose event callback. /// - /// [JSInvokable] public async Task TriggerCloseCallback() { diff --git a/src/BootstrapBlazor/Components/Button/PopConfirmButtonContent.razor.cs b/src/BootstrapBlazor/Components/Button/PopConfirmButtonContent.razor.cs index 88ea4ca4d78..457bbd36ed3 100644 --- a/src/BootstrapBlazor/Components/Button/PopConfirmButtonContent.razor.cs +++ b/src/BootstrapBlazor/Components/Button/PopConfirmButtonContent.razor.cs @@ -35,7 +35,6 @@ public partial class PopConfirmButtonContent /// /// 获得/设置 是否显示确认按钮 /// Gets or sets whether to show confirm button - /// 10.2.2 /// [Parameter] public bool ShowConfirmButton { get; set; } = true; @@ -43,7 +42,6 @@ public partial class PopConfirmButtonContent /// /// 获得/设置 是否显示关闭按钮 /// Gets or sets whether to show close button - /// 10.2.2 /// [Parameter] public bool ShowCloseButton { get; set; } = true; @@ -51,7 +49,6 @@ public partial class PopConfirmButtonContent /// /// 获得/设置 显示标题 /// Gets or sets the title - /// 10.2.2 /// [Parameter] public string? Title { get; set; } @@ -59,7 +56,6 @@ public partial class PopConfirmButtonContent /// /// 获得/设置 显示文字 /// Gets or sets the content - /// 10.2.2 /// [Parameter] public string? Content { get; set; } @@ -67,7 +63,6 @@ public partial class PopConfirmButtonContent /// /// 获得/设置 自定义组件 /// Gets or sets the child content - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } @@ -75,7 +70,6 @@ public partial class PopConfirmButtonContent /// /// 获得/设置 关闭按钮显示图标 /// Gets or sets the close button icon - /// 10.2.2 /// [Parameter] public string? CloseButtonIcon { get; set; } @@ -83,7 +77,6 @@ public partial class PopConfirmButtonContent /// /// 获得/设置 关闭按钮显示文字 /// Gets or sets the close button text - /// 10.2.2 /// [Parameter] public string? CloseButtonText { get; set; } @@ -91,7 +84,6 @@ public partial class PopConfirmButtonContent /// /// 获得/设置 关闭按钮颜色 /// Gets or sets the close button color - /// 10.2.2 /// [Parameter] public Color CloseButtonColor { get; set; } = Color.Secondary; @@ -99,7 +91,6 @@ public partial class PopConfirmButtonContent /// /// 获得/设置 确认按钮显示图标 /// Gets or sets the confirm button icon - /// 10.2.2 /// [Parameter] public string? ConfirmButtonIcon { get; set; } @@ -107,7 +98,6 @@ public partial class PopConfirmButtonContent /// /// 获得/设置 确认按钮显示文字 /// Gets or sets the confirm button text - /// 10.2.2 /// [Parameter] public string? ConfirmButtonText { get; set; } @@ -115,7 +105,6 @@ public partial class PopConfirmButtonContent /// /// 获得/设置 确认按钮颜色 /// Gets or sets the confirm button color - /// 10.2.2 /// [Parameter] public Color ConfirmButtonColor { get; set; } = Color.Primary; @@ -123,7 +112,6 @@ public partial class PopConfirmButtonContent /// /// 获得/设置 确认框图标 /// Gets or sets the confirm icon - /// 10.2.2 /// [Parameter] public string? Icon { get; set; } @@ -131,7 +119,6 @@ public partial class PopConfirmButtonContent /// /// 获得/设置 确认按钮回调方法 /// Gets or sets the confirm callback - /// 10.2.2 /// [Parameter] public Func? OnConfirm { get; set; } @@ -139,7 +126,6 @@ public partial class PopConfirmButtonContent /// /// 获得/设置 关闭按钮回调方法 /// Gets or sets the close callback - /// 10.2.2 /// [Parameter] public Func? OnClose { get; set; } diff --git a/src/BootstrapBlazor/Components/Button/PulseButton.razor.cs b/src/BootstrapBlazor/Components/Button/PulseButton.razor.cs index 50c405f5a4a..c156741568d 100644 --- a/src/BootstrapBlazor/Components/Button/PulseButton.razor.cs +++ b/src/BootstrapBlazor/Components/Button/PulseButton.razor.cs @@ -14,7 +14,6 @@ public partial class PulseButton /// /// 获得/设置 显示图片地址 默认为 null /// Gets or sets the image URL. Default is null - /// 10.2.2 /// [Parameter] public string? ImageUrl { get; set; } @@ -22,7 +21,6 @@ public partial class PulseButton /// /// 获得/设置 心跳环颜色 默认 /// Gets or sets the pulse color. Default is - /// 10.2.2 /// [Parameter] public Color PulseColor { get; set; } = Color.Warning; diff --git a/src/BootstrapBlazor/Components/Button/ShareButton.cs b/src/BootstrapBlazor/Components/Button/ShareButton.cs index f6b3dc74564..58ab798e8fb 100644 --- a/src/BootstrapBlazor/Components/Button/ShareButton.cs +++ b/src/BootstrapBlazor/Components/Button/ShareButton.cs @@ -14,7 +14,6 @@ public class ShareButton : Button /// /// 获得/设置 分享内容上下文 默认 null /// Gets or sets the share context. Default is null - /// 10.2.2 /// [Parameter] public ShareButtonContext? ShareContext { get; set; } @@ -22,6 +21,5 @@ public class ShareButton : Button /// /// /// - /// protected override Task HandlerClick() => InvokeVoidAsync("share", ShareContext); } diff --git a/src/BootstrapBlazor/Components/Button/SlideButton.razor.cs b/src/BootstrapBlazor/Components/Button/SlideButton.razor.cs index ec2a6c4fe70..7c3975746e5 100644 --- a/src/BootstrapBlazor/Components/Button/SlideButton.razor.cs +++ b/src/BootstrapBlazor/Components/Button/SlideButton.razor.cs @@ -14,7 +14,6 @@ public partial class SlideButton /// /// 获得/设置 数据项模板 /// Gets or sets the data item template - /// 10.2.2 /// [Parameter] public RenderFragment? SlideButtonItems { get; set; } @@ -22,7 +21,6 @@ public partial class SlideButton /// /// 获得/设置 按钮模板 /// Gets or sets the button template - /// 10.2.2 /// [Parameter] public RenderFragment? ButtonTemplate { get; set; } @@ -30,7 +28,6 @@ public partial class SlideButton /// /// 获得/设置 展开按钮项模板 /// Gets or sets the expanded button item template - /// 10.2.2 /// [Parameter] public RenderFragment? ButtonItemTemplate { get; set; } @@ -38,7 +35,6 @@ public partial class SlideButton /// /// 获得/设置 展开部分模板 /// Gets or sets the expanded body template - /// 10.2.2 /// [Parameter] public RenderFragment? BodyTemplate { get; set; } @@ -46,7 +42,6 @@ public partial class SlideButton /// /// 获得/设置 展开项集合 /// Gets or sets the expanded items collection - /// 10.2.2 /// [Parameter] [NotNull] @@ -55,7 +50,6 @@ public partial class SlideButton /// /// 获得/设置 展开项 Header 文本 /// Gets or sets the header text - /// 10.2.2 /// [Parameter] [NotNull] @@ -64,7 +58,6 @@ public partial class SlideButton /// /// 获得/设置 按钮颜色 /// Gets or sets the button color - /// 10.2.2 /// [Parameter] public Color Color { get; set; } = Color.Primary; @@ -72,7 +65,6 @@ public partial class SlideButton /// /// 获得/设置 展开项显示位置 /// Gets or sets the placement - /// 10.2.2 /// [Parameter] public Placement Placement { get; set; } @@ -80,7 +72,6 @@ public partial class SlideButton /// /// 获得/设置 弹窗偏移量 默认 8px /// Gets or sets the offset. Default is 8px - /// 10.2.2 /// [Parameter] public float Offset { get; set; } = 8; @@ -88,7 +79,6 @@ public partial class SlideButton /// /// 获得/设置 Size 大小 /// Gets or sets the Size - /// 10.2.2 /// [Parameter] public Size Size { get; set; } @@ -96,7 +86,6 @@ public partial class SlideButton /// /// 获得/设置 显示图标 /// Gets or sets the icon - /// 10.2.2 /// [Parameter] public string? Icon { get; set; } @@ -104,7 +93,6 @@ public partial class SlideButton /// /// 获得/设置 显示文本 /// Gets or sets the text - /// 10.2.2 /// [Parameter] public string? Text { get; set; } @@ -112,7 +100,6 @@ public partial class SlideButton /// /// 获得/设置 是否禁用 默认为 false /// Gets or sets whether it is disabled. Default is false - /// 10.2.2 /// [Parameter] public bool IsDisabled { get; set; } @@ -120,7 +107,6 @@ public partial class SlideButton /// /// 获得/设置 是否自动关闭弹窗 默认为 true /// Gets or sets whether to auto close. Default is true - /// 10.2.2 /// [Parameter] public bool IsAutoClose { get; set; } = true; @@ -128,7 +114,6 @@ public partial class SlideButton /// /// 获得/设置 OnClick 事件 /// Gets or sets the OnClick event - /// 10.2.2 /// [Parameter] public EventCallback OnClick { get; set; } @@ -136,7 +121,6 @@ public partial class SlideButton /// /// 获得/设置 是否显示标题 默认 false 不显示 /// Gets or sets whether to show header. Default is false - /// 10.2.2 /// [Parameter] public bool ShowHeader { get; set; } @@ -144,7 +128,6 @@ public partial class SlideButton /// /// 获得/设置 Header 部分模板 /// Gets or sets the header template - /// 10.2.2 /// [Parameter] public RenderFragment? HeaderTemplate { get; set; } @@ -153,7 +136,6 @@ public partial class SlideButton /// 获得 按钮样式集合 /// Gets the button style collection /// - /// private string? ClassString => CssBuilder.Default("slide-button") .AddClassFromAttributes(AdditionalAttributes) .Build(); @@ -162,7 +144,6 @@ public partial class SlideButton /// 获得 按钮样式集合 /// Gets the button style collection /// - /// private string? ButtonClassString => CssBuilder.Default("btn") .AddClass($"btn-{Color.ToDescriptionString()}", Color != Color.None) .AddClass($"btn-{Size.ToDescriptionString()}", Size != Size.None) @@ -204,7 +185,6 @@ protected override void OnParametersSet() /// /// /// - /// protected override async Task OnAfterRenderAsync(bool firstRender) { if (firstRender) diff --git a/src/BootstrapBlazor/Components/Button/SlideButtonItem.cs b/src/BootstrapBlazor/Components/Button/SlideButtonItem.cs index 4643cb720ae..1415f3ae989 100644 --- a/src/BootstrapBlazor/Components/Button/SlideButtonItem.cs +++ b/src/BootstrapBlazor/Components/Button/SlideButtonItem.cs @@ -14,7 +14,6 @@ public class SlideButtonItem : ComponentBase, IDisposable /// /// 显示文本 /// Display text - /// 10.2.2 /// [Parameter] [NotNull] @@ -26,7 +25,6 @@ public class SlideButtonItem : ComponentBase, IDisposable /// /// 选项值 /// Option value - /// 10.2.2 /// [Parameter] [NotNull] diff --git a/src/BootstrapBlazor/Components/Button/SwitchButton.razor.cs b/src/BootstrapBlazor/Components/Button/SwitchButton.razor.cs index 3b095c38d4c..e8cc5261bea 100644 --- a/src/BootstrapBlazor/Components/Button/SwitchButton.razor.cs +++ b/src/BootstrapBlazor/Components/Button/SwitchButton.razor.cs @@ -17,7 +17,6 @@ public partial class SwitchButton /// /// 获得/设置 On 状态显示文字 /// Gets or sets the On state display text - /// 10.2.2 /// [Parameter] [NotNull] @@ -26,7 +25,6 @@ public partial class SwitchButton /// /// 获得/设置 Off 状态显示文字 /// Gets or sets the Off state display text - /// 10.2.2 /// [Parameter] [NotNull] @@ -35,7 +33,6 @@ public partial class SwitchButton /// /// 获得/设置 当前状态 /// Gets or sets the current state - /// 10.2.2 /// [Parameter] public bool ToggleState { get; set; } @@ -43,7 +40,6 @@ public partial class SwitchButton /// /// 状态切换回调方法 /// State toggle callback method - /// 10.2.2 /// [Parameter] public EventCallback ToggleStateChanged { get; set; } @@ -51,7 +47,6 @@ public partial class SwitchButton /// /// 点击回调方法 /// Click callback method - /// 10.2.2 /// [Parameter] public EventCallback OnClick { get; set; } diff --git a/src/BootstrapBlazor/Components/Button/ToggleButton.razor.cs b/src/BootstrapBlazor/Components/Button/ToggleButton.razor.cs index 049a73d882c..a49a600e6c2 100644 --- a/src/BootstrapBlazor/Components/Button/ToggleButton.razor.cs +++ b/src/BootstrapBlazor/Components/Button/ToggleButton.razor.cs @@ -14,7 +14,6 @@ public partial class ToggleButton /// /// 获得/设置 状态切换回调方法 /// Gets or sets the state toggle callback method - /// 10.2.2 /// [Parameter] public Func? OnToggleAsync { get; set; } @@ -22,7 +21,6 @@ public partial class ToggleButton /// /// 获得/设置 当前状态是否为激活状态 默认 false /// Gets or sets whether the current state is active. Default is false - /// 10.2.2 /// [Parameter] public bool IsActive { get; set; } @@ -30,7 +28,6 @@ public partial class ToggleButton /// /// 获得/设置 激活状态回调方法 /// Gets or sets the active state callback method - /// 10.2.2 /// [Parameter] public EventCallback IsActiveChanged { get; set; } diff --git a/src/BootstrapBlazor/Components/Calendar/Calendar.razor.cs b/src/BootstrapBlazor/Components/Calendar/Calendar.razor.cs index abd1a38b09c..f12b90b1431 100644 --- a/src/BootstrapBlazor/Components/Calendar/Calendar.razor.cs +++ b/src/BootstrapBlazor/Components/Calendar/Calendar.razor.cs @@ -69,7 +69,6 @@ public partial class Calendar /// Get week day /// /// - /// private string GetWeekDayString(int offset) => $"{Value.AddDays(offset - (int)Value.DayOfWeek).Day}"; /// @@ -77,7 +76,6 @@ public partial class Calendar /// Get week day style /// /// - /// private string? GetWeekDayClassString(int offset) => CssBuilder.Default("week-header") .AddClass("is-today", Value.AddDays(offset - (int)Value.DayOfWeek) == DateTime.Today) .Build(); @@ -98,7 +96,6 @@ public partial class Calendar /// OnInitialized 方法 /// OnInitialized method /// - /// protected override void OnInitialized() { base.OnInitialized(); @@ -155,7 +152,6 @@ protected int GetWeekCount() /// /// 获得/设置 组件值 /// Gets or sets the component value - /// 10.2.2 /// [Parameter] public DateTime Value { get; set; } @@ -163,7 +159,6 @@ protected int GetWeekCount() /// /// 获得/设置 值改变时回调委托 /// Gets or sets the value change callback delegate - /// 10.2.2 /// [Parameter] public EventCallback ValueChanged { get; set; } @@ -171,7 +166,6 @@ protected int GetWeekCount() /// /// 获得/设置 值改变时回调委托 /// Gets or sets the value change callback delegate - /// 10.2.2 /// [Parameter] public Func? OnValueChanged { get; set; } @@ -179,7 +173,6 @@ protected int GetWeekCount() /// /// 获得/设置 是否显示周视图 默认为 月视图 /// Gets or sets whether to display the week view. Default is month view - /// 10.2.2 /// [Parameter] public CalendarViewMode ViewMode { get; set; } @@ -187,7 +180,6 @@ protected int GetWeekCount() /// /// 获得/设置 周内容 时有效 /// Gets or sets the week content. Valid when - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } @@ -195,7 +187,6 @@ protected int GetWeekCount() /// /// 获得/设置 列头模板 /// Gets or sets the header template - /// 10.2.2 /// [Parameter] public RenderFragment? HeaderTemplate { get; set; } @@ -203,7 +194,6 @@ protected int GetWeekCount() /// /// 获得/设置 Body 模板仅 有效 /// Gets or sets the body template. Valid only when - /// 10.2.2 /// [Parameter] public RenderFragment? BodyTemplate { get; set; } @@ -211,7 +201,6 @@ protected int GetWeekCount() /// /// 获得/设置 单元格模板 /// Gets or sets the cell template - /// 10.2.2 /// [Parameter] public RenderFragment? CellTemplate { get; set; } @@ -219,7 +208,6 @@ protected int GetWeekCount() /// /// 获得/设置 是否显示年按钮 /// Gets or sets whether to show the year buttons - /// 10.2.2 /// [Parameter] public bool ShowYearButtons { get; set; } = true; @@ -227,7 +215,6 @@ protected int GetWeekCount() /// /// 获得/设置 星期第一天 默认 /// Gets or sets the first day of the week. Default is - /// 10.2.2 /// [Parameter] public DayOfWeek FirstDayOfWeek { get; set; } = DayOfWeek.Sunday; diff --git a/src/BootstrapBlazor/Components/Camera/Camera.razor.cs b/src/BootstrapBlazor/Components/Camera/Camera.razor.cs index be2b14cda98..dab27a897bc 100644 --- a/src/BootstrapBlazor/Components/Camera/Camera.razor.cs +++ b/src/BootstrapBlazor/Components/Camera/Camera.razor.cs @@ -16,7 +16,6 @@ public partial class Camera /// /// 获得/设置 当前设备 Id 默认 null /// Gets or sets 当前设备 Id Default is null - /// 10.2.2 /// [Parameter] public string? DeviceId { get; set; } @@ -24,7 +23,6 @@ public partial class Camera /// /// 获得/设置 是否自动开启摄像头 默认为 false /// Gets or sets whether自动开启摄像头 Default is为 false - /// 10.2.2 /// [Parameter] public bool AutoStart { get; set; } @@ -32,7 +30,6 @@ public partial class Camera /// /// 获得/设置 摄像头视频宽度 默认 320 /// Gets or sets 摄像头视频width Default is 320 - /// 10.2.2 /// [Parameter] public int? VideoWidth { get; set; } = 320; @@ -40,7 +37,6 @@ public partial class Camera /// /// 获得/设置 摄像头视频高度 默认 240 /// Gets or sets 摄像头视频height Default is 240 - /// 10.2.2 /// [Parameter] public int? VideoHeight { get; set; } = 240; @@ -48,7 +44,6 @@ public partial class Camera /// /// 获得/设置 拍照格式为 Jpeg 默认为 false 使用 png 格式 /// Gets or sets 拍照格式为 Jpeg Default is为 false 使用 png 格式 - /// 10.2.2 /// [Parameter] public bool CaptureJpeg { get; set; } @@ -56,7 +51,6 @@ public partial class Camera /// /// 获得/设置 图像质量 默认为 0.9 /// Gets or sets 图像质量 Default is为 0.9 - /// 10.2.2 /// [Parameter] public float Quality { get; set; } = 0.9f; @@ -64,7 +58,6 @@ public partial class Camera /// /// 获得/设置 初始化摄像头回调方法 /// Gets or sets 初始化摄像头callback method - /// 10.2.2 /// [Parameter] public Func, Task>? OnInit { get; set; } @@ -72,7 +65,6 @@ public partial class Camera /// /// 获得/设置 拍照出错回调方法 /// Gets or sets 拍照出错callback method - /// 10.2.2 /// [Parameter] public Func? OnError { get; set; } @@ -80,7 +72,6 @@ public partial class Camera /// /// 获得/设置 打开摄像头回调方法 /// Gets or sets 打开摄像头callback method - /// 10.2.2 /// [Parameter] public Func? OnOpen { get; set; } @@ -88,7 +79,6 @@ public partial class Camera /// /// 获得/设置 关闭摄像头回调方法 /// Gets or sets 关闭摄像头callback method - /// 10.2.2 /// [Parameter] public Func? OnClose { get; set; } @@ -111,7 +101,6 @@ public partial class Camera /// /// /// - /// protected override async Task OnAfterRenderAsync(bool firstRender) { await base.OnAfterRenderAsync(firstRender); @@ -125,28 +114,24 @@ protected override async Task OnAfterRenderAsync(bool firstRender) /// /// /// - /// protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id, Interop); /// /// 打开摄像头 /// 打开摄像头 /// - /// public Task Open() => InvokeVoidAsync("open", Id); /// /// 关闭摄像头 /// 关闭摄像头 /// - /// public Task Close() => InvokeVoidAsync("close", Id); /// /// 拍照方法 /// 拍照方法 /// - /// public async Task Capture() { Stream? ret = null; @@ -167,7 +152,6 @@ protected override async Task OnAfterRenderAsync(bool firstRender) /// 保存并下载图片 /// /// 文件名文件名 - /// public Task SaveAndDownload(string? fileName = null) => InvokeVoidAsync("download", Id, fileName); /// @@ -176,7 +160,6 @@ protected override async Task OnAfterRenderAsync(bool firstRender) /// /// /// - /// public Task Resize(int width, int height) => InvokeVoidAsync("resize", Id, width, height); /// @@ -184,7 +167,6 @@ protected override async Task OnAfterRenderAsync(bool firstRender) /// 初始化设备方法 /// /// - /// [JSInvokable] public async Task TriggerInit(List devices) { @@ -204,7 +186,6 @@ public async Task TriggerInit(List devices) /// 扫描发生错误callback method /// /// - /// [JSInvokable] public async Task TriggerError(string err) { @@ -218,7 +199,6 @@ public async Task TriggerError(string err) /// 开启摄像头回调方法 /// 开启摄像头callback method /// - /// [JSInvokable] public async Task TriggerOpen() { @@ -232,7 +212,6 @@ public async Task TriggerOpen() /// 停止摄像头回调方法 /// 停止摄像头callback method /// - /// [JSInvokable] public async Task TriggerClose() { diff --git a/src/BootstrapBlazor/Components/Camera/DeviceItem.cs b/src/BootstrapBlazor/Components/Camera/DeviceItem.cs index f07734f45af..3858d85e2e5 100644 --- a/src/BootstrapBlazor/Components/Camera/DeviceItem.cs +++ b/src/BootstrapBlazor/Components/Camera/DeviceItem.cs @@ -6,20 +6,20 @@ namespace BootstrapBlazor.Components; /// -/// 摄像头信息类 -/// 摄像头信息类 +/// 摄像头信息类 +/// 摄像头信息类 /// public class DeviceItem { /// - /// 获得/设置 设备 ID - /// Gets or sets 设备 ID + /// 获得/设置 设备 ID + /// Gets or sets 设备 ID /// public string DeviceId { get; set; } = ""; /// - /// 获得/设置 设备标签 - /// Gets or sets 设备标签 + /// 获得/设置 设备标签 + /// Gets or sets 设备标签 /// public string Label { get; set; } = ""; } diff --git a/src/BootstrapBlazor/Components/Captcha/Captcha.razor.cs b/src/BootstrapBlazor/Components/Captcha/Captcha.razor.cs index 10491401bee..0ff562bae50 100644 --- a/src/BootstrapBlazor/Components/Captcha/Captcha.razor.cs +++ b/src/BootstrapBlazor/Components/Captcha/Captcha.razor.cs @@ -8,8 +8,8 @@ namespace BootstrapBlazor.Components; /// -/// Captcha 组件 -/// Captcha component +/// Captcha 组件 +/// Captcha component /// public partial class Captcha { @@ -18,16 +18,16 @@ public partial class Captcha private int OriginX { get; set; } /// - /// 获得 组件宽度 - /// Gets componentwidth + /// 获得 组件宽度 + /// Gets componentwidth /// private string? StyleString => CssBuilder.Default() .AddClass($"width: {Width + 42}px;", Width > 0) .Build(); /// - /// 获得 加载图片失败样式 - /// Gets 加载图片失败style + /// 获得 加载图片失败样式 + /// Gets 加载图片失败style /// private string? FailedStyle => CssBuilder.Default() .AddClass($"width: {Width}px;", Width > 0) @@ -35,134 +35,118 @@ public partial class Captcha .Build(); /// - /// 获得/设置 Header 显示文本 - /// Gets or sets Header display文本 - /// 10.2.2 + /// 获得/设置 Header 显示文本 + /// Gets or sets Header display文本 /// [Parameter] [NotNull] public string? HeaderText { get; set; } /// - /// 获得/设置 Bar 显示文本 - /// Gets or sets Bar display文本 - /// 10.2.2 + /// 获得/设置 Bar 显示文本 + /// Gets or sets Bar display文本 /// [Parameter] [NotNull] public string? BarText { get; set; } /// - /// 获得/设置 Bar 显示文本 - /// Gets or sets Bar display文本 - /// 10.2.2 + /// 获得/设置 Bar 显示文本 + /// Gets or sets Bar display文本 /// [Parameter] [NotNull] public string? FailedText { get; set; } /// - /// 获得/设置 Bar 显示文本 - /// Gets or sets Bar display文本 - /// 10.2.2 + /// 获得/设置 Bar 显示文本 + /// Gets or sets Bar display文本 /// [Parameter] [NotNull] public string? LoadText { get; set; } /// - /// 获得/设置 验证码结果回调委托 - /// Gets or sets 验证码结果回调delegate - /// 10.2.2 + /// 获得/设置 验证码结果回调委托 + /// Gets or sets 验证码结果回调delegate /// [Parameter] public Func? OnValidAsync { get; set; } /// - /// 获得/设置 图床路径 默认值为 images - /// Gets or sets 图床路径 Default is值为 images - /// 10.2.2 + /// 获得/设置 图床路径 默认值为 images + /// Gets or sets 图床路径 Default is值为 images /// [Parameter] public string ImagesPath { get; set; } = "images"; /// - /// 获得/设置 图床路径 默认值为 Pic.jpg - /// Gets or sets 图床路径 Default is值为 Pic.jpg - /// 10.2.2 + /// 获得/设置 图床路径 默认值为 Pic.jpg + /// Gets or sets 图床路径 Default is值为 Pic.jpg /// [Parameter] public string ImagesName { get; set; } = "Pic.jpg"; /// - /// 获得/设置 获取背景图方法委托 - /// Gets or sets 获取背景图方法delegate - /// 10.2.2 + /// 获得/设置 获取背景图方法委托 + /// Gets or sets 获取背景图方法delegate /// [Parameter] public Func? GetImageName { get; set; } /// - /// 获得/设置 容错偏差 - /// Gets or sets 容错偏差 - /// 10.2.2 + /// 获得/设置 容错偏差 + /// Gets or sets 容错偏差 /// [Parameter] public int Offset { get; set; } = 5; /// - /// 获得/设置 图片宽度 - /// Gets or sets 图片width - /// 10.2.2 + /// 获得/设置 图片宽度 + /// Gets or sets 图片width /// [Parameter] public int Width { get; set; } = 280; /// - /// 获得/设置 拼图边长 - /// Gets or sets 拼图边长 - /// 10.2.2 + /// 获得/设置 拼图边长 + /// Gets or sets 拼图边长 /// [Parameter] public int SideLength { get; set; } = 42; /// - /// 获得/设置 拼图直径 - /// Gets or sets 拼图直径 - /// 10.2.2 + /// 获得/设置 拼图直径 + /// Gets or sets 拼图直径 /// [Parameter] public int Diameter { get; set; } = 9; /// - /// 获得/设置 图片高度 - /// Gets or sets 图片height - /// 10.2.2 + /// 获得/设置 图片高度 + /// Gets or sets 图片height /// [Parameter] public int Height { get; set; } = 155; /// - /// 获得/设置 刷新按钮图标 默认值 fa-solid fa-arrows-rotate - /// Gets or sets 刷新buttonicon Default is值 fa-solid fa-arrows-rotate - /// 10.2.2 + /// 获得/设置 刷新按钮图标 默认值 fa-solid fa-arrows-rotate + /// Gets or sets 刷新buttonicon Default is值 fa-solid fa-arrows-rotate /// [Parameter] [NotNull] public string? RefreshIcon { get; set; } /// - /// 获得/设置 随机图片最大张数 默认 1024 - /// Gets or sets 随机图片最大张数 Default is 1024 - /// 10.2.2 + /// 获得/设置 随机图片最大张数 默认 1024 + /// Gets or sets 随机图片最大张数 Default is 1024 /// [Parameter] public int Max { get; set; } = 1024; /// - /// 获得/设置 刷新按钮图标 默认值 fa-solid fa-arrow-right - /// Gets or sets 刷新buttonicon Default is值 fa-solid fa-arrow-right - /// 10.2.2 + /// 获得/设置 刷新按钮图标 默认值 fa-solid fa-arrow-right + /// Gets or sets 刷新buttonicon Default is值 fa-solid fa-arrow-right /// [Parameter] [NotNull] @@ -177,8 +161,8 @@ public partial class Captcha private IIconTheme? IconTheme { get; set; } /// - /// - /// + /// + /// /// protected override void OnParametersSet() { @@ -194,21 +178,20 @@ protected override void OnParametersSet() } /// - /// - /// + /// + /// /// - /// protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id, Interop, nameof(Verify), GetCaptchaOption()); /// - /// 点击刷新按钮时回调此方法 - /// 点击刷新button时回调此方法 + /// 点击刷新按钮时回调此方法 + /// 点击刷新button时回调此方法 /// private Task OnClickRefresh() => Reset(); /// - /// 验证方差方法 - /// 验证方差方法 + /// 验证方差方法 + /// 验证方差方法 /// [JSInvokable] public async Task Verify(int offset, List trails) @@ -269,8 +252,8 @@ private static bool CalcStddev(List trails) } /// - /// 重置组件方法 - /// 重置component方法 + /// 重置组件方法 + /// 重置component方法 /// public async Task Reset() { diff --git a/src/BootstrapBlazor/Components/Captcha/CaptchaOption.cs b/src/BootstrapBlazor/Components/Captcha/CaptchaOption.cs index 144273aad3f..20b8c3c6e03 100644 --- a/src/BootstrapBlazor/Components/Captcha/CaptchaOption.cs +++ b/src/BootstrapBlazor/Components/Captcha/CaptchaOption.cs @@ -6,56 +6,56 @@ namespace BootstrapBlazor.Components; /// -/// Captcha 滑块验证码组件 -/// Captcha 滑块验证码component +/// Captcha 滑块验证码组件 +/// Captcha 滑块验证码component /// public class CaptchaOption { /// - /// 获得/设置 验证码图片宽度 - /// Gets or sets 验证码图片width + /// 获得/设置 验证码图片宽度 + /// Gets or sets 验证码图片width /// public int Width { get; set; } /// - /// 获得/设置 验证码图片高度 - /// Gets or sets 验证码图片height + /// 获得/设置 验证码图片高度 + /// Gets or sets 验证码图片height /// public int Height { get; set; } /// - /// 获得/设置 拼图边长 默认 42 - /// Gets or sets 拼图边长 Default is 42 + /// 获得/设置 拼图边长 默认 42 + /// Gets or sets 拼图边长 Default is 42 /// public int SideLength { get; set; } = 42; /// - /// 获得/设置 拼图直径 默认 9 - /// Gets or sets 拼图直径 Default is 9 + /// 获得/设置 拼图直径 默认 9 + /// Gets or sets 拼图直径 Default is 9 /// public int Diameter { get; set; } = 9; /// - /// 获得/设置 拼图 X 位置 - /// Gets or sets 拼图 X 位置 + /// 获得/设置 拼图 X 位置 + /// Gets or sets 拼图 X 位置 /// public int OffsetX { get; set; } /// - /// 获得/设置 拼图 Y 位置 - /// Gets or sets 拼图 Y 位置 + /// 获得/设置 拼图 Y 位置 + /// Gets or sets 拼图 Y 位置 /// public int OffsetY { get; set; } /// - /// 获得/设置 拼图宽度 - /// Gets or sets 拼图width + /// 获得/设置 拼图宽度 + /// Gets or sets 拼图width /// public int BarWidth { get; set; } /// - /// 获得/设置 拼图背景图片路径 - /// Gets or sets 拼图背景图片路径 + /// 获得/设置 拼图背景图片路径 + /// Gets or sets 拼图背景图片路径 /// public string? ImageUrl { get; set; } } diff --git a/src/BootstrapBlazor/Components/Card/Card.razor.cs b/src/BootstrapBlazor/Components/Card/Card.razor.cs index 43fc17426e6..1f4114f19ef 100644 --- a/src/BootstrapBlazor/Components/Card/Card.razor.cs +++ b/src/BootstrapBlazor/Components/Card/Card.razor.cs @@ -60,7 +60,6 @@ public partial class Card /// Gets or sets the Card Header height padding Y-axis value. Default is null /// 单位需自行给定 如 0.25rem /// Units need to be given by yourself, such as 0.25rem - /// 10.2.2 /// [Parameter] public string? HeaderPaddingY { get; set; } @@ -68,7 +67,6 @@ public partial class Card /// /// 获得/设置 收缩展开箭头图标 默认 fa-solid fa-circle-chevron-right /// Gets or sets the collapse/expand arrow icon. Default is fa-solid fa-circle-chevron-right - /// 10.2.2 /// [Parameter] public string? CollapseIcon { get; set; } @@ -76,7 +74,6 @@ public partial class Card /// /// 获得/设置 HeaderTemplate 显示文本 /// Gets or sets the HeaderTemplate display text - /// 10.2.2 /// [Parameter] public string? HeaderText { get; set; } @@ -84,7 +81,6 @@ public partial class Card /// /// 获得/设置 CardHeard 模板 /// Gets or sets the CardHeader template - /// 10.2.2 /// [Parameter] public RenderFragment? HeaderTemplate { get; set; } @@ -92,7 +88,6 @@ public partial class Card /// /// 获得/设置 BodyTemplate 模板 /// Gets or sets the BodyTemplate template - /// 10.2.2 /// [Parameter] public RenderFragment? BodyTemplate { get; set; } @@ -100,7 +95,6 @@ public partial class Card /// /// 获得/设置 FooterTemplate 模板 /// Gets or sets the FooterTemplate template - /// 10.2.2 /// [Parameter] public RenderFragment? FooterTemplate { get; set; } @@ -108,7 +102,6 @@ public partial class Card /// /// 获得/设置 Card 颜色 /// Gets or sets the Card color - /// 10.2.2 /// [Parameter] public Color Color { get; set; } @@ -116,7 +109,6 @@ public partial class Card /// /// 获得/设置 是否居中 默认 false /// Gets or sets whether to center. Default is false - /// 10.2.2 /// [Parameter] public bool IsCenter { get; set; } @@ -124,7 +116,6 @@ public partial class Card /// /// 获得/设置 是否可收缩 默认 false /// Gets or sets whether it is collapsible. Default is false - /// 10.2.2 /// [Parameter] public bool IsCollapsible { get; set; } @@ -132,7 +123,6 @@ public partial class Card /// /// 获得/设置 是否收缩 默认 false 展开 /// Gets or sets whether it is collapsed. Default is false (expanded) - /// 10.2.2 /// [Parameter] public bool Collapsed { get; set; } @@ -140,7 +130,6 @@ public partial class Card /// /// 获得/设置 是否收缩 默认 false 展开 /// Gets or sets whether it is collapsed. Default is false (expanded) - /// 10.2.2 /// [Parameter] public EventCallback CollapsedChanged { get; set; } @@ -148,7 +137,6 @@ public partial class Card /// /// 获得/设置 是否显示阴影 默认 false /// Gets or sets whether to show shadow. Default is false - /// 10.2.2 /// [Parameter] public bool IsShadow { get; set; } @@ -175,7 +163,6 @@ protected override void OnParametersSet() /// /// /// - /// protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id, Interop, nameof(ToggleCollapse)); private string? BodyId => $"{Id}_body"; @@ -184,7 +171,6 @@ protected override void OnParametersSet() /// The callback click collapse button /// The callback click collapse button /// - /// [JSInvokable] public async Task ToggleCollapse(bool collapsed) { diff --git a/src/BootstrapBlazor/Components/Carousel/Carousel.razor.cs b/src/BootstrapBlazor/Components/Carousel/Carousel.razor.cs index 3dc16c7e2ae..1d34c615a07 100644 --- a/src/BootstrapBlazor/Components/Carousel/Carousel.razor.cs +++ b/src/BootstrapBlazor/Components/Carousel/Carousel.razor.cs @@ -41,7 +41,6 @@ public partial class Carousel /// /// /// - /// private static string? CheckActive(int index, string? css = null) => CssBuilder.Default(css) .AddClass("active", index == 0) .Build(); @@ -49,7 +48,6 @@ public partial class Carousel /// /// 获得 Images 集合 /// Get Images collection - /// 10.2.2 /// [Parameter] public IEnumerable Images { get; set; } = []; @@ -57,7 +55,6 @@ public partial class Carousel /// /// 获得/设置 内部图片的宽度 /// Gets or sets the width of internal images - /// 10.2.2 /// [Parameter] public string? Width { get; set; } @@ -65,7 +62,6 @@ public partial class Carousel /// /// 获得/设置 是否采用淡入淡出效果 默认为 false /// Gets or sets whether to use fade effect. Default is false - /// 10.2.2 /// [Parameter] public bool IsFade { get; set; } @@ -73,7 +69,6 @@ public partial class Carousel /// /// 获得/设置 点击 Image 回调委托 /// Gets or sets the Click Image callback delegate - /// 10.2.2 /// [Parameter] public Func? OnClick { get; set; } @@ -81,7 +76,6 @@ public partial class Carousel /// /// 获得/设置 幻灯片切换后回调方法 /// Gets or sets the callback method after slide switch - /// 10.2.2 /// [Parameter] public Func? OnSlideChanged { get; set; } @@ -89,7 +83,6 @@ public partial class Carousel /// /// 获得/设置 子组件 要求使用 /// Gets or sets child component. Requires - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } @@ -97,7 +90,6 @@ public partial class Carousel /// /// 获得/设置 是否显示控制按钮 默认 true /// Gets or sets whether to show control buttons. Default is true - /// 10.2.2 /// [Parameter] public bool ShowControls { get; set; } = true; @@ -105,7 +97,6 @@ public partial class Carousel /// /// 获得/设置 是否显示指示标志 默认 true /// Gets or sets whether to show indicators. Default is true - /// 10.2.2 /// [Parameter] public bool ShowIndicators { get; set; } = true; @@ -113,7 +104,6 @@ public partial class Carousel /// /// 获得/设置 是否禁用移动端手势滑动 默认 false /// Gets or sets whether to disable mobile touch swiping. Default is false - /// 10.2.2 /// [Parameter] public bool DisableTouchSwiping { get; set; } @@ -121,7 +111,6 @@ public partial class Carousel /// /// 获得/设置 上一页图标 /// Gets or sets the previous icon - /// 10.2.2 /// [Parameter] public string? PreviousIcon { get; set; } @@ -129,7 +118,6 @@ public partial class Carousel /// /// 获得/设置 下一页图标 /// Gets or sets the next icon - /// 10.2.2 /// [Parameter] public string? NextIcon { get; set; } @@ -137,7 +125,6 @@ public partial class Carousel /// /// 获得/设置 鼠标悬停时是否暂停播放 默认 true /// Gets or sets whether to pause on hover. Default is true - /// 10.2.2 /// [Parameter] public bool HoverPause { get; set; } = true; @@ -145,7 +132,6 @@ public partial class Carousel /// /// 获得/设置 自动播放方式 默认 /// Gets or sets the auto play mode. Default is - /// 10.2.2 /// [Parameter] public CarouselPlayMode PlayMode { get; set; } @@ -199,7 +185,6 @@ protected override void OnParametersSet() /// /// /// - /// protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id, new { Invoke = Interop, Method = InvokeMethodName }); private string? InvokeMethodName => OnSlideChanged == null ? null : nameof(TriggerSlideChanged); @@ -208,7 +193,6 @@ protected override void OnParametersSet() /// 点击 Image 是触发此方法 /// Trigger this method when clicking Image /// - /// protected async Task OnClickImage(string imageUrl) { if (OnClick != null) await OnClick(imageUrl); @@ -235,7 +219,6 @@ protected async Task OnClickImage(string imageUrl) /// Slide switch event callback called by JavaScript /// /// - /// [JSInvokable] public async ValueTask TriggerSlideChanged(int index) { diff --git a/src/BootstrapBlazor/Components/Carousel/CarouselImage.cs b/src/BootstrapBlazor/Components/Carousel/CarouselImage.cs index ee55e9e7ad8..0aaa703ffa5 100644 --- a/src/BootstrapBlazor/Components/Carousel/CarouselImage.cs +++ b/src/BootstrapBlazor/Components/Carousel/CarouselImage.cs @@ -16,7 +16,6 @@ internal class CarouselImage : ComponentBase /// /// 获得/设置 图片路径 /// Gets or sets the image URL - /// 10.2.2 /// [Parameter] public string? ImageUrl { get; set; } @@ -24,7 +23,6 @@ internal class CarouselImage : ComponentBase /// /// 获得/设置 点击回调委托 /// Gets or sets the click callback delegate - /// 10.2.2 /// [Parameter] public Func? OnClick { get; set; } diff --git a/src/BootstrapBlazor/Components/Carousel/CarouselItem.cs b/src/BootstrapBlazor/Components/Carousel/CarouselItem.cs index ea86d590bbc..83c50b49e9e 100644 --- a/src/BootstrapBlazor/Components/Carousel/CarouselItem.cs +++ b/src/BootstrapBlazor/Components/Carousel/CarouselItem.cs @@ -14,7 +14,6 @@ public class CarouselItem : ComponentBase, IDisposable /// /// 获得/设置 子组件 默认 null /// Gets or sets the child content. Default is null - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } @@ -22,7 +21,6 @@ public class CarouselItem : ComponentBase, IDisposable /// /// 获得/设置 Caption 文字 默认 null 可设置 自定义 /// Gets or sets the Caption text. Default is null. Can be customized by setting - /// 10.2.2 /// [Parameter] public string? Caption { get; set; } @@ -30,7 +28,6 @@ public class CarouselItem : ComponentBase, IDisposable /// /// 获得/设置 Caption 样式 默认 null /// Gets or sets the Caption style. Default is null - /// 10.2.2 /// [Parameter] public string? CaptionClass { get; set; } @@ -38,7 +35,6 @@ public class CarouselItem : ComponentBase, IDisposable /// /// 获得/设置 Caption 模板 默认 null /// Gets or sets the Caption template. Default is null - /// 10.2.2 /// [Parameter] public RenderFragment? CaptionTemplate { get; set; } @@ -46,7 +42,6 @@ public class CarouselItem : ComponentBase, IDisposable /// /// 获得/设置 Slider 切换时间间隔 默认 5000 /// Gets or sets the Slider interval. Default is 5000 - /// 10.2.2 /// [Parameter] public int Interval { get; set; } = 5000; diff --git a/src/BootstrapBlazor/Components/Cascader/Cascader.razor.cs b/src/BootstrapBlazor/Components/Cascader/Cascader.razor.cs index 029914afa96..a868f9beef0 100644 --- a/src/BootstrapBlazor/Components/Cascader/Cascader.razor.cs +++ b/src/BootstrapBlazor/Components/Cascader/Cascader.razor.cs @@ -35,7 +35,6 @@ public partial class Cascader /// /// 获得/设置 按钮颜色 /// Gets or sets the button color - /// 10.2.2 /// [Parameter] public Color Color { get; set; } = Color.None; @@ -43,7 +42,6 @@ public partial class Cascader /// /// 获得/设置 组件 PlaceHolder 文字 默认为 请选择 ... /// Gets or sets the component PlaceHolder text. Default is Please select ... - /// 10.2.2 /// [Parameter] public string? PlaceHolder { get; set; } @@ -51,7 +49,6 @@ public partial class Cascader /// /// 获得/设置 绑定数据集 /// Gets or sets the bound data set - /// 10.2.2 /// [Parameter] [NotNull] @@ -60,7 +57,6 @@ public partial class Cascader /// /// 获得/设置 ValueChanged 方法 /// Gets or sets the ValueChanged method - /// 10.2.2 /// [Parameter] public Func? OnSelectedItemChanged { get; set; } @@ -68,7 +64,6 @@ public partial class Cascader /// /// 获得/设置 父节点是否可选择 默认 true /// Gets or sets whether the parent node is selectable. Default is true - /// 10.2.2 /// [Parameter] public bool ParentSelectable { get; set; } = true; @@ -76,7 +71,6 @@ public partial class Cascader /// /// 获得/设置 是否显示全路径 默认 true /// Gets or sets whether to show the full path. Default is true - /// 10.2.2 /// [Parameter] public bool ShowFullLevels { get; set; } = true; @@ -84,7 +78,6 @@ public partial class Cascader /// /// 获得/设置 菜单指示图标 /// Gets or sets the menu indicator icon - /// 10.2.2 /// [Parameter] public string? Icon { get; set; } @@ -92,7 +85,6 @@ public partial class Cascader /// /// 获得/设置 子菜单指示图标 /// Gets or sets the submenu indicator icon - /// 10.2.2 /// [Parameter] public string? SubMenuIcon { get; set; } @@ -100,7 +92,6 @@ public partial class Cascader /// /// 获得/设置 是否可清除 默认 false /// Gets or sets whether it is clearable. Default is false - /// 10.2.2 /// [Parameter] public bool IsClearable { get; set; } @@ -108,7 +99,6 @@ public partial class Cascader /// /// 获得/设置 右侧清除图标 默认 fa-solid fa-angle-up /// Gets or sets the clear icon on the right. Default is fa-solid fa-angle-up - /// 10.2.2 /// [Parameter] [NotNull] @@ -117,7 +107,6 @@ public partial class Cascader /// /// 获得/设置 清除文本内容 OnClear 回调方法 默认 null /// Gets or sets the OnClear callback method when clearing text content. Default is null - /// 10.2.2 /// [Parameter] public Func? OnClearAsync { get; set; } @@ -125,7 +114,6 @@ public partial class Cascader /// /// 获得/设置 失去焦点回调方法 默认 null /// Gets or sets the callback method when losing focus. Default is null - /// 10.2.2 /// [Parameter] public Func? OnBlurAsync { get; set; } @@ -217,7 +205,6 @@ private void SetDefaultValue(string defaultValue) /// /// /// - /// private static CascaderItem? GetNodeByValue(IEnumerable items, string value) { foreach (var item in items) @@ -270,7 +257,6 @@ private void SetDefaultValue(string defaultValue) /// /// /// - /// private string? ActiveItem(string className, CascaderItem item) => CssBuilder.Default(className) .AddClass("active", () => SelectedItems.Contains(item)) .Build(); diff --git a/src/BootstrapBlazor/Components/Cascader/SubCascader.razor.cs b/src/BootstrapBlazor/Components/Cascader/SubCascader.razor.cs index 0ac8fb05ec5..679dbf2fea8 100644 --- a/src/BootstrapBlazor/Components/Cascader/SubCascader.razor.cs +++ b/src/BootstrapBlazor/Components/Cascader/SubCascader.razor.cs @@ -14,7 +14,6 @@ public partial class SubCascader /// /// 获得/设置 组件数据源 /// Gets or sets the component data source - /// 10.2.2 /// [Parameter] [NotNull] @@ -26,7 +25,6 @@ public partial class SubCascader /// /// 获得/设置 选择项点击回调委托 /// Gets or sets the selected item click callback delegate - /// 10.2.2 /// [Parameter] public Func? OnClick { get; set; } @@ -34,7 +32,6 @@ public partial class SubCascader /// /// 获得/设置 子菜单指示图标 /// Gets or sets the submenu indicator icon - /// 10.2.2 /// [Parameter] public string? SubMenuIcon { get; set; } diff --git a/src/BootstrapBlazor/Components/Checkbox/Checkbox.razor.cs b/src/BootstrapBlazor/Components/Checkbox/Checkbox.razor.cs index bc67ec1c05b..fb0dd27759f 100644 --- a/src/BootstrapBlazor/Components/Checkbox/Checkbox.razor.cs +++ b/src/BootstrapBlazor/Components/Checkbox/Checkbox.razor.cs @@ -57,7 +57,6 @@ public partial class Checkbox : ValidateBase /// /// 获得/设置 按钮颜色 默认为 None 未设置 /// Gets or sets the button color. Default is None (not set) - /// 10.2.2 /// [Parameter] public Color Color { get; set; } @@ -65,7 +64,6 @@ public partial class Checkbox : ValidateBase /// /// 获得/设置 Size 大小 默认为 None /// Gets or sets the Size. Default is None - /// 10.2.2 /// [Parameter] public Size Size { get; set; } @@ -73,7 +71,6 @@ public partial class Checkbox : ValidateBase /// /// 获得/设置 是否显示 Checkbox 后置 label 文字 默认为 false /// Gets or sets whether to show the Checkbox post label text. Default is false - /// 10.2.2 /// [Parameter] public bool ShowAfterLabel { get; set; } @@ -81,7 +78,6 @@ public partial class Checkbox : ValidateBase /// /// 获得/设置 选择框状态 /// Gets or sets the checkbox state - /// 10.2.2 /// [Parameter] public CheckboxState State { get; set; } @@ -89,7 +85,6 @@ public partial class Checkbox : ValidateBase /// /// 获得/设置 State 状态改变回调方法 /// Gets or sets the State change callback method - /// 10.2.2 /// /// [Parameter] @@ -98,7 +93,6 @@ public partial class Checkbox : ValidateBase /// /// 获得/设置 选中状态改变前回调此方法 返回 false 可以阻止状态改变 /// Gets or sets the callback method before the selected state changes. Returning false can prevent the state change - /// 10.2.2 /// [Parameter] public Func>? OnBeforeStateChanged { get; set; } @@ -106,7 +100,6 @@ public partial class Checkbox : ValidateBase /// /// 获得/设置 选择框状态改变时回调此方法 /// Gets or sets the callback method when the checkbox state changes - /// 10.2.2 /// [Parameter] public Func? OnStateChanged { get; set; } @@ -114,7 +107,6 @@ public partial class Checkbox : ValidateBase /// /// 获得/设置 是否事件冒泡 默认为 false /// Gets or sets whether event bubbling. Default is false - /// 10.2.2 /// [Parameter] public bool StopPropagation { get; set; } @@ -122,7 +114,6 @@ public partial class Checkbox : ValidateBase /// /// 获得/设置 子组件 RenderFragment 实例 /// Gets or sets the child component RenderFragment instance - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } @@ -170,7 +161,6 @@ protected override void OnAfterRender(bool firstRender) /// /// /// - /// protected override async Task OnAfterRenderAsync(bool firstRender) { await base.OnAfterRenderAsync(firstRender); @@ -181,14 +171,12 @@ protected override async Task OnAfterRenderAsync(bool firstRender) /// /// /// - /// protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id, Interop, nameof(OnStateChangedAsync)); /// /// 点击组件触发方法 内部调用 回调方法 /// Click component trigger method. Internally calls callback method /// - /// public async Task OnToggleClick() { var valid = true; @@ -217,7 +205,6 @@ public async Task OnToggleClick() /// 触发 Click 方法 由 JavaScript 调用 /// Trigger Click method. Called by JavaScript /// - /// [JSInvokable] public ValueTask OnStateChangedAsync(CheckboxState state) { diff --git a/src/BootstrapBlazor/Components/Checkbox/CheckboxList.razor.cs b/src/BootstrapBlazor/Components/Checkbox/CheckboxList.razor.cs index b77c7579159..ed8ef180e33 100644 --- a/src/BootstrapBlazor/Components/Checkbox/CheckboxList.razor.cs +++ b/src/BootstrapBlazor/Components/Checkbox/CheckboxList.razor.cs @@ -49,7 +49,6 @@ public partial class CheckboxList : ValidateBase /// /// 获得/设置 数据源 /// Gets or sets the data source - /// 10.2.2 /// [Parameter] [NotNull] @@ -58,7 +57,6 @@ public partial class CheckboxList : ValidateBase /// /// 获得/设置 是否为按钮样式 默认 false /// Gets or sets whether it is a button style. Default is false - /// 10.2.2 /// [Parameter] public bool IsButton { get; set; } @@ -66,7 +64,6 @@ public partial class CheckboxList : ValidateBase /// /// 获得/设置 是否显示按钮边框颜色 默认为 false /// Gets or sets whether to show the button border color. Default is false - /// 10.2.2 /// [Parameter] public bool ShowButtonBorderColor { get; set; } @@ -74,7 +71,6 @@ public partial class CheckboxList : ValidateBase /// /// 获得/设置 Checkbox 组件布局样式 /// Gets or sets the Checkbox component layout style - /// 10.2.2 /// [Parameter] public string? CheckboxItemClass { get; set; } @@ -82,7 +78,6 @@ public partial class CheckboxList : ValidateBase /// /// 获得/设置 非按钮模式下是否显示组件边框 默认为 true /// Gets or sets whether to show the component border in non-button mode. Default is true - /// 10.2.2 /// [Parameter] public bool ShowBorder { get; set; } = true; @@ -90,7 +85,6 @@ public partial class CheckboxList : ValidateBase /// /// 获得/设置 是否为竖向排列 默认为 false /// Gets or sets whether to arrange vertically. Default is false - /// 10.2.2 /// [Parameter] public bool IsVertical { get; set; } @@ -98,7 +92,6 @@ public partial class CheckboxList : ValidateBase /// /// 获得/设置 按钮颜色 默认为 None 未设置 /// Gets or sets the button color. Default is None (not set) - /// 10.2.2 /// [Parameter] public Color Color { get; set; } @@ -106,7 +99,6 @@ public partial class CheckboxList : ValidateBase /// /// 获得/设置 SelectedItemChanged 方法 /// Gets or sets the SelectedItemChanged method - /// 10.2.2 /// [Parameter] public Func, TValue, Task>? OnSelectedChanged { get; set; } @@ -114,7 +106,6 @@ public partial class CheckboxList : ValidateBase /// /// 获得/设置 最多选中数量 /// Gets or sets the maximum number of selected items - /// 10.2.2 /// [Parameter] public int MaxSelectedCount { get; set; } @@ -122,7 +113,6 @@ public partial class CheckboxList : ValidateBase /// /// 获得/设置 超过最大选中数量时回调委托 /// Gets or sets the callback delegate when the maximum number of selected items is exceeded - /// 10.2.2 /// [Parameter] public Func? OnMaxSelectedCountExceed { get; set; } @@ -130,7 +120,6 @@ public partial class CheckboxList : ValidateBase /// /// 获得/设置 项模板 /// Gets or sets the item template - /// 10.2.2 /// [Parameter] public RenderFragment? ItemTemplate { get; set; } @@ -140,7 +129,6 @@ public partial class CheckboxList : ValidateBase /// Get whether the current option is disabled /// /// - /// protected bool GetDisabledState(SelectedItem item) => IsDisabled || item.IsDisabled; private Func>? _onBeforeStateChangedCallback; @@ -208,7 +196,6 @@ private async Task OnBeforeStateChanged(CheckboxState state) /// /// /// - /// protected override string? FormatValueAsString(TValue? value) { string? ret = null; diff --git a/src/BootstrapBlazor/Components/Checkbox/CheckboxListGeneric.razor.cs b/src/BootstrapBlazor/Components/Checkbox/CheckboxListGeneric.razor.cs index f823cbe681f..bea81734128 100644 --- a/src/BootstrapBlazor/Components/Checkbox/CheckboxListGeneric.razor.cs +++ b/src/BootstrapBlazor/Components/Checkbox/CheckboxListGeneric.razor.cs @@ -45,7 +45,6 @@ public partial class CheckboxListGeneric : IModelEqualityComparer /// 获得/设置 数据主键标识标签 默认为
用于判断数据主键标签,如果模型未设置主键时可使用 参数自定义判断
数据模型支持联合主键
/// Gets or sets the data primary key attribute tag. Default is
Used to judge the data primary key tag. If the model does not set the primary key, you can use the parameter to customize the judgment
Data model supports joint primary keys
- /// 10.2.2 /// [Parameter] [NotNull] @@ -56,7 +55,6 @@ public partial class CheckboxListGeneric : IModelEqualityComparerGets or sets the callback method to compare whether the data is the same. Default is null /// 提供此回调方法时忽略 属性 /// Ignore the property when providing this callback method - /// 10.2.2 /// [Parameter] public Func? ModelEqualityComparer { get; set; } @@ -64,7 +62,6 @@ public partial class CheckboxListGeneric : IModelEqualityComparer /// 获得/设置 数据源 /// Gets or sets the data source - /// 10.2.2 /// [Parameter] [NotNull] @@ -73,7 +70,6 @@ public partial class CheckboxListGeneric : IModelEqualityComparer /// 获得/设置 是否为按钮样式 默认 false /// Gets or sets whether it is a button style. Default is false - /// 10.2.2 /// [Parameter] public bool IsButton { get; set; } @@ -81,7 +77,6 @@ public partial class CheckboxListGeneric : IModelEqualityComparer /// 获得/设置 Checkbox 组件布局样式 /// Gets or sets the Checkbox component layout style - /// 10.2.2 /// [Parameter] public string? CheckboxItemClass { get; set; } @@ -89,7 +84,6 @@ public partial class CheckboxListGeneric : IModelEqualityComparer /// 获得/设置 是否显示边框 默认为 true /// Gets or sets whether to show the border. Default is true - /// 10.2.2 /// [Parameter] public bool ShowBorder { get; set; } = true; @@ -97,7 +91,6 @@ public partial class CheckboxListGeneric : IModelEqualityComparer /// 获得/设置 是否为竖向排列 默认为 false /// Gets or sets whether to arrange vertically. Default is false - /// 10.2.2 /// [Parameter] public bool IsVertical { get; set; } @@ -105,7 +98,6 @@ public partial class CheckboxListGeneric : IModelEqualityComparer /// 获得/设置 按钮颜色 默认为 None 未设置 /// Gets or sets the button color. Default is None (not set) - /// 10.2.2 /// [Parameter] public Color Color { get; set; } @@ -113,7 +105,6 @@ public partial class CheckboxListGeneric : IModelEqualityComparer /// 获得/设置 SelectedItemChanged 方法 /// Gets or sets the SelectedItemChanged method - /// 10.2.2 /// [Parameter] public Func>, List, Task>? OnSelectedChanged { get; set; } @@ -121,7 +112,6 @@ public partial class CheckboxListGeneric : IModelEqualityComparer /// 获得/设置 最多选中数量 /// Gets or sets the maximum number of selected items - /// 10.2.2 /// [Parameter] public int MaxSelectedCount { get; set; } @@ -129,7 +119,6 @@ public partial class CheckboxListGeneric : IModelEqualityComparer /// 获得/设置 超过最大选中数量时回调委托 /// Gets or sets the callback delegate when the maximum number of selected items is exceeded - /// 10.2.2 /// [Parameter] public Func? OnMaxSelectedCountExceed { get; set; } @@ -137,7 +126,6 @@ public partial class CheckboxListGeneric : IModelEqualityComparer /// 获得/设置 项模板 /// Gets or sets the item template - /// 10.2.2 /// [Parameter] public RenderFragment>? ItemTemplate { get; set; } @@ -147,7 +135,6 @@ public partial class CheckboxListGeneric : IModelEqualityComparerGet whether the current option is disabled /// /// - /// protected bool GetDisabledState(SelectedItem item) => IsDisabled || item.IsDisabled; private Func>? _onBeforeStateChangedCallback; diff --git a/src/BootstrapBlazor/Components/Circle/Circle.razor.cs b/src/BootstrapBlazor/Components/Circle/Circle.razor.cs index e330215d904..1150623ef5b 100644 --- a/src/BootstrapBlazor/Components/Circle/Circle.razor.cs +++ b/src/BootstrapBlazor/Components/Circle/Circle.razor.cs @@ -14,7 +14,6 @@ public sealed partial class Circle /// /// 获得/设置 当前值 /// Gets or sets current value - /// 10.2.2 /// [Parameter] public int Value { get; set; } diff --git a/src/BootstrapBlazor/Components/Circle/CircleBase.cs b/src/BootstrapBlazor/Components/Circle/CircleBase.cs index ba15ee815d3..2ebf1f6e449 100644 --- a/src/BootstrapBlazor/Components/Circle/CircleBase.cs +++ b/src/BootstrapBlazor/Components/Circle/CircleBase.cs @@ -64,7 +64,6 @@ public abstract class CircleBase : BootstrapModuleComponentBase /// /// 获得/设置 文件预览框宽度 /// Gets or sets file preview box width - /// 10.2.2 /// [Parameter] public virtual int Width { get; set; } = 120; @@ -72,7 +71,6 @@ public abstract class CircleBase : BootstrapModuleComponentBase /// /// 获得/设置 进度条宽度 默认为 2 /// Gets or sets progress bar width, default is 2 - /// 10.2.2 /// [Parameter] public virtual int StrokeWidth { get; set; } = 2; @@ -80,7 +78,6 @@ public abstract class CircleBase : BootstrapModuleComponentBase /// /// 获得/设置 组件进度条颜色 /// Gets or sets component progress bar color - /// 10.2.2 /// [Parameter] public Color Color { get; set; } = Color.Primary; @@ -88,7 +85,6 @@ public abstract class CircleBase : BootstrapModuleComponentBase /// /// 获得/设置 是否显示进度百分比 默认显示 /// Gets or sets whether to show progress percentage, default is true - /// 10.2.2 /// [Parameter] public bool ShowProgress { get; set; } = true; @@ -96,7 +92,6 @@ public abstract class CircleBase : BootstrapModuleComponentBase /// /// 获得/设置 子组件 /// Gets or sets child content - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } diff --git a/src/BootstrapBlazor/Components/Clipboard/ClipboardItem.cs b/src/BootstrapBlazor/Components/Clipboard/ClipboardItem.cs index 7eca945bc49..e487d971850 100644 --- a/src/BootstrapBlazor/Components/Clipboard/ClipboardItem.cs +++ b/src/BootstrapBlazor/Components/Clipboard/ClipboardItem.cs @@ -6,14 +6,14 @@ namespace BootstrapBlazor.Components; /// -/// Represents an item on the clipboard with associated 数据 and meta数据. -/// Represents an item on the clipboard with associated data and metadata. +/// Represents an item on the clipboard with associated 数据 and meta数据. +/// Represents an item on the clipboard with associated data and metadata. /// public class ClipboardItem { /// - /// 获得/设置 the Internet Media Type (MIME 类型) of the 内容 stored in the clipboard item. - /// Gets or sets the Internet Media Type (MIME type) of the content stored in the clipboard item. + /// 获得/设置 the Internet Media Type (MIME 类型) of the 内容 stored in the clipboard item. + /// Gets or sets the Internet Media Type (MIME type) of the content stored in the clipboard item. /// /// /// The MIME type is used to specify the nature and format of the data stored in the clipboard. @@ -22,8 +22,8 @@ public class ClipboardItem public string? MimeType { get; set; } /// - /// 获得/设置 the raw 数据 of the clipboard item. - /// Gets or sets the raw data of the clipboard item. + /// 获得/设置 the raw 数据 of the clipboard item. + /// Gets or sets the raw data of the clipboard item. /// /// /// The data is stored as a byte array, allowing for any binary or text content @@ -32,8 +32,8 @@ public class ClipboardItem public byte[]? Data { get; set; } /// - /// Retrieves a text representation of the clipboard item if the MIME 类型 indicates text 内容. - /// Retrieves a text representation of the clipboard item if the MIME type indicates text content. + /// Retrieves a text representation of the clipboard item if the MIME 类型 indicates text 内容. + /// Retrieves a text representation of the clipboard item if the MIME type indicates text content. /// /// /// A string containing the text representation of the data if the MIME type starts with "text/", diff --git a/src/BootstrapBlazor/Components/ClockPicker/ClockPicker.razor.cs b/src/BootstrapBlazor/Components/ClockPicker/ClockPicker.razor.cs index 45ea806db7b..3f99e2894aa 100644 --- a/src/BootstrapBlazor/Components/ClockPicker/ClockPicker.razor.cs +++ b/src/BootstrapBlazor/Components/ClockPicker/ClockPicker.razor.cs @@ -24,7 +24,6 @@ public partial class ClockPicker /// /// 获得/设置 是否显示表盘刻度 默认 false /// Gets or sets whether to show clock scale, default is false - /// 10.2.2 /// [Parameter] public bool ShowClockScale { get; set; } @@ -32,7 +31,6 @@ public partial class ClockPicker /// /// 获得/设置 是否显示秒 默认 true /// Gets or sets whether to show second, default is true - /// 10.2.2 /// [Parameter] public bool ShowSecond { get; set; } = true; @@ -40,7 +38,6 @@ public partial class ClockPicker /// /// 获得/设置 是否显示分钟 默认 true /// Gets or sets whether to show minute, default is true - /// 10.2.2 /// [Parameter] public bool ShowMinute { get; set; } = true; @@ -48,7 +45,6 @@ public partial class ClockPicker /// /// 获得/设置 是否自动切换 小时、分钟、秒 自动切换 默认 true /// Gets or sets whether to automatically switch hour/minute/second, default is true - /// 10.2.2 /// [Parameter] public bool IsAutoSwitch { get; set; } = true; @@ -103,7 +99,6 @@ public partial class ClockPicker /// /// /// - /// protected override async Task OnAfterRenderAsync(bool firstRender) { await base.OnAfterRenderAsync(firstRender); @@ -117,7 +112,6 @@ protected override async Task OnAfterRenderAsync(bool firstRender) /// /// /// - /// protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id, new { Invoke = Interop, Hour = Value.Hours, Minute = Value.Minutes, Second = Value.Seconds, Version = _version }); private void SetMode(TimeMode mode) => Mode = mode; diff --git a/src/BootstrapBlazor/Components/Collapse/Collapse.razor.cs b/src/BootstrapBlazor/Components/Collapse/Collapse.razor.cs index b85efcad18d..5d6a68456e4 100644 --- a/src/BootstrapBlazor/Components/Collapse/Collapse.razor.cs +++ b/src/BootstrapBlazor/Components/Collapse/Collapse.razor.cs @@ -53,7 +53,6 @@ public partial class Collapse /// /// 获得/设置 是否为手风琴效果 默认为 false /// Gets or sets whether to use accordion effect, default is false - /// 10.2.2 /// [Parameter] public bool IsAccordion { get; set; } @@ -61,7 +60,6 @@ public partial class Collapse /// /// 获得/设置 CollapseItems 模板 /// Gets or sets CollapseItems template - /// 10.2.2 /// [Parameter] public RenderFragment? CollapseItems { get; set; } @@ -69,7 +67,6 @@ public partial class Collapse /// /// 获得/设置 CollapseItem 展开收缩时回调方法 /// Gets or sets callback when CollapseItem expands or collapses - /// 10.2.2 /// [Parameter] public Func? OnCollapseChanged { get; set; } diff --git a/src/BootstrapBlazor/Components/Collapse/CollapseItem.cs b/src/BootstrapBlazor/Components/Collapse/CollapseItem.cs index 9f12534eab8..1f050e85726 100644 --- a/src/BootstrapBlazor/Components/Collapse/CollapseItem.cs +++ b/src/BootstrapBlazor/Components/Collapse/CollapseItem.cs @@ -14,7 +14,6 @@ public class CollapseItem : BootstrapComponentBase, IDisposable /// /// 获得/设置 文本文字 /// Gets or sets text - /// 10.2.2 /// [Parameter] public string? Text { get; set; } @@ -22,7 +21,6 @@ public class CollapseItem : BootstrapComponentBase, IDisposable /// /// 获得/设置 当前状态是否收缩 默认 true /// Gets or sets whether current status is collapsed, default is true - /// 10.2.2 /// [Parameter] public bool IsCollapsed { get; set; } = true; @@ -30,7 +28,6 @@ public class CollapseItem : BootstrapComponentBase, IDisposable /// /// 获得/设置 图标字符串 默认为 null /// Gets or sets icon string, default is null - /// 10.2.2 /// [Parameter] public string? Icon { get; set; } @@ -38,7 +35,6 @@ public class CollapseItem : BootstrapComponentBase, IDisposable /// /// 获得/设置 标题颜色 默认无颜色 Color.None /// Gets or sets title color, default is Color.None - /// 10.2.2 /// [Parameter] public Color TitleColor { get; set; } @@ -46,7 +42,6 @@ public class CollapseItem : BootstrapComponentBase, IDisposable /// /// 获得/设置 CSS 样式名称 默认 null /// Gets or sets CSS style name, default is null - /// 10.2.2 /// [Parameter] public string? Class { get; set; } @@ -54,7 +49,6 @@ public class CollapseItem : BootstrapComponentBase, IDisposable /// /// 获得/设置 组件内容 /// Gets or sets component content - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } @@ -62,7 +56,6 @@ public class CollapseItem : BootstrapComponentBase, IDisposable /// /// 获得/设置 Header CSS 样式名称 默认 null /// Gets or sets Header CSS style name, default is null - /// 10.2.2 /// [Parameter] public string? HeaderClass { get; set; } @@ -70,7 +63,6 @@ public class CollapseItem : BootstrapComponentBase, IDisposable /// /// 获得/设置 组件 Header 模板 /// Gets or sets component Header template - /// 10.2.2 /// [Parameter] public RenderFragment? HeaderTemplate { get; set; } diff --git a/src/BootstrapBlazor/Components/ColorPicker/ColorPicker.razor.cs b/src/BootstrapBlazor/Components/ColorPicker/ColorPicker.razor.cs index 840463e4ae0..a06423dbd49 100644 --- a/src/BootstrapBlazor/Components/ColorPicker/ColorPicker.razor.cs +++ b/src/BootstrapBlazor/Components/ColorPicker/ColorPicker.razor.cs @@ -24,7 +24,6 @@ public partial class ColorPicker /// /// 获得/设置 显示模板 /// Gets or sets display template - /// 10.2.2 /// [Parameter] public RenderFragment? Template { get; set; } @@ -32,7 +31,6 @@ public partial class ColorPicker /// /// 获得/设置 显示颜色值格式化回调方法 /// Gets or sets display color value formatting callback method - /// 10.2.2 /// [Parameter] public Func>? Formatter { get; set; } @@ -40,7 +38,6 @@ public partial class ColorPicker /// /// 获得/设置 是否支持透明度 默认 false 不支持 /// Gets or sets whether to support opacity, default is false(not supported) - /// 10.2.2 /// [Parameter] public bool IsSupportOpacity { get; set; } @@ -48,7 +45,6 @@ public partial class ColorPicker /// /// 获得/设置 预设候选颜色 开启时生效 默认 null /// Gets or sets preset candidate colors, effective when is enabled, default is null - /// 10.2.2 /// /// /// 字符串集合格式为 ["rgba(244, 67, 54, 1)", "rgba(233, 30, 99, 0.95)"] @@ -77,7 +73,6 @@ protected override async Task OnParametersSetAsync() /// /// /// - /// protected override async Task OnAfterRenderAsync(bool firstRender) { await base.OnAfterRenderAsync(firstRender); @@ -99,7 +94,6 @@ protected override async Task OnAfterRenderAsync(bool firstRender) /// /// /// - /// protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id, Interop, new { IsSupportOpacity, Default = Value, Disabled = IsDisabled, Lang = CultureInfo.CurrentUICulture.Name, Swatches }); private async Task Setter(string v) @@ -123,7 +117,6 @@ private async Task FormatValue() /// Callback method when selected color value changes, called by JavaScript /// /// - /// [JSInvokable] public Task OnColorChanged(string value) { diff --git a/src/BootstrapBlazor/Components/ConnectionHub/ConnectionHub.cs b/src/BootstrapBlazor/Components/ConnectionHub/ConnectionHub.cs index 332160ad053..94f33a949fb 100644 --- a/src/BootstrapBlazor/Components/ConnectionHub/ConnectionHub.cs +++ b/src/BootstrapBlazor/Components/ConnectionHub/ConnectionHub.cs @@ -39,7 +39,6 @@ public class ConnectionHub : BootstrapModuleComponentBase /// /// /// - /// protected override async Task InvokeInitAsync() { var options = BootstrapBlazorOptions.Value.ConnectionHubOptions; @@ -62,7 +61,6 @@ protected override async Task InvokeInitAsync() /// JSInvoke callback method /// /// - /// [JSInvokable] public async Task Callback(ClientInfo client) { diff --git a/src/BootstrapBlazor/Components/Console/Console.razor.cs b/src/BootstrapBlazor/Components/Console/Console.razor.cs index 5aef30b9ff9..ce273bbac57 100644 --- a/src/BootstrapBlazor/Components/Console/Console.razor.cs +++ b/src/BootstrapBlazor/Components/Console/Console.razor.cs @@ -35,7 +35,6 @@ public partial class Console /// Get message style /// /// - /// private static string? GetClassString(ConsoleMessageItem item) => CssBuilder.Default() .AddClass($"text-{item.Color.ToDescriptionString()}", item.Color != Color.None) .AddClass(item.CssClass, !string.IsNullOrEmpty(item.CssClass)) @@ -50,7 +49,6 @@ public partial class Console /// /// 获得/设置 组件绑定数据源 /// Gets or sets component data source - /// 10.2.2 /// /// /// 集合内置了最大消息数量功能 @@ -63,7 +61,6 @@ public partial class Console /// /// 获得/设置 Header 显示文字 默认值为 系统监控 /// Gets or sets Header display text, default is System Monitor - /// 10.2.2 /// [Parameter] public string? HeaderText { get; set; } @@ -71,7 +68,6 @@ public partial class Console /// /// 获得/设置 指示灯 Title 显示文字 /// Gets or sets indicator Title display text - /// 10.2.2 /// [Parameter] public string? LightTitle { get; set; } @@ -79,7 +75,6 @@ public partial class Console /// /// 获得/设置 指示灯 是否闪烁 默认 true 闪烁 /// Gets or sets whether indicator flashes, default is true(flashing) - /// 10.2.2 /// [Parameter] public bool IsFlashLight { get; set; } = true; @@ -87,7 +82,6 @@ public partial class Console /// /// 获得/设置 指示灯颜色 /// Gets or sets indicator color - /// 10.2.2 /// [Parameter] public Color LightColor { get; set; } = Color.Success; @@ -95,7 +89,6 @@ public partial class Console /// /// 获得/设置 是否显示指示灯 默认 true 显示 /// Gets or sets whether to show indicator, default is true - /// 10.2.2 /// [Parameter] public bool ShowLight { get; set; } = true; @@ -103,7 +96,6 @@ public partial class Console /// /// 获得/设置 自动滚屏显示文字 /// Gets or sets auto scroll display text - /// 10.2.2 /// [Parameter] public string? AutoScrollText { get; set; } @@ -111,7 +103,6 @@ public partial class Console /// /// 获得/设置 是否显示自动滚屏选项 默认 false /// Gets or sets whether to show auto scroll option, default is false - /// 10.2.2 /// [Parameter] public bool ShowAutoScroll { get; set; } @@ -119,7 +110,6 @@ public partial class Console /// /// 获得/设置 是否自动滚屏 默认 true /// Gets or sets whether to auto scroll, default is true - /// 10.2.2 /// [Parameter] public bool IsAutoScroll { get; set; } = true; @@ -127,7 +117,6 @@ public partial class Console /// /// 获得/设置 按钮 显示文字 默认值为 清屏 /// Gets or sets button display text, default is Clear - /// 10.2.2 /// [Parameter] public string? ClearButtonText { get; set; } @@ -135,7 +124,6 @@ public partial class Console /// /// 获得/设置 按钮 显示图标 默认值为 fa-solid fa-xmark /// Gets or sets button display icon, default is fa-solid fa-xmark - /// 10.2.2 /// [Parameter] [NotNull] @@ -144,7 +132,6 @@ public partial class Console /// /// 获得/设置 清除按钮颜色 默认值为 Color.Secondary /// Gets or sets clear button color, default is Color.Secondary - /// 10.2.2 /// [Parameter] public Color ClearButtonColor { get; set; } = Color.Secondary; @@ -152,7 +139,6 @@ public partial class Console /// /// 获得/设置 清空委托方法 /// Gets or sets clear delegate method - /// 10.2.2 /// [Parameter] public Func? OnClear { get; set; } @@ -160,7 +146,6 @@ public partial class Console /// /// 获得/设置 组件高度 默认为 126px; /// Gets or sets component height, default is 126px - /// 10.2.2 /// [Parameter] public int Height { get; set; } @@ -168,7 +153,6 @@ public partial class Console /// /// 获得/设置 Footer 模板 /// Gets or sets Footer template - /// 10.2.2 /// [Parameter] public RenderFragment? FooterTemplate { get; set; } @@ -176,7 +160,6 @@ public partial class Console /// /// 获得/设置 Header 模板 /// Gets or sets Header template - /// 10.2.2 /// [Parameter] public RenderFragment? HeaderTemplate { get; set; } @@ -184,7 +167,6 @@ public partial class Console /// /// 获得/设置 Item 模板 /// Gets or sets Item template - /// 10.2.2 /// [Parameter] public RenderFragment? ItemTemplate { get; set; } @@ -223,7 +205,6 @@ protected override void OnParametersSet() /// /// /// - /// protected override async Task OnAfterRenderAsync(bool firstRender) { await base.OnAfterRenderAsync(firstRender); diff --git a/src/BootstrapBlazor/Components/Console/ConsoleLogger.razor.cs b/src/BootstrapBlazor/Components/Console/ConsoleLogger.razor.cs index 6408d6523f1..de19cf38040 100644 --- a/src/BootstrapBlazor/Components/Console/ConsoleLogger.razor.cs +++ b/src/BootstrapBlazor/Components/Console/ConsoleLogger.razor.cs @@ -16,7 +16,6 @@ public partial class ConsoleLogger /// /// 获得/设置 最大行数 默认 3 行 /// Gets or sets max rows, default is 3 - /// 10.2.2 /// [Parameter] public int Max { get; set; } = 3; @@ -24,7 +23,6 @@ public partial class ConsoleLogger /// /// 获得/设置 是否为 Html 代码 默认 false /// Gets or sets whether it is Html code, default is false - /// 10.2.2 /// [Parameter] public bool IsHtml { get; set; } @@ -35,7 +33,6 @@ public partial class ConsoleLogger /// 获得 按钮样式集合 /// Get button style collection /// - /// private string? ClassName => CssBuilder.Default("console-logger") .AddClass(Class) .AddClassFromAttributes(AdditionalAttributes) diff --git a/src/BootstrapBlazor/Components/Console/ConsoleMessageCollection.cs b/src/BootstrapBlazor/Components/Console/ConsoleMessageCollection.cs index c114ac2724c..c1c0487197a 100644 --- a/src/BootstrapBlazor/Components/Console/ConsoleMessageCollection.cs +++ b/src/BootstrapBlazor/Components/Console/ConsoleMessageCollection.cs @@ -54,13 +54,11 @@ public void Clear() /// /// /// - /// public IEnumerator GetEnumerator() => _messages.GetEnumerator(); /// /// /// - /// IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); private void Dispose(bool disposing) diff --git a/src/BootstrapBlazor/Components/ContextMenu/ContextMenu.razor.cs b/src/BootstrapBlazor/Components/ContextMenu/ContextMenu.razor.cs index 5901449d401..68d8f975610 100644 --- a/src/BootstrapBlazor/Components/ContextMenu/ContextMenu.razor.cs +++ b/src/BootstrapBlazor/Components/ContextMenu/ContextMenu.razor.cs @@ -16,7 +16,6 @@ public partial class ContextMenu /// /// 获得/设置 是否显示阴影 默认 /// Flags whether to show a shadow around the context menu. Default is . - /// 10.2.2 /// [Parameter] public bool ShowShadow { get; set; } = true; @@ -24,7 +23,6 @@ public partial class ContextMenu /// /// 获得/设置 弹出前回调方法 默认 null /// Defines the callback that is executed before showing the context menu. Default is . - /// 10.2.2 /// [Parameter] public Func? OnBeforeShowCallback { get; set; } @@ -32,7 +30,6 @@ public partial class ContextMenu /// /// 获得/设置 子组件 /// The that represents the child content. - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } diff --git a/src/BootstrapBlazor/Components/ContextMenu/ContextMenuItem.cs b/src/BootstrapBlazor/Components/ContextMenu/ContextMenuItem.cs index 01f839012d5..4120eb3655d 100644 --- a/src/BootstrapBlazor/Components/ContextMenu/ContextMenuItem.cs +++ b/src/BootstrapBlazor/Components/ContextMenu/ContextMenuItem.cs @@ -14,7 +14,6 @@ public class ContextMenuItem : ComponentBase, IContextMenuItem, IDisposable /// /// 获得/设置 显示文本 /// The text to display. - /// 10.2.2 /// [Parameter] public string? Text { get; set; } @@ -22,7 +21,6 @@ public class ContextMenuItem : ComponentBase, IContextMenuItem, IDisposable /// /// 获得/设置 图标 /// The CSS class name that represents an icon (if any) - /// 10.2.2 /// /// /// @@ -35,7 +33,6 @@ public class ContextMenuItem : ComponentBase, IContextMenuItem, IDisposable /// /// 获得/设置 是否被禁用 默认 false 优先级低于 /// Flags whether the item is disabled. Default is . It has a lower priority than . - /// 10.2.2 /// [Parameter] public bool Disabled { get; set; } @@ -43,7 +40,6 @@ public class ContextMenuItem : ComponentBase, IContextMenuItem, IDisposable /// /// 获得/设置 是否被禁用回调方法 默认 null 优先级高于 /// Defines the callback to determine if the item is disabled. Default is . It has a higher priority than . - /// 10.2.2 /// [Parameter] public Func? OnDisabledCallback { get; set; } @@ -51,7 +47,6 @@ public class ContextMenuItem : ComponentBase, IContextMenuItem, IDisposable /// /// 获得/设置 点击回调方法 默认 null /// Defines the click callback. Default is . - /// 10.2.2 /// [Parameter] public Func? OnClick { get; set; } diff --git a/src/BootstrapBlazor/Components/ContextMenu/ContextMenuTrigger.cs b/src/BootstrapBlazor/Components/ContextMenu/ContextMenuTrigger.cs index 119f5a46a93..cba9d26aa1f 100644 --- a/src/BootstrapBlazor/Components/ContextMenu/ContextMenuTrigger.cs +++ b/src/BootstrapBlazor/Components/ContextMenu/ContextMenuTrigger.cs @@ -23,7 +23,6 @@ public class ContextMenuTrigger : BootstrapComponentBase /// /// 获得/设置 包裹组件 TagName 默认为 div /// The HTML tag name to use for the trigger. Default is <div>. - /// 10.2.2 /// [Parameter] public string WrapperTag { get; set; } = "div"; @@ -31,7 +30,6 @@ public class ContextMenuTrigger : BootstrapComponentBase /// /// 获得/设置 上下文数据 /// Gets or sets the context data. - /// 10.2.2 /// [Parameter] public object? ContextItem { get; set; } @@ -43,7 +41,6 @@ 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/CountUp/CountUp.razor.cs b/src/BootstrapBlazor/Components/CountUp/CountUp.razor.cs index d3ad2a5deae..df1e6708dd6 100644 --- a/src/BootstrapBlazor/Components/CountUp/CountUp.razor.cs +++ b/src/BootstrapBlazor/Components/CountUp/CountUp.razor.cs @@ -14,7 +14,6 @@ public partial class CountUp /// /// 获得/设置 Value 值 /// Gets or sets Value - /// 10.2.2 /// [Parameter] [NotNull] @@ -23,7 +22,6 @@ public partial class CountUp /// /// 获得/设置 计数配置项 默认 null /// Gets or sets count configuration item, default is null - /// 10.2.2 /// [Parameter] public CountUpOption? Option { get; set; } @@ -31,7 +29,6 @@ public partial class CountUp /// /// 获得/设置 计数结束回调方法 默认 null /// Gets or sets callback method when counting ends, default is null - /// 10.2.2 /// [Parameter] public Func? OnCompleted { get; set; } @@ -60,7 +57,6 @@ protected override void OnParametersSet() /// /// /// - /// protected override async Task OnAfterRenderAsync(bool firstRender) { await base.OnAfterRenderAsync(firstRender); @@ -76,14 +72,12 @@ protected override async Task OnAfterRenderAsync(bool firstRender) /// /// /// - /// protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id, Interop, Value, OnCompleted != null ? nameof(OnCompleteCallback) : null, Option); /// /// OnCompleted 回调方法 /// OnCompleted callback method /// - /// [JSInvokable] public async Task OnCompleteCallback() { diff --git a/src/BootstrapBlazor/Components/CountUp/CountUpOption.cs b/src/BootstrapBlazor/Components/CountUp/CountUpOption.cs index 39365a1c50e..a697615e89b 100644 --- a/src/BootstrapBlazor/Components/CountUp/CountUpOption.cs +++ b/src/BootstrapBlazor/Components/CountUp/CountUpOption.cs @@ -16,7 +16,6 @@ public class CountUpOption /// /// 开始计数值 默认 0 /// Start value, Default is 0 - /// 10.2.2 /// [JsonPropertyName("startVal")] public decimal StartValue { get; set; } @@ -24,105 +23,90 @@ public class CountUpOption /// /// 小数位数 默认 0 /// Decimal places, Default is 0 - /// 10.2.2 /// public int DecimalPlaces { get; set; } /// /// 动画时长 默认 2.0 单位秒 /// Animation duration, Default is 2.0 seconds - /// 10.2.2 /// public float Duration { get; set; } = 2.0f; /// /// 是否使用分隔符 默认 false /// Whether to use separator, Default is false - /// 10.2.2 /// public bool UseIndianSeparators { get; set; } /// /// 是否使用过渡动画 默认 true /// Whether to use easing animation, Default is true - /// 10.2.2 /// public bool UseEasing { get; set; } = true; /// /// 是否分组 默认 true /// Whether to use grouping, Default is true - /// 10.2.2 /// public bool UseGrouping { get; set; } = true; /// /// 分隔符 默认 逗号 , /// Separator, Default is comma , - /// 10.2.2 /// public string Separator { get; set; } = ","; /// /// 小数点符号 默认 点 . /// Decimal point symbol, Default is dot . - /// 10.2.2 /// public string Decimal { get; set; } = "."; /// /// 前缀文本 默认 string.Empty 未设置 /// Prefix text, Default is - /// 10.2.2 /// public string Prefix { get; set; } = string.Empty; /// /// 后缀文本 默认 string.Empty 未设置 /// Suffix text, Default is - /// 10.2.2 /// public string Suffix { get; set; } = string.Empty; /// /// 动画阈值 默认 999 /// Animation threshold, Default is 999 - /// 10.2.2 /// public int SmartEasingThreshold { get; set; } = 999; /// /// 动画总量 默认 333 /// Animation amount, Default is 333 - /// 10.2.2 /// public int SmartEasingAmount { get; set; } = 333; /// /// 是否启用滚动监听 默认 false /// Whether to enable scroll spy, Default is false - /// 10.2.2 /// public bool EnableScrollSpy { get; set; } /// /// 滚动延时 默认 200 毫秒 /// Scroll spy delay, Default is 200 ms - /// 10.2.2 /// public int ScrollSpyDelay { get; set; } = 200; /// /// 滚动监听一次 默认 false /// Scroll spy once, Default is false - /// 10.2.2 /// public bool ScrollSpyOnce { get; set; } /// /// 数字字形替换数组 默认值为空 /// The numeric glyph replacement array. Default is null - /// 10.2.2 /// public char[]? Numerals { get; set; } } diff --git a/src/BootstrapBlazor/Components/DateTimePicker/DatePickerBody.razor.cs b/src/BootstrapBlazor/Components/DateTimePicker/DatePickerBody.razor.cs index d084f70f8df..8405e12cd71 100644 --- a/src/BootstrapBlazor/Components/DateTimePicker/DatePickerBody.razor.cs +++ b/src/BootstrapBlazor/Components/DateTimePicker/DatePickerBody.razor.cs @@ -170,7 +170,6 @@ private bool IsRange(DateTime day) => Ranger != null /// /// 获得/设置 组件显示模式 默认为显示年月日模式 /// Gets or sets componentdisplay模式 Default is为display年月日模式 - /// 10.2.2 /// [Parameter] public DatePickerViewMode ViewMode { get; set; } = DatePickerViewMode.Date; @@ -178,7 +177,6 @@ private bool IsRange(DateTime day) => Ranger != null /// /// 获得/设置 日期时间格式字符串 默认为 null /// Gets or sets Date Time Format String. Default is null - /// 10.2.2 /// [Parameter] [NotNull] @@ -187,7 +185,6 @@ private bool IsRange(DateTime day) => Ranger != null /// /// 获得/设置 日期格式字符串 默认为 null /// Gets or sets Date Format String. Default is null - /// 10.2.2 /// [Parameter] [NotNull] @@ -196,7 +193,6 @@ private bool IsRange(DateTime day) => Ranger != null /// /// 获得/设置 时间格式字符串 默认为 null /// Gets or sets Time Format String. Default is null - /// 10.2.2 /// [Parameter] [NotNull] @@ -205,7 +201,6 @@ private bool IsRange(DateTime day) => Ranger != null /// /// 获得/设置 是否显示快捷侧边栏 默认 false 不显示 /// Gets or sets Whether to Show Sidebar. Default is false - /// 10.2.2 /// [Parameter] public bool ShowSidebar { get; set; } @@ -213,7 +208,6 @@ private bool IsRange(DateTime day) => Ranger != null /// /// 获得/设置 侧边栏模板 默认 null /// Gets or sets Sidebar Template. Default is null - /// 10.2.2 /// [Parameter] public RenderFragment>? SidebarTemplate { get; set; } @@ -221,7 +215,6 @@ private bool IsRange(DateTime day) => Ranger != null /// /// 获得/设置 是否显示左侧控制按钮 默认显示 /// Gets or sets Whether to Show Left Control Buttons. Default is true - /// 10.2.2 /// [Parameter] public bool ShowLeftButtons { get; set; } = true; @@ -229,7 +222,6 @@ private bool IsRange(DateTime day) => Ranger != null /// /// 获得/设置 是否显示右侧控制按钮 默认显示 /// Gets or sets Whether to Show Right Control Buttons. Default is true - /// 10.2.2 /// [Parameter] public bool ShowRightButtons { get; set; } = true; @@ -237,7 +229,6 @@ private bool IsRange(DateTime day) => Ranger != null /// /// 获得/设置 是否显示 Footer 区域 默认为 false 不显示 /// Gets or sets Whether to Show Footer Area. Default is false - /// 10.2.2 /// [Parameter] public bool ShowFooter { get; set; } @@ -245,7 +236,6 @@ private bool IsRange(DateTime day) => Ranger != null /// /// 获得/设置 时间 PlaceHolder 字符串 /// Gets or sets Time Placeholder String - /// 10.2.2 /// [Parameter] [NotNull] @@ -254,7 +244,6 @@ private bool IsRange(DateTime day) => Ranger != null /// /// 获得/设置 日期 PlaceHolder 字符串 /// Gets or sets Date Placeholder String - /// 10.2.2 /// [Parameter] [NotNull] @@ -263,7 +252,6 @@ private bool IsRange(DateTime day) => Ranger != null /// /// 获得/设置 是否允许为空 默认 false 不允许为空 /// Gets or sets Whether to Allow Null. Default is false - /// 10.2.2 /// [Parameter] [Obsolete("已过期,请使用 ShowClearButton 代替 Please use ShowClearButton")] @@ -277,7 +265,6 @@ public bool AllowNull /// /// 获得/设置 是否显示 Clear 按钮 默认 false 不显示 /// Gets or sets Whether to Show Clear Button. Default is false - /// 10.2.2 /// [Parameter] public bool ShowClearButton { get; set; } @@ -285,7 +272,6 @@ public bool AllowNull /// /// 获得/设置 点击日期时是否自动关闭弹窗 默认 false /// Gets or sets Whether to Auto Close Popup When Date Clicked. Default is false - /// 10.2.2 /// [Parameter] public bool AutoClose { get; set; } @@ -293,7 +279,6 @@ public bool AllowNull /// /// 获得/设置 确认按钮回调委托 /// Gets or sets Confirm Button Callback Delegate - /// 10.2.2 /// [Parameter] public Func? OnConfirm { get; set; } @@ -301,7 +286,6 @@ public bool AllowNull /// /// 获得/设置 清空按钮回调委托 /// Gets or sets Clear Button Callback Delegate - /// 10.2.2 /// [Parameter] public Func? OnClear { get; set; } @@ -309,7 +293,6 @@ public bool AllowNull /// /// 获得/设置 清空按钮文字 /// Gets or sets Clear Button Text - /// 10.2.2 /// [Parameter] [NotNull] @@ -318,7 +301,6 @@ public bool AllowNull /// /// 获得/设置 此刻按钮文字 /// Gets or sets Now Button Text - /// 10.2.2 /// [Parameter] [NotNull] @@ -327,7 +309,6 @@ public bool AllowNull /// /// 获得/设置 确定按钮文字 /// Gets or sets Confirm Button Text - /// 10.2.2 /// [Parameter] [NotNull] @@ -336,7 +317,6 @@ public bool AllowNull /// /// 获得/设置 组件值 /// Gets or sets Component Value - /// 10.2.2 /// [Parameter] public DateTime Value { get; set; } @@ -344,7 +324,6 @@ public bool AllowNull /// /// 获得/设置 组件值改变时回调委托供双向绑定使用 /// Gets or sets Value Changed Callback Delegate for Two-Way Binding - /// 10.2.2 /// [Parameter] public EventCallback ValueChanged { get; set; } @@ -352,7 +331,6 @@ public bool AllowNull /// /// 获得/设置 当前日期最大值 /// Gets or sets Max Date - /// 10.2.2 /// [Parameter] public DateTime? MaxValue { get; set; } @@ -360,7 +338,6 @@ public bool AllowNull /// /// 获得/设置 当前日期最小值 /// Gets or sets Min Date - /// 10.2.2 /// [Parameter] public DateTime? MinValue { get; set; } @@ -368,7 +345,6 @@ public bool AllowNull /// /// 获得/设置 上一年图标 /// Gets or sets Previous Year Icon - /// 10.2.2 /// [Parameter] public string? PreviousYearIcon { get; set; } @@ -376,7 +352,6 @@ public bool AllowNull /// /// 获得/设置 下一年图标 /// Gets or sets Next Year Icon - /// 10.2.2 /// [Parameter] public string? NextYearIcon { get; set; } @@ -384,7 +359,6 @@ public bool AllowNull /// /// 获得/设置 上一月图标 /// Gets or sets Previous Month Icon - /// 10.2.2 /// [Parameter] public string? PreviousMonthIcon { get; set; } @@ -392,7 +366,6 @@ public bool AllowNull /// /// 获得/设置 下一月图标 /// Gets or sets Next Month Icon - /// 10.2.2 /// [Parameter] public string? NextMonthIcon { get; set; } @@ -400,7 +373,6 @@ public bool AllowNull /// /// 获得/设置 子组件模板 /// Gets or sets Child Content Template - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } @@ -408,7 +380,6 @@ public bool AllowNull /// /// 获得/设置 年月改变时回调方法 /// Gets or sets Callback Method When Year/Month Changed - /// 10.2.2 /// [Parameter] public Func? OnDateChanged { get; set; } @@ -416,7 +387,6 @@ public bool AllowNull /// /// 获得/设置 日单元格模板 /// Gets or sets Day Cell Template - /// 10.2.2 /// [Parameter] public RenderFragment? DayTemplate { get; set; } @@ -424,7 +394,6 @@ public bool AllowNull /// /// 获得/设置 禁用日单元格模板 /// Gets or sets Disabled Day Cell Template - /// 10.2.2 /// [Parameter] public RenderFragment? DayDisabledTemplate { get; set; } @@ -432,7 +401,6 @@ public bool AllowNull /// /// 获得/设置 是否显示中国阴历历法 默认 false /// Gets or sets Whether to Show Chinese Lunar Calendar. Default is false - /// 10.2.2 /// /// 日期范围 1901 年 2 月 19 日 - 2101 年 1 月 28 日 [Parameter] @@ -441,7 +409,6 @@ public bool AllowNull /// /// 获得/设置 是否显示中国 24 节气 默认 false /// Gets or sets Whether to Show Chinese Solar Term. Default is false - /// 10.2.2 /// [Parameter] public bool ShowSolarTerm { get; set; } @@ -449,7 +416,6 @@ public bool AllowNull /// /// 获得/设置 是否显示节日 默认 false /// Gets or sets Whether to Show Festivals. Default is false - /// 10.2.2 /// [Parameter] public bool ShowFestivals { get; set; } @@ -457,7 +423,6 @@ public bool AllowNull /// /// 获得/设置 是否显示休假日 默认 false /// Gets or sets Whether to Show Holidays. Default is false - /// 10.2.2 /// [Parameter] public bool ShowHolidays { get; set; } @@ -472,7 +437,6 @@ public bool AllowNull /// /// 获取/设置 获得月自定义禁用日期回调方法,默认 null 内部默认启用数据缓存 可通过 参数关闭 /// Gets or sets Callback Method to Get Custom Disabled Days of Month. Default is null. Internal Default Enable Data Cache. Can be Closed via Parameter - /// 10.2.2 /// [Parameter] public Func>>? OnGetDisabledDaysCallback { get; set; } @@ -480,7 +444,6 @@ public bool AllowNull /// /// 获得/设置 是否启用获得自定义禁用日期缓存 /// Gets or sets Whether to Enable Custom Disabled Days Cache - /// 10.2.2 /// [Parameter] public bool EnableDisabledDaysCache { get; set; } = true; @@ -488,7 +451,6 @@ public bool AllowNull /// /// 获得/设置 星期第一天 默认 /// Gets or sets First Day of Week. Default is - /// 10.2.2 /// [Parameter] public DayOfWeek FirstDayOfWeek { get; set; } = DayOfWeek.Sunday; @@ -496,7 +458,6 @@ public bool AllowNull /// /// 获得/设置 选择时间方式 默认使用 /// Gets or sets Pick Time Mode. Default is - /// 10.2.2 /// [Parameter] public PickTimeMode PickTimeMode { get; set; } = PickTimeMode.Dropdown; @@ -673,7 +634,6 @@ private async Task UpdateDisabledDaysCache(bool force) /// Determine Whether Current Date is Disabled /// /// - /// public bool IsDisableDay(DateTime val) { bool ret = false; @@ -904,7 +864,6 @@ private async Task SwitchView(DatePickerViewMode view, DateTime d) /// 通过当前时间计算年跨度区间 /// 通过当前时间计算年跨度区间 /// - /// private string GetYearPeriod() { var start = GetSafeYearDateTime(CurrentDate, 0 - CurrentDate.Year % 20).Year; @@ -916,7 +875,6 @@ private string GetYearPeriod() /// 获取 年视图下的年份 /// /// - /// private DateTime GetYear(int year) => GetSafeYearDateTime(CurrentDate, year - (CurrentDate.Year % 20)); /// @@ -924,14 +882,12 @@ private string GetYearPeriod() /// 获取 年视图下月份单元格display文字 /// /// - /// private string GetYearText(int year) => GetYear(year).Year.ToString(); /// /// 获取 年视图下的年份单元格样式 /// 获取 年视图下的年份单元格style /// - /// private string? GetYearClassName(int year, bool overflow) => CssBuilder.Default() .AddClass("current", GetSafeYearDateTime(SelectValue, year - (SelectValue.Year % 20)).Year == SelectValue.Year) .AddClass("today", GetSafeYearDateTime(Value, year - (Value.Year % 20)).Year == DateTime.Today.Year) @@ -943,14 +899,12 @@ private string GetYearPeriod() /// 获取 年视图下的月份 /// /// - /// private DateTime GetMonth(int month) => CurrentDate.GetSafeMonthDateTime(month - CurrentDate.Month); /// /// 获取 月视图下的月份单元格样式 /// 获取 月视图下的月份单元格style /// - /// private string? GetMonthClassName(int month) => CssBuilder.Default() .AddClass("current", month == SelectValue.Month) .AddClass("today", Value.Year == DateTime.Today.Year && month == DateTime.Today.Month) @@ -961,7 +915,6 @@ private string GetYearPeriod() /// 获取 日视图下日单元格display文字 /// /// - /// private static string GetDayText(int day) => day.ToString(); /// @@ -969,7 +922,6 @@ private string GetYearPeriod() /// 获取 月视图下月份单元格display文字 /// /// - /// private string GetMonthText(int month) => MonthLists[month - 1]; /// @@ -1008,7 +960,6 @@ private async Task ClickConfirmButton() /// 点击 清除按钮调用此方法 /// 点击 清除button调用此方法 /// - /// private async Task ClickClearButton() { // 关闭 TimerPicker @@ -1052,7 +1003,6 @@ private void ResetTimePickerPanel() /// /// /// - /// protected static DateTime GetSafeYearDateTime(DateTime dt, int year) { var @base = year switch @@ -1070,7 +1020,6 @@ protected static DateTime GetSafeYearDateTime(DateTime dt, int year) /// /// /// - /// private static DateTime GetSafeDayDateTime(DateTime dt, int day) { var @base = day switch @@ -1088,7 +1037,6 @@ private static DateTime GetSafeDayDateTime(DateTime dt, int day) /// /// /// - /// private static bool IsDayOverflow(DateTime dt, int day) => DateTime.MaxValue.AddDays(0 - day) < dt; /// @@ -1097,7 +1045,6 @@ private static DateTime GetSafeDayDateTime(DateTime dt, int day) /// /// /// - /// private static bool IsYearOverflow(DateTime dt, int year) { var ret = year switch diff --git a/src/BootstrapBlazor/Components/DateTimePicker/DatePickerCell.razor.cs b/src/BootstrapBlazor/Components/DateTimePicker/DatePickerCell.razor.cs index 3531567bed8..b132df3a265 100644 --- a/src/BootstrapBlazor/Components/DateTimePicker/DatePickerCell.razor.cs +++ b/src/BootstrapBlazor/Components/DateTimePicker/DatePickerCell.razor.cs @@ -20,7 +20,6 @@ public sealed partial class DatePickerCell /// /// 获得/设置 日期 /// Gets or sets Date - /// 10.2.2 /// [Parameter] public DateTime Value { get; set; } @@ -28,7 +27,6 @@ public sealed partial class DatePickerCell /// /// 获得/设置 日期 /// Gets or sets Date - /// 10.2.2 /// [Parameter] [NotNull] @@ -37,7 +35,6 @@ public sealed partial class DatePickerCell /// /// 获得/设置 按钮点击回调方法 默认 null /// Gets or sets Button Click Callback Method. Default is null - /// 10.2.2 /// [Parameter] [NotNull] @@ -46,7 +43,6 @@ public sealed partial class DatePickerCell /// /// 获得/设置 单元格模板 默认 null /// Gets or sets Cell Template. Default is null - /// 10.2.2 /// [Parameter] public RenderFragment? Template { get; set; } @@ -54,7 +50,6 @@ public sealed partial class DatePickerCell /// /// 获得/设置 是否显示中国阴历历法 默认 false /// Gets or sets Whether to Show Chinese Lunar Calendar. Default is false - /// 10.2.2 /// [Parameter] public bool ShowLunar { get; set; } @@ -62,7 +57,6 @@ public sealed partial class DatePickerCell /// /// 获得/设置 是否显示中国 24 节气 默认 false /// Gets or sets Whether to Show Chinese Solar Term. Default is false - /// 10.2.2 /// [Parameter] public bool ShowSolarTerm { get; set; } @@ -70,7 +64,6 @@ public sealed partial class DatePickerCell /// /// 获得/设置 是否节日 默认 false /// Gets or sets Whether to Show Festivals. Default is false - /// 10.2.2 /// [Parameter] public bool ShowFestivals { get; set; } @@ -78,7 +71,6 @@ public sealed partial class DatePickerCell /// /// 获得/设置 是否显示休假日 默认 false /// Gets or sets Whether to Show Holidays. Default is false - /// 10.2.2 /// [Parameter] public bool ShowHolidays { get; set; } diff --git a/src/BootstrapBlazor/Components/DateTimePicker/DateTimePicker.razor.cs b/src/BootstrapBlazor/Components/DateTimePicker/DateTimePicker.razor.cs index 5f4e1cb6269..a00945c8bc9 100644 --- a/src/BootstrapBlazor/Components/DateTimePicker/DateTimePicker.razor.cs +++ b/src/BootstrapBlazor/Components/DateTimePicker/DateTimePicker.razor.cs @@ -67,7 +67,6 @@ public partial class DateTimePicker /// /// 获得/设置 是否显示为按钮样式 默认 false /// Gets or sets Whether to Show as Button. Default is false - /// 10.2.2 /// [Parameter] public bool IsButton { get; set; } @@ -75,7 +74,6 @@ public partial class DateTimePicker /// /// 获得/设置 选择按钮文本 默认 null 读取资源文件 /// Gets or sets Picker Button Text. Default is null. Read from resource file - /// 10.2.2 /// [Parameter] public string? PickerButtonText { get; set; } @@ -83,7 +81,6 @@ public partial class DateTimePicker /// /// 获得/设置 选择按钮颜色 默认 /// Gets or sets Button Color. Default is - /// 10.2.2 /// [Parameter] public Color ButtonColor { get; set; } = Color.Primary; @@ -91,7 +88,6 @@ public partial class DateTimePicker /// /// 获得/设置 时间格式化字符串 默认值为 null /// Gets or sets Date Time Format String. Default is null - /// 10.2.2 /// [Parameter] [Obsolete("已过期,请使用 DateTimeFormat/DateFormat/TimeFormat 分别设置; Please use DateTimeFormat/DateFormat/TimeFormat")] @@ -105,7 +101,6 @@ public string? Format /// /// 获得/设置 时间格式化字符串 默认值为 "yyyy-MM-dd HH:mm:ss" /// Gets or sets Date Time Format String. Default is "yyyy-MM-dd HH:mm:ss" - /// 10.2.2 /// [Parameter] [NotNull] @@ -114,7 +109,6 @@ public string? Format /// /// 获得/设置 时间格式化字符串 默认值为 "yyyy-MM-dd" /// Gets or sets Date Format String. Default is "yyyy-MM-dd" - /// 10.2.2 /// [Parameter] [NotNull] @@ -123,7 +117,6 @@ public string? Format /// /// 获得/设置 时间格式化字符串 默认值为 "HH:mm:ss" /// Gets or sets Time Format String. Default is "HH:mm:ss" - /// 10.2.2 /// [Parameter] [NotNull] @@ -132,7 +125,6 @@ public string? Format /// /// 获得/设置 星期第一天 默认 /// Gets or sets First Day of Week. Default is - /// 10.2.2 /// [Parameter] public DayOfWeek FirstDayOfWeek { get; set; } = DayOfWeek.Sunday; @@ -140,7 +132,6 @@ public string? Format /// /// 获得/设置 组件图标 默认 fa-regular fa-calendar-days /// Gets or sets Component Icon. Default is fa-regular fa-calendar-days - /// 10.2.2 /// [Parameter] [NotNull] @@ -149,7 +140,6 @@ public string? Format /// /// 获得/设置 是否显示组件图标 默认 true 显示 /// Gets or sets Whether to Show Component Icon. Default is true - /// 10.2.2 /// [Parameter] public bool ShowIcon { get; set; } = true; @@ -157,7 +147,6 @@ public string? Format /// /// 获得/设置 控件边框颜色样式 默认为 None 显示 /// Gets or sets Component Border Color Style. Default is None - /// 10.2.2 /// [Parameter] public Color Color { get; set; } = Color.None; @@ -165,7 +154,6 @@ public string? Format /// /// 获得/设置 组件显示模式 默认为显示年月日模式 /// Gets or sets Component Display Mode. Default is Date Mode - /// 10.2.2 /// [Parameter] public DatePickerViewMode ViewMode { get; set; } = DatePickerViewMode.Date; @@ -173,7 +161,6 @@ public string? Format /// /// 获得/设置 选择时间方式 默认使用 /// Gets or sets Pick Time Mode. Default is - /// 10.2.2 /// [Parameter] public PickTimeMode PickTimeMode { get; set; } = PickTimeMode.Dropdown; @@ -181,7 +168,6 @@ public string? Format /// /// 获得/设置 是否显示快捷侧边栏 默认不显示 /// Gets or sets Whether to Show Sidebar. Default is not shown - /// 10.2.2 /// [Parameter] public bool ShowSidebar { get; set; } @@ -189,7 +175,6 @@ public string? Format /// /// 获得/设置 侧边栏模板 默认 null /// Gets or sets Sidebar Template. Default is null - /// 10.2.2 /// [Parameter] [NotNull] @@ -198,7 +183,6 @@ public string? Format /// /// 获得/设置 当前日期最大值 /// Gets or sets Max Date - /// 10.2.2 /// [Parameter] public DateTime? MaxValue { get; set; } @@ -206,7 +190,6 @@ public string? Format /// /// 获得/设置 当前日期最小值 /// Gets or sets Min Date - /// 10.2.2 /// [Parameter] public DateTime? MinValue { get; set; } @@ -214,7 +197,6 @@ public string? Format /// /// 获得/设置 是否点击日期后自动关闭弹窗 默认 true /// Gets or sets Whether to Auto Close Popup When Date Clicked. Default is true - /// 10.2.2 /// [Parameter] public bool AutoClose { get; set; } = true; @@ -222,7 +204,6 @@ public string? Format /// /// 获得/设置 是否可以编辑内容 默认 false /// Gets or sets Whether to Allow Edit. Default is false - /// 10.2.2 /// [Parameter] public bool IsEditable { get; set; } @@ -230,7 +211,6 @@ public string? Format /// /// 获得/设置 是否自动设置值为当前时间 默认 true /// Gets or sets Whether to Auto Set Value to Current Time. Default is true - /// 10.2.2 /// /// 当 Value 值为 时自动设置时间为 不为空类型时此参数生效 [Parameter] @@ -239,7 +219,6 @@ public string? Format /// /// 获得/设置 是否将 显示为空字符串 默认 true /// Gets or sets Whether to Display as Empty String. Default is true - /// 10.2.2 /// /// 可为空类型时此参数生效 [Parameter] @@ -248,7 +227,6 @@ public string? Format /// /// 获得/设置 子组件模板 /// Gets or sets Child Content Template - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } @@ -256,7 +234,6 @@ public string? Format /// /// 获得/设置 日期占位符文本 默认 null 读取资源文件 /// Gets or sets Date Placeholder Text. Default is null. Read from resource file - /// 10.2.2 /// [Parameter] public string? DatePlaceHolderText { get; set; } @@ -264,7 +241,6 @@ public string? Format /// /// 获得/设置 日期时间占位符文本 默认 null 读取资源文件 /// Gets or sets Date Time Placeholder Text. Default is null. Read from resource file - /// 10.2.2 /// [Parameter] public string? DateTimePlaceHolderText { get; set; } @@ -272,7 +248,6 @@ public string? Format /// /// 获得/设置 日单元格模板 /// Gets or sets Day Cell Template - /// 10.2.2 /// [Parameter] public RenderFragment? DayTemplate { get; set; } @@ -280,7 +255,6 @@ public string? Format /// /// 获得/设置 禁用日单元格模板 /// Gets or sets Disabled Day Cell Template - /// 10.2.2 /// [Parameter] public RenderFragment? DayDisabledTemplate { get; set; } @@ -288,7 +262,6 @@ public string? Format /// /// 获得/设置 是否显示中国阴历历法 默认 false /// Gets or sets Whether to Show Chinese Lunar Calendar. Default is false - /// 10.2.2 /// [Parameter] public bool ShowLunar { get; set; } @@ -296,7 +269,6 @@ public string? Format /// /// 获得/设置 是否显示中国 24 节气 默认 false /// Gets or sets Whether to Show Chinese Solar Term. Default is false - /// 10.2.2 /// [Parameter] public bool ShowSolarTerm { get; set; } @@ -304,7 +276,6 @@ public string? Format /// /// 获得/设置 是否显示节日 默认 false /// Gets or sets Whether to Show Festivals. Default is false - /// 10.2.2 /// [Parameter] public bool ShowFestivals { get; set; } @@ -312,7 +283,6 @@ public string? Format /// /// 获得/设置 是否显示休假日 默认 false /// Gets or sets Whether to Show Holidays. Default is false - /// 10.2.2 /// [Parameter] public bool ShowHolidays { get; set; } @@ -320,7 +290,6 @@ public string? Format /// /// 获取/设置 获得自定义禁用日期回调方法,默认 null 内部默认启用数据缓存 可通过 参数关闭 /// Gets or sets Callback Method to Get Custom Disabled Days. Default is null. Internal Default Enable Data Cache. Can be Closed via Parameter - /// 10.2.2 /// [Parameter] public Func>>? OnGetDisabledDaysCallback { get; set; } @@ -328,7 +297,6 @@ public string? Format /// /// 获得/设置 是否启用获得年自定义禁用日期缓存 /// Gets or sets Whether to Enable Custom Disabled Days Cache of Year - /// 10.2.2 /// [Parameter] public bool EnableDisabledDaysCache { get; set; } = true; @@ -336,7 +304,6 @@ public string? Format /// /// 获得/设置 是否将禁用日期显示为空字符串 默认 false 开启后组件会频繁调用 方法,建议外部使用缓存提高性能 /// Gets or sets Whether to Display Disabled Day as Empty. Default is false. When enabled, component will frequently call method, suggesting external cache usage for performance - /// 10.2.2 /// [Parameter] public bool DisplayDisabledDayAsEmpty { get; set; } @@ -344,7 +311,6 @@ public string? Format /// /// 获得/设置 失去焦点回调方法 默认 null /// Gets or sets OnBlur Callback Method. Default is null - /// 10.2.2 /// [Parameter] public Func? OnBlurAsync { get; set; } @@ -438,7 +404,6 @@ protected override void OnParametersSet() /// /// /// - /// protected override async Task OnParametersSetAsync() { await base.OnParametersSetAsync(); @@ -466,7 +431,6 @@ protected override async Task OnParametersSetAsync() /// /// /// - /// protected override bool ShouldRender() => _render; private bool _isButton = false; @@ -474,7 +438,6 @@ protected override async Task OnParametersSetAsync() /// /// /// - /// protected override async Task OnAfterRenderAsync(bool firstRender) { await base.OnAfterRenderAsync(firstRender); @@ -516,7 +479,6 @@ protected override string FormatValueAsString(TValue? value) /// /// /// - /// protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id, Interop, new { TriggerHideCallback = nameof(TriggerHideCallback) @@ -580,7 +542,6 @@ private async Task OnClear() /// /// /// - /// protected override bool TryParseValueFromString(string value, [MaybeNullWhen(false)] out TValue result, out string? validationErrorMessage) { var format = ViewMode == DatePickerViewMode.DateTime ? DateTimeFormat : DateFormat; @@ -611,7 +572,6 @@ protected virtual async Task OnBlur() /// 客户端弹窗关闭后由 Javascript 调用此方法 /// Method Called by Javascript After Client Popup Closed /// - /// [JSInvokable] public Task TriggerHideCallback() { diff --git a/src/BootstrapBlazor/Components/DateTimePicker/PopoverDropdownBase.cs b/src/BootstrapBlazor/Components/DateTimePicker/PopoverDropdownBase.cs index 75ef1e6cd90..1246c479527 100644 --- a/src/BootstrapBlazor/Components/DateTimePicker/PopoverDropdownBase.cs +++ b/src/BootstrapBlazor/Components/DateTimePicker/PopoverDropdownBase.cs @@ -15,7 +15,6 @@ public abstract class PopoverDropdownBase : ValidateBase /// /// 获得/设置 弹窗位置 默认为 Bottom /// Gets or sets Popover Placement. Default is Bottom - /// 10.2.2 /// [Parameter] public Placement Placement { get; set; } = Placement.Bottom; @@ -23,7 +22,6 @@ public abstract class PopoverDropdownBase : ValidateBase /// /// 获得/设置 自定义样式 参数 默认 null /// Gets or sets Custom Class. Default is null - /// 10.2.2 /// /// 由 data-bs-custom-class 实现 [Parameter] @@ -32,7 +30,6 @@ public abstract class PopoverDropdownBase : ValidateBase /// /// 获得/设置 是否显示阴影 默认 true /// Gets or sets Whether to Show Shadow. Default is true - /// 10.2.2 /// [Parameter] public bool ShowShadow { get; set; } = true; diff --git a/src/BootstrapBlazor/Components/DateTimePicker/TimePickerSetting.cs b/src/BootstrapBlazor/Components/DateTimePicker/TimePickerSetting.cs index 852e48406ca..df80708c614 100644 --- a/src/BootstrapBlazor/Components/DateTimePicker/TimePickerSetting.cs +++ b/src/BootstrapBlazor/Components/DateTimePicker/TimePickerSetting.cs @@ -14,7 +14,6 @@ public class TimePickerSetting : ComponentBase /// /// 是否显示表盘刻度 默认 false /// Whether to Show Clock Scale. Default is false - /// 10.2.2 /// [Parameter] public bool ShowClockScale { get; set; } @@ -22,7 +21,6 @@ public class TimePickerSetting : ComponentBase /// /// 是否显示秒 默认 true /// Whether to Show Second. Default is true - /// 10.2.2 /// [Parameter] public bool ShowSecond { get; set; } = true; @@ -30,7 +28,6 @@ public class TimePickerSetting : ComponentBase /// /// 是否显示分钟 默认 true /// Whether to Show Minute. Default is true - /// 10.2.2 /// [Parameter] public bool ShowMinute { get; set; } = true; @@ -38,7 +35,6 @@ public class TimePickerSetting : ComponentBase /// /// 是否自动切换 小时、分钟、秒 自动切换 默认 true /// Whether to Auto Switch Hour, Minute, Second. Default is true - /// 10.2.2 /// [Parameter] public bool IsAutoSwitch { get; set; } = true; diff --git a/src/BootstrapBlazor/Components/DateTimeRange/DateTimeRange.razor.cs b/src/BootstrapBlazor/Components/DateTimeRange/DateTimeRange.razor.cs index f5f62bf5db7..4a3a1244c8e 100644 --- a/src/BootstrapBlazor/Components/DateTimeRange/DateTimeRange.razor.cs +++ b/src/BootstrapBlazor/Components/DateTimeRange/DateTimeRange.razor.cs @@ -96,7 +96,6 @@ private string? EndValueString /// /// 获得/设置 是否可以编辑内容 默认 false /// Gets or sets Whether to Allow Edit. Default is false - /// 10.2.2 /// [Parameter] public bool IsEditable { get; set; } @@ -104,7 +103,6 @@ private string? EndValueString /// /// 获得/设置 是否点击快捷侧边栏自动关闭弹窗 默认 false /// Gets or sets Whether to Auto Close Popup When Sidebar Item Clicked. Default is false - /// 10.2.2 /// [Parameter] public bool AutoCloseClickSideBar { get; set; } @@ -112,7 +110,6 @@ private string? EndValueString /// /// 获得/设置 是否 to automatically close the popup after a date range is selected. 默认为 false. /// Gets or sets whether to automatically close the popup after a date range is selected. Default is false. - /// 10.2.2 /// [Parameter] public bool AutoClose { get; set; } @@ -120,7 +117,6 @@ private string? EndValueString /// /// 获得/设置 是否 show the selected value. 默认为 false. /// Gets or sets whether show the selected value. Default is false. - /// 10.2.2 /// [Parameter] public bool ShowSelectedValue { get; set; } @@ -128,7 +124,6 @@ private string? EndValueString /// /// 获得/设置 清空按钮文字 /// Gets or sets Clear Button Text - /// 10.2.2 /// [Parameter] [NotNull] @@ -137,7 +132,6 @@ private string? EndValueString /// /// 获得/设置 清空图标 默认 fa-solid fa-circle-xmark /// Gets or sets Clear Icon. Default is fa-solid fa-circle-xmark - /// 10.2.2 /// [Parameter] public string? ClearIcon { get; set; } @@ -145,7 +139,6 @@ private string? EndValueString /// /// 获得/设置 组件显示模式 默认为显示年月日模式 /// Gets or sets Component Display Mode. Default is Date Mode - /// 10.2.2 /// [Parameter] public DatePickerViewMode ViewMode { get; set; } = DatePickerViewMode.Date; @@ -153,7 +146,6 @@ private string? EndValueString /// /// 获得/设置 组件显示模式 默认为显示年月日模式 /// Gets or sets Component Display Mode. Default is Date Mode - /// 10.2.2 /// [Parameter] public DateTimeRangeRenderMode RenderMode { get; set; } = DateTimeRangeRenderMode.Double; @@ -161,7 +153,6 @@ private string? EndValueString /// /// 获得/设置 今天按钮文字 /// Gets or sets Today Button Text - /// 10.2.2 /// [Parameter] [NotNull] @@ -170,7 +161,6 @@ private string? EndValueString /// /// 获得/设置 确定按钮文字 /// Gets or sets Confirm Button Text - /// 10.2.2 /// [Parameter] [NotNull] @@ -179,14 +169,12 @@ private string? EndValueString /// /// 获得/设置 最大值 /// Gets or sets Max Value - /// 10.2.2 /// [Parameter] public DateTime MaxValue { get; set; } = DateTime.MaxValue; /// /// 获得/设置 最小值 /// Gets or sets Min Value - /// 10.2.2 /// [Parameter] public DateTime MinValue { get; set; } = DateTime.MinValue; @@ -194,7 +182,6 @@ private string? EndValueString /// /// 获得/设置 是否允许为空 默认为 true /// Gets or sets Whether to Allow Null. Default is true - /// 10.2.2 /// [Parameter] [Obsolete("已过期,请使用 ShowClearButton 代替")] @@ -208,7 +195,6 @@ public bool AllowNull /// /// 获得/设置 是否显示清空按钮 默认 true /// Gets or sets Whether to Show Clear Button. Default is true - /// 10.2.2 /// [Parameter] public bool ShowClearButton { get; set; } = true; @@ -216,7 +202,6 @@ public bool AllowNull /// /// 获得/设置 组件图标 /// Gets or sets Component Icon - /// 10.2.2 /// [Parameter] public string? Icon { get; set; } @@ -224,7 +209,6 @@ public bool AllowNull /// /// 获得/设置 是否显示今天按钮 默认为 false /// Gets or sets Whether to Show Today Button. Default is false - /// 10.2.2 /// [Parameter] public bool ShowToday { get; set; } @@ -232,7 +216,6 @@ public bool AllowNull /// /// 获得/设置 是否显示快捷侧边栏 默认不显示 /// Gets or sets Whether to Show Sidebar. Default is not shown - /// 10.2.2 /// [Parameter] public bool ShowSidebar { get; set; } @@ -240,7 +223,6 @@ public bool AllowNull /// /// 获得/设置 侧边栏快捷选项集合 /// Gets or sets Sidebar Items - /// 10.2.2 /// [Parameter] [NotNull] @@ -249,7 +231,6 @@ public bool AllowNull /// /// 点击确认按钮回调委托方法 /// Callback Method When Confirm Button Clicked - /// 10.2.2 /// [Parameter] public Func? OnConfirm { get; set; } @@ -257,7 +238,6 @@ public bool AllowNull /// /// 点击清空按钮回调委托方法 /// Callback Method When Clear Button Clicked - /// 10.2.2 /// [Parameter] public Func? OnClearValue { get; set; } @@ -265,7 +245,6 @@ public bool AllowNull /// /// 获得/设置 时间格式化字符串 默认值为 "HH:mm:ss" /// Gets or sets Time Format String. Default is "HH:mm:ss" - /// 10.2.2 /// [Parameter] [NotNull] @@ -274,7 +253,6 @@ public bool AllowNull /// /// 获得/设置 时间格式化字符串 默认值为 "yyyy-MM-dd" /// Gets or sets Date Format String. Default is "yyyy-MM-dd" - /// 10.2.2 /// [Parameter] [NotNull] @@ -283,7 +261,6 @@ public bool AllowNull /// /// 获得/设置 时间格式化字符串 默认值为 "yyyy-MM-dd HH:mm:ss" /// Gets or sets Date Time Format String. Default is "yyyy-MM-dd HH:mm:ss" - /// 10.2.2 /// [Parameter] [NotNull] @@ -292,7 +269,6 @@ public bool AllowNull /// /// 获得/设置 是否显示中国阴历历法 默认 false /// Gets or sets Whether to Show Chinese Lunar Calendar. Default is false - /// 10.2.2 /// [Parameter] public bool ShowLunar { get; set; } @@ -300,7 +276,6 @@ public bool AllowNull /// /// 获得/设置 是否显示中国 24 节气 默认 false /// Gets or sets Whether to Show Chinese Solar Term. Default is false - /// 10.2.2 /// [Parameter] public bool ShowSolarTerm { get; set; } @@ -308,7 +283,6 @@ public bool AllowNull /// /// 获得/设置 是否显示节日 默认 false /// Gets or sets Whether to Show Festivals. Default is false - /// 10.2.2 /// [Parameter] public bool ShowFestivals { get; set; } @@ -316,7 +290,6 @@ public bool AllowNull /// /// 获得/设置 是否显示休假日 默认 false /// Gets or sets Whether to Show Holidays. Default is false - /// 10.2.2 /// [Parameter] public bool ShowHolidays { get; set; } @@ -324,7 +297,6 @@ public bool AllowNull /// /// 获得/设置 the date value changed event 回调. /// Gets or sets the date value changed event callback. - /// 10.2.2 /// [Parameter] public Func? OnDateClick { get; set; } @@ -405,7 +377,6 @@ void CheckValid() /// /// /// - /// protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id, Interop, new { TriggerHideCallback = nameof(TriggerHideCallback) @@ -429,7 +400,6 @@ private async Task OnClickSidebarItem(DateTimeRangeSidebarItem item) /// 点击 清除按钮调用此方法 /// Method Called When Clear Button Clicked /// - /// private async Task ClickClearButton() { Value = new DateTimeRangeValue(); @@ -594,7 +564,6 @@ private async Task UpdateValue(DateTime d) /// /// /// - /// public override bool IsComplexValue(object? propertyValue) => false; private static DateTime GetEndDateTime(DateTime dt) => dt.Date.AddHours(23).AddMinutes(59).AddSeconds(59); @@ -624,7 +593,6 @@ private void ResetBodyValue() /// 客户端弹窗关闭后由 Javascript 调用此方法 /// Method Called by Javascript After Client Popup Closed /// - /// [JSInvokable] public Task TriggerHideCallback() { diff --git a/src/BootstrapBlazor/Components/DateTimeRange/DateTimeRangeValue.cs b/src/BootstrapBlazor/Components/DateTimeRange/DateTimeRangeValue.cs index b217c581d52..ffdcc6feabd 100644 --- a/src/BootstrapBlazor/Components/DateTimeRange/DateTimeRangeValue.cs +++ b/src/BootstrapBlazor/Components/DateTimeRange/DateTimeRangeValue.cs @@ -47,7 +47,6 @@ public DateTime? NullEnd /// ToString 方法 /// ToString Method /// - /// public override string ToString() { var ret = ""; diff --git a/src/BootstrapBlazor/Components/Dialog/Dialog.razor.cs b/src/BootstrapBlazor/Components/Dialog/Dialog.razor.cs index b3574425b46..81a3b6de3c0 100644 --- a/src/BootstrapBlazor/Components/Dialog/Dialog.razor.cs +++ b/src/BootstrapBlazor/Components/Dialog/Dialog.razor.cs @@ -50,7 +50,6 @@ protected override void OnInitialized() /// /// /// - /// protected override async Task OnAfterRenderAsync(bool firstRender) { await base.OnAfterRenderAsync(firstRender); diff --git a/src/BootstrapBlazor/Components/Dialog/DialogBase.cs b/src/BootstrapBlazor/Components/Dialog/DialogBase.cs index a7c4ddd3e35..efd76d67d26 100644 --- a/src/BootstrapBlazor/Components/Dialog/DialogBase.cs +++ b/src/BootstrapBlazor/Components/Dialog/DialogBase.cs @@ -14,7 +14,6 @@ public abstract class DialogBase : BootstrapModuleComponentBase /// /// 获得/设置 EditModel 实例 /// Gets or sets EditModel Instance - /// 10.2.2 /// [Parameter] [NotNull] @@ -23,7 +22,6 @@ public abstract class DialogBase : BootstrapModuleComponentBase /// /// 获得/设置 BodyTemplate 实例 /// Gets or sets BodyTemplate Instance - /// 10.2.2 /// [Parameter] public RenderFragment? BodyTemplate { get; set; } @@ -31,7 +29,6 @@ public abstract class DialogBase : BootstrapModuleComponentBase /// /// 获得 数据项集合 /// Get Items - /// 10.2.2 /// [Parameter] public IEnumerable? Items { get; set; } @@ -39,7 +36,6 @@ public abstract class DialogBase : BootstrapModuleComponentBase /// /// 获得/设置 是否显示标签 /// Gets or sets Whether to Show Label - /// 10.2.2 /// [Parameter] public bool ShowLabel { get; set; } @@ -47,7 +43,6 @@ public abstract class DialogBase : BootstrapModuleComponentBase /// /// 获得/设置 每行显示组件数量 默认为 null /// Gets or sets Items Per Row. Default is null - /// 10.2.2 /// [Parameter] public int? ItemsPerRow { get; set; } @@ -55,7 +50,6 @@ public abstract class DialogBase : BootstrapModuleComponentBase /// /// 获得/设置 设置行格式 默认 Row 布局 /// Gets or sets Row Layout. Default is Row - /// 10.2.2 /// [Parameter] public RowType RowType { get; set; } @@ -63,7 +57,6 @@ public abstract class DialogBase : BootstrapModuleComponentBase /// /// 获得/设置 设置 Inline 模式下标签对齐方式 默认 None 等效于 Left 左对齐 /// Gets or sets Label Alignment in Inline Mode. Default is None, equivalent to Left - /// 10.2.2 /// [Parameter] public Alignment LabelAlign { get; set; } @@ -71,7 +64,6 @@ public abstract class DialogBase : BootstrapModuleComponentBase /// /// 获得/设置 未分组编辑项布局位置 默认 false 在尾部 /// Gets or sets Unset Group Items Position. Default is false (at the end) - /// 10.2.2 /// [Parameter] public bool ShowUnsetGroupItemsOnTop { get; set; } diff --git a/src/BootstrapBlazor/Components/Dialog/DialogCloseButton.cs b/src/BootstrapBlazor/Components/Dialog/DialogCloseButton.cs index 6224746e210..e930d42cfa7 100644 --- a/src/BootstrapBlazor/Components/Dialog/DialogCloseButton.cs +++ b/src/BootstrapBlazor/Components/Dialog/DialogCloseButton.cs @@ -16,7 +16,6 @@ public partial class DialogCloseButton : Button /// /// 获得/设置 按钮颜色 /// Gets or sets Button Color - /// 10.2.2 /// [Parameter] public override Color Color { get; set; } = Color.Secondary; @@ -42,7 +41,6 @@ protected override void OnParametersSet() /// /// /// - /// protected override async Task HandlerClick() { await base.HandlerClick(); diff --git a/src/BootstrapBlazor/Components/Dialog/DialogOption.cs b/src/BootstrapBlazor/Components/Dialog/DialogOption.cs index 9db4396581f..56cbf9a2ca6 100644 --- a/src/BootstrapBlazor/Components/Dialog/DialogOption.cs +++ b/src/BootstrapBlazor/Components/Dialog/DialogOption.cs @@ -6,244 +6,244 @@ namespace BootstrapBlazor.Components; /// -/// Configuration class for the Dialog component -/// Configuration class for the Dialog component +/// Configuration class for the Dialog component +/// Configuration class for the Dialog component /// public class DialogOption { /// - /// 获得/设置 the related modal 实例 - /// Gets or sets the related modal instance + /// 获得/设置 the related modal 实例 + /// Gets or sets the related modal instance /// internal Modal? Modal { get; set; } /// - /// 获得/设置 the dialog title - /// Gets or sets the dialog title + /// 获得/设置 the dialog title + /// Gets or sets the dialog title /// public string? Title { get; set; } /// - /// 获得/设置 the custom 样式 of the dialog - /// Gets or sets the custom style of the dialog + /// 获得/设置 the custom 样式 of the dialog + /// Gets or sets the custom style of the dialog /// public string? Class { get; set; } /// - /// 获得/设置 the size of the dialog - /// Gets or sets the size of the dialog + /// 获得/设置 the size of the dialog + /// Gets or sets the size of the dialog /// public Size Size { get; set; } = Size.ExtraExtraLarge; /// - /// 获得/设置 the full screen size of the dialog, default is None - /// Gets or sets the full screen size of the dialog, default is None + /// 获得/设置 the full screen size of the dialog, default is None + /// Gets or sets the full screen size of the dialog, default is None /// /// To ensure functionality, when this value is set, , , and are not available public FullScreenSize FullScreenSize { get; set; } = FullScreenSize.None; /// - /// 获得/设置 是否 to show the maximize 按钮, default is false - /// Gets or sets whether to show the maximize button, default is false + /// 获得/设置 是否 to show the maximize 按钮, default is false + /// Gets or sets whether to show the maximize button, default is false /// /// To ensure functionality, when this value is set to true, and are not available public bool ShowMaximizeButton { get; set; } /// - /// 获得/设置 是否 the dialog is vertically centered, default is true - /// Gets or sets whether the dialog is vertically centered, default is true + /// 获得/设置 是否 the dialog is vertically centered, default is true + /// Gets or sets whether the dialog is vertically centered, default is true /// public bool IsCentered { get; set; } = true; /// - /// 获得/设置 是否 the dialog 内容 scrolls when it is too long, default is false - /// Gets or sets whether the dialog content scrolls when it is too long, default is false + /// 获得/设置 是否 the dialog 内容 scrolls when it is too long, default is false + /// Gets or sets whether the dialog content scrolls when it is too long, default is false /// public bool IsScrolling { get; set; } = false; /// - /// 获得/设置 是否 to show the resize 按钮, default is false - /// Gets or sets whether to show the resize button, default is false + /// 获得/设置 是否 to show the resize 按钮, default is false + /// Gets or sets whether to show the resize button, default is false /// public bool ShowResize { get; set; } /// - /// 获得/设置 是否 to show the close 按钮, default is true - /// Gets or sets whether to show the close button, default is true + /// 获得/设置 是否 to show the close 按钮, default is true + /// Gets or sets whether to show the close button, default is true /// public bool ShowCloseButton { get; set; } = true; /// - /// 获得/设置 是否 to show the header close 按钮, default is true - /// Gets or sets whether to show the header close button, default is true + /// 获得/设置 是否 to show the header close 按钮, default is true + /// Gets or sets whether to show the header close button, default is true /// public bool ShowHeaderCloseButton { get; set; } = true; /// - /// 获得/设置 是否 to enable fade animation, default is null - /// Gets or sets whether to enable fade animation, default is null + /// 获得/设置 是否 to enable fade animation, default is null + /// Gets or sets whether to enable fade animation, default is null /// public bool? IsFade { get; set; } /// - /// 获得/设置 是否 to support closing the dialog with the ESC key, default is true - /// Gets or sets whether to support closing the dialog with the ESC key, default is true + /// 获得/设置 是否 to support closing the dialog with the ESC key, default is true + /// Gets or sets whether to support closing the dialog with the ESC key, default is true /// public bool IsKeyboard { get; set; } = true; /// - /// 获得/设置 是否 to support closing the dialog by clicking the backdrop, default is false - /// Gets or sets whether to support closing the dialog by clicking the backdrop, default is false + /// 获得/设置 是否 to support closing the dialog by clicking the backdrop, default is false + /// Gets or sets whether to support closing the dialog by clicking the backdrop, default is false /// public bool IsBackdrop { get; set; } /// - /// 获得/设置 是否 to show the footer, default is true - /// Gets or sets whether to show the footer, default is true + /// 获得/设置 是否 to show the footer, default is true + /// Gets or sets whether to show the footer, default is true /// public bool ShowFooter { get; set; } = true; /// - /// 获得/设置 是否 to show the print 按钮, default is false - /// Gets or sets whether to show the print button, default is false + /// 获得/设置 是否 to show the print 按钮, default is false + /// Gets or sets whether to show the print button, default is false /// public bool ShowPrintButton { get; set; } /// - /// 获得/设置 是否 to show the save 按钮, default is false - /// Gets or sets whether to show the save button, default is false + /// 获得/设置 是否 to show the save 按钮, default is false + /// Gets or sets whether to show the save button, default is false /// public bool ShowSaveButton { get; set; } /// - /// 获得/设置 是否 to show the print 按钮 in the header, default is false - /// Gets or sets whether to show the print button in the header, default is false + /// 获得/设置 是否 to show the print 按钮 in the header, default is false + /// Gets or sets whether to show the print button in the header, default is false /// public bool ShowPrintButtonInHeader { get; set; } /// - /// 获得/设置 the text of the print 按钮 in the header, default is "Print" from the resource file - /// Gets or sets the text of the print button in the header, default is "Print" from the resource file + /// 获得/设置 the text of the print 按钮 in the header, default is "Print" from the resource file + /// Gets or sets the text of the print button in the header, default is "Print" from the resource file /// public string? PrintButtonText { get; set; } /// - /// 获得/设置 the related 数据, mostly used for passing values - /// Gets or sets the related data, mostly used for passing values + /// 获得/设置 the related 数据, mostly used for passing values + /// Gets or sets the related data, mostly used for passing values /// public object? BodyContext { get; set; } /// - /// 获得/设置 the ModalBody component - /// Gets or sets the ModalBody component + /// 获得/设置 the ModalBody component + /// Gets or sets the ModalBody component /// public RenderFragment? BodyTemplate { get; set; } /// - /// 获得/设置 the ModalFooter component - /// Gets or sets the ModalFooter component + /// 获得/设置 the ModalFooter component + /// Gets or sets the ModalFooter component /// public RenderFragment? FooterTemplate { get; set; } /// - /// 获得/设置 the ModalHeader component 模板 - /// Gets or sets the ModalHeader component template + /// 获得/设置 the ModalHeader component 模板 + /// Gets or sets the ModalHeader component template /// public RenderFragment? HeaderTemplate { get; set; } /// - /// 获得/设置 the custom 按钮s in the ModalHeader component - /// Gets or sets the custom buttons in the ModalHeader component + /// 获得/设置 the custom 按钮s in the ModalHeader component + /// Gets or sets the custom buttons in the ModalHeader component /// public RenderFragment? HeaderToolbarTemplate { get; set; } /// - /// 获得/设置 the custom component - /// Gets or sets the custom component + /// 获得/设置 the custom component + /// Gets or sets the custom component /// public BootstrapDynamicComponent? Component { get; set; } /// - /// 获得/设置 the 图标 of the save 按钮, default is null and uses the current theme 图标 - /// Gets or sets the icon of the save button, default is null and uses the current theme icon + /// 获得/设置 the 图标 of the save 按钮, default is null and uses the current theme 图标 + /// Gets or sets the icon of the save button, default is null and uses the current theme icon /// public string? SaveButtonIcon { get; set; } /// - /// 获得/设置 the text of the save 按钮 - /// Gets or sets the text of the save button + /// 获得/设置 the text of the save 按钮 + /// Gets or sets the text of the save button /// public string? SaveButtonText { get; set; } /// - /// 获得/设置 the 回调方法 for the save 按钮 - /// Gets or sets the callback method for the save button + /// 获得/设置 the 回调方法 for the save 按钮 + /// Gets or sets the callback method for the save button /// public Func>? OnSaveAsync { get; set; } /// - /// 获得/设置 the 图标 of the close 按钮, default is null and uses the current theme 图标 - /// Gets or sets the icon of the close button, default is null and uses the current theme icon + /// 获得/设置 the 图标 of the close 按钮, default is null and uses the current theme 图标 + /// Gets or sets the icon of the close button, default is null and uses the current theme icon /// public string? CloseButtonIcon { get; set; } /// - /// 获得/设置 the text of the close 按钮 - /// Gets or sets the text of the close button + /// 获得/设置 the text of the close 按钮 + /// Gets or sets the text of the close button /// public string? CloseButtonText { get; set; } /// - /// 获得/设置 the 回调方法 for closing the dialog - /// Gets or sets the callback method for closing the dialog + /// 获得/设置 the 回调方法 for closing the dialog + /// Gets or sets the callback method for closing the dialog /// public Func? OnCloseAsync { get; set; } /// - /// 获得/设置 是否 to automatically close the dialog after saving successfully, default is true - /// Gets or sets whether to automatically close the dialog after saving successfully, default is true + /// 获得/设置 是否 to automatically close the dialog after saving successfully, default is true + /// Gets or sets whether to automatically close the dialog after saving successfully, default is true /// public bool IsAutoCloseAfterSave { get; set; } = true; /// - /// 获得/设置 是否 the dialog can be dragged, default is false - /// Gets or sets whether the dialog can be dragged, default is false + /// 获得/设置 是否 the dialog can be dragged, default is false + /// Gets or sets whether the dialog can be dragged, default is false /// public bool IsDraggable { get; set; } /// - /// 获得/设置 the 回调方法 when the dialog is shown - /// Gets or sets the callback method when the dialog is shown + /// 获得/设置 the 回调方法 when the dialog is shown + /// Gets or sets the callback method when the dialog is shown /// public Func? OnShownAsync { get; set; } /// - /// 获得/设置 是否 to show the export PDF 按钮, default is false - /// Gets or sets whether to show the export PDF button, default is false + /// 获得/设置 是否 to show the export PDF 按钮, default is false + /// Gets or sets whether to show the export PDF button, default is false /// public bool ShowExportPdfButton { get; set; } /// - /// 获得/设置 是否 to show the export PDF 按钮 in the header, default is false - /// Gets or sets whether to show the export PDF button in the header, default is false + /// 获得/设置 是否 to show the export PDF 按钮 in the header, default is false + /// Gets or sets whether to show the export PDF button in the header, default is false /// public bool ShowExportPdfButtonInHeader { get; set; } /// - /// 获得/设置 the configuration options for the export PDF 按钮 - /// Gets or sets the configuration options for the export PDF button + /// 获得/设置 the configuration options for the export PDF 按钮 + /// Gets or sets the configuration options for the export PDF button /// public ExportPdfButtonOptions? ExportPdfButtonOptions { get; set; } /// - /// 获得/设置 是否 to hide the previous dialog when opening a new one, default is false - /// Gets or sets whether to hide the previous dialog when opening a new one, default is false + /// 获得/设置 是否 to hide the previous dialog when opening a new one, default is false + /// Gets or sets whether to hide the previous dialog when opening a new one, default is false /// public bool IsHidePreviousDialog { get; set; } /// - /// Method to close the dialog - /// Method to close the dialog + /// Method to close the dialog + /// Method to close the dialog /// public async Task CloseDialogAsync() { @@ -254,10 +254,9 @@ public async Task CloseDialogAsync() } /// - /// Method to convert parameters to component attributes - /// Method to convert parameters to component attributes + /// Method to convert parameters to component attributes + /// Method to convert parameters to component attributes /// - /// public Dictionary ToAttributes() { var ret = new Dictionary diff --git a/src/BootstrapBlazor/Components/Dialog/DialogSaveButton.cs b/src/BootstrapBlazor/Components/Dialog/DialogSaveButton.cs index 5f2c1afaf83..a822330e691 100644 --- a/src/BootstrapBlazor/Components/Dialog/DialogSaveButton.cs +++ b/src/BootstrapBlazor/Components/Dialog/DialogSaveButton.cs @@ -20,7 +20,6 @@ public partial class DialogSaveButton : Button /// /// 获得/设置 保存回调方法 返回 true 时自动关闭弹窗 /// Gets or sets Save Callback Method. Close Dialog when return true - /// 10.2.2 /// [Parameter] public Func>? OnSaveAsync { get; set; } @@ -43,7 +42,6 @@ protected override void OnInitialized() /// /// /// - /// protected override async Task HandlerClick() { await base.HandlerClick(); diff --git a/src/BootstrapBlazor/Components/Dialog/DialogService.cs b/src/BootstrapBlazor/Components/Dialog/DialogService.cs index 37e0a7ed2e7..4871da983a4 100644 --- a/src/BootstrapBlazor/Components/Dialog/DialogService.cs +++ b/src/BootstrapBlazor/Components/Dialog/DialogService.cs @@ -17,6 +17,5 @@ public class DialogService : BootstrapServiceBase /// /// 弹窗配置信息实体类Dialog Option /// 指定弹窗组件 默认为 null 使用 组件内置弹窗组件Specific Dialog Component. Default is null, use component built-in dialog component - /// public Task Show(DialogOption option, Dialog? dialog = null) => Invoke(option, dialog); } diff --git a/src/BootstrapBlazor/Components/Dialog/EditDialog.razor.cs b/src/BootstrapBlazor/Components/Dialog/EditDialog.razor.cs index 3f936210fdf..113f0592a39 100644 --- a/src/BootstrapBlazor/Components/Dialog/EditDialog.razor.cs +++ b/src/BootstrapBlazor/Components/Dialog/EditDialog.razor.cs @@ -17,7 +17,6 @@ public partial class EditDialog /// /// 获得/设置 查询时是否显示正在加载中动画 默认为 false /// Gets or sets Whether to Show Loading Animation When Querying. Default is false - /// 10.2.2 /// [Parameter] public bool ShowLoading { get; set; } @@ -25,7 +24,6 @@ public partial class EditDialog /// /// 获得/设置 组件是否采用 Tracking 模式对编辑项进行直接更新 默认 false /// Gets or sets Whether Component Uses Tracking Mode to Update Editing Items Directly. Default is false - /// 10.2.2 /// [Parameter] public bool IsTracking { get; set; } @@ -33,7 +31,6 @@ public partial class EditDialog /// /// 获得/设置 实体类编辑模式 Add 还是 Update /// Gets or sets Item Changed Type (Add or Update) - /// 10.2.2 /// [Parameter] public ItemChangedType ItemChangedType { get; set; } @@ -41,7 +38,6 @@ public partial class EditDialog /// /// 获得/设置 保存按钮图标 /// Gets or sets Save Button Icon - /// 10.2.2 /// [Parameter] public string? SaveButtonIcon { get; set; } @@ -49,7 +45,6 @@ public partial class EditDialog /// /// 获得/设置 保存按钮文本 /// Gets or sets Save Button Text - /// 10.2.2 /// [Parameter] public string? SaveButtonText { get; set; } @@ -57,7 +52,6 @@ public partial class EditDialog /// /// 获得/设置 保存回调委托 返回 false 时保持编辑弹窗 返回 true 时关闭编辑弹窗 /// Gets or sets Save Callback Delegate. Return false to keep edit dialog, true to close it - /// 10.2.2 /// [Parameter] #if NET6_0_OR_GREATER @@ -68,7 +62,6 @@ public partial class EditDialog /// /// 获得/设置 关闭按钮图标 /// Gets or sets Close Button Icon - /// 10.2.2 /// [Parameter] public string? CloseButtonIcon { get; set; } @@ -76,7 +69,6 @@ public partial class EditDialog /// /// 获得/设置 获得/设置 重置按钮文本 /// Gets or sets Reset Button Text - /// 10.2.2 /// [Parameter] public string? CloseButtonText { get; set; } @@ -84,7 +76,6 @@ public partial class EditDialog /// /// 获得/设置 关闭弹窗回调方法 /// Gets or sets Close Dialog Callback Method - /// 10.2.2 /// [Parameter] public Func? OnCloseAsync { get; set; } @@ -92,7 +83,6 @@ public partial class EditDialog /// /// 获得/设置 是否禁用表单内回车自动提交功能 默认 null 未设置 /// Gets or sets Whether to Disable Auto Submit Form By Enter. Default is null - /// 10.2.2 /// [Parameter] public bool? DisableAutoSubmitFormByEnter { get; set; } @@ -100,7 +90,6 @@ public partial class EditDialog /// /// 获得/设置 DialogFooterTemplate 实例 /// Gets or sets DialogFooterTemplate Instance - /// 10.2.2 /// [Parameter] public RenderFragment? FooterTemplate { get; set; } @@ -151,7 +140,6 @@ private async Task OnValidSubmitAsync(EditContext context) /// Show/Hide Loading Mask /// /// true 时显示,false 时隐藏true to show, false to hide - /// public async ValueTask ToggleLoading(bool state) { if (ShowLoading) diff --git a/src/BootstrapBlazor/Components/Dialog/IResultDialog.cs b/src/BootstrapBlazor/Components/Dialog/IResultDialog.cs index a05c611dff7..64d130842f2 100644 --- a/src/BootstrapBlazor/Components/Dialog/IResultDialog.cs +++ b/src/BootstrapBlazor/Components/Dialog/IResultDialog.cs @@ -14,14 +14,12 @@ public interface IResultDialog /// /// 关闭之前回调方法 返回 true 时关闭弹窗 返回 false 时阻止关闭弹窗 /// Callback Method Before Closing. Return true to close, false to prevent closing - /// 10.2.2 /// Task OnClosing(DialogResult result) => Task.FromResult(true); /// /// 关闭后回调方法 /// Callback Method After Closing - /// 10.2.2 /// Task OnClose(DialogResult result); } diff --git a/src/BootstrapBlazor/Components/Dialog/IconDialog.razor.cs b/src/BootstrapBlazor/Components/Dialog/IconDialog.razor.cs index 79338ff1f66..9c8ba149aae 100644 --- a/src/BootstrapBlazor/Components/Dialog/IconDialog.razor.cs +++ b/src/BootstrapBlazor/Components/Dialog/IconDialog.razor.cs @@ -16,7 +16,6 @@ public partial class IconDialog /// /// 获得/设置 Icon 名称 /// Gets or sets Icon Name - /// 10.2.2 /// [Parameter] [NotNull] @@ -28,7 +27,6 @@ public partial class IconDialog /// /// 获得/设置 Label 显示文字 /// Gets or sets Label Text - /// 10.2.2 /// [Parameter] public string? LabelText { get; set; } @@ -36,7 +34,6 @@ public partial class IconDialog /// /// 获得/设置 Label 显示文字 /// Gets or sets Label Text - /// 10.2.2 /// [Parameter] public string? LabelFullText { get; set; } @@ -44,7 +41,6 @@ public partial class IconDialog /// /// 获得/设置 拷贝按钮显示文字 /// Gets or sets Copy Button Text - /// 10.2.2 /// [Parameter] public string? ButtonText { get; set; } @@ -52,7 +48,6 @@ public partial class IconDialog /// /// 获得/设置 拷贝成功提示文字 /// Gets or sets Copied Tooltip Text - /// 10.2.2 /// [Parameter] public string? CopiedTooltipText { get; set; } diff --git a/src/BootstrapBlazor/Components/Dialog/ResultDialogFooter.razor.cs b/src/BootstrapBlazor/Components/Dialog/ResultDialogFooter.razor.cs index cc532440cee..60ba29b81a7 100644 --- a/src/BootstrapBlazor/Components/Dialog/ResultDialogFooter.razor.cs +++ b/src/BootstrapBlazor/Components/Dialog/ResultDialogFooter.razor.cs @@ -16,7 +16,6 @@ public partial class ResultDialogFooter /// /// 显示确认按钮 /// Show Yes Button - /// 10.2.2 /// [Parameter] [NotNull] @@ -25,7 +24,6 @@ public partial class ResultDialogFooter /// /// 确认按钮文本 /// Yes Button Text - /// 10.2.2 /// [Parameter] [NotNull] @@ -34,7 +32,6 @@ public partial class ResultDialogFooter /// /// 确认按钮图标 /// Yes Button Icon - /// 10.2.2 /// [Parameter] public string? ButtonYesIcon { get; set; } @@ -42,14 +39,12 @@ public partial class ResultDialogFooter /// /// 确认按钮颜色 /// Yes Button Color - /// 10.2.2 /// [Parameter] public Color ButtonYesColor { get; set; } = Color.Primary; /// /// 显示取消按钮 /// Show No Button - /// 10.2.2 /// [Parameter] [NotNull] @@ -58,7 +53,6 @@ public partial class ResultDialogFooter /// /// 取消按钮文本 /// No Button Text - /// 10.2.2 /// [Parameter] [NotNull] @@ -67,7 +61,6 @@ public partial class ResultDialogFooter /// /// 取消按钮图标 /// No Button Icon - /// 10.2.2 /// [Parameter] [NotNull] @@ -76,7 +69,6 @@ public partial class ResultDialogFooter /// /// 取消按钮颜色 /// No Button Color - /// 10.2.2 /// [Parameter] public Color ButtonNoColor { get; set; } = Color.Danger; @@ -84,7 +76,6 @@ public partial class ResultDialogFooter /// /// 显示关闭按钮 /// Show Close Button - /// 10.2.2 /// [Parameter] [Obsolete("已弃用,请删除即可; Deprecated. Just delete it.")] @@ -94,7 +85,6 @@ public partial class ResultDialogFooter /// /// 关闭按钮文本 /// Close Button Text - /// 10.2.2 /// [Parameter] [Obsolete("已弃用,请删除即可; Deprecated. Just delete it.")] @@ -104,7 +94,6 @@ public partial class ResultDialogFooter /// /// 关闭按钮图标 /// Close Button Icon - /// 10.2.2 /// [Parameter] [Obsolete("已弃用,请删除即可; Deprecated. Just delete it.")] @@ -114,7 +103,6 @@ public partial class ResultDialogFooter /// /// 关闭按钮颜色 /// Close Button Color - /// 10.2.2 /// [Parameter] [Obsolete("已弃用,请删除即可; Deprecated. Just delete it.")] @@ -124,7 +112,6 @@ public partial class ResultDialogFooter /// /// 获得/设置 点击关闭按钮回调方法 /// Gets or sets Click Close Button Callback Method - /// 10.2.2 /// [Parameter] [Obsolete("已弃用,删除即可; Deprecated. Just delete it.")] @@ -134,7 +121,6 @@ public partial class ResultDialogFooter /// /// 获得/设置 点击确认按钮回调方法 /// Gets or sets Click Yes Button Callback Method - /// 10.2.2 /// [Parameter] [Obsolete("已弃用,删除即可; Deprecated. Just delete it.")] @@ -144,7 +130,6 @@ public partial class ResultDialogFooter /// /// 获得/设置 点击取消按钮回调方法 /// Gets or sets Click No Button Callback Method - /// 10.2.2 /// [Parameter] [Obsolete("已弃用,删除即可; Deprecated. Just delete it.")] diff --git a/src/BootstrapBlazor/Components/Dialog/SearchDialog.razor.cs b/src/BootstrapBlazor/Components/Dialog/SearchDialog.razor.cs index 55e3ebfa51f..3e09c49f490 100644 --- a/src/BootstrapBlazor/Components/Dialog/SearchDialog.razor.cs +++ b/src/BootstrapBlazor/Components/Dialog/SearchDialog.razor.cs @@ -16,9 +16,7 @@ public partial class SearchDialog /// /// 获得/设置 重置回调委托 /// Gets or sets Reset Callback Delegate - /// 10.2.2 /// - /// [Parameter] [NotNull] public Func? OnResetSearchClick { get; set; } @@ -26,9 +24,7 @@ public partial class SearchDialog /// /// 获得/设置 搜索回调委托 /// Gets or sets Search Callback Delegate - /// 10.2.2 /// - /// [Parameter] [NotNull] public Func? OnSearchClick { get; set; } @@ -36,7 +32,6 @@ public partial class SearchDialog /// /// 获得/设置 重置按钮文本 /// Gets or sets Reset Button Text - /// 10.2.2 /// [Parameter] [NotNull] @@ -45,7 +40,6 @@ public partial class SearchDialog /// /// 获得/设置 查询按钮文本 /// Gets or sets Query Button Text - /// 10.2.2 /// [Parameter] [NotNull] @@ -54,7 +48,6 @@ public partial class SearchDialog /// /// 获得/设置 清空按钮图标 /// Gets or sets Clear Button Icon - /// 10.2.2 /// [Parameter] public string? ClearIcon { get; set; } @@ -62,7 +55,6 @@ public partial class SearchDialog /// /// 获得/设置 搜索按钮图标 /// Gets or sets Search Button Icon - /// 10.2.2 /// [Parameter] public string? SearchIcon { get; set; } diff --git a/src/BootstrapBlazor/Components/Dialog/SearchDialogOption.cs b/src/BootstrapBlazor/Components/Dialog/SearchDialogOption.cs index 290a8a8f361..bbb2bc8f246 100644 --- a/src/BootstrapBlazor/Components/Dialog/SearchDialogOption.cs +++ b/src/BootstrapBlazor/Components/Dialog/SearchDialogOption.cs @@ -85,13 +85,11 @@ public SearchDialogOption() /// 获得/设置 重置回调委托 /// Gets or sets Reset Callback Delegate /// - /// public Func? OnResetSearchClick { get; set; } /// /// 获得/设置 搜索回调委托 /// Gets or sets Search Callback Delegate /// - /// public Func? OnSearchClick { get; set; } } diff --git a/src/BootstrapBlazor/Components/Display/Display.razor.cs b/src/BootstrapBlazor/Components/Display/Display.razor.cs index 3c2b8bc7d66..8ae1ead07b4 100644 --- a/src/BootstrapBlazor/Components/Display/Display.razor.cs +++ b/src/BootstrapBlazor/Components/Display/Display.razor.cs @@ -23,7 +23,6 @@ public partial class Display : ILookup /// /// 获得/设置 异步格式化字符串 /// Gets or sets Async Format String - /// 10.2.2 /// [Parameter] public Func>? FormatterAsync { get; set; } @@ -31,42 +30,36 @@ public partial class Display : ILookup /// /// 获得/设置 格式化字符串 如时间类型设置 yyyy-MM-dd /// Gets or sets Format String. e.g. yyyy-MM-dd for DateTime - /// 10.2.2 /// [Parameter] public string? FormatString { get; set; } /// /// - /// 10.2.2 /// [Parameter] public IEnumerable? Lookup { get; set; } /// /// - /// 10.2.2 /// [Parameter] public ILookupService? LookupService { get; set; } /// /// - /// 10.2.2 /// [Parameter] public string? LookupServiceKey { get; set; } /// /// - /// 10.2.2 /// [Parameter] public object? LookupServiceData { get; set; } /// /// - /// 10.2.2 /// [Parameter] public StringComparison LookupStringComparison { get; set; } = StringComparison.OrdinalIgnoreCase; @@ -78,7 +71,6 @@ public partial class Display : ILookup /// /// 获得/设置 类型解析回调方法 组件泛型为 Array 时内部调用 /// Gets or sets Type Resolver Callback Method. Called internally when component generic type is Array - /// 10.2.2 /// [Parameter] public Func? TypeResolver { get; set; } @@ -86,7 +78,6 @@ public partial class Display : ILookup /// /// 获得/设置 是否显示 Tooltip 多用于标签文字过长导致裁减时使用 默认 false 不显示 /// Gets or sets Whether to Show Tooltip. Default is false - /// 10.2.2 /// [Parameter] public bool ShowTooltip { get; set; } @@ -94,7 +85,6 @@ public partial class Display : ILookup /// /// /// - /// protected override async Task OnParametersSetAsync() { await base.OnParametersSetAsync(); @@ -108,7 +98,6 @@ protected override async Task OnParametersSetAsync() /// Value Format Delegate Method /// /// - /// private async Task FormatDisplayText(TValue value) => FormatterAsync != null ? await FormatterAsync(value) : (!string.IsNullOrEmpty(FormatString) && value != null diff --git a/src/BootstrapBlazor/Components/Display/DisplayBase.cs b/src/BootstrapBlazor/Components/Display/DisplayBase.cs index d15109090d6..094ccc46745 100644 --- a/src/BootstrapBlazor/Components/Display/DisplayBase.cs +++ b/src/BootstrapBlazor/Components/Display/DisplayBase.cs @@ -42,7 +42,6 @@ public abstract class DisplayBase : BootstrapModuleComponentBase /// /// 获得/设置 the value of the input. This should be used with two-way binding. /// Gets or sets the value of the input. This should be used with two-way binding. - /// 10.2.2 /// /// /// @bind-Value="model.PropertyName" @@ -54,7 +53,6 @@ public abstract class DisplayBase : BootstrapModuleComponentBase /// /// 获得/设置 a 回调 that updates the bound value. /// Gets or sets a callback that updates the bound value. - /// 10.2.2 /// [Parameter] public EventCallback ValueChanged { get; set; } @@ -62,7 +60,6 @@ public abstract class DisplayBase : BootstrapModuleComponentBase /// /// 获得/设置 an expression that identifies the bound value. /// Gets or sets an expression that identifies the bound value. - /// 10.2.2 /// [Parameter] public Expression>? ValueExpression { get; set; } @@ -70,7 +67,6 @@ public abstract class DisplayBase : BootstrapModuleComponentBase /// /// 获得/设置 是否显示前置标签 默认值为 null 为空时默认不显示标签 /// Gets or sets Whether to Show Label. Default is null, not show label when null - /// 10.2.2 /// [Parameter] public bool? ShowLabel { get; set; } @@ -78,7 +74,6 @@ public abstract class DisplayBase : BootstrapModuleComponentBase /// /// 获得/设置 是否显示 Tooltip 多用于文字过长导致裁减时使用 默认 null /// Gets or sets Whether to Show Tooltip. Default is null - /// 10.2.2 /// [Parameter] public bool? ShowLabelTooltip { get; set; } @@ -86,7 +81,6 @@ public abstract class DisplayBase : BootstrapModuleComponentBase /// /// 获得/设置 显示名称 /// Gets or sets Display Text - /// 10.2.2 /// [Parameter] public string? DisplayText { get; set; } @@ -124,7 +118,6 @@ public abstract class DisplayBase : BootstrapModuleComponentBase /// SetParametersAsync Method /// /// - /// public override Task SetParametersAsync(ParameterView parameters) { parameters.SetParameterProperties(this); diff --git a/src/BootstrapBlazor/Components/Divider/Divider.razor.cs b/src/BootstrapBlazor/Components/Divider/Divider.razor.cs index d2842019bd9..a2fd675a9df 100644 --- a/src/BootstrapBlazor/Components/Divider/Divider.razor.cs +++ b/src/BootstrapBlazor/Components/Divider/Divider.razor.cs @@ -33,7 +33,6 @@ public partial class Divider /// /// 获得/设置 是否为垂直显示 默认为 false /// Gets or sets Whether to display vertically. Default is false - /// 10.2.2 /// [Parameter] public bool IsVertical { get; set; } @@ -41,7 +40,6 @@ public partial class Divider /// /// 获得/设置 组件对齐方式 默认为居中 /// Gets or sets Component Alignment. Default is Center - /// 10.2.2 /// [Parameter] public Alignment Alignment { get; set; } = Alignment.Center; @@ -49,7 +47,6 @@ public partial class Divider /// /// 获得/设置 文案显示文字 /// Gets or sets Text - /// 10.2.2 /// [Parameter] public string? Text { get; set; } @@ -57,7 +54,6 @@ public partial class Divider /// /// 获得/设置 文案显示图标 /// Gets or sets Icon - /// 10.2.2 /// [Parameter] public string? Icon { get; set; } @@ -65,7 +61,6 @@ public partial class Divider /// /// 获得/设置 子内容 /// Gets or sets Child Content - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } diff --git a/src/BootstrapBlazor/Components/Download/Download.cs b/src/BootstrapBlazor/Components/Download/Download.cs index 9164cb033e8..8cb1722fe00 100644 --- a/src/BootstrapBlazor/Components/Download/Download.cs +++ b/src/BootstrapBlazor/Components/Download/Download.cs @@ -35,7 +35,6 @@ protected override void OnInitialized() /// Call download Method /// /// - /// protected virtual async Task DownloadFromStream(DownloadOption option) { if (option.FileStream == null) @@ -57,7 +56,6 @@ protected virtual async Task DownloadFromStream(DownloadOption option) /// Call CreateUrl Method /// /// - /// protected virtual async Task DownloadFromUrl(DownloadOption option) { if (string.IsNullOrEmpty(option.Url)) diff --git a/src/BootstrapBlazor/Components/DragDrap/Dropzone.razor.cs b/src/BootstrapBlazor/Components/DragDrap/Dropzone.razor.cs index 59f91038d38..63aea6e087e 100644 --- a/src/BootstrapBlazor/Components/DragDrap/Dropzone.razor.cs +++ b/src/BootstrapBlazor/Components/DragDrap/Dropzone.razor.cs @@ -17,7 +17,6 @@ public partial class Dropzone : IDisposable /// /// 获取/设置 拖拽列表 /// Gets or sets Items to Drag - /// 10.2.2 /// [Parameter] [NotNull] @@ -26,7 +25,6 @@ public partial class Dropzone : IDisposable /// /// 获取/设置 最大数量 默认 null 不限制 /// Gets or sets Max Items. Default is null (unlimited) - /// 10.2.2 /// [Parameter] public int? MaxItems { get; set; } @@ -34,7 +32,6 @@ public partial class Dropzone : IDisposable /// /// 获得/设置 子组件 /// Gets or sets Child Content - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } @@ -42,7 +39,6 @@ public partial class Dropzone : IDisposable /// /// 获得/设置 每个 Item 的特殊 class /// Gets or sets Item Wrapper Class - /// 10.2.2 /// [Parameter] public Func? ItemWrapperClass { get; set; } @@ -50,7 +46,6 @@ public partial class Dropzone : IDisposable /// /// 获得/设置 复制内容 /// Gets or sets Copy Item Delegate - /// 10.2.2 /// [Parameter] public Func? CopyItem { get; set; } @@ -58,7 +53,6 @@ public partial class Dropzone : IDisposable /// /// 获得/设置 是否允许拖拽释放 /// Gets or sets Accepts Delegate - /// 10.2.2 /// [Parameter] public Func? Accepts { get; set; } @@ -66,7 +60,6 @@ public partial class Dropzone : IDisposable /// /// 获得/设置 当拖拽因为数量超限被禁止时调用 /// Gets or sets Callback for drop rejection by max item limit - /// 10.2.2 /// [Parameter] public EventCallback OnItemDropRejectedByMaxItemLimit { get; set; } @@ -74,7 +67,6 @@ public partial class Dropzone : IDisposable /// /// 获得/设置 当拖拽被禁止时调用 /// Gets or sets Callback for drop rejection - /// 10.2.2 /// [Parameter] public EventCallback OnItemDropRejected { get; set; } @@ -82,7 +74,6 @@ public partial class Dropzone : IDisposable /// /// 获得/设置 返回被替换的 Item /// Gets or sets Callback for Replaced Item Drop - /// 10.2.2 /// [Parameter] public EventCallback OnReplacedItemDrop { get; set; } @@ -90,7 +81,6 @@ public partial class Dropzone : IDisposable /// /// 获得/设置 返回放下的 Item /// Gets or sets Callback for Item Drop - /// 10.2.2 /// [Parameter] public EventCallback OnItemDrop { get; set; } @@ -98,7 +88,6 @@ public partial class Dropzone : IDisposable /// /// 获得/设置 当前节点是否允许被拖拽 /// Gets or sets Whether current item allows drag - /// 10.2.2 /// [Parameter] public Func? AllowsDrag { get; set; } diff --git a/src/BootstrapBlazor/Components/Drawer/Drawer.razor.cs b/src/BootstrapBlazor/Components/Drawer/Drawer.razor.cs index 030271b0fe6..fa4797085a9 100644 --- a/src/BootstrapBlazor/Components/Drawer/Drawer.razor.cs +++ b/src/BootstrapBlazor/Components/Drawer/Drawer.razor.cs @@ -51,7 +51,6 @@ public partial class Drawer /// /// 获得/设置 抽屉宽度 左右布局时生效 /// Gets or sets Drawer Width. Effective when layout is Left/Right - /// 10.2.2 /// [Parameter] public string Width { get; set; } = "360px"; @@ -59,7 +58,6 @@ public partial class Drawer /// /// 获得/设置 抽屉高度 上下布局时生效 /// Gets or sets Drawer Height. Effective when layout is Top/Bottom - /// 10.2.2 /// [Parameter] public string Height { get; set; } = "290px"; @@ -67,7 +65,6 @@ public partial class Drawer /// /// 获得/设置 抽屉是否打开 默认 false 未打开 /// Gets or sets Whether Drawer is Open. Default is false - /// 10.2.2 /// [Parameter] public bool IsOpen { get; set; } @@ -75,7 +72,6 @@ public partial class Drawer /// /// 获得/设置 IsOpen 属性改变时回调委托方法 /// Gets or sets Callback for IsOpen Property Change - /// 10.2.2 /// [Parameter] public EventCallback IsOpenChanged { get; set; } @@ -83,7 +79,6 @@ public partial class Drawer /// /// 获得/设置 点击背景遮罩时回调委托方法 默认为 null /// Gets or sets Callback for Backdrop Click. Default is null - /// 10.2.2 /// [Parameter] public Func? OnClickBackdrop { get; set; } @@ -91,7 +86,6 @@ public partial class Drawer /// /// 获得/设置 点击遮罩是否关闭抽屉 默认为 false /// Gets or sets Whether to Close Drawer on Backdrop Click. Default is false - /// 10.2.2 /// [Parameter] public bool IsBackdrop { get; set; } @@ -99,7 +93,6 @@ public partial class Drawer /// /// 获得/设置 是否显示遮罩 默认为 true 显示遮罩 /// Gets or sets Whether to Show Backdrop. Default is true - /// 10.2.2 /// [Parameter] public bool ShowBackdrop { get; set; } = true; @@ -107,7 +100,6 @@ public partial class Drawer /// /// 获得/设置 组件出现位置 默认显示在 Left 位置 /// Gets or sets Component Placement. Default is Left - /// 10.2.2 /// [Parameter] public Placement Placement { get; set; } = Placement.Left; @@ -115,7 +107,6 @@ public partial class Drawer /// /// 获得/设置 组件定位位置 默认 null 未设置 使用样式内置定位 fixed 可更改为 absolute /// Gets or sets Component Position. Default is null (Fixed). Can be set to absolute - /// 10.2.2 /// [Parameter] public string? Position { get; set; } @@ -123,7 +114,6 @@ public partial class Drawer /// /// 获得/设置 子组件 /// Gets or sets Child Content - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } @@ -131,7 +121,6 @@ public partial class Drawer /// /// 获得/设置 是否允许调整大小 默认 false /// Gets or sets Whether to Allow Resize. Default is false - /// 10.2.2 /// [Parameter] public bool AllowResize { get; set; } @@ -139,7 +128,6 @@ public partial class Drawer /// /// 获得/设置 z-index 参数值 默认 null 未设置 /// Gets or sets z-index parameter. Default is null - /// 10.2.2 /// [Parameter] public int? ZIndex { get; set; } @@ -147,7 +135,6 @@ public partial class Drawer /// /// 获得/设置 关闭抽屉回调委托 默认 null /// Gets or sets Close Drawer Callback Delegate. Default is null - /// 10.2.2 /// [Parameter] public Func? OnCloseAsync { get; set; } @@ -155,7 +142,6 @@ public partial class Drawer /// /// 获得/设置 抽屉内容相关数据 多用于传值 /// Gets or sets Drawer Context Data. Used for passing values - /// 10.2.2 /// [Parameter] public object? BodyContext { get; set; } @@ -163,7 +149,6 @@ public partial class Drawer /// /// 获得/设置 是否支持键盘 ESC 关闭当前弹窗 默认 false /// Gets or sets Whether to support ESC key to close. Default is false - /// 10.2.2 /// [Parameter] public bool IsKeyboard { get; set; } @@ -171,7 +156,6 @@ public partial class Drawer /// /// 获得/设置 抽屉显示时是否允许滚动 body 默认为 false 不滚动 /// Gets or sets Whether to allow body scrolling when drawer is shown. Default is false - /// 10.2.2 /// [Parameter] public bool BodyScroll { get; set; } @@ -185,14 +169,12 @@ public partial class Drawer /// /// /// - /// protected override bool ShouldRender() => _render; /// /// /// /// - /// protected override async Task OnAfterRenderAsync(bool firstRender) { await base.OnAfterRenderAsync(firstRender); @@ -206,7 +188,6 @@ protected override async Task OnAfterRenderAsync(bool firstRender) /// /// /// - /// protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id, Interop, nameof(Close)); private RenderFragment RenderBackdrop() => builder => @@ -239,7 +220,6 @@ public async Task OnContainerClick() /// 关闭抽屉方法 /// Close Drawer Method /// - /// [JSInvokable] public async Task Close() { diff --git a/src/BootstrapBlazor/Components/Dropdown/Dropdown.razor.cs b/src/BootstrapBlazor/Components/Dropdown/Dropdown.razor.cs index f0baaf6e60c..3fc71ff0a65 100644 --- a/src/BootstrapBlazor/Components/Dropdown/Dropdown.razor.cs +++ b/src/BootstrapBlazor/Components/Dropdown/Dropdown.razor.cs @@ -17,7 +17,6 @@ public partial class Dropdown /// 获得 按钮弹出方向集合 /// Get Direction Class Collection /// - /// private string? DirectionClassName => CssBuilder.Default("btn-group") .AddClass(Direction.ToDescriptionString()) .AddClass($"{Direction.ToDescriptionString()}-center", MenuAlignment == Alignment.Center && (Direction == Direction.Dropup || Direction == Direction.Dropdown)) @@ -28,7 +27,6 @@ public partial class Dropdown /// 获得 按钮样式集合 /// Get Button Class Collection /// - /// private string? ButtonClassName => CssBuilder.Default("btn") .AddClass("dropdown-toggle", !ShowSplit) .AddClass($"btn-{Color.ToDescriptionString()}", Color != Color.None) @@ -39,7 +37,6 @@ public partial class Dropdown /// 获得 按钮样式集合 /// Get Button Class Collection /// - /// private string? ClassName => CssBuilder.Default("btn dropdown-toggle") .AddClass("dropdown-toggle-split") .AddClass($"btn-primary", Color == Color.None) @@ -66,7 +63,6 @@ public partial class Dropdown /// Gets or sets Set Item Active Method /// /// - /// protected string? ActiveItem(SelectedItem item) => CssBuilder.Default("dropdown-item") .AddClass("active", () => item.Value == CurrentValueAsString) .AddClass("disabled", item.IsDisabled) @@ -75,7 +71,6 @@ public partial class Dropdown /// /// 获得/设置 颜色 默认 Color.Primary 无设置 /// Gets or sets Color. Default is Color.Primary - /// 10.2.2 /// [Parameter] public Color Color { get; set; } = Color.Primary; @@ -83,7 +78,6 @@ public partial class Dropdown /// /// 获得/设置 绑定数据集 /// Gets or sets Data Items - /// 10.2.2 /// [Parameter] [NotNull] @@ -92,7 +86,6 @@ public partial class Dropdown /// /// 获得/设置 选项模板 /// Gets or sets Item Template - /// 10.2.2 /// [Parameter] public RenderFragment? ItemTemplate { get; set; } @@ -100,7 +93,6 @@ public partial class Dropdown /// /// 获得/设置 按钮内容模板 /// Gets or sets Button Content Template - /// 10.2.2 /// [Parameter] public RenderFragment? ButtonTemplate { get; set; } @@ -108,7 +100,6 @@ public partial class Dropdown /// /// 获得/设置 是否开启分裂式 默认 false /// Gets or sets Is Split Button. Default is false - /// 10.2.2 /// [Parameter] public bool ShowSplit { get; set; } @@ -118,7 +109,6 @@ public partial class Dropdown /// 为 true 时生效 /// Gets or sets OnClick Event /// Effective when is true - /// 10.2.2 /// [Parameter] public EventCallback OnClick { get; set; } @@ -128,7 +118,6 @@ public partial class Dropdown /// 为 true 时生效 /// Gets or sets OnClick Event without render parent /// Effective when is true - /// 10.2.2 /// [Parameter] public Func? OnClickWithoutRender { get; set; } @@ -138,7 +127,6 @@ public partial class Dropdown /// 为 true 时生效 /// Gets or sets Is Async Button. Default is false. If true, button is disabled and shows loading animation on click /// Effective when is true - /// 10.2.2 /// [Parameter] public bool IsAsync { get; set; } @@ -146,7 +134,6 @@ public partial class Dropdown /// /// 获得/设置 是否异步结束后是否保持禁用状态,默认为 false /// Gets or sets Keep Disabled after async completion. Default is false - /// 10.2.2 /// /// 开启时有效 [Parameter] @@ -155,7 +142,6 @@ public partial class Dropdown /// /// 获得/设置 显示图标 /// Gets or sets Icon - /// 10.2.2 /// [Parameter] public string? Icon { get; set; } @@ -163,7 +149,6 @@ public partial class Dropdown /// /// 获得/设置 正在加载动画图标 默认为 fa-solid fa-spin fa-spinner /// Gets or sets Loading Icon. Default is fa-solid fa-spin fa-spinner - /// 10.2.2 /// [Parameter] [NotNull] @@ -172,7 +157,6 @@ public partial class Dropdown /// /// 获得/设置 获取菜单对齐方式 默认 none 未设置 /// Gets or sets Menu Alignment. Default is none - /// 10.2.2 /// [Parameter] public Alignment MenuAlignment { get; set; } @@ -180,7 +164,6 @@ public partial class Dropdown /// /// 获得/设置 下拉选项方向 默认 Dropdown 向下 /// Gets or sets Dropdown Direction. Default is Dropdown (down) - /// 10.2.2 /// [Parameter] public Direction Direction { get; set; } @@ -188,7 +171,6 @@ public partial class Dropdown /// /// 获得/设置 组件尺寸 默认 none 未设置 /// Gets or sets Size. Default is none - /// 10.2.2 /// [Parameter] public Size Size { get; set; } @@ -196,7 +178,6 @@ public partial class Dropdown /// /// 获得/设置 是否固定按钮文字 更改下拉框选项时按钮文字保持不变 默认 false 不固定 /// Gets or sets Whether Fixed Button Text. Default is false - /// 10.2.2 /// [Parameter] public bool IsFixedButtonText { get; set; } @@ -204,7 +185,6 @@ public partial class Dropdown /// /// 获得/设置 下拉菜单中是否显示固定文字 默认 false 不显示 /// Gets or sets Whether Show Fixed Button Text in Dropdown. Default is false - /// 10.2.2 /// [Parameter] public bool ShowFixedButtonTextInDropdown { get; set; } @@ -212,7 +192,6 @@ public partial class Dropdown /// /// 获得/设置 固定按钮显示文字 默认 null /// Gets or sets Fixed Button Text. Default is null - /// 10.2.2 /// [Parameter] public string? FixedButtonText { get; set; } @@ -220,7 +199,6 @@ public partial class Dropdown /// /// 获得/设置 Items 模板 默认 null /// Gets or sets Items Template. Default is null - /// 10.2.2 /// [Parameter] public RenderFragment? ItemsTemplate { get; set; } @@ -228,7 +206,6 @@ public partial class Dropdown /// /// SelectedItemChanged 回调方法 /// SelectedItemChanged Callback - /// 10.2.2 /// [Parameter] public Func? OnSelectedItemChanged { get; set; } @@ -334,7 +311,6 @@ private async Task OnClickButton() /// 处理点击方法 /// Handle Click Method /// - /// private async Task HandlerClick() { IsNotRender = true; diff --git a/src/BootstrapBlazor/Components/Dropdown/DropdownItem.razor.cs b/src/BootstrapBlazor/Components/Dropdown/DropdownItem.razor.cs index 47e558bbed2..58f2ae3ffe4 100644 --- a/src/BootstrapBlazor/Components/Dropdown/DropdownItem.razor.cs +++ b/src/BootstrapBlazor/Components/Dropdown/DropdownItem.razor.cs @@ -14,7 +14,6 @@ public partial class DropdownItem /// /// 获得/设置 显示文本 /// Gets or sets Text - /// 10.2.2 /// [Parameter] public string? Text { get; set; } @@ -22,7 +21,6 @@ public partial class DropdownItem /// /// 获得/设置 图标 /// Gets or sets Icon - /// 10.2.2 /// [Parameter] public string? Icon { get; set; } @@ -30,7 +28,6 @@ public partial class DropdownItem /// /// 获得/设置 是否被禁用 默认 false 优先级低于 /// Gets or sets Disabled. Default is false. Priority lower than - /// 10.2.2 /// [Parameter] public bool Disabled { get; set; } @@ -38,7 +35,6 @@ public partial class DropdownItem /// /// 获得/设置 是否被禁用回调方法 默认 null 优先级高于 /// Gets or sets Disabled Callback. Default is null. Priority higher than - /// 10.2.2 /// [Parameter] public Func? OnDisabledCallback { get; set; } @@ -46,7 +42,6 @@ public partial class DropdownItem /// /// 获得/设置 点击回调方法 默认 null /// Gets or sets Click Callback. Default is null - /// 10.2.2 /// [Parameter] public Func? OnClick { get; set; } @@ -54,7 +49,6 @@ public partial class DropdownItem /// /// 获得/设置 组件内容 /// Gets or sets Child Content - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } diff --git a/src/BootstrapBlazor/Components/DropdownWidget/DropdownWidget.razor.cs b/src/BootstrapBlazor/Components/DropdownWidget/DropdownWidget.razor.cs index 8e201775ad1..62fbe1c2140 100644 --- a/src/BootstrapBlazor/Components/DropdownWidget/DropdownWidget.razor.cs +++ b/src/BootstrapBlazor/Components/DropdownWidget/DropdownWidget.razor.cs @@ -18,7 +18,6 @@ public sealed partial class DropdownWidget /// /// 获得/设置 选项模板支持静态数据 /// Gets or sets Child Content (Static Data) - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } @@ -26,7 +25,6 @@ public sealed partial class DropdownWidget /// /// 获得/设置 挂件数据集合 /// Gets or sets Widget Items - /// 10.2.2 /// [Parameter] public IEnumerable? Items { get; set; } @@ -34,7 +32,6 @@ public sealed partial class DropdownWidget /// /// 获得/设置 下拉项关闭回调方法 /// Gets or sets Item Close Callback - /// 10.2.2 /// [Parameter] public Func? OnItemCloseAsync { get; set; } @@ -42,7 +39,6 @@ public sealed partial class DropdownWidget /// /// 获得/设置 下拉项显示回调方法 /// Gets or sets Item Shown Callback - /// 10.2.2 /// [Parameter] public Func? OnItemShownAsync { get; set; } @@ -52,7 +48,6 @@ public sealed partial class DropdownWidget /// /// /// - /// protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id, Interop, new { Method = nameof(TriggerStateChanged) }); /// @@ -73,7 +68,6 @@ internal void Add(DropdownWidgetItem item) /// /// /// - /// [JSInvokable] public async Task TriggerStateChanged(int index, bool shown) { diff --git a/src/BootstrapBlazor/Components/DropdownWidget/DropdownWidgetItem.cs b/src/BootstrapBlazor/Components/DropdownWidget/DropdownWidgetItem.cs index 2c88bf9a54b..fecce52ed68 100644 --- a/src/BootstrapBlazor/Components/DropdownWidget/DropdownWidgetItem.cs +++ b/src/BootstrapBlazor/Components/DropdownWidget/DropdownWidgetItem.cs @@ -14,7 +14,6 @@ public class DropdownWidgetItem : BootstrapComponentBase /// /// 获得/设置 挂件图标 /// Gets or sets Widget Icon - /// 10.2.2 /// [Parameter] public string? Icon { get; set; } @@ -22,7 +21,6 @@ public class DropdownWidgetItem : BootstrapComponentBase /// /// 获得/设置 DropdownWidgetItem 组件项目的悬浮提示信息 /// Gets or sets Tooltip Title - /// 10.2.2 /// [Parameter] public string? Title { get; set; } @@ -30,7 +28,6 @@ public class DropdownWidgetItem : BootstrapComponentBase /// /// 获得/设置 徽章颜色 默认为 Color.Success /// Gets or sets Badge Color. Default is Color.Success - /// 10.2.2 /// [Parameter] public Color BadgeColor { get; set; } = Color.Success; @@ -38,7 +35,6 @@ public class DropdownWidgetItem : BootstrapComponentBase /// /// 获得/设置 Header 颜色 默认为 Color.Primary /// Gets or sets Header Color. Default is Color.Primary - /// 10.2.2 /// [Parameter] public Color HeaderColor { get; set; } = Color.Primary; @@ -46,7 +42,6 @@ public class DropdownWidgetItem : BootstrapComponentBase /// /// 获得/设置 徽章显示数量 /// Gets or sets Badge Number - /// 10.2.2 /// [Parameter] public string? BadgeNumber { get; set; } @@ -54,7 +49,6 @@ public class DropdownWidgetItem : BootstrapComponentBase /// /// 获得/设置 是否显示小箭头 默认为 true 显示 /// Gets or sets Whether to Show Arrow. Default is true - /// 10.2.2 /// [Parameter] public bool ShowArrow { get; set; } = true; @@ -62,7 +56,6 @@ public class DropdownWidgetItem : BootstrapComponentBase /// /// 获得/设置 Header 模板 /// Gets or sets Header Template - /// 10.2.2 /// [Parameter] public RenderFragment? HeaderTemplate { get; set; } @@ -70,7 +63,6 @@ public class DropdownWidgetItem : BootstrapComponentBase /// /// 获得/设置 Body 模板 /// Gets or sets Body Template - /// 10.2.2 /// [Parameter] public RenderFragment? BodyTemplate { get; set; } @@ -78,7 +70,6 @@ public class DropdownWidgetItem : BootstrapComponentBase /// /// 获得/设置 Footer 模板 /// Gets or sets Footer Template - /// 10.2.2 /// [Parameter] public RenderFragment? FooterTemplate { get; set; } diff --git a/src/BootstrapBlazor/Components/EditorForm/EditorForm.razor.cs b/src/BootstrapBlazor/Components/EditorForm/EditorForm.razor.cs index 672a5eb929b..6b1f6fbf874 100644 --- a/src/BootstrapBlazor/Components/EditorForm/EditorForm.razor.cs +++ b/src/BootstrapBlazor/Components/EditorForm/EditorForm.razor.cs @@ -24,7 +24,6 @@ public partial class EditorForm : IShowLabel, IDisposable /// Support items per row function /// /// - /// private string? GetCssString(IEditorItem item) { int cols = Math.Max(0, Math.Min(12, item.Cols)); @@ -52,7 +51,6 @@ public partial class EditorForm : IShowLabel, IDisposable /// /// 获得/设置 每行显示组件数量 默认为 null /// Gets or sets Items Per Row. Default is null - /// 10.2.2 /// [Parameter] public int? ItemsPerRow { get; set; } @@ -60,7 +58,6 @@ public partial class EditorForm : IShowLabel, IDisposable /// /// 获得/设置 实体类编辑模式 Add 还是 Update /// Gets or sets Item Changed Type. Add or Update - /// 10.2.2 /// [Parameter] public ItemChangedType ItemChangedType { get; set; } @@ -68,7 +65,6 @@ public partial class EditorForm : IShowLabel, IDisposable /// /// 获得/设置 设置行格式 默认 Row 布局 /// Gets or sets Row Type. Default is Row - /// 10.2.2 /// [Parameter] public RowType RowType { get; set; } @@ -76,7 +72,6 @@ public partial class EditorForm : IShowLabel, IDisposable /// /// 获得/设置 设置 Inline 模式下标签对齐方式 默认 None 等效于 Left 左对齐 /// Gets or sets Label Alignment in Inline mode. Default is None, equivalent to Left - /// 10.2.2 /// [Parameter] public Alignment LabelAlign { get; set; } @@ -84,7 +79,6 @@ public partial class EditorForm : IShowLabel, IDisposable /// /// 获得/设置 标签宽度 默认 null 未设置使用全局设置 --bb-row-label-width /// Gets or sets Label Width. Default is null, use global setting --bb-row-label-width if not set - /// 10.2.2 /// [Parameter] public int? LabelWidth { get; set; } @@ -92,7 +86,6 @@ public partial class EditorForm : IShowLabel, IDisposable /// /// 获得/设置 列模板 设置 时本参数不生效 /// Gets or sets Field Items Template. Not effective when is set - /// 10.2.2 /// [Parameter] public RenderFragment? FieldItems { get; set; } @@ -100,7 +93,6 @@ public partial class EditorForm : IShowLabel, IDisposable /// /// 获得/设置 按钮模板 /// Gets or sets Buttons Template - /// 10.2.2 /// [Parameter] public RenderFragment? Buttons { get; set; } @@ -108,7 +100,6 @@ public partial class EditorForm : IShowLabel, IDisposable /// /// 获得/设置 绑定模型 /// Gets or sets Model - /// 10.2.2 /// [Parameter] [NotNull] @@ -117,7 +108,6 @@ public partial class EditorForm : IShowLabel, IDisposable /// /// 获得/设置 是否显示前置标签 默认为 null 未设置时默认显示标签 /// Gets or sets Whether to Show Label. Default is null, show label if not set - /// 10.2.2 /// [Parameter] public bool? ShowLabel { get; set; } @@ -125,7 +115,6 @@ public partial class EditorForm : IShowLabel, IDisposable /// /// 获得/设置 是否显示标签 Tooltip 多用于标签文字过长导致裁减时使用 默认 null /// Gets or sets Whether to Show Label Tooltip. Default is null - /// 10.2.2 /// [Parameter] public bool? ShowLabelTooltip { get; set; } @@ -133,7 +122,6 @@ public partial class EditorForm : IShowLabel, IDisposable /// /// 获得/设置 是否显示为 Display 组件 默认为 false /// Gets or sets Whether to Show as Display Component. Default is false - /// 10.2.2 /// [Parameter] public bool IsDisplay { get; set; } @@ -141,7 +129,6 @@ public partial class EditorForm : IShowLabel, IDisposable /// /// 获得/设置 是否显示 Display 组件的 Tooltip 默认为 false /// Gets or sets Whether to Show Display Component Tooltip. Default is false - /// 10.2.2 /// [Parameter] public bool IsShowDisplayTooltip { get; set; } @@ -158,7 +145,6 @@ public partial class EditorForm : IShowLabel, IDisposable /// /// 获得/设置 是否自动生成模型的所有属性 默认为 true 生成所有属性 /// Gets or sets Whether to Auto Generate All Items. Default is true - /// 10.2.2 /// [Parameter] public bool AutoGenerateAllItem { get; set; } = true; @@ -166,7 +152,6 @@ public partial class EditorForm : IShowLabel, IDisposable /// /// 获得/设置 级联上下文绑定字段信息集合 设置此参数后 模板不生效 /// Gets or sets Context Field Items Collection. template will not be effective if set - /// 10.2.2 /// [Parameter] public IEnumerable? Items { get; set; } @@ -174,7 +159,6 @@ public partial class EditorForm : IShowLabel, IDisposable /// /// 获得/设置 自定义列排序规则 默认 null 未设置 使用内部排序机制 1 2 3 0 -3 -2 -1 顺序 /// Gets or sets Custom Column Sort Rule. Default is null, use internal sort mechanism - /// 10.2.2 /// [Parameter] public Func, IEnumerable>? ColumnOrderCallback { get; set; } @@ -182,7 +166,6 @@ public partial class EditorForm : IShowLabel, IDisposable /// /// 获得/设置 未设置 GroupName 编辑项是否放置在顶部 默认 false /// Gets or sets Whether to show unset GroupName items on top. Default is false - /// 10.2.2 /// [Parameter] public bool ShowUnsetGroupItemsOnTop { get; set; } @@ -190,7 +173,6 @@ public partial class EditorForm : IShowLabel, IDisposable /// /// 获得/设置 默认占位符文本 默认 null /// Gets or sets Default Placeholder Text. Default is null - /// 10.2.2 /// [Parameter] [NotNull] @@ -199,7 +181,6 @@ public partial class EditorForm : IShowLabel, IDisposable /// /// 获得/设置 当值变化时是否重新渲染组件 默认 false /// Gets or sets Whether to Re-render Component when Value Changed. Default is false - /// 10.2.2 /// [Parameter] public bool IsRenderWhenValueChanged { get; set; } diff --git a/src/BootstrapBlazor/Components/EditorForm/EditorItem.cs b/src/BootstrapBlazor/Components/EditorForm/EditorItem.cs index 29d61be5258..3f565a73513 100644 --- a/src/BootstrapBlazor/Components/EditorForm/EditorItem.cs +++ b/src/BootstrapBlazor/Components/EditorForm/EditorItem.cs @@ -17,7 +17,6 @@ public class EditorItem : ComponentBase, IEditorItem /// /// 获得/设置 绑定字段值 /// Gets or sets Field Value - /// 10.2.2 /// [Parameter] public TValue? Field { get; set; } @@ -25,7 +24,6 @@ public class EditorItem : ComponentBase, IEditorItem /// /// 获得/设置 绑定字段值变化回调委托 /// Gets or sets Field Value Changed Callback - /// 10.2.2 /// [Parameter] public EventCallback FieldChanged { get; set; } @@ -39,14 +37,12 @@ public class EditorItem : ComponentBase, IEditorItem /// /// 获得/设置 ValueExpression 表达式 /// Gets or sets ValueExpression - /// 10.2.2 /// [Parameter] public Expression>? FieldExpression { get; set; } /// /// - /// 10.2.2 /// [Parameter] [Obsolete("已弃用,是否可编辑改用 Readonly 参数,是否可见改用 Ignore 参数; Deprecated If it is editable, use the Readonly parameter. If it is visible, use the Ignore parameter.")] @@ -55,77 +51,66 @@ public class EditorItem : ComponentBase, IEditorItem /// /// - /// 10.2.2 /// [Parameter] public bool? Ignore { get; set; } /// /// - /// 10.2.2 /// [Parameter] public bool? Readonly { get; set; } /// /// - /// 10.2.2 /// [Parameter] public bool? Required { get; set; } /// /// - /// 10.2.2 /// [Parameter] public string? RequiredErrorMessage { get; set; } /// /// - /// 10.2.2 /// [Parameter] public bool SkipValidate { get; set; } /// /// - /// 10.2.2 /// [Parameter] public bool? ShowLabelTooltip { get; set; } /// /// - /// 10.2.2 /// [Parameter] public string? Text { get; set; } /// /// - /// 10.2.2 /// [Parameter] public string? Step { get; set; } /// /// - /// 10.2.2 /// [Parameter] public int Rows { get; set; } /// /// - /// 10.2.2 /// [Parameter] public int Cols { get; set; } /// /// - /// 10.2.2 /// [Parameter] public RenderFragment? EditTemplate { get; set; } @@ -146,56 +131,48 @@ public class EditorItem : ComponentBase, IEditorItem /// /// - /// 10.2.2 /// [Parameter] public Type? ComponentType { get; set; } /// /// - /// 10.2.2 /// [Parameter] public IEnumerable>? ComponentParameters { get; set; } /// /// - /// 10.2.2 /// [Parameter] public string? PlaceHolder { get; set; } /// /// - /// 10.2.2 /// [Parameter] public int Order { get; set; } /// /// - /// 10.2.2 /// [Parameter] public IEnumerable? Items { get; set; } /// /// - /// 10.2.2 /// [Parameter] public IEnumerable? Lookup { get; set; } /// /// - /// 10.2.2 /// [Parameter] public bool ShowSearchWhenSelect { get; set; } /// /// - /// 10.2.2 /// [Parameter] [Obsolete("已弃用,请删除;Deprecated, please delete")] @@ -204,42 +181,36 @@ public class EditorItem : ComponentBase, IEditorItem /// /// - /// 10.2.2 /// [Parameter] public bool IsPopover { get; set; } /// /// - /// 10.2.2 /// [Parameter] public StringComparison LookupStringComparison { get; set; } = StringComparison.OrdinalIgnoreCase; /// /// - /// 10.2.2 /// [Parameter] public string? LookupServiceKey { get; set; } /// /// - /// 10.2.2 /// [Parameter] public object? LookupServiceData { get; set; } /// /// - /// 10.2.2 /// [Parameter] public ILookupService? LookupService { get; set; } /// /// - /// 10.2.2 /// [Parameter] public List? ValidateRules { get; set; } @@ -249,14 +220,12 @@ public class EditorItem : ComponentBase, IEditorItem /// /// - /// 10.2.2 /// [Parameter] public string? GroupName { get; set; } /// /// - /// 10.2.2 /// [Parameter] public int GroupOrder { get; set; } diff --git a/src/BootstrapBlazor/Components/EditorForm/IEditorItem.cs b/src/BootstrapBlazor/Components/EditorForm/IEditorItem.cs index 68806cf44a1..afdc959752e 100644 --- a/src/BootstrapBlazor/Components/EditorForm/IEditorItem.cs +++ b/src/BootstrapBlazor/Components/EditorForm/IEditorItem.cs @@ -6,167 +6,167 @@ namespace BootstrapBlazor.Components; /// -/// IEditorItem interface -/// IEditorItem interface +/// IEditorItem interface +/// IEditorItem interface /// public interface IEditorItem : ILookup { /// - /// 获得/设置 the 类型 of the bound column. - /// Gets or sets the type of the bound column. + /// 获得/设置 the 类型 of the bound column. + /// Gets or sets the type of the bound column. /// Type PropertyType { get; } /// - /// 获得/设置 是否 the current edit item is editable. 默认为 true. - /// Gets or sets whether the current edit item is editable. Default is true. + /// 获得/设置 是否 the current edit item is editable. 默认为 true. + /// Gets or sets whether the current edit item is editable. Default is true. /// [Obsolete("Deprecated. Use the Visible parameter. IsVisibleWhenAdd should be used when creating a new one, and IsVisibleWhenEdit should be used when editing. Use the Readonly parameter for read-only. IsReadonlyWhenAdd should be used when creating a new one, and IsReadonlyWhenEdit should be used when editing.")] bool Editable { get; set; } /// - /// 获得/设置 是否 the current edit item is read-only. 默认为 false. - /// Gets or sets whether the current edit item is read-only. Default is false. + /// 获得/设置 是否 the current edit item is read-only. 默认为 false. + /// Gets or sets whether the current edit item is read-only. Default is false. /// bool? Readonly { get; set; } /// - /// 获得/设置 是否 the current edit item is ignored. 默认为 false. When set to true, the UI will not generate this column. - /// Gets or sets whether the current edit item is ignored. Default is false. When set to true, the UI will not generate this column. + /// 获得/设置 是否 the current edit item is ignored. 默认为 false. When set to true, the UI will not generate this column. + /// Gets or sets whether the current edit item is ignored. Default is false. When set to true, the UI will not generate this column. /// bool? Ignore { get; set; } /// - /// 获得/设置 是否 to skip validation. 默认为 false. - /// Gets or sets whether to skip validation. Default is false. + /// 获得/设置 是否 to skip validation. 默认为 false. + /// Gets or sets whether to skip validation. Default is false. /// bool SkipValidate { get; set; } /// - /// 获得/设置 the header 显示 text. - /// Gets or sets the header display text. + /// 获得/设置 the header 显示 text. + /// Gets or sets the header display text. /// string? Text { get; set; } /// - /// 获得/设置 是否 to show label tooltip. Mostly used when the label text is too long and gets truncated. 默认为 null. - /// Gets or sets whether to show label tooltip. Mostly used when the label text is too long and gets truncated. Default is null. + /// 获得/设置 是否 to show label tooltip. Mostly used when the label text is too long and gets truncated. 默认为 null. + /// Gets or sets whether to show label tooltip. Mostly used when the label text is too long and gets truncated. Default is null. /// bool? ShowLabelTooltip { get; set; } /// - /// 获得/设置 the placeholder text. 默认为 null. - /// Gets or sets the placeholder text. Default is null. + /// 获得/设置 the placeholder text. 默认为 null. + /// Gets or sets the placeholder text. Default is null. /// string? PlaceHolder { get; set; } /// - /// 获得/设置 the additional 数据 source, generally used for components like Select or CheckboxList that require additional configuration. - /// Gets or sets the additional data source, generally used for components like Select or CheckboxList that require additional configuration. + /// 获得/设置 the additional 数据 source, generally used for components like Select or CheckboxList that require additional configuration. + /// Gets or sets the additional data source, generally used for components like Select or CheckboxList that require additional configuration. /// IEnumerable? Items { get; set; } /// - /// 获得/设置 the step. 默认为 null. When set to "any", validation is ignored. - /// Gets or sets the step. Default is null. When set to "any", validation is ignored. + /// 获得/设置 the step. 默认为 null. When set to "any", validation is ignored. + /// Gets or sets the step. Default is null. When set to "any", validation is ignored. /// string? Step { get; set; } /// - /// 获得/设置 the number of rows for a Textarea. 默认为 0. - /// Gets or sets the number of rows for a Textarea. Default is 0. + /// 获得/设置 the number of rows for a Textarea. 默认为 0. + /// Gets or sets the number of rows for a Textarea. Default is 0. /// int Rows { get; set; } /// - /// 获得/设置 the field expand columns. 默认为 0. - /// Gets or sets the field expand columns. Default is 0. + /// 获得/设置 the field expand columns. 默认为 0. + /// Gets or sets the field expand columns. Default is 0. /// int Cols { get; set; } /// - /// 获得/设置 the edit 模板. - /// Gets or sets the edit template. + /// 获得/设置 the edit 模板. + /// Gets or sets the edit template. /// RenderFragment? EditTemplate { get; set; } /// - /// 获得/设置 the component 类型. 默认为 null. - /// Gets or sets the component type. Default is null. + /// 获得/设置 the component 类型. 默认为 null. + /// Gets or sets the component type. Default is null. /// Type? ComponentType { get; set; } /// - /// 获得/设置 the custom component parameters. 默认为 null. - /// Gets or sets the custom component parameters. Default is null. + /// 获得/设置 the custom component parameters. 默认为 null. + /// Gets or sets the custom component parameters. Default is null. /// IEnumerable>? ComponentParameters { get; set; } /// - /// 获得/设置 是否 to show the search bar in the dropdown list. 默认为 false. - /// Gets or sets whether to show the search bar in the dropdown list. Default is false. + /// 获得/设置 是否 to show the search bar in the dropdown list. 默认为 false. + /// Gets or sets whether to show the search bar in the dropdown list. Default is false. /// bool ShowSearchWhenSelect { get; set; } /// - /// 获得/设置 是否 to allow fixed search box within dropdown. 默认为 false. - /// Gets or sets whether to allow fixed search box within dropdown. Default is false. + /// 获得/设置 是否 to allow fixed search box within dropdown. 默认为 false. + /// Gets or sets whether to allow fixed search box within dropdown. Default is false. /// [Obsolete("已弃用,请删除;Deprecated, please delete")] [ExcludeFromCodeCoverage] bool IsFixedSearchWhenSelect { get; set; } /// - /// 获得/设置 是否 to use Popover to render the dropdown list. 默认为 false. - /// Gets or sets whether to use Popover to render the dropdown list. Default is false. + /// 获得/设置 是否 to use Popover to render the dropdown list. 默认为 false. + /// Gets or sets whether to use Popover to render the dropdown list. Default is false. /// bool IsPopover { get; set; } /// - /// 获得/设置 the custom validation rules. - /// Gets or sets the custom validation rules. + /// 获得/设置 the custom validation rules. + /// Gets or sets the custom validation rules. /// List? ValidateRules { get; set; } /// - /// 获得 the 显示 name of the bound field. - /// Gets the display name of the bound field. + /// 获得 the 显示 name of the bound field. + /// Gets the display name of the bound field. /// string GetDisplayName(); /// - /// 获得 the field information of the bound field. - /// Gets the field information of the bound field. + /// 获得 the field information of the bound field. + /// Gets the field information of the bound field. /// string GetFieldName(); /// - /// 获得/设置 the order number. - /// Gets or sets the order number. + /// 获得/设置 the order number. + /// Gets or sets the order number. /// int Order { get; set; } /// - /// 获得/设置 the group name of the current 属性. - /// Gets or sets the group name of the current property. + /// 获得/设置 the group name of the current 属性. + /// Gets or sets the group name of the current property. /// string? GroupName { get; set; } /// - /// 获得/设置 the group order of the current 属性. 默认为 0. - /// Gets or sets the group order of the current property. Default is 0. + /// 获得/设置 the group order of the current 属性. 默认为 0. + /// Gets or sets the group order of the current property. Default is 0. /// int GroupOrder { get; set; } /// - /// 获得/设置 是否 the field is required. 默认为 null. - /// Gets or sets whether the field is required. Default is null. + /// 获得/设置 是否 the field is required. 默认为 null. + /// Gets or sets whether the field is required. Default is null. /// bool? Required { get; set; } /// - /// 获得/设置 the error message when the required field is missing. 默认为 null. - /// Gets or sets the error message when the required field is missing. Default is null. + /// 获得/设置 the error message when the required field is missing. 默认为 null. + /// Gets or sets the error message when the required field is missing. Default is null. /// string? RequiredErrorMessage { get; set; } } diff --git a/src/BootstrapBlazor/Components/Empty/Empty.razor.cs b/src/BootstrapBlazor/Components/Empty/Empty.razor.cs index 0b6f896fe82..d1fd55689cc 100644 --- a/src/BootstrapBlazor/Components/Empty/Empty.razor.cs +++ b/src/BootstrapBlazor/Components/Empty/Empty.razor.cs @@ -20,7 +20,6 @@ public partial class Empty /// /// 获得/设置 图片路径 默认为 null /// Gets or sets Image Source. Default is null - /// 10.2.2 /// [Parameter] public string? Image { get; set; } @@ -28,7 +27,6 @@ public partial class Empty /// /// 获得/设置 空状态描述 默认为 无数据 /// Gets or sets Description. Default is No Data - /// 10.2.2 /// [Parameter] public string? Text { get; set; } @@ -36,7 +34,6 @@ public partial class Empty /// /// 获得/设置 自定义模板 /// Gets or sets Custom Template - /// 10.2.2 /// [Parameter] public RenderFragment? Template { get; set; } @@ -44,7 +41,6 @@ public partial class Empty /// /// 获得/设置 子组件 /// Gets or sets Child Content - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } diff --git a/src/BootstrapBlazor/Components/ErrorLogger/BootstrapBlazorErrorBoundary.cs b/src/BootstrapBlazor/Components/ErrorLogger/BootstrapBlazorErrorBoundary.cs index bf92cd8f288..db0a22fed2d 100644 --- a/src/BootstrapBlazor/Components/ErrorLogger/BootstrapBlazorErrorBoundary.cs +++ b/src/BootstrapBlazor/Components/ErrorLogger/BootstrapBlazorErrorBoundary.cs @@ -35,7 +35,6 @@ class BootstrapBlazorErrorBoundary : ErrorBoundaryBase /// /// 获得/设置 自定义错误处理回调方法 /// Gets or sets Custom Error Handler - /// 10.2.2 /// [Parameter] public Func? OnErrorHandleAsync { get; set; } @@ -43,7 +42,6 @@ class BootstrapBlazorErrorBoundary : ErrorBoundaryBase /// /// 获得/设置 是否启用日志记录功能 默认 true 启用 /// Gets or sets Whether to Enable Logging Default true - /// 10.2.2 /// [Parameter] public bool EnableILogger { get; set; } = true; @@ -51,7 +49,6 @@ class BootstrapBlazorErrorBoundary : ErrorBoundaryBase /// /// 获得/设置 是否显示弹窗 默认 true 显示 /// Gets or sets Whether to Show Toast Default true - /// 10.2.2 /// [Parameter] public bool ShowToast { get; set; } = true; @@ -59,7 +56,6 @@ class BootstrapBlazorErrorBoundary : ErrorBoundaryBase /// /// 获得/设置 Toast 弹窗标题 /// Gets or sets Toast Title - /// 10.2.2 /// [Parameter] [NotNull] diff --git a/src/BootstrapBlazor/Components/ErrorLogger/ErrorLogger.cs b/src/BootstrapBlazor/Components/ErrorLogger/ErrorLogger.cs index b2ee8355047..b2c6f648f46 100644 --- a/src/BootstrapBlazor/Components/ErrorLogger/ErrorLogger.cs +++ b/src/BootstrapBlazor/Components/ErrorLogger/ErrorLogger.cs @@ -47,7 +47,6 @@ public class ErrorLogger : ComponentBase, IErrorLogger /// /// 获得/设置 自定义错误处理回调方法 /// Gets or sets Custom Error Handler - /// 10.2.2 /// [Parameter] public Func? OnErrorHandleAsync { get; set; } @@ -55,7 +54,6 @@ public class ErrorLogger : ComponentBase, IErrorLogger /// /// 获得/设置 子组件 /// Gets or sets Child Content - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } @@ -63,7 +61,6 @@ public class ErrorLogger : ComponentBase, IErrorLogger /// /// 获得/设置 异常显示模板 默认 null /// Gets or sets Exception Display Template Default null - /// 10.2.2 /// /// /// 用于自定义异常显示 UI @@ -75,7 +72,6 @@ public class ErrorLogger : ComponentBase, IErrorLogger /// /// 获得/设置 the 回调 function to be invoked during initialization. /// Gets or sets the callback function to be invoked during initialization. - /// 10.2.2 /// [Parameter] public Func? OnInitializedCallback { get; set; } @@ -96,7 +92,6 @@ protected override void OnInitialized() /// /// /// - /// protected override async Task OnInitializedAsync() { await base.OnInitializedAsync(); diff --git a/src/BootstrapBlazor/Components/ErrorLogger/IErrorLogger.cs b/src/BootstrapBlazor/Components/ErrorLogger/IErrorLogger.cs index 84ba2806f74..c23c278b329 100644 --- a/src/BootstrapBlazor/Components/ErrorLogger/IErrorLogger.cs +++ b/src/BootstrapBlazor/Components/ErrorLogger/IErrorLogger.cs @@ -14,35 +14,30 @@ public interface IErrorLogger /// /// 获得/设置 是否开启全局异常捕获 默认 true /// Gets or sets Whether to Enable Global Exception Capture Default true - /// 10.2.2 /// bool EnableErrorLogger { get; set; } /// /// 获得/设置 是否启用日志记录功能 默认 true 启用 设置 false 后关闭记录日志功能 /// Gets or sets Whether to Enable Logging. Default value is true. Set false to disable logging - /// 10.2.2 /// bool EnableILogger { get; } /// /// 获得 是否显示 Error 提示弹窗 默认 true /// Get Whether to Show Error Toast Default true - /// 10.2.2 /// bool ShowToast { get; } /// /// 获得 Error Toast 弹窗标题 默认读取资源文件内容 /// Get Error Toast Title Default Read Resource File - /// 10.2.2 /// string? ToastTitle { get; } /// /// 获得/设置 自定义 Error 处理方法 默认 null /// Gets or sets Custom Error Handler Default null - /// 10.2.2 /// /// Task HandlerExceptionAsync(Exception ex); @@ -50,7 +45,6 @@ public interface IErrorLogger /// /// 注册方法 /// Register Method - /// 10.2.2 /// /// void Register(IHandlerException component); @@ -58,7 +52,6 @@ public interface IErrorLogger /// /// 注销方法 /// Unregister Method - /// 10.2.2 /// /// void UnRegister(IHandlerException component); diff --git a/src/BootstrapBlazor/Components/FileIcon/FileIcon.razor.cs b/src/BootstrapBlazor/Components/FileIcon/FileIcon.razor.cs index eb5bd113bcb..e1850309ca2 100644 --- a/src/BootstrapBlazor/Components/FileIcon/FileIcon.razor.cs +++ b/src/BootstrapBlazor/Components/FileIcon/FileIcon.razor.cs @@ -23,7 +23,6 @@ public partial class FileIcon /// /// 获得/设置 文件类型扩展名 /// Gets or sets File Extension - /// 10.2.2 /// [Parameter] [EditorRequired] @@ -32,7 +31,6 @@ public partial class FileIcon /// /// 获得/设置 背景图模板 默认 null 使用内部内置的空文件 svg 图 /// Gets or sets Background Template Default null Use Internal Built-in Empty File SVG - /// 10.2.2 /// [Parameter] public RenderFragment? BackgroundTemplate { get; set; } @@ -40,7 +38,6 @@ public partial class FileIcon /// /// 获得/设置 图标类型背景色 默认 Color.Primary /// Gets or sets Icon Background Color Default Color.Primary - /// 10.2.2 /// [Parameter] public Color IconColor { get; set; } = Color.Primary; @@ -48,7 +45,6 @@ public partial class FileIcon /// /// 获得/设置 图标大小 默认 Color.None /// Gets or sets Icon Size Default Size.None - /// 10.2.2 /// [Parameter] public Size Size { get; set; } diff --git a/src/BootstrapBlazor/Components/Filters/BoolFilter.razor.cs b/src/BootstrapBlazor/Components/Filters/BoolFilter.razor.cs index d93f9b7394f..c7cf70b54c7 100644 --- a/src/BootstrapBlazor/Components/Filters/BoolFilter.razor.cs +++ b/src/BootstrapBlazor/Components/Filters/BoolFilter.razor.cs @@ -6,15 +6,14 @@ namespace BootstrapBlazor.Components; /// -/// BoolFilter component is used for boolean value filtering in table column. -/// BoolFilter component is used for boolean value filtering in table column. +/// BoolFilter component is used for boolean value filtering in table column. +/// BoolFilter component is used for boolean value filtering in table column. /// public partial class BoolFilter { /// - /// 获得/设置 the filter candidate items. It is recommended to use static 数据 to avoid performance loss. - /// Gets or sets the filter candidate items. It is recommended to use static data to avoid performance loss. - /// 10.2.2 + /// 获得/设置 the filter candidate items. It is recommended to use static 数据 to avoid performance loss. + /// Gets or sets the filter candidate items. It is recommended to use static data to avoid performance loss. /// [Parameter] public IEnumerable? Items { get; set; } @@ -22,8 +21,8 @@ public partial class BoolFilter private string _value = ""; /// - /// - /// + /// + /// /// protected override void OnParametersSet() { @@ -38,8 +37,8 @@ protected override void OnParametersSet() } /// - /// - /// + /// + /// /// public override void Reset() { @@ -48,10 +47,9 @@ public override void Reset() } /// - /// - /// + /// + /// /// - /// public override FilterKeyValueAction GetFilterConditions() { var filter = new FilterKeyValueAction(); @@ -68,8 +66,8 @@ public override FilterKeyValueAction GetFilterConditions() } /// - /// - /// + /// + /// /// public override async Task SetFilterConditionsAsync(FilterKeyValueAction filter) { diff --git a/src/BootstrapBlazor/Components/Filters/DateTimeFilter.razor.cs b/src/BootstrapBlazor/Components/Filters/DateTimeFilter.razor.cs index 0fa375385d0..3cfc02fb295 100644 --- a/src/BootstrapBlazor/Components/Filters/DateTimeFilter.razor.cs +++ b/src/BootstrapBlazor/Components/Filters/DateTimeFilter.razor.cs @@ -6,8 +6,8 @@ namespace BootstrapBlazor.Components; /// -/// DateTime filter component -/// DateTime filter component +/// DateTime filter component +/// DateTime filter component /// public partial class DateTimeFilter { @@ -21,16 +21,15 @@ public partial class DateTimeFilter .Build(); /// - /// 获得/设置 the filter candidate items. It is recommended to use static 数据 to avoid performance loss. - /// Gets or sets the filter candidate items. It is recommended to use static data to avoid performance loss. - /// 10.2.2 + /// 获得/设置 the filter candidate items. It is recommended to use static 数据 to avoid performance loss. + /// Gets or sets the filter candidate items. It is recommended to use static data to avoid performance loss. /// [Parameter] public IEnumerable? Items { get; set; } /// - /// - /// + /// + /// /// protected override void OnParametersSet() { @@ -48,8 +47,8 @@ protected override void OnParametersSet() } /// - /// - /// + /// + /// /// public override void Reset() { @@ -63,10 +62,9 @@ public override void Reset() } /// - /// - /// + /// + /// /// - /// public override FilterKeyValueAction GetFilterConditions() { var filter = new FilterKeyValueAction(); @@ -94,8 +92,8 @@ public override FilterKeyValueAction GetFilterConditions() } /// - /// - /// + /// + /// /// public override async Task SetFilterConditionsAsync(FilterKeyValueAction filter) { diff --git a/src/BootstrapBlazor/Components/Filters/EnumFilter.razor.cs b/src/BootstrapBlazor/Components/Filters/EnumFilter.razor.cs index 85ab9cf2251..abe0c39f16b 100644 --- a/src/BootstrapBlazor/Components/Filters/EnumFilter.razor.cs +++ b/src/BootstrapBlazor/Components/Filters/EnumFilter.razor.cs @@ -21,7 +21,6 @@ public partial class EnumFilter /// /// 获得/设置 相关枚举类型 /// Gets or sets Related Enum Type - /// 10.2.2 /// [Parameter] [NotNull] @@ -30,7 +29,6 @@ public partial class EnumFilter /// /// 获得/设置 the filter candidate items. It is recommended to use static 数据 to avoid performance loss. /// Gets or sets the filter candidate items. It is recommended to use static data to avoid performance loss. - /// 10.2.2 /// [Parameter] public IEnumerable? Items { get; set; } @@ -66,7 +64,6 @@ public override void Reset() /// /// /// - /// public override FilterKeyValueAction GetFilterConditions() { var filter = new FilterKeyValueAction(); diff --git a/src/BootstrapBlazor/Components/Filters/FilterBase.cs b/src/BootstrapBlazor/Components/Filters/FilterBase.cs index dc6c985655f..483946edb84 100644 --- a/src/BootstrapBlazor/Components/Filters/FilterBase.cs +++ b/src/BootstrapBlazor/Components/Filters/FilterBase.cs @@ -24,7 +24,6 @@ public abstract class FilterBase : BootstrapModuleComponentBase, IFilterAction /// /// 获得/设置 相关 Field 字段名称 /// Gets or sets Related Field Name - /// 10.2.2 /// [Parameter] [NotNull] @@ -33,7 +32,6 @@ public abstract class FilterBase : BootstrapModuleComponentBase, IFilterAction /// /// 获得/设置 是否为 HeaderRow 模式 默认 false /// Gets or sets Whether is HeaderRow Mode Default false - /// 10.2.2 /// [Parameter] public bool IsHeaderRow { get; set; } @@ -41,7 +39,6 @@ public abstract class FilterBase : BootstrapModuleComponentBase, IFilterAction /// /// 获得/设置 条件数量 /// Gets or sets Condition Count - /// 10.2.2 /// [Parameter] public int Count { get; set; } @@ -98,7 +95,6 @@ protected override void OnParametersSet() /// 重置按钮回调方法 /// Reset Button Callback Method /// - /// protected virtual async Task OnClearFilter() { if (TableColumnFilter != null) @@ -113,7 +109,6 @@ protected virtual async Task OnClearFilter() /// 过滤按钮回调方法 /// Filter Button Callback Method /// - /// protected virtual async Task OnFilterAsync() { if (TableColumnFilter != null) @@ -134,7 +129,6 @@ protected virtual async Task OnFilterAsync() /// 获得过滤窗口的所有条件方法 /// Get All Conditions Method /// - /// public abstract FilterKeyValueAction GetFilterConditions(); /// diff --git a/src/BootstrapBlazor/Components/Filters/FilterButton.razor.cs b/src/BootstrapBlazor/Components/Filters/FilterButton.razor.cs index 03202d4a61e..a99f8b525ef 100644 --- a/src/BootstrapBlazor/Components/Filters/FilterButton.razor.cs +++ b/src/BootstrapBlazor/Components/Filters/FilterButton.razor.cs @@ -14,7 +14,6 @@ public partial class FilterButton : Dropdown /// /// 获得/设置 清除过滤条件时的回调方法 /// Gets or sets Callback Method When Clearing Filter Conditions - /// 10.2.2 /// [Parameter] public Func? OnClearFilter { get; set; } @@ -22,7 +21,6 @@ public partial class FilterButton : Dropdown /// /// 获得/设置 过滤按钮图标 /// Gets or sets Filter Button Icon - /// 10.2.2 /// [Parameter] public string? FilterIcon { get; set; } @@ -30,7 +28,6 @@ public partial class FilterButton : Dropdown /// /// 获得/设置 重置按钮图标 /// Gets or sets Reset Button Icon - /// 10.2.2 /// [Parameter] public string? ClearIcon { get; set; } diff --git a/src/BootstrapBlazor/Components/Filters/FilterContext.cs b/src/BootstrapBlazor/Components/Filters/FilterContext.cs index 29f1b9cb3b9..6a2f5f1aab0 100644 --- a/src/BootstrapBlazor/Components/Filters/FilterContext.cs +++ b/src/BootstrapBlazor/Components/Filters/FilterContext.cs @@ -6,26 +6,26 @@ namespace BootstrapBlazor.Components; /// -/// FilterContext class -/// FilterContext class +/// FilterContext class +/// FilterContext class /// public class FilterContext { /// - /// 获得/设置 是否 the filter is header row. 默认为 false. - /// Gets or sets whether the filter is header row. Default is false. + /// 获得/设置 是否 the filter is header row. 默认为 false. + /// Gets or sets whether the filter is header row. Default is false. /// public bool IsHeaderRow { get; set; } /// - /// 获得/设置 the column field key. 默认为 null. - /// Gets or sets the column field key. Default is null. + /// 获得/设置 the column field key. 默认为 null. + /// Gets or sets the column field key. Default is null. /// public string? FieldKey { get; set; } /// - /// 获得/设置 the filter counter. 默认为 0. - /// Gets or sets the filter counter. Default is 0. + /// 获得/设置 the filter counter. 默认为 0. + /// Gets or sets the filter counter. Default is 0. /// public int Count { get; set; } } diff --git a/src/BootstrapBlazor/Components/Filters/FilterLogicItem.razor.cs b/src/BootstrapBlazor/Components/Filters/FilterLogicItem.razor.cs index 3d3073fb0c2..c7902474585 100644 --- a/src/BootstrapBlazor/Components/Filters/FilterLogicItem.razor.cs +++ b/src/BootstrapBlazor/Components/Filters/FilterLogicItem.razor.cs @@ -16,7 +16,6 @@ public partial class FilterLogicItem /// /// 获得/设置 逻辑运算符 /// Gets or sets Logical Operator - /// 10.2.2 /// [Parameter] public FilterLogic Logic { get; set; } @@ -24,7 +23,6 @@ public partial class FilterLogicItem /// /// 获得/设置 逻辑运算符改变回调方法 /// Gets or sets Logical Operator Change Callback Method - /// 10.2.2 /// [Parameter] public EventCallback LogicChanged { get; set; } diff --git a/src/BootstrapBlazor/Components/Filters/FilterProvider.razor.cs b/src/BootstrapBlazor/Components/Filters/FilterProvider.razor.cs index 600a703cfe1..373a116d40b 100644 --- a/src/BootstrapBlazor/Components/Filters/FilterProvider.razor.cs +++ b/src/BootstrapBlazor/Components/Filters/FilterProvider.razor.cs @@ -16,7 +16,6 @@ public partial class FilterProvider /// /// 获得/设置 重置按钮文本 /// Gets or sets Reset Button Text - /// 10.2.2 /// [Parameter] [NotNull] @@ -25,7 +24,6 @@ public partial class FilterProvider /// /// 获得/设置 过滤按钮文本 /// Gets or sets Filter Button Text - /// 10.2.2 /// [Parameter] [NotNull] @@ -34,7 +32,6 @@ public partial class FilterProvider /// /// 获得/设置 增加过滤条件图标 /// Gets or sets Add Filter Condition Icon - /// 10.2.2 /// [Parameter] public string? PlusIcon { get; set; } @@ -42,7 +39,6 @@ public partial class FilterProvider /// /// 获得/设置 减少过滤条件图标 /// Gets or sets Remove Filter Condition Icon - /// 10.2.2 /// [Parameter] public string? MinusIcon { get; set; } @@ -50,7 +46,6 @@ public partial class FilterProvider /// /// 获得/设置 是否 show the more 按钮. 默认为 false. /// Gets or sets whether show the more button. Default is false. - /// 10.2.2 /// [Parameter] public bool ShowMoreButton { get; set; } @@ -58,7 +53,6 @@ public partial class FilterProvider /// /// 获得/设置 the filter title. 默认为 null. /// Gets or sets the filter title. Default is null. - /// 10.2.2 /// [Parameter] public string? Title { get; set; } @@ -66,7 +60,6 @@ public partial class FilterProvider /// /// 获得/设置 the child 内容. 默认为 null. /// Gets or sets the child content. Default is null. - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } @@ -126,7 +119,6 @@ protected override void OnParametersSet() /// 点击重置按钮时回调此方法 /// Callback this method when clicking reset button /// - /// private async Task OnClickReset() { Count = 0; @@ -141,7 +133,6 @@ private async Task OnClickReset() /// 点击确认时回调此方法 /// Callback this method when clicking confirm /// - /// protected async Task OnClickConfirm() { if (TableColumnFilter != null) @@ -154,7 +145,6 @@ protected async Task OnClickConfirm() /// 点击增加按钮时回调此方法 /// Callback this method when clicking add button /// - /// private void OnClickPlus() { if (Count == 0) @@ -167,7 +157,6 @@ private void OnClickPlus() /// 点击减少按钮时回调此方法 /// Callback this method when clicking remove button /// - /// private void OnClickMinus() { if (Count == 1) diff --git a/src/BootstrapBlazor/Components/Filters/IFilterAction.cs b/src/BootstrapBlazor/Components/Filters/IFilterAction.cs index 78f2e7313f0..2cae2913a77 100644 --- a/src/BootstrapBlazor/Components/Filters/IFilterAction.cs +++ b/src/BootstrapBlazor/Components/Filters/IFilterAction.cs @@ -21,7 +21,6 @@ public interface IFilterAction /// 获得 IFilter 实例中的过滤条件集合 /// Get Filter Condition Collection in IFilter Instance /// - /// FilterKeyValueAction GetFilterConditions(); /// diff --git a/src/BootstrapBlazor/Components/Filters/LookupFilter.razor.cs b/src/BootstrapBlazor/Components/Filters/LookupFilter.razor.cs index b43a741495a..2fde7c2049b 100644 --- a/src/BootstrapBlazor/Components/Filters/LookupFilter.razor.cs +++ b/src/BootstrapBlazor/Components/Filters/LookupFilter.razor.cs @@ -57,7 +57,6 @@ public override void Reset() /// /// /// - /// public override FilterKeyValueAction GetFilterConditions() { var filter = new FilterKeyValueAction(); diff --git a/src/BootstrapBlazor/Components/Filters/MultiFilter.razor.cs b/src/BootstrapBlazor/Components/Filters/MultiFilter.razor.cs index 9e0e14138d0..74ba1ab90d5 100644 --- a/src/BootstrapBlazor/Components/Filters/MultiFilter.razor.cs +++ b/src/BootstrapBlazor/Components/Filters/MultiFilter.razor.cs @@ -14,7 +14,6 @@ public partial class MultiFilter /// /// 获得/设置 搜索栏占位符 默认 nul 使用资源文件中值 /// Gets or sets Search Placeholder Default null Use Resource File Value - /// 10.2.2 /// [Parameter] public string? SearchPlaceHolderText { get; set; } @@ -22,7 +21,6 @@ public partial class MultiFilter /// /// 获得/设置 全选按钮文本 默认 nul 使用资源文件中值 /// Gets or sets Select All Button Text Default null Use Resource File Value - /// 10.2.2 /// [Parameter] public string? SelectAllText { get; set; } @@ -30,7 +28,6 @@ public partial class MultiFilter /// /// 获得/设置 是否显示搜索栏 默认 true /// Gets or sets Whether to Show Search Bar Default true - /// 10.2.2 /// [Parameter] public bool ShowSearch { get; set; } = true; @@ -38,7 +35,6 @@ public partial class MultiFilter /// /// 获得 过滤项集合回调方法 适合动态给定数据源 /// Get Filter Items Callback Method Suitable for Dynamic Data Source - /// 10.2.2 /// [Parameter] public Func>>? OnGetItemsAsync { get; set; } @@ -46,7 +42,6 @@ public partial class MultiFilter /// /// 获得 是否每次弹窗时均调用 回调方法,多用于动态填装过滤条件 /// Get Whether to Call Callback Method Every Time Popup, Mostly Used for Dynamic Filling Filter Conditions - /// 10.2.2 /// [Parameter] public bool AlwaysTriggerGetItems { get; set; } @@ -54,7 +49,6 @@ public partial class MultiFilter /// /// 获得/设置 Loading 模板 /// Gets or sets Loading Template - /// 10.2.2 /// [Parameter] public RenderFragment? LoadingTemplate { get; set; } @@ -62,7 +56,6 @@ public partial class MultiFilter /// /// 获得/设置 the string comparison option used for filtering operations. 默认为 /// Gets or sets the string comparison option used for filtering operations. Default is - /// 10.2.2 /// [Parameter] public StringComparison StringComparison { get; set; } = StringComparison.OrdinalIgnoreCase; @@ -74,7 +67,6 @@ public partial class MultiFilter /// /// 获得/设置 the filter candidate items. It is recommended to use static 数据 to avoid performance loss. /// Gets or sets the filter candidate items. It is recommended to use static data to avoid performance loss. - /// 10.2.2 /// [Parameter] public IEnumerable? Items { get; set; } @@ -120,7 +112,6 @@ private static void ResetActiveItems(List source, List /// /// - /// protected override async Task InvokeInitAsync() { if (OnGetItemsAsync != null) @@ -138,7 +129,6 @@ protected override async Task InvokeInitAsync() /// JavaScript 回调方法 /// JavaScript Callback Method /// - /// [JSInvokable] public async Task TriggerGetItemsCallback() { @@ -202,7 +192,6 @@ private Task OnStateChanged(CheckboxState state, bool val) /// Filter Content Search /// /// - /// private Task OnSearchValueChanged(string? val) { _searchText = val; @@ -245,7 +234,6 @@ public override void Reset() /// 生成过滤条件方法 /// Generate Filter Conditions Method /// - /// public override FilterKeyValueAction GetFilterConditions() { var filter = new FilterKeyValueAction { FilterLogic = FilterLogic.Or }; @@ -265,7 +253,6 @@ public override FilterKeyValueAction GetFilterConditions() /// /// /// - /// public override async Task SetFilterConditionsAsync(FilterKeyValueAction filter) { var items = GetItems(); diff --git a/src/BootstrapBlazor/Components/Filters/MultiSelectFilter.razor.cs b/src/BootstrapBlazor/Components/Filters/MultiSelectFilter.razor.cs index 0816cc3cc80..be906c88ca3 100644 --- a/src/BootstrapBlazor/Components/Filters/MultiSelectFilter.razor.cs +++ b/src/BootstrapBlazor/Components/Filters/MultiSelectFilter.razor.cs @@ -21,7 +21,6 @@ public partial class MultiSelectFilter /// /// 获得/设置 the filter items. /// Gets or sets the filter items. - /// 10.2.2 /// [Parameter] public List? Items { get; set; } @@ -40,7 +39,6 @@ public override void Reset() /// /// /// - /// public override FilterKeyValueAction GetFilterConditions() { var filter = new FilterKeyValueAction() { FilterLogic = FilterLogic.Or }; diff --git a/src/BootstrapBlazor/Components/Filters/MultipleFilterBase.cs b/src/BootstrapBlazor/Components/Filters/MultipleFilterBase.cs index 4fb2ac26953..5385dafb0c6 100644 --- a/src/BootstrapBlazor/Components/Filters/MultipleFilterBase.cs +++ b/src/BootstrapBlazor/Components/Filters/MultipleFilterBase.cs @@ -6,8 +6,8 @@ namespace BootstrapBlazor.Components; /// -/// Multiple filter base class -/// Multiple filter base class +/// Multiple filter base class +/// Multiple filter base class /// [Obsolete("Deprecated. Please use FilterBase class. 已弃用 请使用 FilterBase 类")] [ExcludeFromCodeCoverage] diff --git a/src/BootstrapBlazor/Components/Filters/NotSupportFilter.razor.cs b/src/BootstrapBlazor/Components/Filters/NotSupportFilter.razor.cs index e73ce8bb8b8..8611782cdb4 100644 --- a/src/BootstrapBlazor/Components/Filters/NotSupportFilter.razor.cs +++ b/src/BootstrapBlazor/Components/Filters/NotSupportFilter.razor.cs @@ -14,7 +14,6 @@ public partial class NotSupportFilter /// /// 获得/设置 不支持过滤类型提示信息 默认 null 读取资源文件内容 /// Gets or sets Not Supported Filter Type Message Default null Read Resource File Content - /// 10.2.2 /// [Parameter] [NotNull] @@ -33,7 +32,6 @@ protected override void OnParametersSet() /// /// /// - /// public override FilterKeyValueAction GetFilterConditions() { return new(); diff --git a/src/BootstrapBlazor/Components/Filters/NumberFilter.razor.cs b/src/BootstrapBlazor/Components/Filters/NumberFilter.razor.cs index 6bafa229324..8a49b35143b 100644 --- a/src/BootstrapBlazor/Components/Filters/NumberFilter.razor.cs +++ b/src/BootstrapBlazor/Components/Filters/NumberFilter.razor.cs @@ -6,8 +6,8 @@ namespace BootstrapBlazor.Components; /// -/// NumberFilter component -/// NumberFilter component +/// NumberFilter component +/// NumberFilter component /// public partial class NumberFilter { @@ -22,16 +22,15 @@ public partial class NumberFilter .Build(); /// - /// 获得/设置 the filter candidate items. It is recommended to use static 数据 to avoid performance loss. - /// Gets or sets the filter candidate items. It is recommended to use static data to avoid performance loss. - /// 10.2.2 + /// 获得/设置 the filter candidate items. It is recommended to use static 数据 to avoid performance loss. + /// Gets or sets the filter candidate items. It is recommended to use static data to avoid performance loss. /// [Parameter] public IEnumerable? Items { get; set; } /// - /// - /// + /// + /// /// protected override void OnParametersSet() { @@ -50,8 +49,8 @@ protected override void OnParametersSet() } /// - /// - /// + /// + /// /// public override void Reset() { @@ -65,10 +64,9 @@ public override void Reset() } /// - /// - /// + /// + /// /// - /// public override FilterKeyValueAction GetFilterConditions() { var filter = new FilterKeyValueAction(); @@ -96,8 +94,8 @@ public override FilterKeyValueAction GetFilterConditions() } /// - /// - /// + /// + /// /// public override async Task SetFilterConditionsAsync(FilterKeyValueAction filter) { diff --git a/src/BootstrapBlazor/Components/Filters/SearchFilterAction.cs b/src/BootstrapBlazor/Components/Filters/SearchFilterAction.cs index 73d1602a31f..17c5a566fec 100644 --- a/src/BootstrapBlazor/Components/Filters/SearchFilterAction.cs +++ b/src/BootstrapBlazor/Components/Filters/SearchFilterAction.cs @@ -46,7 +46,6 @@ public void Reset() /// Set Filter Conditions Method /// /// - /// public Task SetFilterConditionsAsync(FilterKeyValueAction filter) { var first = filter.Filters.FirstOrDefault() ?? filter; @@ -61,7 +60,6 @@ public Task SetFilterConditionsAsync(FilterKeyValueAction filter) /// 获取所有过滤条件集合 /// Get All Filter Conditions Collection /// - /// public virtual FilterKeyValueAction GetFilterConditions() => new() { FieldKey = Name, diff --git a/src/BootstrapBlazor/Components/Filters/SerializeFilterAction.cs b/src/BootstrapBlazor/Components/Filters/SerializeFilterAction.cs index 6f9ea422060..a42a07d6510 100644 --- a/src/BootstrapBlazor/Components/Filters/SerializeFilterAction.cs +++ b/src/BootstrapBlazor/Components/Filters/SerializeFilterAction.cs @@ -31,7 +31,6 @@ public void Reset() /// Set Filter Conditions Method /// /// - /// public Task SetFilterConditionsAsync(FilterKeyValueAction filter) { Filter = filter; @@ -42,6 +41,5 @@ public Task SetFilterConditionsAsync(FilterKeyValueAction filter) /// 获取所有过滤条件集合 /// Get All Filter Conditions Collection /// - /// public FilterKeyValueAction GetFilterConditions() => Filter ?? new(); } diff --git a/src/BootstrapBlazor/Components/Filters/StringFilter.razor.cs b/src/BootstrapBlazor/Components/Filters/StringFilter.razor.cs index bc14c6c4879..30f60f61d89 100644 --- a/src/BootstrapBlazor/Components/Filters/StringFilter.razor.cs +++ b/src/BootstrapBlazor/Components/Filters/StringFilter.razor.cs @@ -6,15 +6,14 @@ namespace BootstrapBlazor.Components; /// -/// StringFilter component -/// StringFilter component +/// StringFilter component +/// StringFilter component /// public partial class StringFilter { /// - /// 获得/设置 the filter candidate items. It is recommended to use static 数据 to avoid performance loss. - /// Gets or sets the filter candidate items. It is recommended to use static data to avoid performance loss. - /// 10.2.2 + /// 获得/设置 the filter candidate items. It is recommended to use static 数据 to avoid performance loss. + /// Gets or sets the filter candidate items. It is recommended to use static data to avoid performance loss. /// [Parameter] public IEnumerable? Items { get; set; } @@ -29,8 +28,8 @@ public partial class StringFilter .Build(); /// - /// - /// + /// + /// /// protected override void OnInitialized() { @@ -40,8 +39,8 @@ protected override void OnInitialized() } /// - /// - /// + /// + /// /// protected override void OnParametersSet() { @@ -57,8 +56,8 @@ protected override void OnParametersSet() } /// - /// - /// + /// + /// /// public override void Reset() { @@ -72,10 +71,9 @@ public override void Reset() } /// - /// - /// + /// + /// /// - /// public override FilterKeyValueAction GetFilterConditions() { var filter = new FilterKeyValueAction(); @@ -103,8 +101,8 @@ public override FilterKeyValueAction GetFilterConditions() } /// - /// - /// + /// + /// /// public override async Task SetFilterConditionsAsync(FilterKeyValueAction filter) { diff --git a/src/BootstrapBlazor/Components/Filters/TableColumnFilter.razor.cs b/src/BootstrapBlazor/Components/Filters/TableColumnFilter.razor.cs index ad746c5af51..58bbafa0e4e 100644 --- a/src/BootstrapBlazor/Components/Filters/TableColumnFilter.razor.cs +++ b/src/BootstrapBlazor/Components/Filters/TableColumnFilter.razor.cs @@ -16,7 +16,6 @@ public partial class TableColumnFilter : IFilter /// /// 获得/设置 是否 active /// Gets or sets Whether is active - /// 10.2.2 /// [Parameter] public bool IsActive { get; set; } @@ -24,7 +23,6 @@ public partial class TableColumnFilter : IFilter /// /// 获得/设置 过滤图标 /// Gets or sets Filter Icon - /// 10.2.2 /// [Parameter] public string? Icon { get; set; } @@ -32,7 +30,6 @@ public partial class TableColumnFilter : IFilter /// /// 获得/设置 不支持过滤类型提示信息 默认 null 读取资源文件内容 /// Gets or sets Not Supported Filter Type Message Default null Read Resource File Content - /// 10.2.2 /// [Parameter] [ExcludeFromCodeCoverage] @@ -42,7 +39,6 @@ public partial class TableColumnFilter : IFilter /// /// 获得/设置 不支持过滤类型提示信息 默认 null 读取资源文件内容 /// Gets or sets Not Supported Filter Type Message Default null Read Resource File Content - /// 10.2.2 /// [Parameter] public string? NotSupportedColumnFilterMessage { get; set; } @@ -50,7 +46,6 @@ public partial class TableColumnFilter : IFilter /// /// 获得 相关联 ITableColumn 实例 /// Get Related ITableColumn Instance - /// 10.2.2 /// [Parameter] [NotNull] @@ -59,7 +54,6 @@ public partial class TableColumnFilter : IFilter /// /// 获得/设置 是否为 HeaderRow 模式 默认 false /// Gets or sets Whether is HeaderRow Mode Default false - /// 10.2.2 /// [Parameter] public bool IsHeaderRow { get; set; } @@ -67,7 +61,6 @@ public partial class TableColumnFilter : IFilter /// /// 获得/设置 ITable 实例 /// Gets or sets ITable Instance - /// 10.2.2 /// [Parameter] [NotNull] @@ -112,7 +105,6 @@ protected override void OnInitialized() /// /// /// - /// protected override async Task InvokeInitAsync() { if (!IsHeaderRow) @@ -135,7 +127,6 @@ public async Task Reset() /// Filter method /// Filter method /// - /// public async Task OnFilterAsync() { if (Table.OnFilterAsync == null) diff --git a/src/BootstrapBlazor/Components/FlipClock/FlipClock.razor.cs b/src/BootstrapBlazor/Components/FlipClock/FlipClock.razor.cs index e9ec52cfced..499afc4f7d4 100644 --- a/src/BootstrapBlazor/Components/FlipClock/FlipClock.razor.cs +++ b/src/BootstrapBlazor/Components/FlipClock/FlipClock.razor.cs @@ -15,7 +15,6 @@ public partial class FlipClock /// /// 获得/设置 是否显示 Year 默认 false /// Gets or sets Whether to Show Year Default false - /// 10.2.2 /// [Parameter] public bool ShowYear { get; set; } @@ -23,7 +22,6 @@ public partial class FlipClock /// /// 获得/设置 是否显示 Month 默认 false /// Gets or sets Whether to Show Month Default false - /// 10.2.2 /// [Parameter] public bool ShowMonth { get; set; } @@ -31,7 +29,6 @@ public partial class FlipClock /// /// 获得/设置 是否显示 Day 默认 false /// Gets or sets Whether to Show Day Default false - /// 10.2.2 /// [Parameter] public bool ShowDay { get; set; } @@ -39,7 +36,6 @@ public partial class FlipClock /// /// 获得/设置 是否显示 Hour 默认 true /// Gets or sets Whether to Show Hour Default true - /// 10.2.2 /// [Parameter] public bool ShowHour { get; set; } = true; @@ -47,7 +43,6 @@ public partial class FlipClock /// /// 获得/设置 是否显示 Minute 默认 true /// Gets or sets Whether to Show Minute Default true - /// 10.2.2 /// [Parameter] public bool ShowMinute { get; set; } = true; @@ -55,7 +50,6 @@ public partial class FlipClock /// /// 获得/设置 是否显示 Second 默认 true /// Gets or sets Whether to Show Second Default true - /// 10.2.2 /// [Parameter] public bool ShowSecond { get; set; } = true; @@ -63,7 +57,6 @@ public partial class FlipClock /// /// 获得/设置 计时结束回调方法 默认 null /// Gets or sets Timer Completed Callback Method Default null - /// 10.2.2 /// [Parameter] public Func? OnCompletedAsync { get; set; } @@ -71,7 +64,6 @@ public partial class FlipClock /// /// 获得/设置 显示模式 默认 /// Gets or sets View Mode Default - /// 10.2.2 /// [Parameter] public FlipClockViewMode ViewMode { get; set; } @@ -79,7 +71,6 @@ public partial class FlipClock /// /// 获得/设置 组件高度 默认 null 未设置使用样式默认值 200px; /// Gets or sets Component Height Default null Use Style Default Value if not set 200px; - /// 10.2.2 /// /// 支持多种单位 200px 200em 200pt 100% 等 [Parameter] @@ -88,7 +79,6 @@ public partial class FlipClock /// /// 获得/设置 组件背景色 默认 null 未设置使用样式默认值 radial-gradient(ellipse at center, rgba(150, 150, 150, 1) 0%, rgba(89, 89, 89, 1) 100%); /// Gets or sets Component Background Color Default null Use Style Default Value if not set radial-gradient(ellipse at center, rgba(150, 150, 150, 1) 0%, rgba(89, 89, 89, 1) 100%); - /// 10.2.2 /// [Parameter] public string? BackgroundColor { get; set; } @@ -96,7 +86,6 @@ public partial class FlipClock /// /// 获得/设置 组件字体大小 默认 null 未设置使用样式默认值 80px; /// Gets or sets Component Font Size Default null Use Style Default Value if not set 80px; - /// 10.2.2 /// [Parameter] public string? FontSize { get; set; } @@ -104,7 +93,6 @@ public partial class FlipClock /// /// 获得/设置 组件卡片宽度 默认 null 未设置使用样式默认值 60px; /// Gets or sets Component Card Width Default null Use Style Default Value if not set 60px; - /// 10.2.2 /// [Parameter] public string? CardWidth { get; set; } @@ -112,7 +100,6 @@ public partial class FlipClock /// /// 获得/设置 组件卡片高度 默认 null 未设置使用样式默认值 90px; /// Gets or sets Component Card Height Default null Use Style Default Value if not set 90px; - /// 10.2.2 /// [Parameter] public string? CardHeight { get; set; } @@ -120,7 +107,6 @@ public partial class FlipClock /// /// 获得/设置 组件卡片字体颜色 默认 null 未设置使用样式默认值 #ccc; /// Gets or sets Component Card Font Color Default null Use Style Default Value if not set #ccc; - /// 10.2.2 /// [Parameter] public string? CardColor { get; set; } @@ -128,7 +114,6 @@ public partial class FlipClock /// /// 获得/设置 组件卡片背景颜色 默认 null 未设置使用样式默认值 #333; /// Gets or sets Component Card Background Color Default null Use Style Default Value if not set #333; - /// 10.2.2 /// [Parameter] public string? CardBackgroundColor { get; set; } @@ -136,7 +121,6 @@ public partial class FlipClock /// /// 获得/设置 组件卡片分割线高度 默认 null 未设置使用样式默认值 1px; /// Gets or sets Component Card Divider Height Default null Use Style Default Value if not set 1px; - /// 10.2.2 /// [Parameter] public string? CardDividerHeight { get; set; } @@ -144,7 +128,6 @@ public partial class FlipClock /// /// 获得/设置 组件卡片分割线颜色 默认 null 未设置使用样式默认值 rgba(0, 0, 0, .4); /// Gets or sets Component Card Divider Color Default null Use Style Default Value if not set rgba(0, 0, 0, .4); - /// 10.2.2 /// [Parameter] public string? CardDividerColor { get; set; } @@ -152,7 +135,6 @@ public partial class FlipClock /// /// 获得/设置 组件卡片间隔 默认 null 未设置使用样式默认值 5; /// Gets or sets Component Card Margin Default null Use Style Default Value if not set 5; - /// 10.2.2 /// [Parameter] public string? CardMargin { get; set; } @@ -160,7 +142,6 @@ public partial class FlipClock /// /// 获得/设置 组件卡片组间隔 默认 null 未设置使用样式默认值 20; /// Gets or sets Component Card Group Margin Default null Use Style Default Value if not set 20; - /// 10.2.2 /// [Parameter] public string? CardGroupMargin { get; set; } @@ -168,7 +149,6 @@ public partial class FlipClock /// /// 获得/设置 倒计时或者计时的开始时间 默认 模式下生效 /// Gets or sets Start Time for Countdown or Count Default Effective in Mode - /// 10.2.2 /// [Parameter] public TimeSpan? StartValue { get; set; } @@ -195,7 +175,6 @@ public partial class FlipClock /// /// /// - /// protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id, new { Invoke = Interop, OnCompleted = nameof(OnCompleted), ViewMode = ViewMode.ToString(), StartValue = GetTicks() }); private double GetTicks() => StartValue?.TotalMilliseconds ?? 0; diff --git a/src/BootstrapBlazor/Components/Footer/Footer.razor.cs b/src/BootstrapBlazor/Components/Footer/Footer.razor.cs index 520333a0a4e..39b895952a3 100644 --- a/src/BootstrapBlazor/Components/Footer/Footer.razor.cs +++ b/src/BootstrapBlazor/Components/Footer/Footer.razor.cs @@ -15,7 +15,6 @@ public partial class Footer /// 获得 按钮样式集合 /// Get Button Style Collection /// - /// protected string? ClassName => CssBuilder.Default("footer") .AddClassFromAttributes(AdditionalAttributes) .Build(); @@ -23,7 +22,6 @@ public partial class Footer /// /// 获得/设置 Footer 显示文字 /// Gets or sets Footer Text - /// 10.2.2 /// [Parameter] public string? Text { get; set; } @@ -31,7 +29,6 @@ public partial class Footer /// /// 获得/设置 Footer 组件中返回顶端按钮控制的滚动条所在组件 设置 为 true 时生效 /// Gets or sets The component where the scrollbar controlled by the back-to-top button in the Footer component is located. Effective when is true - /// 10.2.2 /// [Parameter] public string? Target { get; set; } @@ -39,7 +36,6 @@ public partial class Footer /// /// 获得/设置 内容 /// Gets or sets Content - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } @@ -47,7 +43,6 @@ public partial class Footer /// /// 获得/设置 是否显示 Goto 小组件 默认 true 显示 /// Gets or sets Whether to Show Goto Widget Default true - /// 10.2.2 /// [Parameter] public bool ShowGoto { get; set; } = true; diff --git a/src/BootstrapBlazor/Components/FullScreen/FullScreenButton.razor.cs b/src/BootstrapBlazor/Components/FullScreen/FullScreenButton.razor.cs index a65559aa5bb..e52768e88c5 100644 --- a/src/BootstrapBlazor/Components/FullScreen/FullScreenButton.razor.cs +++ b/src/BootstrapBlazor/Components/FullScreen/FullScreenButton.razor.cs @@ -14,7 +14,6 @@ public partial class FullScreenButton /// /// 获得/设置 全屏图标 默认 fa-solid fa-maximize /// Gets or sets Full Screen Icon Default fa-solid fa-maximize - /// 10.2.2 /// [Parameter] [Obsolete("已弃用,请使用 Icon 参数;Deprecated. Please use Icon parameter")] @@ -24,7 +23,6 @@ public partial class FullScreenButton /// /// 获得/设置 退出全屏图标 默认 fa-solid fa-compress /// Gets or sets Exit Full Screen Icon Default fa-solid fa-compress - /// 10.2.2 /// [Parameter] public string? FullScreenExitIcon { get; set; } @@ -32,7 +30,6 @@ public partial class FullScreenButton /// /// 获得/设置 全屏元素 Id 默认为 null /// Gets or sets Full Screen Element Id Default null - /// 10.2.2 /// [Parameter] public string? TargetId { get; set; } diff --git a/src/BootstrapBlazor/Components/Geolocation/GeolocationPosition.cs b/src/BootstrapBlazor/Components/Geolocation/GeolocationPosition.cs index dc884c38a6d..ad8cf52e717 100644 --- a/src/BootstrapBlazor/Components/Geolocation/GeolocationPosition.cs +++ b/src/BootstrapBlazor/Components/Geolocation/GeolocationPosition.cs @@ -15,14 +15,12 @@ public class GeolocationPosition /// 获得/设置 纬度 /// Gets or sets Latitude /// - /// public decimal Latitude { get; set; } /// /// 获得/设置 经度 /// Gets or sets Longitude /// - /// public decimal Longitude { get; set; } /// diff --git a/src/BootstrapBlazor/Components/GoTop/GoTop.razor.cs b/src/BootstrapBlazor/Components/GoTop/GoTop.razor.cs index 722f2aaa6eb..7c9657eb10c 100644 --- a/src/BootstrapBlazor/Components/GoTop/GoTop.razor.cs +++ b/src/BootstrapBlazor/Components/GoTop/GoTop.razor.cs @@ -16,7 +16,6 @@ public partial class GoTop /// /// 获得/设置 返回顶端 Icon 属性 /// Gets or sets Back to Top Icon - /// 10.2.2 /// [Parameter] public string? Icon { get; set; } @@ -24,7 +23,6 @@ public partial class GoTop /// /// 获得/设置 滚动条所在组件 /// Gets or sets Scroll Container Component - /// 10.2.2 /// [Parameter] public string? Target { get; set; } @@ -32,7 +30,6 @@ public partial class GoTop /// /// 获得/设置 滚动行为 默认 ScrollIntoViewBehavior.Smooth /// Gets or sets Scroll Behavior Default ScrollIntoViewBehavior.Smooth - /// 10.2.2 /// [Parameter] public ScrollIntoViewBehavior ScrollBehavior { get; set; } @@ -40,7 +37,6 @@ public partial class GoTop /// /// 获得/设置 鼠标悬停提示文字信息 /// Gets or sets Tooltip Text - /// 10.2.2 /// [Parameter] [NotNull] diff --git a/src/BootstrapBlazor/Components/GroupBox/GroupBox.razor.cs b/src/BootstrapBlazor/Components/GroupBox/GroupBox.razor.cs index 5e6c4bf0e26..32eda6c5121 100644 --- a/src/BootstrapBlazor/Components/GroupBox/GroupBox.razor.cs +++ b/src/BootstrapBlazor/Components/GroupBox/GroupBox.razor.cs @@ -18,7 +18,6 @@ public sealed partial class GroupBox /// /// 获得/设置 子组件 /// Gets or sets Child Content - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } @@ -26,7 +25,6 @@ public sealed partial class GroupBox /// /// 获得/设置 Title 属性 默认为 null /// Gets or sets Title Property Default null - /// 10.2.2 /// [Parameter] public string? Title { get; set; } diff --git a/src/BootstrapBlazor/Components/Handwritten/Handwritten.razor.cs b/src/BootstrapBlazor/Components/Handwritten/Handwritten.razor.cs index 04a934bb84b..3defd82166b 100644 --- a/src/BootstrapBlazor/Components/Handwritten/Handwritten.razor.cs +++ b/src/BootstrapBlazor/Components/Handwritten/Handwritten.razor.cs @@ -18,7 +18,6 @@ public partial class Handwritten /// /// 清除按钮文本 /// Clear Button Text - /// 10.2.2 /// [Parameter] [NotNull] @@ -27,7 +26,6 @@ public partial class Handwritten /// /// 保存按钮文本 /// Save Button Text - /// 10.2.2 /// [Parameter] [NotNull] @@ -40,7 +38,6 @@ public partial class Handwritten /// /// 手写结果回调方法 /// Handwritten Result Callback Method - /// 10.2.2 /// [Parameter] public EventCallback HandwrittenBase64 { get; set; } @@ -48,7 +45,6 @@ public partial class Handwritten /// /// 手写签名imgBase64字符串 /// Handwritten Signature imgBase64 String - /// 10.2.2 /// [Parameter] public string? Result { get; set; } @@ -67,7 +63,6 @@ protected override void OnInitialized() /// /// /// - /// protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id, Interop, nameof(OnValueChanged)); /// @@ -75,7 +70,6 @@ protected override void OnInitialized() /// Save Result /// /// - /// [JSInvokable] public async Task OnValueChanged(string val) { diff --git a/src/BootstrapBlazor/Components/HtmlTag/Link.razor.cs b/src/BootstrapBlazor/Components/HtmlTag/Link.razor.cs index 19bf4ea4420..ef71a826f49 100644 --- a/src/BootstrapBlazor/Components/HtmlTag/Link.razor.cs +++ b/src/BootstrapBlazor/Components/HtmlTag/Link.razor.cs @@ -14,7 +14,6 @@ public partial class Link /// /// 获得/设置 href 属性值 /// Gets or sets href Property Value - /// 10.2.2 /// [Parameter] [EditorRequired] @@ -23,7 +22,6 @@ public partial class Link /// /// 获得/设置 Rel 属性值, 默认 stylesheet /// Gets or sets Rel Property Value, Default stylesheet - /// 10.2.2 /// [Parameter] public string? Rel { get; set; } = "stylesheet"; @@ -31,7 +29,6 @@ public partial class Link /// /// 获得/设置 版本号 默认 null 自动生成 /// Gets or sets Version Number Default null Auto Generated - /// 10.2.2 /// [Parameter] public string? Version { get; set; } diff --git a/src/BootstrapBlazor/Components/HtmlTag/Script.razor.cs b/src/BootstrapBlazor/Components/HtmlTag/Script.razor.cs index d6c5c82069f..4486d99626a 100644 --- a/src/BootstrapBlazor/Components/HtmlTag/Script.razor.cs +++ b/src/BootstrapBlazor/Components/HtmlTag/Script.razor.cs @@ -14,7 +14,6 @@ public partial class Script /// /// 获得/设置 src 属性值 /// Gets or sets src Property Value - /// 10.2.2 /// [Parameter] [EditorRequired] @@ -23,7 +22,6 @@ public partial class Script /// /// 获得/设置 版本号 默认 null 自动生成 /// Gets or sets Version Number Default null Auto Generated - /// 10.2.2 /// [Parameter] public string? Version { get; set; } diff --git a/src/BootstrapBlazor/Components/IFrame/IFrame.razor.cs b/src/BootstrapBlazor/Components/IFrame/IFrame.razor.cs index 52db82ec790..89c2fce0d02 100644 --- a/src/BootstrapBlazor/Components/IFrame/IFrame.razor.cs +++ b/src/BootstrapBlazor/Components/IFrame/IFrame.razor.cs @@ -14,7 +14,6 @@ public partial class IFrame /// /// 获得/设置 the URL of the webpage to be loaded in the Frame /// Gets or sets the URL of the webpage to be loaded in the Frame - /// 10.2.2 /// [Parameter] public string? Src { get; set; } @@ -22,7 +21,6 @@ public partial class IFrame /// /// 获得/设置 the 数据 to be passed /// Gets or sets the data to be passed - /// 10.2.2 /// [Parameter] public object? Data { get; set; } @@ -30,7 +28,6 @@ public partial class IFrame /// /// 获得/设置 Frame loads the 数据 passed by the page /// Gets or sets Frame loads the data passed by the page - /// 10.2.2 /// [Parameter] public Func? OnPostDataAsync { get; set; } @@ -38,7 +35,6 @@ public partial class IFrame /// /// 获得/设置 Callback method after the page is loaded. /// Gets or sets Callback method after the page is loaded. - /// 10.2.2 /// [Parameter] public Func? OnReadyAsync { get; set; } @@ -77,7 +73,6 @@ protected override async Task OnAfterRenderAsync(bool firstRender) /// /// /// - /// protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id, Interop, new { Data, @@ -90,7 +85,6 @@ protected override async Task OnAfterRenderAsync(bool firstRender) /// Method to push data /// /// - /// public Task PushData(object? data) => InvokeVoidAsync("execute", Id, data); /// @@ -98,7 +92,6 @@ protected override async Task OnAfterRenderAsync(bool firstRender) /// Called by JavaScript /// /// - /// [JSInvokable] public async Task TriggerPostData(object? data) { @@ -112,7 +105,6 @@ public async Task TriggerPostData(object? data) /// Called by JavaScript /// Called by JavaScript /// - /// [JSInvokable] public async Task TriggerLoaded() { diff --git a/src/BootstrapBlazor/Components/IPLocator/BaiDuIPLocator.cs b/src/BootstrapBlazor/Components/IPLocator/BaiDuIPLocator.cs index f4d290f7e17..3f5bab422b5 100644 --- a/src/BootstrapBlazor/Components/IPLocator/BaiDuIPLocator.cs +++ b/src/BootstrapBlazor/Components/IPLocator/BaiDuIPLocator.cs @@ -39,14 +39,12 @@ public BaiDuIPLocator() /// Locate Method /// /// - /// public override Task Locate(IPLocatorOption option) => Locate(option); /// /// ToString 方法 /// ToString Method /// - /// public override string ToString() { return Status == "0" ? (Data?.FirstOrDefault().Location ?? "XX XX") : "Error"; diff --git a/src/BootstrapBlazor/Components/IPLocator/DefaultIPLocator.cs b/src/BootstrapBlazor/Components/IPLocator/DefaultIPLocator.cs index 8043af58599..ab3d5f74623 100644 --- a/src/BootstrapBlazor/Components/IPLocator/DefaultIPLocator.cs +++ b/src/BootstrapBlazor/Components/IPLocator/DefaultIPLocator.cs @@ -20,7 +20,6 @@ public class DefaultIPLocator : IIPLocator /// /// /// - /// public virtual Task Locate(IPLocatorOption option) => Task.FromResult(null); /// @@ -34,7 +33,6 @@ public class DefaultIPLocator : IIPLocator /// Generic Locate Method /// /// - /// protected virtual async Task Locate(IPLocatorOption option) { string? ret = null; diff --git a/src/BootstrapBlazor/Components/IPLocator/DefaultIPLocatorProvider.cs b/src/BootstrapBlazor/Components/IPLocator/DefaultIPLocatorProvider.cs index 5417e9cb1bd..5e2024ff8a1 100644 --- a/src/BootstrapBlazor/Components/IPLocator/DefaultIPLocatorProvider.cs +++ b/src/BootstrapBlazor/Components/IPLocator/DefaultIPLocatorProvider.cs @@ -40,7 +40,6 @@ public DefaultIPLocatorProvider(IServiceProvider provider, IHttpClientFactory fa /// Locate Method /// /// - /// public async Task Locate(string ip) { string? ret = null; diff --git a/src/BootstrapBlazor/Components/IPLocator/IIPLocatorProvider.cs b/src/BootstrapBlazor/Components/IPLocator/IIPLocatorProvider.cs index 0a32e3eea95..f5240cb0f59 100644 --- a/src/BootstrapBlazor/Components/IPLocator/IIPLocatorProvider.cs +++ b/src/BootstrapBlazor/Components/IPLocator/IIPLocatorProvider.cs @@ -17,6 +17,5 @@ public interface IIPLocatorProvider /// /// /// - /// Task Locate(string ip); } diff --git a/src/BootstrapBlazor/Components/Icon/BootstrapBlazorIcon.razor.cs b/src/BootstrapBlazor/Components/Icon/BootstrapBlazorIcon.razor.cs index 46f4c2cc55e..f063e7e9c9c 100644 --- a/src/BootstrapBlazor/Components/Icon/BootstrapBlazorIcon.razor.cs +++ b/src/BootstrapBlazor/Components/Icon/BootstrapBlazorIcon.razor.cs @@ -14,7 +14,6 @@ public partial class BootstrapBlazorIcon /// /// 获得/设置 图标名称 /// Gets or sets Icon Name - /// 10.2.2 /// /// /// 如果是字库图标应该是样式名称如 fa-solid fa-home 如果是 svg sprites 应该为 Id @@ -27,7 +26,6 @@ public partial class BootstrapBlazorIcon /// /// 获得/设置 是否为 svg sprites 默认 false /// Gets or sets Whether is svg sprites Default false - /// 10.2.2 /// [Parameter] public bool IsSvgSprites { get; set; } @@ -35,7 +33,6 @@ public partial class BootstrapBlazorIcon /// /// 获得/设置 Svg Sprites 路径 /// Gets or sets Svg Sprites Path - /// 10.2.2 /// [Parameter] public string? Url { get; set; } @@ -43,7 +40,6 @@ public partial class BootstrapBlazorIcon /// /// 获得/设置 子组件 /// Gets or sets Child Content - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } diff --git a/src/BootstrapBlazor/Components/ImagePreviewer/ImagePreviewer.razor.cs b/src/BootstrapBlazor/Components/ImagePreviewer/ImagePreviewer.razor.cs index e34e2ca5590..3b81cf6c504 100644 --- a/src/BootstrapBlazor/Components/ImagePreviewer/ImagePreviewer.razor.cs +++ b/src/BootstrapBlazor/Components/ImagePreviewer/ImagePreviewer.razor.cs @@ -30,7 +30,6 @@ public partial class ImagePreviewer /// /// 获得/设置 原生 z-index 属性 默认 2050 /// Gets or sets z-index property Default 2050 - /// 10.2.2 /// [Parameter] public int ZIndex { get; set; } = 2050; @@ -38,7 +37,6 @@ public partial class ImagePreviewer /// /// 获得/设置 预览大图链接集合 默认 null /// Gets or sets Preview Image List Default null - /// 10.2.2 /// [Parameter] [NotNull] @@ -50,7 +48,6 @@ public partial class ImagePreviewer /// /// 获得/设置 上一张图片 Icon 图标 /// Gets or sets Previous Image Icon - /// 10.2.2 /// [Parameter] public string? PreviousIcon { get; set; } @@ -58,7 +55,6 @@ public partial class ImagePreviewer /// /// 获得/设置 下一张图片 Icon 图标 /// Gets or sets Next Image Icon - /// 10.2.2 /// [Parameter] public string? NextIcon { get; set; } @@ -66,7 +62,6 @@ public partial class ImagePreviewer /// /// 获得/设置 缩小 Icon 图标 /// Gets or sets Zoom Out Icon - /// 10.2.2 /// [Parameter] public string? MinusIcon { get; set; } @@ -74,7 +69,6 @@ public partial class ImagePreviewer /// /// 获得/设置 放大 Icon 图标 /// Gets or sets Zoom In Icon - /// 10.2.2 /// [Parameter] public string? PlusIcon { get; set; } @@ -82,7 +76,6 @@ public partial class ImagePreviewer /// /// 获得/设置 向左旋转 Icon 图标 /// Gets or sets Rotate Left Icon - /// 10.2.2 /// [Parameter] public string? RotateLeftIcon { get; set; } @@ -90,7 +83,6 @@ public partial class ImagePreviewer /// /// 获得/设置 向右旋转 Icon 图标 /// Gets or sets Rotate Right Icon - /// 10.2.2 /// [Parameter] public string? RotateRightIcon { get; set; } @@ -98,7 +90,6 @@ public partial class ImagePreviewer /// /// 获得/设置 预览缩放速度 默认 null 未设置取 0.015 值 /// Gets or sets Zoom Speed Default null 0.015 if not set - /// 10.2.2 /// [Parameter] public double? ZoomSpeed { get; set; } @@ -146,7 +137,6 @@ protected override void OnParametersSet() /// /// /// - /// protected override async Task OnAfterRenderAsync(bool firstRender) { await base.OnAfterRenderAsync(firstRender); @@ -160,6 +150,5 @@ protected override async Task OnAfterRenderAsync(bool firstRender) /// /// /// - /// protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id, PreviewList, new { ZoomSpeed }); } diff --git a/src/BootstrapBlazor/Components/ImageViewer/ImageViewer.razor.cs b/src/BootstrapBlazor/Components/ImageViewer/ImageViewer.razor.cs index c8b2c05aede..db302b24545 100644 --- a/src/BootstrapBlazor/Components/ImageViewer/ImageViewer.razor.cs +++ b/src/BootstrapBlazor/Components/ImageViewer/ImageViewer.razor.cs @@ -28,7 +28,6 @@ public partial class ImageViewer /// /// 获得/设置 图片 Url 默认 null 必填 /// Gets or sets Image Url Default null Required - /// 10.2.2 /// [Parameter] [NotNull] @@ -38,7 +37,6 @@ public partial class ImageViewer /// /// 获得/设置 图片是否异步加载 /// Gets or sets whether the image is loaded asynchronously - /// 10.2.2 /// [Parameter] public bool IsAsync { get; set; } @@ -46,7 +44,6 @@ public partial class ImageViewer /// /// 获得/设置 原生 alt 属性 默认 null 未设置 /// Gets or sets Native alt Attribute Default null - /// 10.2.2 /// [Parameter] public string? Alt { get; set; } @@ -54,7 +51,6 @@ public partial class ImageViewer /// /// 获得/设置 是否显示占位符 适用于大图片加载 默认 false /// Gets or sets Whether to show placeholder. Suitable for large image loading. Default false - /// 10.2.2 /// [Parameter] public bool ShowPlaceHolder { get; set; } @@ -62,7 +58,6 @@ public partial class ImageViewer /// /// 获得/设置 加载失败时是否显示错误占位符 默认 false /// Gets or sets Whether to show error placeholder when loading fails. Default false - /// 10.2.2 /// [Parameter] public bool HandleError { get; set; } @@ -70,7 +65,6 @@ public partial class ImageViewer /// /// 获得/设置 占位模板 未设置 或者 正在加载时显示 默认 null 未设置 /// Gets or sets Placeholder Template. Default null - /// 10.2.2 /// [Parameter] public RenderFragment? PlaceHolderTemplate { get; set; } @@ -78,7 +72,6 @@ public partial class ImageViewer /// /// 获得/设置 错误模板 默认 null 未设置 /// Gets or sets Error Template. Default null - /// 10.2.2 /// [Parameter] public RenderFragment? ErrorTemplate { get; set; } @@ -86,7 +79,6 @@ public partial class ImageViewer /// /// 获得/设置 原生 object-fit 属性 默认 fill 未设置 /// Gets or sets Native object-fit Attribute. Default fill - /// 10.2.2 /// [Parameter] public ObjectFitMode FitMode { get; set; } @@ -94,7 +86,6 @@ public partial class ImageViewer /// /// 获得/设置 原生 z-index 属性 默认 2050 /// Gets or sets Native z-index Attribute. Default 2050 - /// 10.2.2 /// [Parameter] public int ZIndex { get; set; } = 2050; @@ -102,7 +93,6 @@ public partial class ImageViewer /// /// 获得/设置 预览大图链接集合 默认 null /// Gets or sets Preview Image List Default null - /// 10.2.2 /// [Parameter] public List? PreviewList { get; set; } @@ -110,7 +100,6 @@ public partial class ImageViewer /// /// 获得/设置 预览大图当前链接集合点开的索引 默认为 0 /// Gets or sets Index of the currently opened link in the preview image list Default 0 - /// 10.2.2 /// [Parameter] public int PreviewIndex { get; set; } = 0; @@ -118,7 +107,6 @@ public partial class ImageViewer /// /// 获得/设置 图片加载失败时回调方法 /// Gets or sets Callback method when image loading fails - /// 10.2.2 /// [Parameter] public Func? OnErrorAsync { get; set; } @@ -126,7 +114,6 @@ public partial class ImageViewer /// /// 获得/设置 图片加载成功时回调方法 /// Gets or sets Callback method when image loading succeeds - /// 10.2.2 /// [Parameter] public Func? OnLoadAsync { get; set; } @@ -134,7 +121,6 @@ public partial class ImageViewer /// /// 获得/设置 图片文件图标 /// Gets or sets Image File Icon - /// 10.2.2 /// [Parameter] public string? FileIcon { get; set; } @@ -142,7 +128,6 @@ public partial class ImageViewer /// /// 获得/设置 是否交叉监听 默认 false /// Gets or sets Whether Intersection Observer. Default false - /// 10.2.2 /// /// /// 不可见时不加载图片,当图片即将可见时才开始加载图片 @@ -154,7 +139,6 @@ public partial class ImageViewer /// /// 获得/设置 预览缩放速度 默认 null 未设置取 0.015 值 /// Gets or sets Zoom Speed Default null 0.015 if not set - /// 10.2.2 /// [Parameter] public double? ZoomSpeed { get; set; } @@ -184,7 +168,6 @@ protected override void OnParametersSet() /// /// /// - /// protected override async Task OnAfterRenderAsync(bool firstRender) { await base.OnAfterRenderAsync(firstRender); @@ -198,7 +181,6 @@ protected override async Task OnAfterRenderAsync(bool firstRender) /// /// /// - /// protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id, new { Url, PreviewList, PreviewIndex, Async = IsAsync, PreviewerId, Intersection = IsIntersectionObserver }); private RenderFragment RenderChildContent() => builder => diff --git a/src/BootstrapBlazor/Components/Input/BootstrapInput.razor.cs b/src/BootstrapBlazor/Components/Input/BootstrapInput.razor.cs index fc6b88b3793..6b4f082dbcc 100644 --- a/src/BootstrapBlazor/Components/Input/BootstrapInput.razor.cs +++ b/src/BootstrapBlazor/Components/Input/BootstrapInput.razor.cs @@ -14,7 +14,6 @@ public partial class BootstrapInput /// /// 获得/设置 是否为只读 默认 false /// Gets or sets Readonly. Default false - /// 10.2.2 /// [Parameter] public bool Readonly { get; set; } @@ -22,7 +21,6 @@ public partial class BootstrapInput /// /// 获得/设置 用户删除后是否自动更改为默认值 0 默认 false /// Gets or sets Whether to automatically set default value when user deletes. Default false - /// 10.2.2 /// [Parameter] public bool AutoSetDefaultWhenNull { get; set; } @@ -30,7 +28,6 @@ public partial class BootstrapInput /// /// 获得/设置 是否显示清空小按钮 默认 false /// Gets or sets Whether to show clear button. Default false - /// 10.2.2 /// [Parameter] [Obsolete("已弃用,请使用 IsClearable 参数;Deprecated use the IsClearable parameter")] @@ -40,7 +37,6 @@ public partial class BootstrapInput /// /// 获得/设置 是否显示清空小按钮 默认 false /// Gets or sets Whether to show clear button. Default false - /// 10.2.2 /// [Parameter] public bool IsClearable { get; set; } @@ -48,7 +44,6 @@ public partial class BootstrapInput /// /// 获得/设置 清空文本框时回调方法 默认 null /// Gets or sets Callback when clearing text box. Default null - /// 10.2.2 /// [Parameter] public Func? OnClear { get; set; } @@ -56,7 +51,6 @@ public partial class BootstrapInput /// /// 获得/设置 清空小按钮图标 默认 null /// Gets or sets Clear button icon. Default null - /// 10.2.2 /// [Parameter] [Obsolete("已弃用,请使用 ClearIcon 参数;Deprecated use the ClearIcon parameter")] @@ -66,7 +60,6 @@ public partial class BootstrapInput /// /// 获得/设置 清空小按钮图标 默认 null /// Gets or sets Clear button icon. Default null - /// 10.2.2 /// [Parameter] public string? ClearIcon { get; set; } @@ -101,7 +94,6 @@ protected override void OnParametersSet() /// /// /// - /// protected override bool TryParseValueFromString(string value, [MaybeNullWhen(false)] out TValue result, out string? validationErrorMessage) { bool ret; diff --git a/src/BootstrapBlazor/Components/Input/BootstrapInputBase.cs b/src/BootstrapBlazor/Components/Input/BootstrapInputBase.cs index c9caa05c928..5f7c7a5a050 100644 --- a/src/BootstrapBlazor/Components/Input/BootstrapInputBase.cs +++ b/src/BootstrapBlazor/Components/Input/BootstrapInputBase.cs @@ -24,7 +24,6 @@ public abstract class BootstrapInputBase : ValidateBase /// /// 获得/设置 the placeholder attribute value /// Gets or sets the placeholder attribute value - /// 10.2.2 /// [Parameter] public string? PlaceHolder { get; set; } @@ -32,7 +31,6 @@ public abstract class BootstrapInputBase : ValidateBase /// /// 获得/设置 the 回调方法 for Enter key press, default is null /// Gets or sets the callback method for Enter key press, default is null - /// 10.2.2 /// [Parameter] public Func? OnEnterAsync { get; set; } @@ -40,7 +38,6 @@ public abstract class BootstrapInputBase : ValidateBase /// /// 获得/设置 the 回调方法 for Esc key press, default is null /// Gets or sets the callback method for Esc key press, default is null - /// 10.2.2 /// [Parameter] public Func? OnEscAsync { get; set; } @@ -48,7 +45,6 @@ public abstract class BootstrapInputBase : ValidateBase /// /// 获得/设置 the 按钮 颜色 /// Gets or sets the button color - /// 10.2.2 /// [Parameter] public Color Color { get; set; } = Color.None; @@ -56,7 +52,6 @@ public abstract class BootstrapInputBase : ValidateBase /// /// 获得/设置 the formatter function /// Gets or sets the formatter function - /// 10.2.2 /// [Parameter] public Func? Formatter { get; set; } @@ -64,7 +59,6 @@ public abstract class BootstrapInputBase : ValidateBase /// /// 获得/设置 the format string, e.g., "yyyy-MM-dd" for date 类型s /// Gets or sets the format string, e.g., "yyyy-MM-dd" for date types - /// 10.2.2 /// [Parameter] public string? FormatString { get; set; } @@ -72,7 +66,6 @@ public abstract class BootstrapInputBase : ValidateBase /// /// 获得/设置 是否 to automatically focus, default is false /// Gets or sets whether to automatically focus, default is false - /// 10.2.2 /// [Parameter] public bool IsAutoFocus { get; set; } @@ -80,7 +73,6 @@ public abstract class BootstrapInputBase : ValidateBase /// /// 获得/设置 是否 to automatically select all text on focus, default is false /// Gets or sets whether to automatically select all text on focus, default is false - /// 10.2.2 /// [Parameter] public bool IsSelectAllTextOnFocus { get; set; } @@ -88,7 +80,6 @@ public abstract class BootstrapInputBase : ValidateBase /// /// 获得/设置 是否 to automatically select all text on Enter key press, default is false /// Gets or sets whether to automatically select all text on Enter key press, default is false - /// 10.2.2 /// [Parameter] public bool IsSelectAllTextOnEnter { get; set; } @@ -96,7 +87,6 @@ public abstract class BootstrapInputBase : ValidateBase /// /// 获得/设置 是否 to automatically trim whitespace, default is false /// Gets or sets whether to automatically trim whitespace, default is false - /// 10.2.2 /// [Parameter] public bool IsTrim { get; set; } @@ -104,7 +94,6 @@ public abstract class BootstrapInputBase : ValidateBase /// /// 获得/设置 the 回调方法 for blur event, default is null /// Gets or sets the callback method for blur event, default is null - /// 10.2.2 /// [Parameter] public Func? OnBlurAsync { get; set; } @@ -122,14 +111,12 @@ public abstract class BootstrapInputBase : ValidateBase /// Method to focus the element /// Method to focus the element /// - /// public async Task FocusAsync() => await InvokeVoidAsync("focus", GetInputId()); /// /// Method to select all text /// Method to select all text /// - /// public async ValueTask SelectAllTextAsync() => await InvokeVoidAsync("select", Id); /// @@ -169,7 +156,6 @@ protected override void OnInitialized() /// /// /// - /// protected override async Task OnAfterRenderAsync(bool firstRender) { await base.OnAfterRenderAsync(firstRender); @@ -206,7 +192,6 @@ protected override async Task OnAfterRenderAsync(bool firstRender) /// Value formatting delegate method /// /// - /// protected override string? FormatValueAsString(TValue? value) => Formatter != null ? Formatter.Invoke(value) : (!string.IsNullOrEmpty(FormatString) && value != null @@ -220,7 +205,6 @@ protected override async Task OnAfterRenderAsync(bool firstRender) /// /// /// - /// protected override bool TryParseValueFromString(string value, [MaybeNullWhen(false)] out TValue result, out string? validationErrorMessage) => base.TryParseValueFromString(IsTrim ? value.Trim() : value, out result, out validationErrorMessage); /// @@ -239,7 +223,6 @@ protected virtual async Task OnBlur() /// Client-side EnterCallback method /// Client-side EnterCallback method /// - /// [JSInvokable] public async Task EnterCallback() { @@ -253,7 +236,6 @@ public async Task EnterCallback() /// Client-side EscCallback method /// Client-side EscCallback method /// - /// [JSInvokable] public async Task EscCallback() { @@ -268,7 +250,6 @@ public async Task EscCallback() /// /// /// - /// protected override async ValueTask DisposeAsync(bool disposing) { await base.DisposeAsync(disposing); diff --git a/src/BootstrapBlazor/Components/Input/BootstrapInputEventBase.cs b/src/BootstrapBlazor/Components/Input/BootstrapInputEventBase.cs index 3c87d9dc92a..dc6ca1ffc67 100644 --- a/src/BootstrapBlazor/Components/Input/BootstrapInputEventBase.cs +++ b/src/BootstrapBlazor/Components/Input/BootstrapInputEventBase.cs @@ -14,7 +14,6 @@ public abstract class BootstrapInputEventBase : BootstrapInputBase /// 获得/设置 是否在文本框输入值时触发 bind-value:event="oninput" 默认 false /// Gets or sets Whether to trigger bind-value:event="oninput" when entering value in text box. Default false - /// 10.2.2 /// /// /// 设置 参数后,Formatter 与 FormatString 均失效 diff --git a/src/BootstrapBlazor/Components/Input/BootstrapInputGroup.razor.cs b/src/BootstrapBlazor/Components/Input/BootstrapInputGroup.razor.cs index 4ad0ea5dd93..ed0bd283bcc 100644 --- a/src/BootstrapBlazor/Components/Input/BootstrapInputGroup.razor.cs +++ b/src/BootstrapBlazor/Components/Input/BootstrapInputGroup.razor.cs @@ -18,7 +18,6 @@ public partial class BootstrapInputGroup /// /// 获得/设置 子组件 /// Gets or sets Child Content - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } diff --git a/src/BootstrapBlazor/Components/Input/BootstrapInputGroupIcon.razor.cs b/src/BootstrapBlazor/Components/Input/BootstrapInputGroupIcon.razor.cs index 37352d1e3b9..36a9af7b2b2 100644 --- a/src/BootstrapBlazor/Components/Input/BootstrapInputGroupIcon.razor.cs +++ b/src/BootstrapBlazor/Components/Input/BootstrapInputGroupIcon.razor.cs @@ -18,7 +18,6 @@ public partial class BootstrapInputGroupIcon /// /// 获得/设置 Icon /// Gets or sets Icon - /// 10.2.2 /// [Parameter] #if NET6_0_OR_GREATER diff --git a/src/BootstrapBlazor/Components/Input/BootstrapInputGroupLabel.cs b/src/BootstrapBlazor/Components/Input/BootstrapInputGroupLabel.cs index 8d6c1318e25..bf45cd2d01a 100644 --- a/src/BootstrapBlazor/Components/Input/BootstrapInputGroupLabel.cs +++ b/src/BootstrapBlazor/Components/Input/BootstrapInputGroupLabel.cs @@ -31,7 +31,6 @@ public sealed class BootstrapInputGroupLabel : DisplayBase /// /// 获得/设置 标签宽度 默认 null 未设置自动适应 /// Gets or sets Label Width. Default null (Auto Fit) - /// 10.2.2 /// [Parameter] public int? Width { get; set; } @@ -39,7 +38,6 @@ public sealed class BootstrapInputGroupLabel : DisplayBase /// /// 获得/设置 标签对其方式 默认 null 未设置 star 对齐 /// Gets or sets Label Alignment. Default null (Start Alignment) - /// 10.2.2 /// [Parameter] public Alignment Alignment { get; set; } @@ -47,7 +45,6 @@ public sealed class BootstrapInputGroupLabel : DisplayBase /// /// 获得/设置 是否显示必填项标识 默认 false /// Gets or sets Whether to show required mark. Default false - /// 10.2.2 /// [Parameter] public bool ShowRequiredMark { get; set; } @@ -55,7 +52,6 @@ public sealed class BootstrapInputGroupLabel : DisplayBase /// /// 获得/设置 the child 内容. 默认为 null. /// Gets or sets the child content. Default is null. - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } @@ -63,7 +59,6 @@ public sealed class BootstrapInputGroupLabel : DisplayBase /// /// 获得/设置 是否为 InputGroup 或 TableToolbar 内的标签 默认 null 未设置 /// Gets or sets Whether it is a label inside InputGroup or TableToolbar. Default null (Not set) - /// 10.2.2 /// [Parameter] public bool? IsGroupLabel { get; set; } diff --git a/src/BootstrapBlazor/Components/Input/FloatingLabel.razor.cs b/src/BootstrapBlazor/Components/Input/FloatingLabel.razor.cs index 9d1bc96d0aa..7fabd20517e 100644 --- a/src/BootstrapBlazor/Components/Input/FloatingLabel.razor.cs +++ b/src/BootstrapBlazor/Components/Input/FloatingLabel.razor.cs @@ -19,7 +19,6 @@ public partial class FloatingLabel /// /// 获得/设置 是否为 GroupBox 样式 默认 false /// Gets or sets Whether it is GroupBox style. Default false - /// 10.2.2 /// [Parameter] public bool IsGroupBox { get; set; } diff --git a/src/BootstrapBlazor/Components/Input/OtpInput.razor.cs b/src/BootstrapBlazor/Components/Input/OtpInput.razor.cs index 6205b95a991..a171f171f75 100644 --- a/src/BootstrapBlazor/Components/Input/OtpInput.razor.cs +++ b/src/BootstrapBlazor/Components/Input/OtpInput.razor.cs @@ -15,7 +15,6 @@ public partial class OtpInput /// /// 获得/设置 the length of the OTP input. 默认为 6. /// Gets or sets the length of the OTP input. Default is 6. - /// 10.2.2 /// [Parameter] public int Digits { get; set; } = 6; @@ -23,7 +22,6 @@ public partial class OtpInput /// /// 获得/设置 是否 the OTP input is readonly. 默认为 false. /// Gets or sets whether the OTP input is readonly. Default is false. - /// 10.2.2 /// [Parameter] public bool IsReadonly { get; set; } @@ -31,7 +29,6 @@ public partial class OtpInput /// /// 获得/设置 the value 类型 of the OTP input. 默认为 . /// Gets or sets the value type of the OTP input. Default is . - /// 10.2.2 /// [Parameter] public OtpInputType Type { get; set; } @@ -39,7 +36,6 @@ public partial class OtpInput /// /// 获得/设置 the placeholder of the OTP input. 默认为 null. /// Gets or sets the placeholder of the OTP input. Default is null. - /// 10.2.2 /// [Parameter] public string? PlaceHolder { get; set; } @@ -99,7 +95,6 @@ protected override void OnParametersSet() /// /// /// - /// protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id, Interop, nameof(TriggerSetValue)); private char? GetValueString(int index) @@ -112,7 +107,6 @@ protected override void OnParametersSet() /// Trigger value changed event callback. Trigger by JavaScript. /// /// - /// [JSInvokable] public Task TriggerSetValue(string[] val) { diff --git a/src/BootstrapBlazor/Components/InputNumber/BootstrapInputNumber.razor.cs b/src/BootstrapBlazor/Components/InputNumber/BootstrapInputNumber.razor.cs index 1d6d9c1cd9c..e3ba7810b1f 100644 --- a/src/BootstrapBlazor/Components/InputNumber/BootstrapInputNumber.razor.cs +++ b/src/BootstrapBlazor/Components/InputNumber/BootstrapInputNumber.razor.cs @@ -40,7 +40,6 @@ public partial class BootstrapInputNumber /// /// 获得/设置 数值增加时回调委托 /// Gets or sets Callback delegate when value increases - /// 10.2.2 /// [Parameter] public Func? OnIncrement { get; set; } @@ -48,7 +47,6 @@ public partial class BootstrapInputNumber /// /// 获得/设置 数值减少时回调委托 /// Gets or sets Callback delegate when value decreases - /// 10.2.2 /// [Parameter] public Func? OnDecrement { get; set; } @@ -56,7 +54,6 @@ public partial class BootstrapInputNumber /// /// 获得/设置 最小值 /// Gets or sets Minimum Value - /// 10.2.2 /// [Parameter] public string? Min { get; set; } @@ -64,7 +61,6 @@ public partial class BootstrapInputNumber /// /// 获得/设置 最大值 /// Gets or sets Maximum Value - /// 10.2.2 /// [Parameter] public string? Max { get; set; } @@ -72,7 +68,6 @@ public partial class BootstrapInputNumber /// /// 获得/设置 步长 默认为 null /// Gets or sets Step. Default null - /// 10.2.2 /// [Parameter] public string? Step { get; set; } @@ -80,7 +75,6 @@ public partial class BootstrapInputNumber /// /// 获得/设置 是否显示加减按钮 /// Gets or sets Whether to show increment/decrement buttons - /// 10.2.2 /// [Parameter] public bool ShowButton { get; set; } @@ -88,7 +82,6 @@ public partial class BootstrapInputNumber /// /// 获得/设置 减小数值图标 /// Gets or sets Decrement Icon - /// 10.2.2 /// [Parameter] public string? MinusIcon { get; set; } @@ -96,7 +89,6 @@ public partial class BootstrapInputNumber /// /// 获得/设置 增加数值图标 /// Gets or sets Increment Icon - /// 10.2.2 /// [Parameter] public string? PlusIcon { get; set; } @@ -171,7 +163,6 @@ protected override void OnAfterRender(bool firstRender) /// /// /// - /// protected override string? FormatParsingErrorMessage() => string.Format(CultureInfo.InvariantCulture, ParsingErrorMessage, DisplayText); /// @@ -193,7 +184,6 @@ protected override void OnAfterRender(bool firstRender) /// InternalFormat Method /// /// - /// /// protected virtual string? InternalFormat(TValue? value) => value switch { @@ -213,7 +203,6 @@ protected override void OnAfterRender(bool firstRender) /// 点击减少按钮式时回调此方法 /// Callback method when decrement button is clicked /// - /// private async Task OnClickDec() { var val = CurrentValue; @@ -250,7 +239,6 @@ private async Task OnClickDec() /// 点击增加按钮式时回调此方法 /// Callback method when increment button is clicked /// - /// private async Task OnClickInc() { var val = CurrentValue; @@ -286,7 +274,6 @@ private async Task OnClickInc() /// /// /// - /// protected override async Task OnBlur() { if (!PreviousParsingAttemptFailed) @@ -374,7 +361,6 @@ protected override async Task OnBlur() /// /// /// - /// protected override bool TryParseValueFromString(string value, [MaybeNullWhen(false)] out TValue result, out string? validationErrorMessage) { bool ret; diff --git a/src/BootstrapBlazor/Components/InputNumber/BootstrapInputNumberBase.cs b/src/BootstrapBlazor/Components/InputNumber/BootstrapInputNumberBase.cs index 1293d6e9af4..a2226189519 100644 --- a/src/BootstrapBlazor/Components/InputNumber/BootstrapInputNumberBase.cs +++ b/src/BootstrapBlazor/Components/InputNumber/BootstrapInputNumberBase.cs @@ -16,7 +16,6 @@ public class BootstrapInputNumberBase : BootstrapInputEventBase /// SetParametersAsync Method /// /// - /// public override Task SetParametersAsync(ParameterView parameters) { // Unwrap Nullable, because InputBase already deals with the Nullable aspect diff --git a/src/BootstrapBlazor/Components/IntersectionObserver/IntersectionObserver.razor.cs b/src/BootstrapBlazor/Components/IntersectionObserver/IntersectionObserver.razor.cs index ba335893976..161371086b9 100644 --- a/src/BootstrapBlazor/Components/IntersectionObserver/IntersectionObserver.razor.cs +++ b/src/BootstrapBlazor/Components/IntersectionObserver/IntersectionObserver.razor.cs @@ -16,7 +16,6 @@ public partial class IntersectionObserver /// /// Gets or sets whether使用元素视口作为根元素 Default is为 true 使用当前元素作为根元素 The element that is used as the viewport for checking visibility of the target. Must be the ancestor of the target. Defaults to the browser viewport if value is false. Default value is true /// - /// 10.2.2 /// [Parameter] public bool UseElementViewport { get; set; } = true; @@ -24,7 +23,6 @@ public partial class IntersectionObserver /// /// Margin around the root. Can have values similar to the CSS margin 属性, e.g. "10px 20px 30px 40px" (top, right, bottom, left). values can be percentages. This set of values serves to grow or shrink each side of the root element's bounding box before computing intersections. 默认s to all zeros. /// Margin around the root. Can have values similar to the CSS margin property, e.g. "10px 20px 30px 40px" (top, right, bottom, left). The values can be percentages. This set of values serves to grow or shrink each side of the root element's bounding box before computing intersections. Defaults to all zeros. - /// 10.2.2 /// [Parameter] public string? RootMargin { get; set; } @@ -32,7 +30,6 @@ public partial class IntersectionObserver /// /// Either a single number or an array of numbers which indicate at what percentage of the target's visibility the observer's 回调 should be executed. If you only want to detect when visibility passes the 50% mark, you can use a value of 0.5. If you want the 回调 to run every time visibility passes another 25%, you would specify the array [0, 0.25, 0.5, 0.75, 1]. default is 0 (meaning as soon as even one pixel is visible, the 回调 will be run). A value of 1.0 means that the threshold isn't considered passed until every pixel is visible. /// Either a single number or an array of numbers which indicate at what percentage of the target's visibility the observer's callback should be executed. If you only want to detect when visibility passes the 50% mark, you can use a value of 0.5. If you want the callback to run every time visibility passes another 25%, you would specify the array [0, 0.25, 0.5, 0.75, 1]. The default is 0 (meaning as soon as even one pixel is visible, the callback will be run). A value of 1.0 means that the threshold isn't considered passed until every pixel is visible. - /// 10.2.2 /// [Parameter] public string? Threshold { get; set; } @@ -40,7 +37,6 @@ public partial class IntersectionObserver /// /// 获得/设置 可见后是否自动取消观察 默认 true 可见后自动取消观察提高性能 /// Gets or sets 可见后whether自动取消观察 Default is true 可见后自动取消观察提高性能 - /// 10.2.2 /// [Parameter] public bool AutoUnobserveWhenIntersection { get; set; } = true; @@ -48,7 +44,6 @@ public partial class IntersectionObserver /// /// 获得/设置 不可见后是否自动取消观察 默认 false 不可见后自动取消观察提高性能 /// Gets or sets 不可见后whether自动取消观察 Default is false 不可见后自动取消观察提高性能 - /// 10.2.2 /// [Parameter] public bool AutoUnobserveWhenNotIntersection { get; set; } @@ -56,7 +51,6 @@ public partial class IntersectionObserver /// /// 获得/设置 已经交叉回调方法 /// Gets or sets 已经交叉callback method - /// 10.2.2 /// [Parameter] public Func? OnIntersecting { get; set; } @@ -64,7 +58,6 @@ public partial class IntersectionObserver /// /// 获得/设置 子组件 /// Gets or sets 子component - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } @@ -76,7 +69,6 @@ public partial class IntersectionObserver /// /// /// - /// protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id, Interop, new { UseElementViewport, RootMargin, Threshold, AutoUnobserveWhenIntersection, AutoUnobserveWhenNotIntersection, Callback = nameof(TriggerIntersecting) }); /// @@ -84,7 +76,6 @@ public partial class IntersectionObserver /// 交叉检测callback method 由 JavaScript 调用 /// /// 实例 instance - /// [JSInvokable] public async Task TriggerIntersecting(IntersectionObserverEntry entry) { diff --git a/src/BootstrapBlazor/Components/IntersectionObserver/IntersectionObserverItem.razor.cs b/src/BootstrapBlazor/Components/IntersectionObserver/IntersectionObserverItem.razor.cs index f79573048e9..f7ab42ff38b 100644 --- a/src/BootstrapBlazor/Components/IntersectionObserver/IntersectionObserverItem.razor.cs +++ b/src/BootstrapBlazor/Components/IntersectionObserver/IntersectionObserverItem.razor.cs @@ -14,7 +14,6 @@ public partial class IntersectionObserverItem /// /// 获得/设置 子组件 /// Gets or sets 子component - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } diff --git a/src/BootstrapBlazor/Components/IntersectionObserver/LoadMore.razor.cs b/src/BootstrapBlazor/Components/IntersectionObserver/LoadMore.razor.cs index eca0e133124..39474efe7db 100644 --- a/src/BootstrapBlazor/Components/IntersectionObserver/LoadMore.razor.cs +++ b/src/BootstrapBlazor/Components/IntersectionObserver/LoadMore.razor.cs @@ -16,7 +16,6 @@ public partial class LoadMore /// /// 获得/设置 触底元素触发 阈值 默认为 1 /// Gets or sets 触底元素触发 阈值 Default is为 1 - /// 10.2.2 /// [Parameter] public string Threshold { get; set; } = "1"; @@ -24,14 +23,12 @@ public partial class LoadMore /// /// 获得/设置 触底回调方法 为 true 时才触发此回调方法 /// Gets or sets 触底callback method 为 true 时才触发此callback method - /// 10.2.2 /// [Parameter] public Func? OnLoadMoreAsync { get; set; } /// /// 获得/设置 是否可以加载更多数据 默认为 true /// Gets or sets whether可以加载更多data Default is为 true - /// 10.2.2 /// [Parameter] public bool CanLoading { get; set; } = true; @@ -39,7 +36,6 @@ public partial class LoadMore /// /// 获得/设置 加载更多模板 默认 null /// Gets or sets 加载更多template Default is null - /// 10.2.2 /// [Parameter] public RenderFragment? LoadingTemplate { get; set; } @@ -47,7 +43,6 @@ public partial class LoadMore /// /// 获得/设置 没有更多数据提示信息 默认为 null 读取资源文件中的预设值 /// Gets or sets 没有更多data提示信息 Default is为 null 读取资源文件中的预设值 - /// 10.2.2 /// [Parameter] public string? NoMoreText { get; set; } @@ -55,7 +50,6 @@ public partial class LoadMore /// /// 获得/设置 没有更多数据时显示的模板 默认为 null /// Gets or sets 没有更多data时display的template Default is为 null - /// 10.2.2 /// [Parameter] public RenderFragment? NoMoreTemplate { get; set; } diff --git a/src/BootstrapBlazor/Components/Label/BootstrapLabel.razor.cs b/src/BootstrapBlazor/Components/Label/BootstrapLabel.razor.cs index 55fa45c7785..6ffa4fabd11 100644 --- a/src/BootstrapBlazor/Components/Label/BootstrapLabel.razor.cs +++ b/src/BootstrapBlazor/Components/Label/BootstrapLabel.razor.cs @@ -14,7 +14,6 @@ public partial class BootstrapLabel /// /// 获得/设置 组件值 显示文本 默认 null /// Gets or sets component值 display文本 Default is null - /// 10.2.2 /// [Parameter] [NotNull] @@ -23,7 +22,6 @@ public partial class BootstrapLabel /// /// 获得/设置 是否显示 Tooltip 多用于标签文字过长导致裁减时使用 默认 false 不显示 /// Gets or sets whetherdisplay Tooltip 多用于标签文字过长导致裁减时使用 Default is false 不display - /// 10.2.2 /// [Parameter] public bool? ShowLabelTooltip { get; set; } @@ -31,7 +29,6 @@ public partial class BootstrapLabel /// /// 获得/设置 标签宽度 默认 null 未设置使用全局设置 --bb-row-label-width /// Gets or sets 标签width Default is null 未Sets使用全局Sets --bb-row-label-width - /// 10.2.2 /// [Parameter] public int? LabelWidth { get; set; } @@ -53,7 +50,6 @@ public partial class BootstrapLabel /// /// /// - /// protected override void OnParametersSet() { base.OnParametersSet(); diff --git a/src/BootstrapBlazor/Components/Label/BootstrapLabelSetting.razor.cs b/src/BootstrapBlazor/Components/Label/BootstrapLabelSetting.razor.cs index 073c1fa827b..3447e5f4d40 100644 --- a/src/BootstrapBlazor/Components/Label/BootstrapLabelSetting.razor.cs +++ b/src/BootstrapBlazor/Components/Label/BootstrapLabelSetting.razor.cs @@ -14,7 +14,6 @@ public partial class BootstrapLabelSetting /// /// 获得/设置 子组件 /// Gets or sets 子component - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } @@ -22,7 +21,6 @@ public partial class BootstrapLabelSetting /// /// 获得/设置 标签宽度 默认 null 未设置使用全局设置 --bb-row-label-width /// Gets or sets 标签width Default is null 未Sets使用全局Sets --bb-row-label-width - /// 10.2.2 /// [Parameter] public int? LabelWidth { get; set; } diff --git a/src/BootstrapBlazor/Components/Layout/Layout.razor.cs b/src/BootstrapBlazor/Components/Layout/Layout.razor.cs index ebac7b478c5..ce3c69f180e 100644 --- a/src/BootstrapBlazor/Components/Layout/Layout.razor.cs +++ b/src/BootstrapBlazor/Components/Layout/Layout.razor.cs @@ -22,7 +22,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 Tab 标签头文本本地化回调方法 /// Gets or sets Localization callback method for Tab header text - /// 10.2.2 /// [Parameter] public Func? OnTabHeaderTextLocalizer { get; set; } @@ -30,7 +29,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 the tab 样式. 默认为 . /// Gets or sets the tab style. Default is . - /// 10.2.2 /// [Parameter] public TabStyle TabStyle { get; set; } @@ -38,7 +36,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 是否 show the toolbar. 默认为 false. /// Gets or sets whether show the toolbar. Default is false. - /// 10.2.2 /// [Parameter] public bool ShowToolbar { get; set; } @@ -46,7 +43,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 the 模板 of the toolbar 按钮. 默认为 null. /// Gets or sets the template of the toolbar button. Default is null. - /// 10.2.2 /// [Parameter] public RenderFragment? ToolbarTemplate { get; set; } @@ -54,7 +50,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 是否 show the full screen 按钮. 默认为 true. /// Gets or sets whether show the full screen button. Default is true. - /// 10.2.2 /// [Parameter] public bool ShowFullscreenToolbarButton { get; set; } = true; @@ -62,7 +57,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 the full screen toolbar 按钮 图标 string. 默认为 null. /// Gets or sets the full screen toolbar button icon string. Default is null. - /// 10.2.2 /// [Parameter] public string? FullscreenToolbarButtonIcon { get; set; } @@ -70,7 +64,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 the full screen toolbar 按钮 tooltip string. 默认为 null. /// Gets or sets the full screen toolbar button tooltip string. Default is null. - /// 10.2.2 /// [Parameter] public string? FullscreenToolbarTooltipText { get; set; } @@ -78,7 +71,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 是否 show the full screen 按钮. 默认为 true. /// Gets or sets whether show the full screen button. Default is true. - /// 10.2.2 /// [Parameter] public bool ShowRefreshToolbarButton { get; set; } = true; @@ -86,7 +78,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 the refresh toolbar 按钮 图标 string. 默认为 null. /// Gets or sets the refresh toolbar button icon string. Default is null. - /// 10.2.2 /// [Parameter] public string? RefreshToolbarButtonIcon { get; set; } @@ -94,7 +85,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 the refresh toolbar 按钮 tooltip string. 默认为 null. /// Gets or sets the refresh toolbar button tooltip string. Default is null. - /// 10.2.2 /// [Parameter] public string? RefreshToolbarTooltipText { get; set; } @@ -102,7 +92,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 the refresh toolbar 按钮 click event 回调. 默认为 null. /// Gets or sets the refresh toolbar button click event callback. Default is null. - /// 10.2.2 /// [Parameter] public Func? OnToolbarRefreshCallback { get; set; } @@ -110,7 +99,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 关闭标签页前回调方法 /// Gets or sets Callback method before closing tab - /// 10.2.2 /// /// /// 返回 false 时不关闭 标签页 @@ -122,7 +110,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 侧边栏状态 /// Gets or sets Sidebar status - /// 10.2.2 /// [Parameter] public bool IsCollapsed { get; set; } @@ -130,7 +117,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 侧边栏状态 /// Gets or sets Sidebar status - /// 10.2.2 /// [Parameter] public EventCallback IsCollapsedChanged { get; set; } @@ -138,7 +124,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 菜单手风琴效果 /// Gets or sets Menu Accordion effect - /// 10.2.2 /// [Parameter] public bool IsAccordion { get; set; } @@ -146,7 +131,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 收起展开按钮模板 /// Gets or sets Collapse/Expand button template - /// 10.2.2 /// [Parameter] public RenderFragment? CollapseBarTemplate { get; set; } @@ -154,7 +138,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 Header 模板 /// Gets or sets Header Template - /// 10.2.2 /// [Parameter] public RenderFragment? Header { get; set; } @@ -162,7 +145,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 Footer 模板 /// Gets or sets Footer Template - /// 10.2.2 /// [Parameter] public RenderFragment? Footer { get; set; } @@ -170,7 +152,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 MenuBar 图标 /// Gets or sets MenuBar Icon - /// 10.2.2 /// [Parameter] public string? MenuBarIcon { get; set; } @@ -178,7 +159,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 Side 模板 /// Gets or sets Side Template - /// 10.2.2 /// [Parameter] public RenderFragment? Side { get; set; } @@ -186,7 +166,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 是否显示分割栏 默认 false 不显示 仅在 左右布局时有效 /// Gets or sets Whether to show split bar. Default false Effective only in Left-Right Layout - /// 10.2.2 /// [Parameter] public bool ShowSplitBar { get; set; } @@ -194,7 +173,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 是否显示分割栏 默认 false 不显示 仅在 左右布局时有效 /// Gets or sets Whether to show split bar. Default false Effective only in Left-Right Layout - /// 10.2.2 /// [Parameter] [ExcludeFromCodeCoverage] @@ -204,7 +182,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 侧边栏最小宽度 默认 null 未设置 /// Gets or sets Sidebar minimum width. Default null - /// 10.2.2 /// [Parameter] public int? SidebarMinWidth { get; set; } @@ -212,7 +189,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 侧边栏最大宽度 默认 null 未设置 /// Gets or sets Sidebar maximum width. Default null - /// 10.2.2 /// [Parameter] public int? SidebarMaxWidth { get; set; } @@ -220,7 +196,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 NotAuthorized 模板 默认 null NET6.0/7.0 有效 /// Gets or sets NotAuthorized Template. Default null. Valid in NET6.0/7.0 - /// 10.2.2 /// [Parameter] public RenderFragment? NotAuthorized { get; set; } @@ -228,7 +203,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 NotFound 模板 默认 null NET6.0/7.0 有效 /// Gets or sets NotFound Template. Default null. Valid in NET6.0/7.0 - /// 10.2.2 /// [Parameter] public RenderFragment? NotFound { get; set; } @@ -236,7 +210,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 NotFound 标签文本 默认 null NET6.0/7.0 有效 /// Gets or sets NotFound Tab Text. Default null. Valid in NET6.0/7.0 - /// 10.2.2 /// [Parameter] [NotNull] @@ -245,7 +218,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 侧边栏宽度,支持百分比,设置 0 时关闭宽度功能 默认值 300 /// Gets or sets Sidebar width. Supports percentage. Disable width function when set to 0. Default 300 - /// 10.2.2 /// [Parameter] public string? SideWidth { get; set; } @@ -253,7 +225,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 Main 模板 /// Gets or sets Main Template - /// 10.2.2 /// [Parameter] [NotNull] @@ -262,7 +233,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 侧边栏是否占满整个左侧 默认为 false /// Gets or sets Whether the sidebar fills the entire left side. Default false - /// 10.2.2 /// [Parameter] public bool IsFullSide { get; set; } @@ -270,7 +240,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 是否为整页面布局 默认为 false /// Gets or sets Whether it is a full page layout. Default false - /// 10.2.2 /// /// /// 为真时增加 is-page 样式 @@ -282,7 +251,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 侧边栏菜单集合 /// Gets or sets Sidebar Menu Collection - /// 10.2.2 /// [Parameter] public IEnumerable? Menus { get; set; } @@ -290,7 +258,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 是否右侧使用 Tab 组件 默认为 false 不使用 /// Gets or sets Whether to use Tab component on the right side. Default false - /// 10.2.2 /// [Parameter] public bool UseTabSet { get; set; } @@ -298,7 +265,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 是否固定多标签 Header 默认 false /// Gets or sets Whether to fix multi-tab Header. Default false - /// 10.2.2 /// [Parameter] public bool IsFixedTabHeader { get; set; } @@ -306,7 +272,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 是否仅渲染 Active 标签 /// Gets or sets Whether to render only Active Tab - /// 10.2.2 /// [Parameter] public bool IsOnlyRenderActiveTab { get; set; } @@ -314,7 +279,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 是否允许拖动标签页 默认 true /// Gets or sets Whether to allow dragging tabs. Default true - /// 10.2.2 /// [Parameter] public bool AllowDragTab { get; set; } = true; @@ -322,7 +286,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 是否固定 Footer 组件 /// Gets or sets Whether to fix Footer component - /// 10.2.2 /// [Parameter] public bool IsFixedFooter { get; set; } @@ -330,7 +293,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 是否固定 Header 组件 /// Gets or sets Whether to fix Header component - /// 10.2.2 /// [Parameter] public bool IsFixedHeader { get; set; } @@ -338,7 +300,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 是否显示收缩展开 Bar 默认 false /// Gets or sets Whether to show Collapse/Expand Bar. Default false - /// 10.2.2 /// [Parameter] public bool ShowCollapseBar { get; set; } @@ -346,7 +307,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 是否显示 Footer 模板 默认 false /// Gets or sets Whether to show Footer Template. Default false - /// 10.2.2 /// [Parameter] public bool ShowFooter { get; set; } @@ -354,7 +314,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 是否显示返回顶端按钮 默认为 false 不显示 /// Gets or sets Whether to show "Back to Top" button. Default false - /// 10.2.2 /// [Parameter] public bool ShowGotoTop { get; set; } @@ -362,7 +321,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 点击菜单时回调委托方法 默认为 null /// Gets or sets Callback delegate method when menu is clicked. Default null - /// 10.2.2 /// [Parameter] public Func? OnClickMenu { get; set; } @@ -370,7 +328,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 收缩展开回调委托 /// Gets or sets Collapse/Expand Callback Delegate - /// 10.2.2 /// [Parameter] public Func? OnCollapsed { get; set; } @@ -378,7 +335,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 默认标签页 关闭所有标签页时自动打开此地址 默认 null 未设置 /// Gets or sets Default Tab. Automatically open this address when closing all tabs. Default null - /// 10.2.2 /// [Parameter] public string TabDefaultUrl { get; set; } = ""; @@ -386,7 +342,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 标签是否显示关闭按钮 默认 true /// Gets or sets Whether to show close button on tab. Default true - /// 10.2.2 /// [Parameter] public bool ShowTabItemClose { get; set; } = true; @@ -394,7 +349,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 标签是否显示扩展按钮 默认 true /// Gets or sets Whether to show extend buttons on tab. Default true - /// 10.2.2 /// [Parameter] public bool ShowTabExtendButtons { get; set; } = true; @@ -402,7 +356,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 点击标签页是否切换地址栏 默认 true /// Gets or sets Whether to switch address bar when clicking tab. Default true - /// 10.2.2 /// [Parameter] public bool ClickTabToNavigation { get; set; } = true; @@ -410,7 +363,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 授权回调方法多用于权限控制 /// Gets or sets Authorization callback method, mostly used for permission control - /// 10.2.2 /// [Parameter] public Func>? OnAuthorizing { get; set; } @@ -418,7 +370,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 未授权导航地址 默认为 "/Account/Login" Cookie 模式登录页 /// Gets or sets Unauthorized navigation address. Default "/Account/Login" Cookie mode login page - /// 10.2.2 /// [Parameter] public string NotAuthorizeUrl { get; set; } = "/Account/Login"; @@ -426,7 +377,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 是否 enable tab context menu. 默认为 false. /// Gets or sets whether enable tab context menu. Default is false. - /// 10.2.2 /// [Parameter] public bool ShowTabContextMenu { get; set; } @@ -434,7 +384,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 the 模板 of before tab context menu. 默认为 null. /// Gets or sets the template of before tab context menu. Default is null. - /// 10.2.2 /// [Parameter] public RenderFragment? BeforeTabContextMenuTemplate { get; set; } @@ -442,7 +391,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 the 模板 of tab context menu. 默认为 null. /// Gets or sets the template of tab context menu. Default is null. - /// 10.2.2 /// [Parameter] public RenderFragment? TabContextMenuTemplate { get; set; } @@ -450,7 +398,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 the 图标 of tab item context menu refresh 按钮. 默认为 null. /// Gets or sets the icon of tab item context menu refresh button. Default is null. - /// 10.2.2 /// [Parameter] public string? TabContextMenuRefreshIcon { get; set; } @@ -458,7 +405,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 the 图标 of tab item context menu close 按钮. 默认为 null. /// Gets or sets the icon of tab item context menu close button. Default is null. - /// 10.2.2 /// [Parameter] public string? TabContextMenuCloseIcon { get; set; } @@ -466,7 +412,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 the 图标 of tab item context menu close other 按钮. 默认为 null. /// Gets or sets the icon of tab item context menu close other button. Default is null. - /// 10.2.2 /// [Parameter] public string? TabContextMenuCloseOtherIcon { get; set; } @@ -474,7 +419,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 the 图标 of tab item context menu close all 按钮. 默认为 null. /// Gets or sets the icon of tab item context menu close all button. Default is null. - /// 10.2.2 /// [Parameter] public string? TabContextMenuCloseAllIcon { get; set; } @@ -482,7 +426,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 before popup context menu 回调. 默认为 null. /// Gets or sets before popup context menu callback. Default is null. - /// 10.2.2 /// [Parameter] public Func>? OnBeforeShowContextMenu { get; set; } @@ -490,7 +433,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 是否 show the tab in header. 默认为 false. /// Gets or sets whether show the tab in header. Default is false. - /// 10.2.2 /// [Parameter] public bool ShowTabInHeader { get; set; } @@ -498,7 +440,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 是否跳过认证逻辑 默认 false /// Gets or sets Whether to skip authentication logic. Default false - /// 10.2.2 /// [Parameter] public bool SkipAuthenticate { get; set; } @@ -574,7 +515,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 排除地址支持通配符 /// Gets or sets Exclude URLs support wildcards - /// 10.2.2 /// [Parameter] public IEnumerable? ExcludeUrls { get; set; } @@ -582,7 +522,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 Gets or sets a collection of additional assemblies that should be searched for components that can match URIs. /// Gets or sets Gets or sets a collection of additional assemblies that should be searched for components that can match URIs. - /// 10.2.2 /// [Parameter] public IEnumerable? AdditionalAssemblies { get; set; } @@ -590,7 +529,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 鼠标悬停提示文字信息 /// Gets or sets Tooltip Text - /// 10.2.2 /// [Parameter] public string? TooltipText { get; set; } @@ -598,7 +536,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 更新回调方法 默认 null /// Gets or sets Update callback method. Default null - /// 10.2.2 /// [Parameter] public Func? OnUpdateAsync { get; set; } @@ -606,7 +543,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 AuthorizeRouteView 参数 /// Gets or sets AuthorizeRouteView Parameter - /// 10.2.2 /// [Parameter] public object? Resource { get; set; } @@ -614,7 +550,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 是否开启全局异常捕获 默认 null 使用 设置值 /// Gets or sets Whether to enable global exception capture. Default null. Use value. - /// 10.2.2 /// [Parameter] public bool? EnableErrorLogger { get; set; } @@ -622,7 +557,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 是否记录异常到 默认 null 使用 设置值 /// Gets or sets Whether to log exceptions to . Default null. Use value. - /// 10.2.2 /// [Parameter] public bool? EnableErrorLoggerILogger { get; set; } @@ -630,7 +564,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 是否显示 Error 提示弹窗 默认 null 使用 设置值 /// Gets or sets Whether to show Error Toast. Default null. Use value. - /// 10.2.2 /// [Parameter] public bool? ShowErrorLoggerToast { get; set; } @@ -638,7 +571,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 错误日志 弹窗标题 默认 null /// Gets or sets Error Logger Title. Default null. - /// 10.2.2 /// [Parameter] public string? ErrorLoggerToastTitle { get; set; } @@ -646,7 +578,6 @@ public partial class Layout : IHandlerException, ITabHeader /// /// 获得/设置 自定义错误处理回调方法 /// Gets or sets Custom error handling callback method - /// 10.2.2 /// [Parameter] public Func? OnErrorHandleAsync { get; set; } @@ -699,7 +630,6 @@ protected override void OnInitialized() /// /// /// - /// protected override async Task OnInitializedAsync() { await base.OnInitializedAsync(); @@ -743,14 +673,12 @@ protected override void OnParametersSet() /// /// /// - /// protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id, Interop, nameof(SetCollapsed)); /// /// HandlerMain 方法 /// HandlerMain Method /// - /// protected virtual RenderFragment HandlerMain() => builder => { builder.AddContent(0, _errorContent ?? Main); @@ -761,7 +689,6 @@ protected virtual RenderFragment HandlerMain() => builder => /// 设置侧边栏收缩方法 客户端监控 window.onResize 事件回调此方法 /// Set Sidebar Collapse Method. Client monitors window.onResize event to call this method /// - /// [JSInvokable] public void SetCollapsed(int width) { @@ -773,7 +700,6 @@ public void SetCollapsed(int width) /// Call Update Callback Method /// /// - /// public async Task UpdateAsync(string key) { if (OnUpdateAsync != null) @@ -801,7 +727,6 @@ private void Navigation_LocationChanged(object? sender, LocationChangedEventArgs /// 点击菜单时回调此方法 /// Callback method when menu is clicked /// - /// private async Task ClickMenu(MenuItem item) { // 小屏幕时生效 @@ -885,14 +810,12 @@ public void Render(RenderFragment renderFragment) /// /// /// - /// public string GetId() => $"{Id}_tab_header"; /// /// /// /// - /// protected override async ValueTask DisposeAsync(bool disposing) { await base.DisposeAsync(disposing); diff --git a/src/BootstrapBlazor/Components/Layout/LayoutHeader.cs b/src/BootstrapBlazor/Components/Layout/LayoutHeader.cs index d91757e3b24..77ce7565501 100644 --- a/src/BootstrapBlazor/Components/Layout/LayoutHeader.cs +++ b/src/BootstrapBlazor/Components/Layout/LayoutHeader.cs @@ -18,7 +18,6 @@ void IComponent.Attach(RenderHandle renderHandle) /// /// /// - /// Task IComponent.SetParametersAsync(ParameterView parameters) { return Task.CompletedTask; diff --git a/src/BootstrapBlazor/Components/Layout/LayoutSplitBar.razor.cs b/src/BootstrapBlazor/Components/Layout/LayoutSplitBar.razor.cs index 24420e016a1..6da9b41c676 100644 --- a/src/BootstrapBlazor/Components/Layout/LayoutSplitBar.razor.cs +++ b/src/BootstrapBlazor/Components/Layout/LayoutSplitBar.razor.cs @@ -16,7 +16,6 @@ public partial class LayoutSplitBar /// Gets or sets Container Selector. Default null /// 组件拖动后设置容器 style="--bb-layout-sidebar-width: 200px;" 用于宽度调整 /// Set container style="--bb-layout-sidebar-width: 200px;" after dragging component for width adjustment - /// 10.2.2 /// [Parameter] public string? ContainerSelector { get; set; } @@ -24,7 +23,6 @@ public partial class LayoutSplitBar /// /// 获得/设置 最小宽度 默认 null 未设置 /// Gets or sets Minimum Width. Default null - /// 10.2.2 /// [Parameter] public int? Min { get; set; } @@ -32,7 +30,6 @@ public partial class LayoutSplitBar /// /// 获得/设置 最大宽度 默认 null 未设置 /// Gets or sets Maximum Width. Default null - /// 10.2.2 /// [Parameter] public int? Max { get; set; } diff --git a/src/BootstrapBlazor/Components/LazyLoad/LazyLoad.cs b/src/BootstrapBlazor/Components/LazyLoad/LazyLoad.cs index b85ce997940..3b10160d18d 100644 --- a/src/BootstrapBlazor/Components/LazyLoad/LazyLoad.cs +++ b/src/BootstrapBlazor/Components/LazyLoad/LazyLoad.cs @@ -16,7 +16,6 @@ public partial class LazyLoad : ComponentBase /// /// 获得/设置 子组件 /// Gets or sets 子component - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } @@ -24,7 +23,6 @@ public partial class LazyLoad : ComponentBase /// /// 获得/设置 组件加载条件回调方法 默认 null 未设置 一旦返回 true 后此回调将不再调用 /// Gets or sets component加载条件callback method Default is null 未Sets 一旦返回 true 后此回调将不再调用 - /// 10.2.2 /// [Parameter] [NotNull] @@ -33,7 +31,6 @@ public partial class LazyLoad : ComponentBase /// /// 获得/设置 首次显示时回调方法 可用于组件初始化数据 仅触发一次 /// Gets or sets 首次display时callback method 可用于component初始化data 仅触发一次 - /// 10.2.2 /// [Parameter] public Func? OnFirstLoadCallbackAsync { get; set; } diff --git a/src/BootstrapBlazor/Components/Light/Light.razor.cs b/src/BootstrapBlazor/Components/Light/Light.razor.cs index 5b30794fe17..6ebdfae501a 100644 --- a/src/BootstrapBlazor/Components/Light/Light.razor.cs +++ b/src/BootstrapBlazor/Components/Light/Light.razor.cs @@ -26,7 +26,6 @@ public partial class Light /// /// 获得/设置 组件是否闪烁 默认为 false 不闪烁 /// Gets or sets Whether the component is flashing. Default is false (No flash) - /// 10.2.2 /// [Parameter] public bool IsFlash { get; set; } @@ -34,7 +33,6 @@ public partial class Light /// /// 获得/设置 是否为平面图形 默认 false /// Gets or sets Whether it is a flat graphic. Default false - /// 10.2.2 /// [Parameter] public bool IsFlat { get; set; } @@ -42,7 +40,6 @@ public partial class Light /// /// 获得/设置 指示灯颜色 默认为 Success 绿色 /// Gets or sets Indicator Color. Default Success (Green) - /// 10.2.2 /// [Parameter] public Color Color { get; set; } = Color.Success; diff --git a/src/BootstrapBlazor/Components/ListGroup/ListGroup.razor.cs b/src/BootstrapBlazor/Components/ListGroup/ListGroup.razor.cs index fad4fb520bb..104de2d41dc 100644 --- a/src/BootstrapBlazor/Components/ListGroup/ListGroup.razor.cs +++ b/src/BootstrapBlazor/Components/ListGroup/ListGroup.razor.cs @@ -14,7 +14,6 @@ public partial class ListGroup /// /// 获得/设置 数据源集合 /// Gets or sets Data source collection - /// 10.2.2 /// [Parameter] [NotNull] @@ -26,7 +25,6 @@ public partial class ListGroup /// /// 获得/设置 Header 模板 默认 null /// Gets or sets Header Template. Default null - /// 10.2.2 /// [Parameter] public RenderFragment? HeaderTemplate { get; set; } @@ -34,7 +32,6 @@ public partial class ListGroup /// /// 获得/设置 Header 文字 默认 null /// Gets or sets Header Text. Default null - /// 10.2.2 /// [Parameter] public string? HeaderText { get; set; } @@ -42,7 +39,6 @@ public partial class ListGroup /// /// 获得/设置 Item 模板 默认 null /// Gets or sets Item Template. Default null - /// 10.2.2 /// [Parameter] public RenderFragment? ItemTemplate { get; set; } @@ -50,7 +46,6 @@ public partial class ListGroup /// /// 获得/设置 点击 List 项目回调方法 /// Gets or sets Callback method when List item is clicked - /// 10.2.2 /// [Parameter] public Func? OnClickItem { get; set; } @@ -58,7 +53,6 @@ public partial class ListGroup /// /// 获得/设置 双击 List 项目回调方法 /// Gets or sets Callback method when List item is double-clicked - /// 10.2.2 /// [Parameter] public Func? OnDoubleClickItem { get; set; } @@ -66,7 +60,6 @@ public partial class ListGroup /// /// 获得/设置 获得条目显示文本内容回调方法 /// Gets or sets Callback method to get item display text - /// 10.2.2 /// [Parameter] public Func? GetItemDisplayText { get; set; } diff --git a/src/BootstrapBlazor/Components/ListView/ListView.razor.cs b/src/BootstrapBlazor/Components/ListView/ListView.razor.cs index 1db934e732d..6c822937192 100644 --- a/src/BootstrapBlazor/Components/ListView/ListView.razor.cs +++ b/src/BootstrapBlazor/Components/ListView/ListView.razor.cs @@ -23,7 +23,6 @@ public partial class ListView : BootstrapComponentBase /// /// 获得/设置 CardHeader /// Gets or sets Card Header - /// 10.2.2 /// [Parameter] public RenderFragment? HeaderTemplate { get; set; } @@ -31,7 +30,6 @@ public partial class ListView : BootstrapComponentBase /// /// 获得/设置 获得 值 默认 null 使用分组 Key.ToString() 方法获取 /// Gets or sets Get value. Default null. Use Group Key.ToString() method to get - /// 10.2.2 /// [Parameter] public Func? GroupHeaderTextCallback { get; set; } @@ -39,7 +37,6 @@ public partial class ListView : BootstrapComponentBase /// /// 获得/设置 组排序回调方法 默认 null 使用内置 /// Gets or sets Group sort callback method. Default null. Use built-in - /// 10.2.2 /// [Parameter] public Func>, IOrderedEnumerable>>? GroupOrderCallback { get; set; } @@ -47,7 +44,6 @@ public partial class ListView : BootstrapComponentBase /// /// 获得/设置 组内项目排序回调方法 默认 null /// Gets or sets Group item sort callback method. Default null - /// 10.2.2 /// [Parameter] public Func, IOrderedEnumerable>? GroupItemOrderCallback { get; set; } @@ -55,7 +51,6 @@ public partial class ListView : BootstrapComponentBase /// /// 获得/设置 BodyTemplate /// Gets or sets Body Template - /// 10.2.2 /// [Parameter] [EditorRequired] @@ -64,7 +59,6 @@ public partial class ListView : BootstrapComponentBase /// /// 获得/设置 FooterTemplate 默认 null 未设置 设置值后 参数不起作用,请自行实现分页功能 /// Gets or sets Footer Template. Default null. If set, parameter will not work, please implement pagination manually - /// 10.2.2 /// [Parameter] public RenderFragment? FooterTemplate { get; set; } @@ -72,7 +66,6 @@ public partial class ListView : BootstrapComponentBase /// /// 获得/设置 数据源 /// Gets or sets Data Source - /// 10.2.2 /// [Parameter] public IEnumerable? Items { get; set; } @@ -80,7 +73,6 @@ public partial class ListView : BootstrapComponentBase /// /// 获得/设置 是否分页 默认为 false 不分页 设置 时分页功能自动被禁用 /// Gets or sets Whether to page. Default false. Paging is automatically disabled when is set - /// 10.2.2 /// [Parameter] [Obsolete("已弃用,请使用 IsPagination 代替。Deprecated, use IsPagination instead")] @@ -90,7 +82,6 @@ public partial class ListView : BootstrapComponentBase /// /// 获得/设置 是否分页 默认为 false 不分页 设置 时分页功能自动被禁用 /// Gets or sets Whether to page. Default false. Paging is automatically disabled when is set - /// 10.2.2 /// [Parameter] public bool IsPagination { get; set; } @@ -98,7 +89,6 @@ public partial class ListView : BootstrapComponentBase /// /// 获得/设置 分组 Lambda 表达式 默认 null /// Gets or sets Grouping Lambda Expression. Default null - /// 10.2.2 /// [Parameter] public Func? GroupName { get; set; } @@ -106,7 +96,6 @@ public partial class ListView : BootstrapComponentBase /// /// 获得/设置 是否可折叠 默认 false 需要开启分组设置 /// Gets or sets Whether it is collapsible. Default false. Need to enable grouping setting - /// 10.2.2 /// [Parameter] public bool Collapsible { get; set; } @@ -114,7 +103,6 @@ public partial class ListView : BootstrapComponentBase /// /// 获得/设置 是否手风琴效果 默认 false 需要开启可收缩设置 /// Gets or sets Accordion effect. Default false. Need to enable collapsible setting - /// 10.2.2 /// [Parameter] public bool IsAccordion { get; set; } @@ -122,7 +110,6 @@ public partial class ListView : BootstrapComponentBase /// /// 获得/设置 CollapseItem 展开收缩时回调方法 默认 false 需要开启可收缩设置 /// Gets or sets Callback method when CollapseItem is expanded/collapsed. Default false. Need to enable collapsible setting - /// 10.2.2 /// [Parameter] public Func? OnCollapseChanged { get; set; } @@ -130,7 +117,6 @@ public partial class ListView : BootstrapComponentBase /// /// 获得/设置 首次渲染是否收缩回调委托 /// Gets or sets Callback delegate for whether to collapse on first render - /// 10.2.2 /// [Parameter] public Func? CollapsedGroupCallback { get; set; } @@ -138,7 +124,6 @@ public partial class ListView : BootstrapComponentBase /// /// 异步查询回调方法 /// Async query callback method - /// 10.2.2 /// [Parameter] public Func>>? OnQueryAsync { get; set; } @@ -146,7 +131,6 @@ public partial class ListView : BootstrapComponentBase /// /// 获得/设置 ListView组件元素点击时回调委托 /// Gets or sets Callback delegate when ListView component element is clicked - /// 10.2.2 /// [Parameter] public Func? OnListViewItemClick { get; set; } @@ -154,7 +138,6 @@ public partial class ListView : BootstrapComponentBase /// /// 获得/设置 是否为竖向排列 默认为 false /// Gets or sets Whether to arrange vertically. Default false - /// 10.2.2 /// [Parameter] public bool IsVertical { get; set; } @@ -162,7 +145,6 @@ public partial class ListView : BootstrapComponentBase /// /// 获得/设置 每页数据数量 默认 20 /// Gets or sets Number of items per page. Default 20 - /// 10.2.2 /// [Parameter] public int PageItems { get; set; } = 20; @@ -170,7 +152,6 @@ public partial class ListView : BootstrapComponentBase /// /// 获得/设置 组件高度 默认 null 未设置高度 如:50% 100px 10rem 10vh 等 /// Gets or sets Component height. Default null. Not set. e.g. 50% 100px 10rem 10vh etc. - /// 10.2.2 /// [Parameter] public string? Height { get; set; } @@ -178,7 +159,6 @@ public partial class ListView : BootstrapComponentBase /// /// 获得/设置 无数据时模板 默认 null 未设置 /// Gets or sets Template when no data. Default null - /// 10.2.2 /// [Parameter] public RenderFragment? EmptyTemplate { get; set; } @@ -186,7 +166,6 @@ public partial class ListView : BootstrapComponentBase /// /// 获得/设置 无数据时显示文字 默认 null 未设置使用资源文件设置文字 /// Gets or sets Text to display when no data. Default null. Use resource file to set text if not set - /// 10.2.2 /// [Parameter] public string? EmptyText { get; set; } @@ -238,7 +217,6 @@ protected override async Task OnParametersSetAsync() /// 查询按钮调用此方法 /// Call this method when query button is clicked /// - /// public async Task QueryAsync(int pageIndex = 1, bool triggerByPagination = false) { _pageIndex = pageIndex; @@ -277,7 +255,6 @@ protected async Task QueryData(bool triggerByPagination = false) /// Click Element Event /// /// - /// protected async Task OnClick(TItem item) { if (OnListViewItemClick != null) diff --git a/src/BootstrapBlazor/Components/Logout/Logout.razor.cs b/src/BootstrapBlazor/Components/Logout/Logout.razor.cs index d05a9515633..d656b093751 100644 --- a/src/BootstrapBlazor/Components/Logout/Logout.razor.cs +++ b/src/BootstrapBlazor/Components/Logout/Logout.razor.cs @@ -20,7 +20,6 @@ public partial class Logout /// /// 获得/设置 组件当前用户头像 /// Gets or sets component当前用户头像 - /// 10.2.2 /// [Parameter] public string? ImageUrl { get; set; } @@ -28,7 +27,6 @@ public partial class Logout /// /// 获得/设置 组件当前用户显示名称 /// Gets or sets component当前用户display名称 - /// 10.2.2 /// [Parameter] public string? DisplayName { get; set; } @@ -36,7 +34,6 @@ public partial class Logout /// /// 获得/设置 组件当前用户显示名称前置文本 默认 欢迎 /// Gets or sets component当前用户display名称前置文本 Default is 欢迎 - /// 10.2.2 /// [Parameter] public string? PrefixDisplayNameText { get; set; } @@ -44,7 +41,6 @@ public partial class Logout /// /// 获得/设置 组件当前用户登录账号 /// Gets or sets component当前用户登录账号 - /// 10.2.2 /// [Parameter] public string? UserName { get; set; } @@ -52,7 +48,6 @@ public partial class Logout /// /// 获得/设置 子组件 /// Gets or sets 子component - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } @@ -60,7 +55,6 @@ public partial class Logout /// /// 获得/设置 是否显示用户名 默认 true 显示 /// Gets or sets whetherdisplay用户名 Default is true display - /// 10.2.2 /// [Parameter] public bool ShowUserName { get; set; } = true; @@ -68,7 +62,6 @@ public partial class Logout /// /// 获得/设置 组件当前用户登录账号前置文本 默认 当前账号 /// Gets or sets component当前用户登录账号前置文本 Default is 当前账号 - /// 10.2.2 /// [Parameter] public string? PrefixUserNameText { get; set; } @@ -76,7 +69,6 @@ public partial class Logout /// /// 获得/设置 组件 HeaderTemplate /// Gets or sets component HeaderTemplate - /// 10.2.2 /// [Parameter] public RenderFragment? HeaderTemplate { get; set; } @@ -84,7 +76,6 @@ public partial class Logout /// /// 获得/设置 组件 LinkTemplate /// Gets or sets component LinkTemplate - /// 10.2.2 /// [Parameter] public RenderFragment? LinkTemplate { get; set; } @@ -92,7 +83,6 @@ public partial class Logout /// /// 获得/设置 the avatar border radius. 默认为 null. /// Gets or sets the avatar border radius. Default is null. - /// 10.2.2 /// [Parameter] public string? AvatarRadius { get; set; } diff --git a/src/BootstrapBlazor/Components/Logout/LogoutLink.razor.cs b/src/BootstrapBlazor/Components/Logout/LogoutLink.razor.cs index 553ac829a3a..2c8f77a21fa 100644 --- a/src/BootstrapBlazor/Components/Logout/LogoutLink.razor.cs +++ b/src/BootstrapBlazor/Components/Logout/LogoutLink.razor.cs @@ -20,7 +20,6 @@ public partial class LogoutLink /// /// 获得/设置 图标 /// Gets or sets icon - /// 10.2.2 /// [Parameter] public string? Icon { get; set; } @@ -28,7 +27,6 @@ public partial class LogoutLink /// /// 获得/设置 按钮文字 /// Gets or sets button文字 - /// 10.2.2 /// [Parameter] [NotNull] @@ -37,7 +35,6 @@ public partial class LogoutLink /// /// 获得/设置 按钮文字 /// Gets or sets button文字 - /// 10.2.2 /// [Parameter] [NotNull] diff --git a/src/BootstrapBlazor/Components/Marquee/Marquee.razor.cs b/src/BootstrapBlazor/Components/Marquee/Marquee.razor.cs index f9c8e689b46..b3762ac1397 100644 --- a/src/BootstrapBlazor/Components/Marquee/Marquee.razor.cs +++ b/src/BootstrapBlazor/Components/Marquee/Marquee.razor.cs @@ -14,7 +14,6 @@ public partial class Marquee /// /// 获得/设置 组件值 显示文本 默认 Empty /// Gets or sets component值 display文本 Default is Empty - /// 10.2.2 /// [Parameter] public string? Text { get; set; } @@ -24,7 +23,6 @@ public partial class Marquee /// /// Gets or sets component值 文本color Default is #000 支持16进制和color名称 /// - /// 10.2.2 /// [Parameter] public string Color { get; set; } = "#000"; @@ -34,7 +32,6 @@ public partial class Marquee /// /// Gets or sets component值 背景color Default is #fff 支持16进制和color名称 /// - /// 10.2.2 /// [Parameter] public string BackgroundColor { get; set; } = "#fff"; @@ -42,7 +39,6 @@ public partial class Marquee /// /// 获得/设置 组件值 文本大小 默认 72px /// Gets or sets component值 文本大小 Default is 72px - /// 10.2.2 /// [Parameter] public int FontSize { get; set; } = 72; @@ -52,7 +48,6 @@ public partial class Marquee /// /// Gets or sets component值 动画时间 Default is 14s 值越小滚动越快 /// - /// 10.2.2 /// [Parameter] public int Duration { get; set; } = 14; @@ -60,7 +55,6 @@ public partial class Marquee /// /// 获得/设置 组件值 滚动方向 默认 LeftToRight /// Gets or sets component值 滚动方向 Default is LeftToRight - /// 10.2.2 /// [Parameter] public MarqueeDirection Direction { get; set; } diff --git a/src/BootstrapBlazor/Components/Mask/Mask.razor.cs b/src/BootstrapBlazor/Components/Mask/Mask.razor.cs index 516b800f8d9..52febe229df 100644 --- a/src/BootstrapBlazor/Components/Mask/Mask.razor.cs +++ b/src/BootstrapBlazor/Components/Mask/Mask.razor.cs @@ -37,7 +37,6 @@ protected override void OnInitialized() /// /// /// - /// protected override async Task OnAfterRenderAsync(bool firstRender) { await base.OnAfterRenderAsync(firstRender); diff --git a/src/BootstrapBlazor/Components/Mask/MaskService.cs b/src/BootstrapBlazor/Components/Mask/MaskService.cs index 34ab0363474..586df9bb802 100644 --- a/src/BootstrapBlazor/Components/Mask/MaskService.cs +++ b/src/BootstrapBlazor/Components/Mask/MaskService.cs @@ -17,7 +17,6 @@ public class MaskService : BootstrapServiceBase /// /// 遮罩配置信息实体类Mask Configuration Information Entity Class /// 组件实例 Component Instance - /// public Task Show(MaskOption option, Mask? mask = null) => Invoke(option, mask); /// @@ -26,7 +25,6 @@ public class MaskService : BootstrapServiceBase /// /// 组件实例 Component Instance /// 是否关闭所有遮罩 默认 false 仅关闭当前或者指定遮罩Whether to close all masks. Default false. Only close current or specified mask - /// public async Task Close(Mask? mask = null, bool all = false) { if (all) diff --git a/src/BootstrapBlazor/Components/Menu/Menu.razor.cs b/src/BootstrapBlazor/Components/Menu/Menu.razor.cs index ad4da79c371..b59dd54eb73 100644 --- a/src/BootstrapBlazor/Components/Menu/Menu.razor.cs +++ b/src/BootstrapBlazor/Components/Menu/Menu.razor.cs @@ -38,7 +38,6 @@ public partial class Menu /// /// 获得/设置 菜单数据集合 /// Gets or sets Menu Data Collection - /// 10.2.2 /// [Parameter] [NotNull] @@ -47,7 +46,6 @@ public partial class Menu /// /// 获得/设置 是否为手风琴效果 默认为 false /// Gets or sets Whether it is accordion effect. Default false - /// 10.2.2 /// /// /// 启用此功能时 参数不生效 @@ -59,7 +57,6 @@ public partial class Menu /// /// 获得/设置 是否全部展开 默认为 false /// Gets or sets Whether to expand all. Default false - /// 10.2.2 /// /// /// 手风琴效果 时此参数不生效 @@ -71,7 +68,6 @@ public partial class Menu /// /// 获得/设置 侧栏是否收起 默认 false 未收起 /// Gets or sets Whether sidebar is collapsed. Default false (Not collapsed) - /// 10.2.2 /// [Parameter] public bool IsCollapsed { get; set; } @@ -79,7 +75,6 @@ public partial class Menu /// /// 获得/设置 侧栏垂直模式 默认 false /// Gets or sets Sidebar vertical mode. Default false - /// 10.2.2 /// /// [Parameter] @@ -88,7 +83,6 @@ public partial class Menu /// /// 获得/设置 自动滚动到可视区域 默认 true 开启时生效 /// Gets or sets Automatically scroll to visible area. Default true. Effective when is enabled - /// 10.2.2 /// /// [Parameter] @@ -97,7 +91,6 @@ public partial class Menu /// /// 获得/设置 侧边栏垂直模式在底部 默认 false /// Gets or sets Sidebar vertical mode at bottom. Default false - /// 10.2.2 /// [Parameter] public bool IsBottom { get; set; } @@ -105,7 +98,6 @@ public partial class Menu /// /// 获得/设置 缩进大小 默认为 16 单位 px /// Gets or sets Indent size. Default 16px - /// 10.2.2 /// [Parameter] public int IndentSize { get; set; } = 16; @@ -113,7 +105,6 @@ public partial class Menu /// /// 获得/设置 是否禁止导航 默认为 false 允许导航 /// Gets or sets Whether to disable navigation. Default false (Allow navigation) - /// 10.2.2 /// [Parameter] public bool DisableNavigation { get; set; } @@ -121,7 +112,6 @@ public partial class Menu /// /// 获得/设置 菜单项点击回调委托 /// Gets or sets Menu item click callback delegate - /// 10.2.2 /// [Parameter] public Func? OnClick { get; set; } @@ -187,7 +177,6 @@ private string GetUrl() /// /// /// - /// protected override async Task OnAfterRenderAsync(bool firstRender) { await base.OnAfterRenderAsync(firstRender); @@ -201,7 +190,6 @@ protected override async Task OnAfterRenderAsync(bool firstRender) /// /// /// - /// private async Task InvokeUpdateAsync() { if (ShouldInvoke()) diff --git a/src/BootstrapBlazor/Components/Menu/MenuItem.cs b/src/BootstrapBlazor/Components/Menu/MenuItem.cs index b6e084176cf..ce54536c3fa 100644 --- a/src/BootstrapBlazor/Components/Menu/MenuItem.cs +++ b/src/BootstrapBlazor/Components/Menu/MenuItem.cs @@ -99,7 +99,6 @@ protected internal virtual void SetCollapse(bool collapsed) /// 获得 所有子项集合 /// Get All sub-items collection /// - /// public IEnumerable GetAllSubItems() => Items.Concat(GetSubItems(Items)); private static IEnumerable GetSubItems(IEnumerable items) => items.SelectMany(i => i.Items.Any() ? i.Items.Concat(GetSubItems(i.Items)) : i.Items); diff --git a/src/BootstrapBlazor/Components/Menu/MenuLink.razor.cs b/src/BootstrapBlazor/Components/Menu/MenuLink.razor.cs index ad2ab238fc8..5bd4859625a 100644 --- a/src/BootstrapBlazor/Components/Menu/MenuLink.razor.cs +++ b/src/BootstrapBlazor/Components/Menu/MenuLink.razor.cs @@ -36,7 +36,6 @@ public sealed partial class MenuLink /// /// 获得/设置 MenuItem 实例 不可为空 /// Gets or sets MenuItem Instance. Cannot be null - /// 10.2.2 /// [Parameter] [NotNull] @@ -45,7 +44,6 @@ public sealed partial class MenuLink /// /// 获得/设置 ArrowIcon 图标 /// Gets or sets ArrowIcon Icon - /// 10.2.2 /// [Parameter] public string? ArrowIcon { get; set; } @@ -73,7 +71,6 @@ public sealed partial class MenuLink /// SetParametersAsync Method /// /// - /// public override Task SetParametersAsync(ParameterView parameters) { parameters.SetParameterProperties(this); diff --git a/src/BootstrapBlazor/Components/Menu/SideMenu.razor.cs b/src/BootstrapBlazor/Components/Menu/SideMenu.razor.cs index 5585be97f7d..46f8c84406c 100644 --- a/src/BootstrapBlazor/Components/Menu/SideMenu.razor.cs +++ b/src/BootstrapBlazor/Components/Menu/SideMenu.razor.cs @@ -27,7 +27,6 @@ public partial class SideMenu /// /// 获得/设置 菜单数据集合 /// Gets or sets Menu Data Collection - /// 10.2.2 /// [Parameter] [NotNull] @@ -36,7 +35,6 @@ public partial class SideMenu /// /// 获得/设置 DropdownIcon 图标 /// Gets or sets DropdownIcon Icon - /// 10.2.2 /// [Parameter] [NotNull] @@ -45,7 +43,6 @@ public partial class SideMenu /// /// 获得/设置 菜单箭头图标 /// Gets or sets Menu Arrow Icon - /// 10.2.2 /// [Parameter] [NotNull] @@ -54,7 +51,6 @@ public partial class SideMenu /// /// 获得/设置 菜单项点击回调委托 /// Gets or sets Menu item click callback delegate - /// 10.2.2 /// [Parameter] [NotNull] diff --git a/src/BootstrapBlazor/Components/Menu/SubMenu.razor.cs b/src/BootstrapBlazor/Components/Menu/SubMenu.razor.cs index a52d166da51..c623abf9c4a 100644 --- a/src/BootstrapBlazor/Components/Menu/SubMenu.razor.cs +++ b/src/BootstrapBlazor/Components/Menu/SubMenu.razor.cs @@ -33,7 +33,6 @@ public sealed partial class SubMenu /// /// 获得/设置 组件数据源 /// Gets or sets Component Data Source - /// 10.2.2 /// [Parameter] [NotNull] @@ -42,7 +41,6 @@ public sealed partial class SubMenu /// /// 获得/设置 DropdownIcon 图标 /// Gets or sets DropdownIcon Icon - /// 10.2.2 /// [Parameter] public string? DropdownIcon { get; set; } @@ -50,7 +48,6 @@ public sealed partial class SubMenu /// /// 获得/设置 菜单箭头图标 /// Gets or sets Menu Arrow Icon - /// 10.2.2 /// [Parameter] public string? ArrowIcon { get; set; } @@ -58,7 +55,6 @@ public sealed partial class SubMenu /// /// 获得/设置 菜单项点击回调委托 /// Gets or sets Menu item click callback delegate - /// 10.2.2 /// [Parameter] public Func? OnClick { get; set; } @@ -76,7 +72,6 @@ public sealed partial class SubMenu /// Get Style String /// /// - /// private static string? GetClassString(MenuItem item) => CssBuilder.Default() .AddClass("active", !item.IsDisabled && item.IsActive) .AddClass("disabled", item.IsDisabled) @@ -87,7 +82,6 @@ public sealed partial class SubMenu /// SetParametersAsync Method /// /// - /// public override Task SetParametersAsync(ParameterView parameters) { parameters.SetParameterProperties(this); diff --git a/src/BootstrapBlazor/Components/Menu/TopMenu.razor.cs b/src/BootstrapBlazor/Components/Menu/TopMenu.razor.cs index 73181788922..26208203de4 100644 --- a/src/BootstrapBlazor/Components/Menu/TopMenu.razor.cs +++ b/src/BootstrapBlazor/Components/Menu/TopMenu.razor.cs @@ -27,7 +27,6 @@ public partial class TopMenu /// /// 获得/设置 DropdownIcon 图标 /// Gets or sets DropdownIcon Icon - /// 10.2.2 /// [Parameter] [NotNull] @@ -36,7 +35,6 @@ public partial class TopMenu /// /// 获得/设置 菜单箭头图标 /// Gets or sets Menu Arrow Icon - /// 10.2.2 /// [Parameter] [NotNull] @@ -45,7 +43,6 @@ public partial class TopMenu /// /// 获得/设置 菜单数据集合 /// Gets or sets Menu Data Collection - /// 10.2.2 /// [Parameter] [NotNull] @@ -54,7 +51,6 @@ public partial class TopMenu /// /// 获得/设置 菜单项点击回调委托 /// Gets or sets Menu item click callback delegate - /// 10.2.2 /// [Parameter] public Func? OnClick { get; set; } @@ -76,7 +72,6 @@ public partial class TopMenu /// SetParametersAsync Method /// /// - /// public override Task SetParametersAsync(ParameterView parameters) { parameters.SetParameterProperties(this); diff --git a/src/BootstrapBlazor/Components/Message/Message.razor.cs b/src/BootstrapBlazor/Components/Message/Message.razor.cs index a8a3ac19ace..b39336d6969 100644 --- a/src/BootstrapBlazor/Components/Message/Message.razor.cs +++ b/src/BootstrapBlazor/Components/Message/Message.razor.cs @@ -11,18 +11,10 @@ namespace BootstrapBlazor.Components; /// public partial class Message { - /// - /// 获得 组件样式 - /// Get Component Style - /// private string? ClassString => CssBuilder.Default("message") .AddClass("is-bottom", Placement != Placement.Top) .Build(); - /// - /// 获得 Toast 组件样式设置 - /// Get Toast Component Style Settings - /// private string? StyleName => CssBuilder.Default() .AddClass("top: 1rem;", Placement != Placement.Bottom) .AddClass("bottom: 1rem;", Placement == Placement.Bottom) @@ -37,7 +29,6 @@ public partial class Message /// /// 获得/设置 显示位置 默认为 Top /// Gets or sets Display placement. Default Top - /// 10.2.2 /// [Parameter] public Placement Placement { get; set; } = Placement.Top; @@ -64,7 +55,6 @@ protected override void OnInitialized() /// /// /// - /// protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id, Interop); private static string? GetAutoHideString(MessageOption option) => option.IsAutoHide ? "true" : null; @@ -88,7 +78,6 @@ protected override void OnInitialized() /// /// /// - /// protected override async Task OnAfterRenderAsync(bool firstRender) { await base.OnAfterRenderAsync(firstRender); diff --git a/src/BootstrapBlazor/Components/Modal/Modal.razor.cs b/src/BootstrapBlazor/Components/Modal/Modal.razor.cs index 84842e0ad1d..3d378027b2a 100644 --- a/src/BootstrapBlazor/Components/Modal/Modal.razor.cs +++ b/src/BootstrapBlazor/Components/Modal/Modal.razor.cs @@ -37,7 +37,6 @@ public partial class Modal /// /// 获得/设置 是否在后台关闭弹出窗口,默认为 false /// Gets or sets whether to close the popup in the background, default is false - /// 10.2.2 /// [Parameter] public bool IsBackdrop { get; set; } @@ -45,7 +44,6 @@ public partial class Modal /// /// 获得/设置 是否启用键盘支持,默认为 true 响应 ESC 键 /// Gets or sets whether to enable keyboard support, default is true to respond to the ESC key - /// 10.2.2 /// [Parameter] public bool IsKeyboard { get; set; } = true; @@ -53,7 +51,6 @@ public partial class Modal /// /// 获得/设置 是否启用淡入淡出动画,默认为 null /// Gets or sets whether to enable fade in and out animation, default is null - /// 10.2.2 /// [Parameter] public bool? IsFade { get; set; } @@ -61,7 +58,6 @@ public partial class Modal /// /// 获得/设置 子组件 /// Gets or sets the child component - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } @@ -69,7 +65,6 @@ public partial class Modal /// /// 获得/设置 组件完成渲染时的回调方法 /// Gets or sets the callback method when the component has finished rendering - /// 10.2.2 /// [Parameter] public Func? FirstAfterRenderCallbackAsync { get; set; } @@ -77,7 +72,6 @@ public partial class Modal /// /// 获得/设置 弹出窗口显示时的回调方法 /// Gets or sets the callback method when the popup is shown - /// 10.2.2 /// [Parameter] public Func? OnShownAsync { get; set; } @@ -85,7 +79,6 @@ public partial class Modal /// /// 获得/设置 弹出窗口关闭时的回调委托 /// Gets or sets the callback delegate when the popup is closed - /// 10.2.2 /// [Parameter] public Func? OnCloseAsync { get; set; } @@ -102,7 +95,6 @@ public partial class Modal /// /// /// - /// protected override async Task OnAfterRenderAsync(bool firstRender) { await base.OnAfterRenderAsync(firstRender); @@ -116,7 +108,6 @@ protected override async Task OnAfterRenderAsync(bool firstRender) /// /// /// - /// protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id, Interop, nameof(ShownCallback), nameof(CloseCallback)); /// @@ -159,7 +150,6 @@ private void ResetShownDialog(ModalDialog dialog) /// 弹出窗口显示时的回调方法,由 JSInvoke 调用 /// Callback method when the popup has been shown, called by JSInvoke /// - /// [JSInvokable] public async Task ShownCallback() { @@ -178,7 +168,6 @@ public async Task ShownCallback() /// 弹出窗口关闭时的回调方法,由 JSInvoke 调用 /// Callback method when the popup has been closed, called by JSInvoke /// - /// [JSInvokable] public async Task CloseCallback() { @@ -215,7 +204,6 @@ public async Task Toggle() /// 显示弹出窗口的方法 /// Method to show the popup /// - /// public async Task Show() { await ModuleInitTask.Task; @@ -226,7 +214,6 @@ public async Task Show() /// 关闭当前弹出窗口的方法 /// Method to close the current popup /// - /// public Task Close() => InvokeVoidAsync("execute", Id, "hide"); /// diff --git a/src/BootstrapBlazor/Components/Modal/ModalDialog.razor.cs b/src/BootstrapBlazor/Components/Modal/ModalDialog.razor.cs index 651c2001383..a9d9c4dc35c 100644 --- a/src/BootstrapBlazor/Components/Modal/ModalDialog.razor.cs +++ b/src/BootstrapBlazor/Components/Modal/ModalDialog.razor.cs @@ -41,7 +41,6 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 弹窗标题 /// Gets or sets Popup Title - /// 10.2.2 /// [Parameter] public string? Title { get; set; } @@ -49,7 +48,6 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 弹窗自定义样式 /// Gets or sets Popup Custom Style - /// 10.2.2 /// [Parameter] public string? Class { get; set; } @@ -57,7 +55,6 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 是否可以 Resize 弹窗 默认 false /// Gets or sets Whether popup can be resized. Default false - /// 10.2.2 /// [Parameter] public bool ShowResize { get; set; } @@ -65,7 +62,6 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 弹窗大小 默认为 /// Gets or sets Popup Size. Default - /// 10.2.2 /// [Parameter] public Size Size { get; set; } = Size.ExtraExtraLarge; @@ -73,7 +69,6 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 弹窗大小 默认为 /// Gets or sets Popup Full Screen Size. Default - /// 10.2.2 /// /// /// 为保证功能正常,设置值后 均不可用 @@ -85,7 +80,6 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 是否垂直居中 默认为 true /// Gets or sets Whether to center vertically. Default true - /// 10.2.2 /// [Parameter] public bool IsCentered { get; set; } = true; @@ -93,7 +87,6 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 是否弹窗正文超长时滚动 默认为 false /// Gets or sets Whether to scroll when popup body is too long. Default false - /// 10.2.2 /// [Parameter] public bool IsScrolling { get; set; } @@ -101,7 +94,6 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 是否 to hide the previous dialog when opening a new one, default is false /// Gets or sets whether to hide the previous dialog when opening a new one, default is false - /// 10.2.2 /// [Parameter] public bool IsHidePreviousDialog { get; set; } @@ -109,7 +101,6 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 是否可以拖拽弹窗 默认 false 不可以拖动 /// Gets or sets Whether popup can be dragged. Default false - /// 10.2.2 /// [Parameter] public bool IsDraggable { get; set; } @@ -117,7 +108,6 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 是否显示最大化按钮 默认为 false /// Gets or sets Whether to show maximize button. Default false - /// 10.2.2 /// /// /// 为保证功能正常,设置值为 true 后 均不可用 @@ -129,7 +119,6 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 是否显示关闭按钮 默认为 true 显示 /// Gets or sets Whether to show close button. Default true (Show) - /// 10.2.2 /// [Parameter] public bool ShowCloseButton { get; set; } = true; @@ -137,7 +126,6 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 是否显示保存按钮 默认为 false 不显示 /// Gets or sets Whether to show save button. Default false (Not shown) - /// 10.2.2 /// [Parameter] public bool ShowSaveButton { get; set; } @@ -145,7 +133,6 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 是否显示打印按钮 默认为 false 不显示 /// Gets or sets Whether to show print button. Default false (Not shown) - /// 10.2.2 /// [Parameter] public bool ShowPrintButton { get; set; } @@ -153,7 +140,6 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 Header 中是否显示打印按钮 默认 false 不显示 /// Gets or sets Whether to show print button in Header. Default false (Not shown) - /// 10.2.2 /// [Parameter] public bool ShowPrintButtonInHeader { get; set; } @@ -161,7 +147,6 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 Header 中打印按钮显示文字 默认为资源文件中 打印 /// Gets or sets Print button text in Header. Default from resource file "Print" - /// 10.2.2 /// [Parameter] public string? PrintButtonText { get; set; } @@ -169,7 +154,6 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 打印按钮图标 未设置 取当前图标主题下打印图标 /// Gets or sets Print button icon. If not set, use print icon from current icon theme - /// 10.2.2 /// [Parameter] public string? PrintButtonIcon { get; set; } @@ -177,7 +161,6 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 打印按钮颜色 默认 Color.Primary /// Gets or sets Print button color. Default Color.Primary - /// 10.2.2 /// [Parameter] public Color PrintButtonColor { get; set; } = Color.Primary; @@ -185,7 +168,6 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 是否显示导出 Pdf 按钮 默认为 false 不显示 /// Gets or sets Whether to show Export PDF button. Default false (Not shown) - /// 10.2.2 /// [Parameter] public bool ShowExportPdfButton { get; set; } @@ -193,7 +175,6 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 Header 中是否显示导出 Pdf 按钮 默认 false 不显示 /// Gets or sets Whether to show Export PDF button in Header. Default false (Not shown) - /// 10.2.2 /// [Parameter] public bool ShowExportPdfButtonInHeader { get; set; } @@ -201,7 +182,6 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 导出 Pdf 按钮配置项 /// Gets or sets Export PDF button options - /// 10.2.2 /// [Parameter] [NotNull] @@ -210,7 +190,6 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 是否显示 Header 关闭按钮 /// Gets or sets Whether to show Header Close Button - /// 10.2.2 /// [Parameter] public bool ShowHeaderCloseButton { get; set; } = true; @@ -218,7 +197,6 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 是否显示 Header 默认为 true /// Gets or sets Whether to show Header. Default true - /// 10.2.2 /// [Parameter] public bool ShowHeader { get; set; } = true; @@ -226,7 +204,6 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 是否显示 Footer 默认为 true /// Gets or sets Whether to show Footer. Default true - /// 10.2.2 /// [Parameter] public bool ShowFooter { get; set; } = true; @@ -234,7 +211,6 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 弹窗内容相关数据 多用于传值 /// Gets or sets Data related to popup content. Often used for passing values - /// 10.2.2 /// [Parameter] public object? BodyContext { get; set; } @@ -242,7 +218,6 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 Header 中按钮模板 /// Gets or sets Button template in Header - /// 10.2.2 /// [Parameter] public RenderFragment? HeaderToolbarTemplate { get; set; } @@ -250,7 +225,6 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 ModalBody 组件 /// Gets or sets ModalBody Component - /// 10.2.2 /// [Parameter] public RenderFragment? BodyTemplate { get; set; } @@ -258,7 +232,6 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 ModalFooter 组件 /// Gets or sets ModalFooter Component - /// 10.2.2 /// [Parameter] public RenderFragment? FooterTemplate { get; set; } @@ -266,7 +239,6 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 the footer 内容 模板. 默认为 null. /// Gets or sets the footer content template. Default is null. - /// 10.2.2 /// [Parameter] public RenderFragment? FooterContentTemplate { get; set; } @@ -274,7 +246,6 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 ModalHeader 组件 /// Gets or sets ModalHeader Component - /// 10.2.2 /// [Parameter] public RenderFragment? HeaderTemplate { get; set; } @@ -282,7 +253,6 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 保存按钮回调委托 返回 true 并且设置 true 时自动关闭弹窗 /// Gets or sets Save button callback delegate. Returns true and automatically closes popup if is true - /// 10.2.2 /// [Parameter] public Func>? OnSaveAsync { get; set; } @@ -290,7 +260,6 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 保存成功后是否自动关闭弹窗 默认 true 自动关闭 /// Gets or sets Whether to automatically close popup after successful save. Default true - /// 10.2.2 /// [Parameter] public bool IsAutoCloseAfterSave { get; set; } = true; @@ -298,7 +267,6 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 关闭按钮显示文字 资源文件设置为 关闭 /// Gets or sets Close button text. Resource file set to Close - /// 10.2.2 /// [Parameter] [NotNull] @@ -307,7 +275,6 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 关闭按钮显示图标 未设置时 使用 fa-solid fa-fw fa-xmark /// Gets or sets Close button icon. Use fa-solid fa-fw fa-xmark if not set - /// 10.2.2 /// [Parameter] [NotNull] @@ -316,7 +283,6 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 保存按钮显示文字 资源文件设置为 保存 /// Gets or sets Save button text. Resource file set to Save - /// 10.2.2 /// [Parameter] [NotNull] @@ -325,7 +291,6 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 保存按钮显示图标 未设置时 使用主题图标 /// Gets or sets Save button icon. Use theme icon if not set - /// 10.2.2 /// [Parameter] [NotNull] @@ -334,7 +299,6 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 最大化按钮图标 /// Gets or sets Maximize button icon - /// 10.2.2 /// [Parameter] [NotNull] @@ -343,7 +307,6 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 恢复按钮图标 /// Gets or sets Restore button icon - /// 10.2.2 /// [Parameter] [NotNull] @@ -352,7 +315,6 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 保存按钮图标 /// Gets or sets Save button icon - /// 10.2.2 /// [Parameter] [NotNull] @@ -363,7 +325,6 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 模态弹窗任务 实例 默认 null /// Gets or sets Modal Popup Task Instance. Default null - /// 10.2.2 /// [Parameter] public TaskCompletionSource? ResultTask { get; set; } @@ -371,7 +332,6 @@ public partial class ModalDialog : IHandlerException /// /// 获得/设置 获得模态弹窗方法 默认 null /// Gets or sets Get Modal Popup Method. Default null - /// 10.2.2 /// [Parameter] public Func? GetResultDialog { get; set; } diff --git a/src/BootstrapBlazor/Components/Nav/Nav.razor.cs b/src/BootstrapBlazor/Components/Nav/Nav.razor.cs index 72021147010..000ebc5ffa0 100644 --- a/src/BootstrapBlazor/Components/Nav/Nav.razor.cs +++ b/src/BootstrapBlazor/Components/Nav/Nav.razor.cs @@ -31,7 +31,6 @@ public partial class Nav /// /// 获得/设置 组件数据源 /// Gets or sets Component Data Source - /// 10.2.2 /// [Parameter] [NotNull] @@ -40,7 +39,6 @@ public partial class Nav /// /// 获得/设置 组件对齐方式 /// Gets or sets Component Alignment - /// 10.2.2 /// [Parameter] public Alignment Alignment { get; set; } = Alignment.Left; @@ -48,7 +46,6 @@ public partial class Nav /// /// 获得/设置 是否垂直分布 /// Gets or sets Whether to distribute vertically - /// 10.2.2 /// [Parameter] public bool IsVertical { get; set; } @@ -56,7 +53,6 @@ public partial class Nav /// /// 获得/设置 是否为胶囊 /// Gets or sets Whether it is pills - /// 10.2.2 /// [Parameter] public bool IsPills { get; set; } @@ -64,7 +60,6 @@ public partial class Nav /// /// 获得/设置 是否填充 /// Gets or sets Whether to fill - /// 10.2.2 /// [Parameter] public bool IsFill { get; set; } @@ -72,7 +67,6 @@ public partial class Nav /// /// 获得/设置 是否等宽 /// Gets or sets Whether to be equal width - /// 10.2.2 /// [Parameter] public bool IsJustified { get; set; } @@ -80,14 +74,12 @@ public partial class Nav /// /// 获得/设置 组件内容 /// Gets or sets Component Content - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } /// - /// OnParametersSet 方法 - /// OnParametersSet Method + /// /// protected override void OnParametersSet() { diff --git a/src/BootstrapBlazor/Components/Navbar/Navbar.razor.cs b/src/BootstrapBlazor/Components/Navbar/Navbar.razor.cs index a7595bc8264..2a71cb93ede 100644 --- a/src/BootstrapBlazor/Components/Navbar/Navbar.razor.cs +++ b/src/BootstrapBlazor/Components/Navbar/Navbar.razor.cs @@ -6,39 +6,32 @@ namespace BootstrapBlazor.Components; /// -/// Navbar 组件 -/// Navbar component +/// Navbar 组件 +/// Navbar component /// public partial class Navbar { /// - /// 获得/设置 组件大小 默认 - /// Gets or sets component大小 Default is - /// 10.2.2 + /// 获得/设置 组件大小,默认为 + /// Gets or sets the component size. Default is /// [Parameter] public Size Size { get; set; } = Size.Medium; /// - /// 获得/设置 背景色样式名称 默认 null 未设置 - /// Gets or sets 背景色style名称 Default is null 未Sets - /// 10.2.2 + /// 获得/设置 背景色样式名称,默认为 null 未设置 + /// Gets or sets the background color CSS class name. Default is null /// [Parameter] public string? BackgroundColorCssClass { get; set; } /// - /// 获得/设置 子组件模板 - /// Gets or sets 子componenttemplate - /// 10.2.2 + /// 获得/设置 子组件模板 + /// Gets or sets the child component template /// [Parameter] public RenderFragment? ChildContent { get; set; } - /// - /// 获得 组件样式 - /// Gets componentstyle - /// private string? ClassString => CssBuilder.Default("navbar") .AddClass($"navbar-expand", Size == Size.None) .AddClass($"navbar-expand-{Size.ToDescriptionString()}", Size != Size.None) diff --git a/src/BootstrapBlazor/Components/Navbar/NavbarBrand.razor.cs b/src/BootstrapBlazor/Components/Navbar/NavbarBrand.razor.cs index 90f82c835fe..a10ed80f820 100644 --- a/src/BootstrapBlazor/Components/Navbar/NavbarBrand.razor.cs +++ b/src/BootstrapBlazor/Components/Navbar/NavbarBrand.razor.cs @@ -6,15 +6,14 @@ namespace BootstrapBlazor.Components; /// -/// NavBrand 组件 -/// NavBrand component +/// NavBrand 组件 +/// NavBrand component /// public partial class NavbarBrand { /// - /// 获得/设置 子组件模板 - /// Gets or sets 子componenttemplate - /// 10.2.2 + /// 获得/设置 子组件模板 + /// Gets or sets the child component template /// [Parameter] public RenderFragment? ChildContent { get; set; } diff --git a/src/BootstrapBlazor/Components/Navbar/NavbarCollapse.razor.cs b/src/BootstrapBlazor/Components/Navbar/NavbarCollapse.razor.cs index 9c32bf6a0d1..ef641adc747 100644 --- a/src/BootstrapBlazor/Components/Navbar/NavbarCollapse.razor.cs +++ b/src/BootstrapBlazor/Components/Navbar/NavbarCollapse.razor.cs @@ -6,15 +6,14 @@ namespace BootstrapBlazor.Components; /// -/// NavbarCollapse 组件用于在导航栏中适配响应式布局 -/// NavbarCollapse component用于在导航栏中适配响应式布局 +/// NavbarCollapse 组件用于在导航栏中适配响应式布局 +/// NavbarCollapse component for responsive layout adaptation in navigation bar /// public partial class NavbarCollapse { /// - /// 获得/设置 子组件模板 - /// Gets or sets 子componenttemplate - /// 10.2.2 + /// 获得/设置 子组件模板 + /// Gets or sets the child component template /// [Parameter] public RenderFragment? ChildContent { get; set; } diff --git a/src/BootstrapBlazor/Components/Navbar/NavbarDropdown.razor.cs b/src/BootstrapBlazor/Components/Navbar/NavbarDropdown.razor.cs index 7b0d2b79ae2..e45a154f2e1 100644 --- a/src/BootstrapBlazor/Components/Navbar/NavbarDropdown.razor.cs +++ b/src/BootstrapBlazor/Components/Navbar/NavbarDropdown.razor.cs @@ -6,39 +6,35 @@ namespace BootstrapBlazor.Components; /// -/// NavbarDropdown 组件用于在导航栏中创建下拉菜单 -/// NavbarDropdown component用于在导航栏中创建下拉菜单 +/// NavbarDropdown 组件用于在导航栏中创建下拉菜单 +/// NavbarDropdown component for creating dropdown menu in navigation bar /// public partial class NavbarDropdown { /// - /// 获得/设置 子组件模板 - /// Gets or sets 子componenttemplate - /// 10.2.2 + /// 获得/设置 子组件模板 + /// Gets or sets the child component template /// [Parameter] public RenderFragment? ChildContent { get; set; } /// - /// 获得/设置 Dropdown 菜单标题文本 - /// Gets or sets Dropdown 菜单标题文本 - /// 10.2.2 + /// 获得/设置 Dropdown 菜单标题文本 + /// Gets or sets the dropdown menu title text /// [Parameter] public string? Text { get; set; } /// - /// 获得/设置 获取菜单对齐方式 默认 none 未设置 - /// Gets or sets 获取菜单对齐方式 Default is none 未Sets - /// 10.2.2 + /// 获得/设置 菜单对齐方式,默认为 none 未设置 + /// Gets or sets the menu alignment. Default is none /// [Parameter] public Alignment MenuAlignment { get; set; } /// - /// 获得/设置 下拉选项方向 默认 Dropdown 向下 - /// Gets or sets 下拉选项方向 Default is Dropdown 向下 - /// 10.2.2 + /// 获得/设置 下拉选项方向,默认为 Dropdown 向下 + /// Gets or sets the dropdown direction. Default is Dropdown /// [Parameter] public Direction Direction { get; set; } @@ -49,8 +45,8 @@ public partial class NavbarDropdown .Build(); /// - /// 菜单对齐方式样式 - /// 菜单对齐方式style + /// 菜单对齐方式样式 + /// Menu alignment style /// private string? MenuAlignmentClass => CssBuilder.Default("dropdown-menu shadow") .AddClass($"dropdown-menu-{MenuAlignment.ToDescriptionString()}", MenuAlignment == Alignment.Right) diff --git a/src/BootstrapBlazor/Components/Navbar/NavbarDropdownItem.razor.cs b/src/BootstrapBlazor/Components/Navbar/NavbarDropdownItem.razor.cs index 455b246bb9a..df9f07621b8 100644 --- a/src/BootstrapBlazor/Components/Navbar/NavbarDropdownItem.razor.cs +++ b/src/BootstrapBlazor/Components/Navbar/NavbarDropdownItem.razor.cs @@ -6,31 +6,28 @@ namespace BootstrapBlazor.Components; /// -/// NavbarDropdownItem 组件用于在导航栏下拉菜单中创建菜单项 -/// NavbarDropdownItem component用于在导航栏下拉菜单中创建菜单项 +/// NavbarDropdownItem 组件用于在导航栏下拉菜单中创建菜单项 +/// NavbarDropdownItem component for creating menu items in dropdown menu /// public partial class NavbarDropdownItem { /// - /// 获得/设置 子组件模板 - /// Gets or sets 子componenttemplate - /// 10.2.2 + /// 获得/设置 子组件模板 + /// Gets or sets the child component template /// [Parameter] public RenderFragment? ChildContent { get; set; } /// - /// 获得/设置 菜单项文本 - /// Gets or sets 菜单项文本 - /// 10.2.2 + /// 获得/设置 菜单项文本 + /// Gets or sets the menu item text /// [Parameter] public string? Url { get; set; } /// - /// 获得/设置 A 标签 target 参数 默认 null - /// Gets or sets A 标签 target 参数 Default is null - /// 10.2.2 + /// 获得/设置 A 标签 target 参数,默认为 null + /// Gets or sets the A tag target parameter. Default is null /// [Parameter] public string? Target { get; set; } diff --git a/src/BootstrapBlazor/Components/Navbar/NavbarGroup.razor.cs b/src/BootstrapBlazor/Components/Navbar/NavbarGroup.razor.cs index 1713af7d305..157418f89ad 100644 --- a/src/BootstrapBlazor/Components/Navbar/NavbarGroup.razor.cs +++ b/src/BootstrapBlazor/Components/Navbar/NavbarGroup.razor.cs @@ -6,31 +6,28 @@ namespace BootstrapBlazor.Components; /// -/// NavbarGroup 组件用于在导航栏中分组 -/// NavbarGroup component用于在导航栏中分组 +/// NavbarGroup 组件用于在导航栏中分组 +/// NavbarGroup component for grouping items in navigation bar /// public partial class NavbarGroup { /// - /// 获得/设置 子组件模板 - /// Gets or sets 子componenttemplate - /// 10.2.2 + /// 获得/设置 子组件模板 + /// Gets or sets the child component template /// [Parameter] public RenderFragment? ChildContent { get; set; } /// - /// 获得/设置 是否启用滚动 - /// Gets or sets whether启用滚动 - /// 10.2.2 + /// 获得/设置 是否启用滚动 + /// Gets or sets whether to enable scrolling /// [Parameter] public bool IsScrolling { get; set; } /// - /// 获得/设置 高度值 默认 200px; - /// Gets or sets height值 Default is 200px; - /// 10.2.2 + /// 获得/设置 高度值,默认为 200px + /// Gets or sets the height value. Default is 200px /// [Parameter] public string? Height { get; set; } @@ -46,8 +43,8 @@ public partial class NavbarGroup .Build(); /// - /// - /// + /// + /// /// protected override void OnParametersSet() { diff --git a/src/BootstrapBlazor/Components/Navbar/NavbarItem.razor.cs b/src/BootstrapBlazor/Components/Navbar/NavbarItem.razor.cs index dd4e9d990bc..2b922ef2b8d 100644 --- a/src/BootstrapBlazor/Components/Navbar/NavbarItem.razor.cs +++ b/src/BootstrapBlazor/Components/Navbar/NavbarItem.razor.cs @@ -6,15 +6,14 @@ namespace BootstrapBlazor.Components; /// -/// NavbarItem 组件用于在导航栏中添加子组件 -/// NavbarItem component用于在导航栏中添加子component +/// NavbarItem 组件用于在导航栏中添加子组件 +/// NavbarItem component for adding child components in navigation bar /// public partial class NavbarItem { /// - /// 获得/设置 子组件模板 - /// Gets or sets 子componenttemplate - /// 10.2.2 + /// 获得/设置 子组件模板 + /// Gets or sets the child component template /// [Parameter] public RenderFragment? ChildContent { get; set; } diff --git a/src/BootstrapBlazor/Components/Navbar/NavbarLink.razor.cs b/src/BootstrapBlazor/Components/Navbar/NavbarLink.razor.cs index 3337b5db80b..70fac54a5a5 100644 --- a/src/BootstrapBlazor/Components/Navbar/NavbarLink.razor.cs +++ b/src/BootstrapBlazor/Components/Navbar/NavbarLink.razor.cs @@ -6,39 +6,35 @@ namespace BootstrapBlazor.Components; /// -/// NavbarLink 组件用于在导航栏中添加链接 -/// NavbarLink component用于在导航栏中添加链接 +/// NavbarLink 组件用于在导航栏中添加链接 +/// NavbarLink component for adding links in navigation bar /// public partial class NavbarLink { /// - /// 获得/设置 Url 默认为 # - /// Gets or sets Url Default is为 # - /// 10.2.2 + /// 获得/设置 Url,默认为 # + /// Gets or sets the URL. Default is # /// [Parameter] public string? Url { get; set; } /// - /// 获得/设置 A 标签 target 参数 默认 null - /// Gets or sets A 标签 target 参数 Default is null - /// 10.2.2 + /// 获得/设置 A 标签 target 参数,默认为 null + /// Gets or sets the A tag target parameter. Default is null /// [Parameter] public string? Target { get; set; } /// - /// 获得/设置 显示图片地址 默认为 null - /// Gets or sets display图片地址 Default is为 null - /// 10.2.2 + /// 获得/设置 显示图片地址,默认为 null + /// Gets or sets the display image URL. Default is null /// [Parameter] public string? ImageUrl { get; set; } /// - /// css class of img element default value null - /// The css class of img element default value null - /// 10.2.2 + /// 获得/设置 img 元素的 CSS class,默认为 null + /// Gets or sets the CSS class of img element. Default is null /// [Parameter] public string? ImageCss { get; set; } diff --git a/src/BootstrapBlazor/Components/Navbar/NavbarToggleButton.razor.cs b/src/BootstrapBlazor/Components/Navbar/NavbarToggleButton.razor.cs index 01c7f99260c..ed86dbc0ea3 100644 --- a/src/BootstrapBlazor/Components/Navbar/NavbarToggleButton.razor.cs +++ b/src/BootstrapBlazor/Components/Navbar/NavbarToggleButton.razor.cs @@ -6,23 +6,21 @@ namespace BootstrapBlazor.Components; /// -/// NavbarToggleButton 组件 -/// NavbarToggleButton component +/// NavbarToggleButton 组件 +/// NavbarToggleButton component /// public partial class NavbarToggleButton { /// - /// 获得/设置 联动组件选择器 默认 null - /// Gets or sets 联动component选择器 Default is null - /// 10.2.2 + /// 获得/设置 联动组件选择器,默认为 null + /// Gets or sets the target selector. Default is null /// [Parameter] public string? Target { get; set; } /// - /// 获得/设置 子组件模板 - /// Gets or sets 子componenttemplate - /// 10.2.2 + /// 获得/设置 子组件模板 + /// Gets or sets the child component template /// [Parameter] public RenderFragment? ChildContent { get; set; } diff --git a/src/BootstrapBlazor/Components/NetworkMonitor/NetworkMonitorIndicator.razor.cs b/src/BootstrapBlazor/Components/NetworkMonitor/NetworkMonitorIndicator.razor.cs index 4c3ee9ef39e..a103f104f0a 100644 --- a/src/BootstrapBlazor/Components/NetworkMonitor/NetworkMonitorIndicator.razor.cs +++ b/src/BootstrapBlazor/Components/NetworkMonitor/NetworkMonitorIndicator.razor.cs @@ -8,34 +8,28 @@ namespace BootstrapBlazor.Components; /// -/// Represents a network monitor indicator with customizable tooltip settings. -/// Represents a network monitor indicator with customizable tooltip settings. +/// NetworkMonitorIndicator 组件用于显示网络监控指示器,支持自定义弹出窗口设置 +/// Represents a network monitor indicator with customizable tooltip settings /// -/// This component allows you to configure the text, placement, and trigger behavior of a tooltip that -/// appears when interacting with the network monitor indicator. The tooltip can be customized to provide additional -/// information to users. public partial class NetworkMonitorIndicator : IDisposable { /// - /// 获得/设置 Popover 弹窗标题 默认为 null - /// Gets or sets Popover 弹窗标题 Default is为 null - /// 10.2.2 + /// 获得/设置 Popover 弹窗标题,默认为 null + /// Gets or sets the Popover popup title. Default is null /// [Parameter] public string? Title { get; set; } /// - /// 获得/设置 Popover 显示位置 默认为 Top - /// Gets or sets Popover display位置 Default is为 Top - /// 10.2.2 + /// 获得/设置 Popover 显示位置,默认为 Top + /// Gets or sets the Popover display position. Default is Top /// [Parameter] public Placement PopoverPlacement { get; set; } = Placement.Top; /// - /// 获得/设置 Popover 触发方式 默认为 hover focus - /// Gets or sets Popover 触发方式 Default is为 hover focus - /// 10.2.2 + /// 获得/设置 Popover 触发方式,默认为 hover focus + /// Gets or sets the Popover trigger mode. Default is hover focus /// [Parameter] [NotNull] @@ -60,8 +54,7 @@ public partial class NetworkMonitorIndicator : IDisposable .Build(); /// - /// - /// + /// /// protected override async Task OnInitializedAsync() { @@ -71,8 +64,7 @@ protected override async Task OnInitializedAsync() } /// - /// - /// + /// /// protected override void OnParametersSet() { @@ -101,8 +93,7 @@ private void Dispose(bool disposing) } /// - /// - /// + /// /// public void Dispose() { diff --git a/src/BootstrapBlazor/Components/NetworkMonitor/NetworkMonitorState.cs b/src/BootstrapBlazor/Components/NetworkMonitor/NetworkMonitorState.cs index 7e342749046..29a9994c9e5 100644 --- a/src/BootstrapBlazor/Components/NetworkMonitor/NetworkMonitorState.cs +++ b/src/BootstrapBlazor/Components/NetworkMonitor/NetworkMonitorState.cs @@ -6,26 +6,26 @@ namespace BootstrapBlazor.Components; /// -/// 网络状态信息类 -/// 网络状态信息类 +/// 网络状态信息类 +/// Network status information class /// public class NetworkMonitorState { /// - /// 获得/设置 the current network 类型 - /// Gets or sets the current network type + /// 获得/设置 当前网络类型 + /// Gets or sets the current network type /// public string? NetworkType { get; set; } /// - /// 获得/设置 the downlink speed in megabits per second (Mbps). - /// Gets or sets the downlink speed in megabits per second (Mbps). + /// 获得/设置 下行速度(Mbps) + /// Gets or sets the downlink speed in megabits per second (Mbps) /// public double? Downlink { get; set; } /// - /// 获得/设置 the round-trip time (RTT) in milliseconds. - /// Gets or sets the round-trip time (RTT) in milliseconds. + /// 获得/设置 往返时间(RTT)(毫秒) + /// Gets or sets the round-trip time (RTT) in milliseconds /// public int RTT { get; set; } } diff --git a/src/BootstrapBlazor/Components/Notification/NotificationItem.cs b/src/BootstrapBlazor/Components/Notification/NotificationItem.cs index 8cd0c2436b1..e4ac125b35a 100644 --- a/src/BootstrapBlazor/Components/Notification/NotificationItem.cs +++ b/src/BootstrapBlazor/Components/Notification/NotificationItem.cs @@ -8,50 +8,50 @@ namespace BootstrapBlazor.Components; /// -/// 通知信息类 -/// 通知信息类 +/// NotificationItem 类用于表示通知信息 +/// Notification item class /// public class NotificationItem { /// - /// 获得/设置 消息键值 未赋值时系统自动生成 - /// Gets or sets 消息键值 未赋值时系统自动生成 + /// 获得/设置 消息键值,未赋值时系统自动生成 + /// Gets or sets the message ID. Auto-generated if not set /// public string? Id { get; set; } /// - /// 获得/设置 标题 - /// Gets or sets 标题 + /// 获得/设置 标题 + /// Gets or sets the title /// public string? Title { get; set; } /// - /// 获得/设置 信息 - /// Gets or sets 信息 + /// 获得/设置 信息 + /// Gets or sets the message /// public string? Message { get; set; } /// - /// 获得/设置 图标 - /// Gets or sets icon + /// 获得/设置 图标 + /// Gets or sets the icon /// public string? Icon { get; set; } /// - /// 获得/设置 静默 - /// Gets or sets 静默 + /// 获得/设置 是否静默 + /// Gets or sets whether silent /// public bool Silent { get; set; } /// - /// 获得/设置 通知触发时要播放的音频文件的 URL - /// Gets or sets 通知触发时要播放的音频文件的 URL + /// 获得/设置 通知触发时要播放的音频文件的 URL + /// Gets or sets the URL of the audio file to play when notification is triggered /// public string? Sound { get; set; } /// - /// 获得/设置 通知点击后的回调 - /// Gets or sets 通知点击后的回调 + /// 获得/设置 通知点击后的回调 + /// Gets or sets 通知点击后的回调 /// /// 点击通知后自动关闭 [JsonIgnore] diff --git a/src/BootstrapBlazor/Components/Pagination/GotoNavigator.razor b/src/BootstrapBlazor/Components/Pagination/GotoNavigator.razor index 871289d81b7..a55a9c56981 100644 --- a/src/BootstrapBlazor/Components/Pagination/GotoNavigator.razor +++ b/src/BootstrapBlazor/Components/Pagination/GotoNavigator.razor @@ -1,4 +1,4 @@ -@namespace BootstrapBlazor.Components +@namespace BootstrapBlazor.Components @inherits BootstrapComponentBase
@@ -6,5 +6,5 @@ {
@GotoText
} - +
diff --git a/src/BootstrapBlazor/Components/Pagination/GotoNavigator.razor.cs b/src/BootstrapBlazor/Components/Pagination/GotoNavigator.razor.cs index ea00b61ce01..6b4a90bed29 100644 --- a/src/BootstrapBlazor/Components/Pagination/GotoNavigator.razor.cs +++ b/src/BootstrapBlazor/Components/Pagination/GotoNavigator.razor.cs @@ -8,31 +8,28 @@ namespace BootstrapBlazor.Components; /// -/// -/// +/// GotoNavigator 组件用于分页跳转导航 +/// GotoNavigator component for pagination navigation /// public partial class GotoNavigator { /// - /// 获得/设置 跳转页码 默认 null - /// Gets or sets Navigation Index. Default null - /// 10.2.2 + /// 获得/设置 跳转页码,默认为 null + /// Gets or sets the navigation index. Default is null /// [Parameter] public int Index { get; set; } /// - /// 获得/设置 跳转文本 默认 null - /// Gets or sets Goto Text. Default null - /// 10.2.2 + /// 获得/设置 跳转文本,默认为 null + /// Gets or sets the goto text. Default is null /// [Parameter] public string? GotoText { get; set; } /// - /// 获得/设置 导航回调方法 默认 null - /// Gets or sets Navigation Callback. Default null - /// 10.2.2 + /// 获得/设置 导航回调方法,默认为 null + /// Gets or sets the navigation callback. Default is null /// [Parameter] public Func? OnNavigation { get; set; } @@ -46,7 +43,7 @@ private async Task OnValueChanged(int val) } } - private async Task OnKeyup(KeyboardEventArgs args) + private async Task OnKeyUp(KeyboardEventArgs args) { if (args.Key == "Enter") { diff --git a/src/BootstrapBlazor/Components/Pagination/Pagination.razor.cs b/src/BootstrapBlazor/Components/Pagination/Pagination.razor.cs index 4b9d778d6c1..b1eda8056d4 100644 --- a/src/BootstrapBlazor/Components/Pagination/Pagination.razor.cs +++ b/src/BootstrapBlazor/Components/Pagination/Pagination.razor.cs @@ -14,75 +14,70 @@ namespace BootstrapBlazor.Components; public partial class Pagination { /// - /// 获得/设置 页码总数 - /// Gets or sets Total Page Count + /// 获得 页码总数 + /// Gets the total page count /// protected int InternalPageCount => Math.Max(1, PageCount); /// - /// 获得 组件 样式 - /// Get Component Style + /// 获得 组件样式 + /// Gets the component style /// protected string? ClassString => CssBuilder.Default("nav nav-pages") .AddClassFromAttributes(AdditionalAttributes) .Build(); /// - /// 获得 组件 样式 - /// Get Component Style + /// 获得 分页器样式 + /// Gets the pagination style /// protected string? PaginationClassString => CssBuilder.Default("pagination") .AddClass($"justify-content-{Alignment.ToDescriptionString()}", Alignment != Alignment.None) .Build(); /// - /// 获得/设置 开始页码 - /// Gets or sets Start Page Index + /// 获得 开始页码 + /// Gets the start page index /// protected int StartPageIndex => Math.Max(2, Math.Min(InternalPageCount - MaxPageLinkCount, InternalPageIndex - MaxPageLinkCount / 2)); /// - /// 获得/设置 结束页码 - /// Gets or sets End Page Index + /// 获得 结束页码 + /// Gets the end page index /// protected int EndPageIndex => Math.Min(InternalPageCount - 1, StartPageIndex + MaxPageLinkCount - 1); /// - /// 获得/设置 对齐方式 默认 Alignment.Right - /// Gets or sets Alignment. Default Alignment.Right - /// 10.2.2 + /// 获得/设置 对齐方式,默认为 Alignment.Right + /// Gets or sets the alignment. Default is Alignment.Right /// [Parameter] public Alignment Alignment { get; set; } = Alignment.Right; /// /// 获得/设置 上一页图标 - /// Gets or sets Previous Page Icon - /// 10.2.2 + /// Gets or sets the previous page icon /// [Parameter] public string? PrevPageIcon { get; set; } /// - /// 获得/设置 上一页图标 - /// Gets or sets Previous Page Icon - /// 10.2.2 + /// 获得/设置 上一页省略号图标 + /// Gets or sets the previous ellipsis page icon /// [Parameter] public string? PrevEllipsisPageIcon { get; set; } /// /// 获得/设置 下一页图标 - /// Gets or sets Next Page Icon - /// 10.2.2 + /// Gets or sets the next page icon /// [Parameter] public string? NextPageIcon { get; set; } /// - /// 获得/设置 上一页图标 - /// Gets or sets Previous Page Icon - /// 10.2.2 + /// 获得/设置 下一页省略号图标 + /// Gets or sets the next ellipsis page icon /// [Parameter] public string? NextEllipsisPageIcon { get; set; } @@ -90,7 +85,6 @@ public partial class Pagination /// /// 获得/设置 当前页码 /// Gets or sets Current Page Index - /// 10.2.2 /// [Parameter] public int PageIndex { get; set; } = 1; @@ -98,18 +92,14 @@ public partial class Pagination /// /// 获得/设置 页码总数 /// Gets or sets Total Page Count - /// 10.2.2 /// [Parameter] -#if NET6_0_OR_GREATER [EditorRequired] -#endif public int PageCount { get; set; } /// /// 获得/设置 Page up/down 页码数量 默认 5 /// Gets or sets Page up/down link count. Default 5 - /// 10.2.2 /// [Parameter] public int MaxPageLinkCount { get; set; } = 5; @@ -117,7 +107,6 @@ public partial class Pagination /// /// 点击页码时回调方法 参数是当前页码 /// Callback method when page link is clicked. Parameter is current page index - /// 10.2.2 /// [Parameter] public Func? OnPageLinkClick { get; set; } @@ -129,7 +118,6 @@ public partial class Pagination /// /// 获得/设置 显示分页信息文字 默认为 null /// Gets or sets Pagination Info Text. Default null - /// 10.2.2 /// [Parameter] [NotNull] @@ -138,7 +126,6 @@ public partial class Pagination /// /// 获得/设置 Goto 导航模板 默认 null /// Gets or sets Goto Navigation Template. Default null - /// 10.2.2 /// [Parameter] public RenderFragment? GotoTemplate { get; set; } @@ -146,7 +133,6 @@ public partial class Pagination /// /// 获得/设置 是否显示 Goto 跳转导航器 默认 false /// Gets or sets Whether to show Goto Navigator. Default false - /// 10.2.2 /// [Parameter] public bool ShowGotoNavigator { get; set; } @@ -154,7 +140,6 @@ public partial class Pagination /// /// 获得/设置 Goto 导航标签显示文字 默认 导航到/Goto /// Gets or sets Goto Navigator Label Text. Default Goto - /// 10.2.2 /// [Parameter] public string? GotoNavigatorLabelText { get; set; } @@ -162,7 +147,6 @@ public partial class Pagination /// /// 获得/设置 是否显示 分页信息 默认 true /// Gets or sets Whether to show Page Info. Default true - /// 10.2.2 /// [Parameter] public bool ShowPageInfo { get; set; } = true; @@ -170,7 +154,6 @@ public partial class Pagination /// /// 获得/设置 分页信息模板 默认 null /// Gets or sets Page Info Template. Default null - /// 10.2.2 /// [Parameter] public RenderFragment? PageInfoTemplate { get; set; } diff --git a/src/BootstrapBlazor/Components/Pagination/PaginationItem.razor.cs b/src/BootstrapBlazor/Components/Pagination/PaginationItem.razor.cs index 14771e818d7..6d843954c1e 100644 --- a/src/BootstrapBlazor/Components/Pagination/PaginationItem.razor.cs +++ b/src/BootstrapBlazor/Components/Pagination/PaginationItem.razor.cs @@ -6,47 +6,42 @@ namespace BootstrapBlazor.Components; /// -/// -/// +/// PaginationItem 组件用于分页组件中的单个页码项 +/// PaginationItem component for individual page item in pagination /// public partial class PaginationItem { /// - /// 点击页码时回调方法 参数是当前页码 + /// 点击页码时回调方法,参数是当前页码 /// Callback method when page link is clicked. Parameter is current page index - /// 10.2.2 /// [Parameter] public EventCallback OnClick { get; set; } /// /// 获得/设置 当前页码 - /// Gets or sets Current Page Index - /// 10.2.2 + /// Gets or sets the current page index /// [Parameter] public int Index { get; set; } /// - /// 获得/设置 是否激活 默认 false - /// Gets or sets Whether active. Default false - /// 10.2.2 + /// 获得/设置 是否激活,默认为 false + /// Gets or sets whether active. Default is false /// [Parameter] public bool IsActive { get; set; } /// - /// 获得/设置 是否禁用 默认 false - /// Gets or sets Whether disabled. Default false - /// 10.2.2 + /// 获得/设置 是否禁用,默认为 false + /// Gets or sets whether disabled. Default is false /// [Parameter] public bool IsDisabled { get; set; } /// - /// 子组件 - /// Child Content - /// 10.2.2 + /// 获得/设置 子组件模板 + /// Gets or sets the child component template /// [Parameter] public RenderFragment? ChildContent { get; set; } diff --git a/src/BootstrapBlazor/Components/Popover/Popover.razor.cs b/src/BootstrapBlazor/Components/Popover/Popover.razor.cs index b0361067bdc..7efef713dd3 100644 --- a/src/BootstrapBlazor/Components/Popover/Popover.razor.cs +++ b/src/BootstrapBlazor/Components/Popover/Popover.razor.cs @@ -12,25 +12,22 @@ namespace BootstrapBlazor.Components; public partial class Popover { /// - /// 获得/设置 显示文字,复杂内容可通过 自定义 - /// Gets or sets Display text. Complex content can be customized via - /// 10.2.2 + /// 获得/设置 显示文字。复杂内容可通过 自定义 + /// Gets or sets the display text. Complex content can be customized via /// [Parameter] public string? Content { get; set; } /// - /// 获得/设置 是否显示阴影 默认 true - /// Gets or sets Whether to show shadow. Default true - /// 10.2.2 + /// 获得/设置 是否显示阴影,默认为 true + /// Gets or sets whether to show shadow. Default is true /// [Parameter] public bool ShowShadow { get; set; } = true; /// - /// 获得/设置 内容模板 默认 null 设置值后 参数失效 - /// Gets or sets Content Template. Default null. parameter is invalid if set - /// 10.2.2 + /// 获得/设置 内容模板,默认为 null。设置值后 参数失效 + /// Gets or sets the content template. Default is null. parameter is invalid if set /// [Parameter] public RenderFragment? Template { get; set; } @@ -48,14 +45,12 @@ public partial class Popover /// /// /// - /// protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id, new { Content, Template = Template != null }); /// /// /// /// - /// protected override async Task OnAfterRenderAsync(bool firstRender) { await base.OnAfterRenderAsync(firstRender); diff --git a/src/BootstrapBlazor/Components/Popover/PopupOptionBase.cs b/src/BootstrapBlazor/Components/Popover/PopupOptionBase.cs index 4189652a6cc..df530b14d04 100644 --- a/src/BootstrapBlazor/Components/Popover/PopupOptionBase.cs +++ b/src/BootstrapBlazor/Components/Popover/PopupOptionBase.cs @@ -13,27 +13,25 @@ public abstract class PopupOptionBase { /// /// 获得/设置 Toast Body 子组件 - /// Gets or sets Toast Body Child Component + /// Gets or sets the Toast Body child component /// public string? Content { get; set; } /// - /// 获得/设置 是否自动隐藏 默认 true 自动关闭 默认 true - /// Gets or sets Whether to auto hide. Default true + /// 获得/设置 是否自动隐藏,默认为 true + /// Gets or sets whether to auto hide. Default is true /// public bool IsAutoHide { get; set; } = true; /// - /// 获得/设置 自动隐藏时间间隔 单位毫秒 默认 4000 可通过全局配置进行统一更改 - /// Gets or sets Auto hide interval in milliseconds. Default 4000. Can be configured globally + /// 获得/设置 自动隐藏时间间隔(单位毫秒),默认为 4000。可通过全局配置进行统一更改 + /// Gets or sets the auto hide interval in milliseconds. Default is 4000. Can be configured globally /// public int Delay { get; set; } = 4000; /// - /// 获得/设置 是否强制使用本实例的延时时间,防止值被全局配置覆盖 默认 false - /// Gets or sets Whether to force use the delay time of this instance to prevent the value from being overwritten by global configuration. Default false - /// 组件使用 值进行自动关闭,可通过 类相关参数进行全局设置延时关闭时间,可通过本参数强制使用 - /// Component uses value for automatic closing, global setting of delay closing time can be done through related parameters of class, this parameter can force usage of value + /// 获得/设置 是否强制使用本实例的延时时间,防止值被全局配置覆盖,默认为 false。组件使用 值进行自动关闭,可通过 类相关参数进行全局设置延时关闭时间,可通过本参数强制使用 + /// Gets or sets whether to force use the delay time of this instance to prevent the value from being overwritten by global configuration. Default is false. Component uses value for automatic closing, global setting of delay closing time can be done through related parameters of class, this parameter can force usage of value /// public bool ForceDelay { get; set; } } diff --git a/src/BootstrapBlazor/Components/Print/PrintButton.razor.cs b/src/BootstrapBlazor/Components/Print/PrintButton.razor.cs index 8dedf42a7d8..f60ec4cde73 100644 --- a/src/BootstrapBlazor/Components/Print/PrintButton.razor.cs +++ b/src/BootstrapBlazor/Components/Print/PrintButton.razor.cs @@ -14,9 +14,8 @@ namespace BootstrapBlazor.Components; public partial class PrintButton { /// - /// 获得/设置 预览模板地址 默认为空 - /// Gets or sets Preview template URL. Default empty - /// 10.2.2 + /// 获得/设置 预览模板地址,默认为 null + /// Gets or sets the preview template URL. Default is null /// [Parameter] public string? PreviewUrl { get; set; } diff --git a/src/BootstrapBlazor/Components/Progress/Progress.razor.cs b/src/BootstrapBlazor/Components/Progress/Progress.razor.cs index 98090aafc5b..6087a5097a2 100644 --- a/src/BootstrapBlazor/Components/Progress/Progress.razor.cs +++ b/src/BootstrapBlazor/Components/Progress/Progress.razor.cs @@ -14,43 +14,38 @@ namespace BootstrapBlazor.Components; public partial class Progress { /// - /// 获得/设置 控件高度 默认 null 未设置 - /// Gets or sets Control Height. Default null - /// 10.2.2 + /// 获得/设置 控件高度,默认为 null 未设置 + /// Gets or sets the control height. Default is null /// [Parameter] public int? Height { get; set; } /// - /// 获得/设置 颜色 默认为 Color.Primary - /// Gets or sets Color. Default Color.Primary - /// 10.2.2 + /// 获得/设置 颜色,默认为 Color.Primary + /// Gets or sets the color. Default is Color.Primary /// [Parameter] public Color Color { get; set; } = Color.Primary; /// - /// 获得/设置 是否显示进度条值 默认 false - /// Gets or sets Whether to show progress value. Default false - /// 10.2.2 + /// 获得/设置 是否显示进度条值,默认为 false + /// Gets or sets whether to show progress value. Default is false /// /// [Parameter] public bool IsShowValue { get; set; } /// - /// 获得/设置 是否显示为条纹 默认 false - /// Gets or sets Whether to show striped. Default false - /// 10.2.2 + /// 获得/设置 是否显示为条纹,默认为 false + /// Gets or sets whether to show striped. Default is false /// /// [Parameter] public bool IsStriped { get; set; } /// - /// 获得/设置 是否动画 默认 false - /// Gets or sets Whether to show animated. Default false - /// 10.2.2 + /// 获得/设置 是否动画,默认为 false + /// Gets or sets whether to show animated. Default is false /// /// [Parameter] @@ -58,32 +53,28 @@ public partial class Progress /// /// 获得/设置 组件进度值 - /// Gets or sets Progress Value - /// 10.2.2 + /// Gets or sets the progress value /// [Parameter] public double Value { get; set; } /// - /// 获得/设置 进度值修约小数位数, 默认 0 (即保留为整数) - /// Gets or sets Rounding decimal places. Default 0 (Keep integer) - /// 10.2.2 + /// 获得/设置 进度值修约小数位数,默认为 0(即保留为整数) + /// Gets or sets the rounding decimal places. Default is 0 (Keep as integer) /// [Parameter] public int Round { get; set; } /// - /// 获得/设置 保留小数点模式 默认为 AwayFromZero - /// Gets or sets Rounding mode. Default AwayFromZero - /// 10.2.2 + /// 获得/设置 保留小数点模式,默认为 AwayFromZero + /// Gets or sets the rounding mode. Default is AwayFromZero /// [Parameter] public MidpointRounding MidpointRounding { get; set; } = MidpointRounding.AwayFromZero; /// /// 获得/设置 进度标签文本 - /// Gets or sets Progress Label Text - /// 10.2.2 + /// Gets or sets the progress label text /// [Parameter] public string? Text { get; set; } @@ -92,44 +83,26 @@ public partial class Progress .AddClassFromAttributes(AdditionalAttributes) .Build(); - /// - /// 获得 样式集合 - /// Get Style Collection - /// - /// private string? ClassName => CssBuilder.Default("progress-bar") .AddClass($"bg-{Color.ToDescriptionString()}", Color != Color.None) .AddClass("progress-bar-striped", IsStriped) .AddClass("progress-bar-animated", IsAnimated) .Build(); - /// - /// 获得 Style 集合 - /// Get Style Collection - /// private string? StyleName => CssBuilder.Default() .AddClass($"width: {InternalValue.ToString(CultureInfo.InvariantCulture)}%;") .Build(); - /// - /// 获得 ProgressStyle 集合 - /// Get ProgressStyle Collection - /// private string? ProgressStyle => CssBuilder.Default() .AddClass($"height: {Height}px;", Height.HasValue) .Build(); private double InternalValue => Round == 0 ? Value : Math.Round(Value, Round, MidpointRounding); - /// - /// 获得 当前值百分比标签文字 - /// Get Current Value Percentage Label Text - /// private string? ValueLabelString => IsShowValue ? string.IsNullOrEmpty(Text) ? $"{InternalValue}%" : Text : null; /// - /// OnParametersSet 方法 - /// OnParametersSet Method + /// /// protected override void OnParametersSet() { diff --git a/src/BootstrapBlazor/Components/QueryBuilder/QueryBuilder.razor.cs b/src/BootstrapBlazor/Components/QueryBuilder/QueryBuilder.razor.cs index 6e0ff2521a5..89cca2f4fe5 100644 --- a/src/BootstrapBlazor/Components/QueryBuilder/QueryBuilder.razor.cs +++ b/src/BootstrapBlazor/Components/QueryBuilder/QueryBuilder.razor.cs @@ -22,8 +22,7 @@ namespace BootstrapBlazor.Components; /// /// 获得/设置 过滤模型 实例值 - /// Gets or sets Filter Model Value - /// 10.2.2 + /// Gets or sets the filter model value /// [Parameter] [NotNull] @@ -31,81 +30,71 @@ namespace BootstrapBlazor.Components; public FilterKeyValueAction? Value { get; set; } /// - /// 获得/设置 Filter 回调方法 支持双向绑定 - /// Gets or sets Filter Callback Method. Supports Two-way Binding - /// 10.2.2 + /// 获得/设置 Filter 回调方法,支持双向绑定 + /// Gets or sets the filter callback method. Supports two-way binding /// [Parameter] public EventCallback ValueChanged { get; set; } /// /// 获得/设置 逻辑运算符 - /// Gets or sets Logic Operator - /// 10.2.2 + /// Gets or sets the logic operator /// [Parameter] public FilterLogic Logic { get; set; } /// /// 获得/设置 模板 - /// Gets or sets Template - /// 10.2.2 + /// Gets or sets the template /// [Parameter] public RenderFragment? ChildContent { get; set; } /// - /// 获得/设置 是否显示 Header 区域 默认 true 显示 - /// Gets or sets Whether to show Header area. Default true - /// 10.2.2 + /// 获得/设置 是否显示 Header 区域,默认为 true + /// Gets or sets whether to show Header area. Default is true /// [Parameter] public bool ShowHeader { get; set; } = true; /// - /// 获得/设置 Header 模板 默认 null - /// Gets or sets Header Template. Default null - /// 10.2.2 + /// 获得/设置 Header 模板,默认为 null + /// Gets or sets the header template. Default is null /// [Parameter] public RenderFragment? HeaderTemplate { get; set; } /// /// 获得/设置 增加过滤条件图标 - /// Gets or sets Add Filter Condition Icon - /// 10.2.2 + /// Gets or sets the add filter condition icon /// [Parameter] public string? PlusIcon { get; set; } /// /// 获得/设置 移除过滤条件图标 - /// Gets or sets Remove Filter Condition Icon - /// 10.2.2 + /// Gets or sets the remove filter condition icon /// [Parameter] public string? RemoveIcon { get; set; } /// /// 获得/设置 减少过滤条件图标 - /// Gets or sets Reduce Filter Condition Icon - /// 10.2.2 + /// Gets or sets the reduce filter condition icon /// [Parameter] public string? MinusIcon { get; set; } /// /// 获得/设置 组合过滤条件文本 - /// Gets or sets Group Filter Condition Text - /// 10.2.2 + /// Gets or sets the group filter condition text /// [Parameter] public string? GroupText { get; set; } /// /// 获得/设置 过滤条件文本 - /// Gets or sets Filter Condition Text - /// 10.2.2 + /// Gets or sets the filter condition text /// [Parameter] public string? ItemText { get; set; } diff --git a/src/BootstrapBlazor/Components/QueryBuilder/QueryColumn.cs b/src/BootstrapBlazor/Components/QueryBuilder/QueryColumn.cs index a48454f337c..2bbe8bac047 100644 --- a/src/BootstrapBlazor/Components/QueryBuilder/QueryColumn.cs +++ b/src/BootstrapBlazor/Components/QueryBuilder/QueryColumn.cs @@ -16,32 +16,28 @@ public class QueryColumn : QueryGroup { /// /// 获得/设置 条件字段名称 - /// Gets or sets Condition Field Name - /// 10.2.2 + /// Gets or sets the condition field name /// [Parameter] public TType? Field { get; set; } /// /// 获得/设置 FieldExpression 表达式 - /// Gets or sets FieldExpression - /// 10.2.2 + /// Gets or sets the FieldExpression /// [Parameter] public Expression>? FieldExpression { get; set; } /// /// 获得/设置 条件操作符号 - /// Gets or sets Condition Operator - /// 10.2.2 + /// Gets or sets the condition operator /// [Parameter] public FilterAction Operator { get; set; } /// /// 获得/设置 条件值 - /// Gets or sets Condition Value - /// 10.2.2 + /// Gets or sets the condition value /// [Parameter] public object? Value { get; set; } diff --git a/src/BootstrapBlazor/Components/QueryBuilder/QueryGroup.razor.cs b/src/BootstrapBlazor/Components/QueryBuilder/QueryGroup.razor.cs index 89e10261685..c968dd8a545 100644 --- a/src/BootstrapBlazor/Components/QueryBuilder/QueryGroup.razor.cs +++ b/src/BootstrapBlazor/Components/QueryBuilder/QueryGroup.razor.cs @@ -13,30 +13,28 @@ public partial class QueryGroup : IDisposable { /// /// 获得/设置 子组件 - /// Gets or sets Child Content - /// 10.2.2 + /// Gets or sets the child component /// [Parameter] public RenderFragment? ChildContent { get; set; } /// /// 获得/设置 逻辑运算符 - /// Gets or sets Logic Operator - /// 10.2.2 + /// Gets or sets the logic operator /// [Parameter] public FilterLogic Logic { get; set; } /// - /// 过滤条件集合 - /// Filter collection + /// 获得 过滤条件集合 + /// Gets the filter collection /// [CascadingParameter] protected List? Filters { get; set; } /// - /// 过滤条件集合 - /// Filter collection + /// 获得 过滤条件集合 + /// Gets the filter collection /// protected FilterKeyValueAction _filter = new(); @@ -74,8 +72,7 @@ protected virtual void Dispose(bool disposing) } /// - /// 释放资源 - /// Dispose + /// /// public void Dispose() { diff --git a/src/BootstrapBlazor/Components/Radio/Radio.razor.cs b/src/BootstrapBlazor/Components/Radio/Radio.razor.cs index eed6b19fc1b..8a1713e4523 100644 --- a/src/BootstrapBlazor/Components/Radio/Radio.razor.cs +++ b/src/BootstrapBlazor/Components/Radio/Radio.razor.cs @@ -14,16 +14,14 @@ public partial class Radio : Checkbox { /// /// 获得/设置 点击回调方法 - /// Gets or sets Click Callback Method - /// 10.2.2 + /// Gets or sets the click callback method /// [Parameter] public Func? OnClick { get; set; } /// - /// 获得/设置 Radio 组名称一般来讲需要设置 默认为 null 未设置 - /// Gets or sets Radio Group Name. Default null - /// 10.2.2 + /// 获得/设置 Radio 组名称。一般来讲需要设置,默认为 null 未设置 + /// Gets or sets the Radio group name. Default is null /// [Parameter] [EditorRequired] diff --git a/src/BootstrapBlazor/Components/Radio/RadioList.razor.cs b/src/BootstrapBlazor/Components/Radio/RadioList.razor.cs index 28d3d1cfea6..44be7d4d593 100644 --- a/src/BootstrapBlazor/Components/Radio/RadioList.razor.cs +++ b/src/BootstrapBlazor/Components/Radio/RadioList.razor.cs @@ -14,26 +14,23 @@ namespace BootstrapBlazor.Components; public partial class RadioList { /// - /// 获得/设置 值为可为空枚举类型时是否自动添加空值 默认 false 自定义空值显示文本请参考 - /// Gets or sets Whether to auto add null value when value is nullable enum. Default false. Custom null value display text, please refer to - /// 10.2.2 + /// 获得/设置 值为可为空枚举类型时是否自动添加空值,默认为 false。自定义空值显示文本请参考 + /// Gets or sets whether to auto add null value when value is nullable enum. Default is false. Custom null value display text, please refer to /// [Parameter] public bool IsAutoAddNullItem { get; set; } /// - /// 获得/设置 空值项显示文字 默认为 "" 是否自动添加空值请参考 - /// Gets or sets Null item display text. Default "". Whether to auto add null value, please refer to - /// 10.2.2 + /// 获得/设置 空值项显示文字,默认为 ""。是否自动添加空值请参考 + /// Gets or sets the null item display text. Default is "". Whether to auto add null value, please refer to /// [Parameter] [NotNull] public string? NullItemText { get; set; } /// - /// 获得/设置 未设置选中项时是否自动选择第一项 默认 true - /// Gets or sets Whether to auto select first item when no item is selected. Default true - /// 10.2.2 + /// 获得/设置 未设置选中项时是否自动选择第一项,默认为 true + /// Gets or sets whether to auto select first item when no item is selected. Default is true /// [Parameter] public bool AutoSelectFirstWhenValueIsNull { get; set; } = true; @@ -83,7 +80,6 @@ protected override void OnParametersSet() /// ///
/// - /// protected override string? FormatValueAsString(TValue? value) => value is SelectedItem v ? v.Value : value?.ToString(); /// @@ -92,7 +88,6 @@ protected override void OnParametersSet() /// /// /// - /// protected override bool TryParseValueFromString(string value, [MaybeNullWhen(false)] out TValue result, out string? validationErrorMessage) { var ret = false; @@ -112,23 +107,17 @@ protected override bool TryParseValueFromString(string value, [MaybeNullWhen(fal } /// - /// - /// + /// /// /// /// protected override void ProcessGenericItems(Type typeValue, IEnumerable? list) { } /// - /// - /// + /// /// protected override void EnsureParameterValid() { } - /// - /// 点击选择框方法 - /// Click Checkbox Method - /// private async Task OnClick(SelectedItem item) { if (!IsDisabled) diff --git a/src/BootstrapBlazor/Components/Radio/RadioListGeneric.razor.cs b/src/BootstrapBlazor/Components/Radio/RadioListGeneric.razor.cs index 314e094f44b..c7e1aedc168 100644 --- a/src/BootstrapBlazor/Components/Radio/RadioListGeneric.razor.cs +++ b/src/BootstrapBlazor/Components/Radio/RadioListGeneric.razor.cs @@ -12,17 +12,15 @@ namespace BootstrapBlazor.Components; public partial class RadioListGeneric : IModelEqualityComparer { /// - /// 获得/设置 值为可为空枚举类型时是否自动添加空值 默认 false 自定义空值显示文本请参考 - /// Gets or sets Whether to auto add null value when value is nullable enum. Default false. Custom null value display text, please refer to - /// 10.2.2 + /// 获得/设置 值为可为空枚举类型时是否自动添加空值,默认为 false。自定义空值显示文本请参考 + /// Gets or sets whether to auto add null value when value is nullable enum. Default is false. Custom null value display text, please refer to /// [Parameter] public bool IsAutoAddNullItem { get; set; } /// - /// 获得/设置 空值项显示文字 默认为 "" 是否自动添加空值请参考 - /// Gets or sets Null item display text. Default "". Whether to auto add null value, please refer to - /// 10.2.2 + /// 获得/设置 空值项显示文字,默认为 ""。是否自动添加空值请参考 + /// Gets or sets the null item display text. Default is "". Whether to auto add null value, please refer to /// [Parameter] [NotNull] @@ -30,86 +28,74 @@ public partial class RadioListGeneric : IModelEqualityComparer /// /// 获得/设置 项模板 - /// Gets or sets Item Template - /// 10.2.2 + /// Gets or sets the item template /// [Parameter] public RenderFragment>? ItemTemplate { get; set; } /// - /// 获得/设置 是否为按钮样式 默认 false - /// Gets or sets Whether to be button style. Default false - /// 10.2.2 + /// 获得/设置 是否为按钮样式,默认为 false + /// Gets or sets whether to be button style. Default is false /// [Parameter] public bool IsButton { get; set; } /// - /// 获得/设置 是否显示边框 默认为 true - /// Gets or sets Whether to show border. Default true - /// 10.2.2 + /// 获得/设置 是否显示边框,默认为 true + /// Gets or sets whether to show border. Default is true /// [Parameter] public bool ShowBorder { get; set; } = true; /// - /// 获得/设置 是否为竖向排列 默认为 false - /// Gets or sets Whether to be vertical layout. Default false - /// 10.2.2 + /// 获得/设置 是否为竖向排列,默认为 false + /// Gets or sets whether to be vertical layout. Default is false /// [Parameter] public bool IsVertical { get; set; } /// - /// 获得/设置 按钮颜色 默认为 None 未设置 - /// Gets or sets Button Color. Default None - /// 10.2.2 + /// 获得/设置 按钮颜色,默认为 None 未设置 + /// Gets or sets the button color. Default is None /// [Parameter] public Color Color { get; set; } /// /// 获得/设置 数据源 - /// Gets or sets Items - /// 10.2.2 + /// Gets or sets the items /// [Parameter] [NotNull] public IEnumerable>? Items { get; set; } /// - /// 获得/设置 SelectedItemChanged 方法 - /// Gets or sets OnSelectedChanged Method - /// 10.2.2 + /// 获得/设置 SelectedItemChanged 回调方法 + /// Gets or sets the callback method when selected item changed /// [Parameter] public Func? OnSelectedChanged { get; set; } /// - /// 获得/设置 数据主键标识标签 默认为
用于判断数据主键标签,如果模型未设置主键时可使用 参数自定义判断
数据模型支持联合主键
- /// Gets or sets Data primary key identification attribute. Default
Used to identify data primary key attribute, if model does not set primary key, you can use parameter to customize judgment
Data model supports composite primary keys
- /// 10.2.2 + /// 获得/设置 数据主键标识标签,默认为 。用于判断数据主键标签,如果模型未设置主键时可使用 参数自定义判断。数据模型支持联合主键 + /// Gets or sets the data primary key identification attribute. Default is . Used to identify data primary key attribute, if model does not set primary key, you can use parameter to customize judgment. Data model supports composite primary keys ///
[Parameter] [NotNull] public Type? CustomKeyAttribute { get; set; } = typeof(KeyAttribute); /// - /// 获得/设置 比较数据是否相同回调方法 默认为 null - /// Gets or sets Callback method for comparing whether data is the same. Default null - /// 提供此回调方法时忽略 属性 - /// Ignore property when providing this callback method - /// 10.2.2 + /// 获得/设置 比较数据是否相同的回调方法,默认为 null。提供此回调方法时忽略 属性 + /// Gets or sets the callback method for comparing whether data is the same. Default is null. Ignore property when providing this callback method /// [Parameter] public Func? ModelEqualityComparer { get; set; } /// /// 获得 当前选项是否被禁用 - /// Get Whether current option is disabled + /// Gets whether the current option is disabled /// /// - /// private bool GetDisabledState(SelectedItem item) => IsDisabled || item.IsDisabled; private string? GroupName => Id; @@ -161,10 +147,6 @@ protected override void OnParametersSet() } } - /// - /// 点击选择框方法 - /// Click Checkbox Method - /// private async Task OnClick(SelectedItem item) { if (!IsDisabled) diff --git a/src/BootstrapBlazor/Components/Rate/Rate.razor.cs b/src/BootstrapBlazor/Components/Rate/Rate.razor.cs index 0811964041e..1e30948e38f 100644 --- a/src/BootstrapBlazor/Components/Rate/Rate.razor.cs +++ b/src/BootstrapBlazor/Components/Rate/Rate.razor.cs @@ -13,7 +13,7 @@ public partial class Rate { /// /// 获得 样式集合 - /// Get Style Collection + /// Gets the style collection /// private string? ClassString => CssBuilder.Default("rate") .AddClass("text-nowrap", !IsWrap) @@ -28,10 +28,9 @@ public partial class Rate /// /// 判断是否显示部分星级 - /// Determine whether to show partial stars + /// Determines whether to show partial stars /// /// - /// private bool IsPartialStar(int i) => (Value + 1 - i) is > 0 and < 1; private string GetIcon(int i) => Value >= i ? StarIcon : UnStarIcon; @@ -40,8 +39,7 @@ public partial class Rate /// /// 获得/设置 选中图标 - /// Gets or sets Checked Icon - /// 10.2.2 + /// Gets or sets the checked icon /// [Parameter] [NotNull] @@ -49,8 +47,7 @@ public partial class Rate /// /// 获得/设置 未选中图标 - /// Gets or sets Unchecked Icon - /// 10.2.2 + /// Gets or sets the unchecked icon /// [Parameter] [NotNull] @@ -58,74 +55,65 @@ public partial class Rate /// /// 获得/设置 组件值 - /// Gets or sets Value - /// 10.2.2 + /// Gets or sets the value /// [Parameter] public double Value { get; set; } /// - /// 获得/设置 是否禁用 默认为 false - /// Gets or sets Whether disabled. Default false - /// 10.2.2 + /// 获得/设置 是否禁用,默认为 false + /// Gets or sets whether disabled. Default is false /// /// 禁用模式下图标颜色为灰色,不可点击 [Parameter] public bool IsDisable { get; set; } /// - /// 获得/设置 是否只读 默认为 false - /// Gets or sets Whether readonly. Default false - /// 10.2.2 + /// 获得/设置 是否只读,默认为 false + /// Gets or sets whether readonly. Default is false /// /// 只读情况下图标为彩色,仅不可点击 [Parameter] public bool IsReadonly { get; set; } /// - /// 获得/设置 是否禁止换行 默认为 true - /// Gets or sets Whether to disable wrap. Default true - /// 10.2.2 + /// 获得/设置 是否禁止换行,默认为 true + /// Gets or sets whether to disable wrap. Default is true /// [Parameter] public bool IsWrap { get; set; } /// - /// 获得/设置 是否显示 Value 默认为 false - /// Gets or sets Whether to show Value. Default false - /// 10.2.2 + /// 获得/设置 是否显示 Value,默认为 false + /// Gets or sets whether to show Value. Default is false /// [Parameter] public bool ShowValue { get; set; } /// /// 获得/设置 子项模板 - /// Gets or sets Item Template - /// 10.2.2 + /// Gets or sets the item template /// [Parameter] public RenderFragment? ItemTemplate { get; set; } /// /// 获得/设置 组件值变化时回调委托 - /// Gets or sets Value Changed Callback Delegate - /// 10.2.2 + /// Gets or sets the value changed callback delegate /// [Parameter] public EventCallback ValueChanged { get; set; } /// - /// 获得/设置 组件值变化时回调委托 - /// Gets or sets Value Changed Callback Delegate - /// 10.2.2 + /// 获得/设置 组件值变化时回调方法 + /// Gets or sets the value changed callback method /// [Parameter] public Func? OnValueChanged { get; set; } /// - /// 获得/设置 最大值 默认 5 - /// Gets or sets Max Value. Default 5 - /// 10.2.2 + /// 获得/设置 最大值,默认为 5 + /// Gets or sets the max value. Default is 5 /// [Parameter] public int Max { get; set; } = 5; diff --git a/src/BootstrapBlazor/Components/Reconnector/IReconnector.cs b/src/BootstrapBlazor/Components/Reconnector/IReconnector.cs index c9b3a7a44bf..b75f969c362 100644 --- a/src/BootstrapBlazor/Components/Reconnector/IReconnector.cs +++ b/src/BootstrapBlazor/Components/Reconnector/IReconnector.cs @@ -13,19 +13,19 @@ public interface IReconnector { /// /// 获得/设置 正在尝试重试连接对话框的模板 - /// Gets or sets Reconnecting Template + /// Gets or sets the reconnecting template /// RenderFragment? ReconnectingTemplate { get; set; } /// /// 获得/设置 连接失败对话框的模板 - /// Gets or sets Reconnect Failed Template + /// Gets or sets the reconnect failed template /// RenderFragment? ReconnectFailedTemplate { get; set; } /// /// 获得/设置 连接被拒绝对话框的模板 - /// Gets or sets Reconnect Rejected Template + /// Gets or sets the reconnect rejected template /// RenderFragment? ReconnectRejectedTemplate { get; set; } } diff --git a/src/BootstrapBlazor/Components/Reconnector/IReconnectorProvider.cs b/src/BootstrapBlazor/Components/Reconnector/IReconnectorProvider.cs index 5e86b31bfd2..65a26c935cb 100644 --- a/src/BootstrapBlazor/Components/Reconnector/IReconnectorProvider.cs +++ b/src/BootstrapBlazor/Components/Reconnector/IReconnectorProvider.cs @@ -13,14 +13,14 @@ internal interface IReconnectorProvider { /// /// 注册回调方法 - /// Register Callback Method + /// Registers the callback method /// /// void Register(Action action); /// /// 内容变化通知方法 - /// Notify Content Changed Method + /// Notifies when content has changed /// /// void NotifyContentChanged(IReconnector content); diff --git a/src/BootstrapBlazor/Components/Reconnector/Reconnector.cs b/src/BootstrapBlazor/Components/Reconnector/Reconnector.cs index 090a455ed91..c4eb2e1c7f7 100644 --- a/src/BootstrapBlazor/Components/Reconnector/Reconnector.cs +++ b/src/BootstrapBlazor/Components/Reconnector/Reconnector.cs @@ -14,7 +14,6 @@ public class Reconnector : ComponentBase, IReconnector /// /// 获得/设置 正在尝试重试连接对话框的模板 /// Gets or sets Reconnecting Template - /// 10.2.2 /// [Parameter] public RenderFragment? ReconnectingTemplate { get; set; } @@ -22,7 +21,6 @@ public class Reconnector : ComponentBase, IReconnector /// /// 获得/设置 连接失败对话框的模板 /// Gets or sets Reconnect Failed Template - /// 10.2.2 /// [Parameter] public RenderFragment? ReconnectFailedTemplate { get; set; } @@ -30,7 +28,6 @@ public class Reconnector : ComponentBase, IReconnector /// /// 获得/设置 连接被拒绝对话框的模板 /// Gets or sets Reconnect Rejected Template - /// 10.2.2 /// [Parameter] public RenderFragment? ReconnectRejectedTemplate { get; set; } diff --git a/src/BootstrapBlazor/Components/Reconnector/ReconnectorContent.razor.cs b/src/BootstrapBlazor/Components/Reconnector/ReconnectorContent.razor.cs index 75ab25f52d5..f7fb632a50e 100644 --- a/src/BootstrapBlazor/Components/Reconnector/ReconnectorContent.razor.cs +++ b/src/BootstrapBlazor/Components/Reconnector/ReconnectorContent.razor.cs @@ -14,7 +14,6 @@ public partial class ReconnectorContent /// /// 获得/设置 ReconnectingTemplate 模板 /// Gets or sets ReconnectingTemplate - /// 10.2.2 /// [Parameter] public RenderFragment? ReconnectingTemplate { get; set; } @@ -22,7 +21,6 @@ public partial class ReconnectorContent /// /// 获得/设置 ReconnectFailedTemplate 模板 /// Gets or sets ReconnectFailedTemplate - /// 10.2.2 /// [Parameter] public RenderFragment? ReconnectFailedTemplate { get; set; } @@ -30,7 +28,6 @@ public partial class ReconnectorContent /// /// 获得/设置 ReconnectRejectedTemplate 模板 /// Gets or sets ReconnectRejectedTemplate - /// 10.2.2 /// [Parameter] public RenderFragment? ReconnectRejectedTemplate { get; set; } @@ -38,7 +35,6 @@ public partial class ReconnectorContent /// /// 获得/设置 是否自动尝试重连 默认 true /// Gets or sets Whether to auto reconnect. Default true - /// 10.2.2 /// [Parameter] public bool AutoReconnect { get; set; } = true; @@ -46,7 +42,6 @@ public partial class ReconnectorContent /// /// 获得/设置 自动重连间隔 默认 5000 毫秒 最小值为 1000 毫秒 /// Gets or sets Auto reconnect interval. Default 5000ms. Min 1000ms - /// 10.2.2 /// [Parameter] public int ReconnectInterval { get; set; } = 5000; @@ -60,7 +55,6 @@ public partial class ReconnectorContent /// SetParametersAsync Method ///
/// - /// public override Task SetParametersAsync(ParameterView parameters) { Provider.Register(ContentChanged); @@ -70,7 +64,6 @@ public override Task SetParametersAsync(ParameterView parameters) /// /// /// - /// protected override async Task InvokeInitAsync() { if (AutoReconnect) diff --git a/src/BootstrapBlazor/Components/Reconnector/ReconnectorOutlet.cs b/src/BootstrapBlazor/Components/Reconnector/ReconnectorOutlet.cs index 7ffa2d924be..6c23c2d333d 100644 --- a/src/BootstrapBlazor/Components/Reconnector/ReconnectorOutlet.cs +++ b/src/BootstrapBlazor/Components/Reconnector/ReconnectorOutlet.cs @@ -14,24 +14,22 @@ namespace Microsoft.AspNetCore.Components.Web; public class ReconnectorOutlet : ComponentBase { /// - /// 获得/设置 是否自动尝试重连 默认 true - /// Gets or sets Whether to auto reconnect. Default true - /// 10.2.2 + /// 获得/设置 是否自动尝试重连,默认为 true + /// Gets or sets whether to auto reconnect. Default is true /// [Parameter] public bool AutoReconnect { get; set; } = true; /// - /// 获得/设置 自动重连间隔 默认 5000 毫秒 最小值为 1000 毫秒 - /// Gets or sets Auto reconnect interval. Default 5000ms. Min 1000ms - /// 10.2.2 + /// 获得/设置 自动重连间隔,默认为 5000 毫秒。最小值为 1000 毫秒 + /// Gets or sets the auto reconnect interval. Default is 5000ms. Minimum is 1000ms /// [Parameter] public int ReconnectInterval { get; set; } = 5000; /// /// BuildRenderTree 方法 - /// BuildRenderTree Method + /// BuildRenderTree method /// /// protected override void BuildRenderTree(RenderTreeBuilder builder) diff --git a/src/BootstrapBlazor/Components/Redirect/Redirect.cs b/src/BootstrapBlazor/Components/Redirect/Redirect.cs index b6df374ed94..98fb3eeaf3d 100644 --- a/src/BootstrapBlazor/Components/Redirect/Redirect.cs +++ b/src/BootstrapBlazor/Components/Redirect/Redirect.cs @@ -16,20 +16,18 @@ public class Redirect : ComponentBase private NavigationManager? Navigation { get; set; } /// - /// 获得/设置 登录地址 默认 Account/Login - /// Gets or sets Login URL. Default Account/Login - /// 10.2.2 + /// 获得/设置 登录地址,默认为 Account/Login + /// Gets or sets the login URL. Default is Account/Login /// [Parameter] public string Url { get; set; } = "Account/Login"; /// - /// 获得/设置 是否强制导航 默认 true - /// Gets or sets Whether to force load. Default true - /// 10.2.2 + /// 获得/设置 是否强制导航,默认为 true + /// Gets or sets whether to force load. Default is true /// /// - /// 设置 false 时适用 SPA 程序不会强制页面重新加载 + /// 设置为 false 时适用于 SPA 程序,不会强制页面重新加载 /// Applicable to SPA programs when set to false, will not force page reload /// [Parameter] @@ -37,7 +35,7 @@ public class Redirect : ComponentBase /// /// OnInitialized 方法 - /// OnInitialized Method + /// OnInitialized method /// protected override void OnInitialized() { diff --git a/src/BootstrapBlazor/Components/Repeater/Repeater.razor.cs b/src/BootstrapBlazor/Components/Repeater/Repeater.razor.cs index c1e8a60a917..b4c66dfe407 100644 --- a/src/BootstrapBlazor/Components/Repeater/Repeater.razor.cs +++ b/src/BootstrapBlazor/Components/Repeater/Repeater.razor.cs @@ -20,64 +20,56 @@ public partial class Repeater /// /// 获得/设置 数据源 - /// Gets or sets Items - /// 10.2.2 + /// Gets or sets the items /// [Parameter] public IEnumerable? Items { get; set; } /// - /// 获得/设置 是否显示正在加载信息 默认 true 显示 - /// Gets or sets Whether to show loading info. Default true - /// 10.2.2 + /// 获得/设置 是否显示正在加载信息,默认为 true + /// Gets or sets whether to show loading info. Default is true /// [Parameter] public bool ShowLoading { get; set; } = true; /// /// 获得/设置 正在加载模板 - /// Gets or sets Loading Template - /// 10.2.2 + /// Gets or sets the loading template /// [Parameter] public RenderFragment? LoadingTemplate { get; set; } /// - /// 获得/设置 是否显示无数据信息 默认 true 显示 - /// Gets or sets Whether to show empty info. Default true - /// 10.2.2 + /// 获得/设置 是否显示无数据信息,默认为 true + /// Gets or sets whether to show empty info. Default is true /// [Parameter] public bool ShowEmpty { get; set; } = true; /// - /// 获得/设置 无数据时提示信息 默认 null - /// Gets or sets Empty Text. Default null - /// 10.2.2 + /// 获得/设置 无数据时提示信息,默认为 null + /// Gets or sets the empty text. Default is null /// [Parameter] public string? EmptyText { get; set; } /// - /// 获得/设置 正在加载模板 - /// Gets or sets Empty Template - /// 10.2.2 + /// 获得/设置 无数据时的模板 + /// Gets or sets the empty template /// [Parameter] public RenderFragment? EmptyTemplate { get; set; } /// /// 获得/设置 容器模板 - /// Gets or sets Container Template - /// 10.2.2 + /// Gets or sets the container template /// [Parameter] public RenderFragment? ContainerTemplate { get; set; } /// - /// 获得/设置 模板 - /// Gets or sets Item Template - /// 10.2.2 + /// 获得/设置 项模板 + /// Gets or sets the item template /// [Parameter] public RenderFragment? ItemTemplate { get; set; } diff --git a/src/BootstrapBlazor/Components/Responsive/Responsive.cs b/src/BootstrapBlazor/Components/Responsive/Responsive.cs index 3d72404c6fc..55086f4d80e 100644 --- a/src/BootstrapBlazor/Components/Responsive/Responsive.cs +++ b/src/BootstrapBlazor/Components/Responsive/Responsive.cs @@ -13,9 +13,8 @@ namespace BootstrapBlazor.Components; public class Responsive : BootstrapModuleComponentBase { /// - /// 获得/设置 浏览器断点阈值改变时触发 默认 null - /// Gets or sets Trigger when browser breakpoint threshold changes. Default null - /// 10.2.2 + /// 获得/设置 浏览器断点阈值改变时触发的回调方法,默认为 null + /// Gets or sets the callback method triggered when browser breakpoint threshold changes. Default is null /// [Parameter] public Func? OnBreakPointChanged { get; set; } @@ -25,15 +24,13 @@ public class Responsive : BootstrapModuleComponentBase /// /// /// - /// protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id, Interop, nameof(OnResize)); /// /// JSInvoke 回调方法 - /// JSInvoke Callback Method + /// JSInvoke callback method /// /// - /// [JSInvokable] public async Task OnResize(BreakPoint breakPoint) { diff --git a/src/BootstrapBlazor/Components/RibbonTab/RibbonTab.razor.cs b/src/BootstrapBlazor/Components/RibbonTab/RibbonTab.razor.cs index 96b0108d0d0..78e83c9870c 100644 --- a/src/BootstrapBlazor/Components/RibbonTab/RibbonTab.razor.cs +++ b/src/BootstrapBlazor/Components/RibbonTab/RibbonTab.razor.cs @@ -12,73 +12,64 @@ namespace BootstrapBlazor.Components; public partial class RibbonTab { /// - /// 获得/设置 是否显示悬浮小箭头 默认 false 不显示 - /// Gets or sets Whether to show float button. Default false - /// 10.2.2 + /// 获得/设置 是否显示悬浮小箭头,默认为 false + /// Gets or sets whether to show float button. Default is false /// [Parameter] public bool ShowFloatButton { get; set; } /// - /// 获得/设置 组件是否悬浮状态改变时回调方法 默认 null - /// Gets or sets Callback method when float state changes. Default null - /// 10.2.2 + /// 获得/设置 组件悬浮状态改变时的回调方法,默认为 null + /// Gets or sets the callback method when float state changes. Default is null /// [Parameter] public Func? OnFloatChanged { get; set; } /// /// 获得/设置 选项卡向上箭头图标 - /// Gets or sets Tab Arrow Up Icon - /// 10.2.2 + /// Gets or sets the tab arrow up icon /// [Parameter] public string? RibbonArrowUpIcon { get; set; } /// /// 获得/设置 选项卡向下箭头图标 - /// Gets or sets Tab Arrow Down Icon - /// 10.2.2 + /// Gets or sets the tab arrow down icon /// [Parameter] public string? RibbonArrowDownIcon { get; set; } /// /// 获得/设置 选项卡可固定图标 - /// Gets or sets Tab Pin Icon - /// 10.2.2 + /// Gets or sets the tab pin icon /// [Parameter] public string? RibbonArrowPinIcon { get; set; } /// /// 获得/设置 是否开启 Url 锚点 - /// Gets or sets Whether to enable Url Anchor - /// 10.2.2 + /// Gets or sets whether to enable URL anchor /// [Parameter] public bool IsSupportAnchor { get; set; } /// - /// 编码锚点回调方法 第一参数是当前地址 Url 第二个参数是当前选项 Text 属性 返回值为地址全路径 - /// Encode Anchor Callback Method. First param is current Url, second param is current item Text property. Return value is full path - /// 10.2.2 + /// 获得/设置 编码锚点回调方法。第一参数是当前地址 Url,第二个参数是当前选项 Text 属性,返回值为地址全路径 + /// Gets or sets the encode anchor callback method. First parameter is current URL, second parameter is current item Text property. Return value is full path /// [Parameter] public Func? EncodeAnchorCallback { get; set; } /// - /// 解码锚点回调方法 - /// Decode Anchor Callback Method - /// 10.2.2 + /// 获得/设置 解码锚点回调方法 + /// Gets or sets the decode anchor callback method /// [Parameter] public Func? DecodeAnchorCallback { get; set; } /// /// 获得/设置 数据源 - /// Gets or sets Items - /// 10.2.2 + /// Gets or sets the items /// [Parameter] [NotNull] @@ -89,40 +80,35 @@ public partial class RibbonTab /// /// 获得/设置 点击命令按钮回调方法 - /// Gets or sets Click Command Button Callback Method - /// 10.2.2 + /// Gets or sets the click command button callback method /// [Parameter] public Func? OnItemClickAsync { get; set; } /// /// 获得/设置 点击标签 Menu 回调方法 - /// Gets or sets Click Tab Menu Callback Method - /// 10.2.2 + /// Gets or sets the click tab menu callback method /// [Parameter] public Func? OnMenuClickAsync { get; set; } /// /// 获得/设置 右侧按钮模板 - /// Gets or sets Right Buttons Template - /// 10.2.2 + /// Gets or sets the right buttons template /// [Parameter] public RenderFragment? RightButtonsTemplate { get; set; } /// /// 获得/设置 内容模板 - /// Gets or sets Child Content - /// 10.2.2 + /// Gets or sets the child content /// [Parameter] public RenderFragment? ChildContent { get; set; } /// - /// 获得/设置 是否为带边框卡片样式 默认 true - /// Gets or sets Whether to have border. Default true - /// 10.2.2 + /// 获得/设置 是否为带边框卡片样式,默认为 true + /// Gets or sets whether to have border. Default is true /// [Parameter] public bool IsBorder { get; set; } = true; @@ -137,19 +123,18 @@ public partial class RibbonTab /// /// /// - /// protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id, Interop, nameof(SetExpand)); /// /// SetExpand 方法 - /// SetExpand Method + /// SetExpand method /// [JSInvokable] public void SetExpand() => _header.SetExpand(); /// /// 重新渲染组件 - /// Render Component + /// Renders the component /// public void Render() => _header.Render(); } diff --git a/src/BootstrapBlazor/Components/RibbonTab/RibbonTabHeader.razor.cs b/src/BootstrapBlazor/Components/RibbonTab/RibbonTabHeader.razor.cs index f1d44025507..5a3a2b6be58 100644 --- a/src/BootstrapBlazor/Components/RibbonTab/RibbonTabHeader.razor.cs +++ b/src/BootstrapBlazor/Components/RibbonTab/RibbonTabHeader.razor.cs @@ -15,8 +15,7 @@ public partial class RibbonTabHeader { /// /// 获得/设置 数据源 - /// Gets or sets Items - /// 10.2.2 + /// Gets or sets the items /// [Parameter] [NotNull] @@ -24,89 +23,78 @@ public partial class RibbonTabHeader public IEnumerable? Items { get; set; } /// - /// 获得/设置 是否显示悬浮小箭头 默认 false 不显示 - /// Gets or sets Whether to show float button. Default false - /// 10.2.2 + /// 获得/设置 是否显示悬浮小箭头,默认为 false + /// Gets or sets whether to show float button. Default is false /// [Parameter] public bool ShowFloatButton { get; set; } /// /// 获得/设置 是否开启 Url 锚点 - /// Gets or sets Whether to enable Url Anchor - /// 10.2.2 + /// Gets or sets whether to enable URL anchor /// [Parameter] public bool IsSupportAnchor { get; set; } /// /// 获得/设置 点击命令按钮回调方法 - /// Gets or sets Click Command Button Callback Method - /// 10.2.2 + /// Gets or sets the click command button callback method /// [Parameter] public Func? OnItemClickAsync { get; set; } /// /// 获得/设置 点击标签 Menu 回调方法 - /// Gets or sets Click Tab Menu Callback Method - /// 10.2.2 + /// Gets or sets the click tab menu callback method /// [Parameter] public Func? OnMenuClickAsync { get; set; } /// - /// 编码锚点回调方法 第一参数是当前地址 Url 第二个参数是当前选项 Text 属性 返回值为地址全路径 - /// Encode Anchor Callback Method. First param is current Url, second param is current item Text property. Return value is full path - /// 10.2.2 + /// 获得/设置 编码锚点回调方法。第一参数是当前地址 Url,第二个参数是当前选项 Text 属性,返回值为地址全路径 + /// Gets or sets the encode anchor callback method. First parameter is current URL, second parameter is current item Text property. Return value is full path /// [Parameter] public Func? EncodeAnchorCallback { get; set; } /// - /// 解码锚点回调方法 - /// Decode Anchor Callback Method - /// 10.2.2 + /// 获得/设置 解码锚点回调方法 + /// Gets or sets the decode anchor callback method /// [Parameter] public Func? DecodeAnchorCallback { get; set; } /// - /// 获得/设置 组件是否悬浮状态改变时回调方法 默认 null - /// Gets or sets Callback method when float state changes. Default null - /// 10.2.2 + /// 获得/设置 组件悬浮状态改变时的回调方法,默认为 null + /// Gets or sets the callback method when float state changes. Default is null /// [Parameter] public Func? OnFloatChanged { get; set; } /// /// 获得/设置 选项卡向上箭头图标 - /// Gets or sets Tab Arrow Up Icon - /// 10.2.2 + /// Gets or sets the tab arrow up icon /// [Parameter] public string? RibbonArrowUpIcon { get; set; } /// /// 获得/设置 选项卡向下箭头图标 - /// Gets or sets Tab Arrow Down Icon - /// 10.2.2 + /// Gets or sets the tab arrow down icon /// [Parameter] public string? RibbonArrowDownIcon { get; set; } /// /// 获得/设置 选项卡可固定图标 - /// Gets or sets Tab Pin Icon - /// 10.2.2 + /// Gets or sets the tab pin icon /// [Parameter] public string? RibbonArrowPinIcon { get; set; } /// /// 获得/设置 右侧按钮模板 - /// Gets or sets Right Buttons Template - /// 10.2.2 + /// Gets or sets the right buttons template /// [Parameter] public RenderFragment? RightButtonsTemplate { get; set; } diff --git a/src/BootstrapBlazor/Components/RibbonTab/RibbonTabItem.cs b/src/BootstrapBlazor/Components/RibbonTab/RibbonTabItem.cs index cb10289668c..082d8cc3467 100644 --- a/src/BootstrapBlazor/Components/RibbonTab/RibbonTabItem.cs +++ b/src/BootstrapBlazor/Components/RibbonTab/RibbonTabItem.cs @@ -12,112 +12,110 @@ namespace BootstrapBlazor.Components; public class RibbonTabItem { /// - /// 获得/设置 当前节点 Id 默认为 null - /// Gets or sets Node Id. Default null + /// 获得/设置 当前节点 Id,默认为 null + /// Gets or sets the node Id. Default is null /// - /// 一般配合数据库使用 public string? Id { get; set; } /// - /// 获得/设置 父级节点 Id 默认为 null - /// Gets or sets Parent Node Id. Default null + /// 获得/设置 父级节点 Id,默认为 null + /// Gets or sets the parent node Id. Default is null /// - /// 一般配合数据库使用 public string? ParentId { get; set; } /// - /// 获得 父级菜单 默认为 null - /// Get Parent Menu. Default null + /// 获得 父级菜单,默认为 null + /// Gets the parent menu. Default is null /// public RibbonTabItem? Parent { get; set; } /// /// 获得/设置 导航菜单链接地址 - /// Gets or sets Navigation URL + /// Gets or sets the navigation URL /// public string? Url { get; set; } /// - /// 获得/设置 A 标签 target 参数 默认 null - /// Gets or sets Target parameter for A tag. Default null + /// 获得/设置 A 标签 target 参数,默认为 null + /// Gets or sets the target parameter for A tag. Default is null /// public string? Target { get; set; } /// /// 获得/设置 图片路径 - /// Gets or sets Image URL + /// Gets or sets the image URL /// public string? ImageUrl { get; set; } /// /// 获得/设置 分组名称 - /// Gets or sets Group Name + /// Gets or sets the group name /// public string? GroupName { get; set; } /// /// 获得/设置 按钮标识 - /// Gets or sets Button Identifier + /// Gets or sets the button identifier /// public string? Command { get; set; } /// /// 获得/设置 显示文字 - /// Gets or sets Display Text + /// Gets or sets the display text /// public string? Text { get; set; } /// /// 获得/设置 图标 - /// Gets or sets Icon + /// Gets or sets the icon /// public string? Icon { get; set; } /// /// 获得/设置 自定义样式名 - /// Gets or sets Custom CSS Class + /// Gets or sets the custom CSS class /// public string? CssClass { get; set; } /// - /// 获得/设置 是否收缩 默认 true 收缩 - /// Gets or sets Whether collapsed. Default true + /// 获得/设置 是否收缩,默认为 true + /// Gets or sets whether collapsed. Default is true /// public bool IsCollapsed { get; set; } = true; /// - /// 获得/设置 是否被禁用 默认 false - /// Gets or sets Whether disabled. Default false + /// 获得/设置 是否被禁用,默认为 false + /// Gets or sets whether disabled. Default is false /// public bool IsDisabled { get; set; } /// - /// 获得/设置 是否为默认按钮 默认 false - /// Gets or sets Whether Default Button. Default false + /// 获得/设置 是否为默认按钮,默认为 false + /// Gets or sets whether is default button. Default is false /// public bool IsDefault { get; set; } /// - /// 获得/设置 是否选中当前节点 默认 false - /// Gets or sets Whether current node is selected. Default false + /// 获得/设置 是否选中当前节点,默认为 false + /// Gets or sets whether current node is selected. Default is false /// public bool IsActive { get; set; } /// /// 获得/设置 组件数据源 - /// Gets or sets Component Items + /// Gets or sets the component items /// public List Items { get; } = []; /// - /// 获得/设置 子组件模板 默认为 null - /// Gets or sets Child Template. Default null + /// 获得/设置 子组件模板,默认为 null + /// Gets or sets the child template. Default is null /// public RenderFragment? Template { get; set; } /// /// 获得/设置 动态组件实例 - /// Gets or sets Dynamic Component Instance + /// Gets or sets the dynamic component instance /// public BootstrapDynamicComponent? Component { get; set; } } diff --git a/src/BootstrapBlazor/Components/Row/Row.razor.cs b/src/BootstrapBlazor/Components/Row/Row.razor.cs index 310bb7b4593..2a688a0eb9f 100644 --- a/src/BootstrapBlazor/Components/Row/Row.razor.cs +++ b/src/BootstrapBlazor/Components/Row/Row.razor.cs @@ -14,7 +14,6 @@ public partial class Row /// /// 获得/设置 设置一行显示多少个子组件 /// Gets or sets Items per row - /// 10.2.2 /// [Parameter] public ItemsPerRow ItemsPerRow { get; set; } @@ -22,7 +21,6 @@ public partial class Row /// /// 获得/设置 设置行格式 默认 Row 布局 /// Gets or sets Row Type. Default Row Layout - /// 10.2.2 /// [Parameter] public RowType RowType { get; set; } @@ -30,7 +28,6 @@ public partial class Row /// /// 获得/设置 子 Row 跨父 Row 列数 默认为 null /// Gets or sets Child Row span parent Row columns. Default null - /// 10.2.2 /// [Parameter] public int? ColSpan { get; set; } @@ -38,7 +35,6 @@ public partial class Row /// /// 获得/设置 子组件 /// Gets or sets Child Content - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } diff --git a/src/BootstrapBlazor/Components/Scroll/Scroll.razor.cs b/src/BootstrapBlazor/Components/Scroll/Scroll.razor.cs index 5a74fcf0eb8..2755c87f49f 100644 --- a/src/BootstrapBlazor/Components/Scroll/Scroll.razor.cs +++ b/src/BootstrapBlazor/Components/Scroll/Scroll.razor.cs @@ -30,7 +30,6 @@ public partial class Scroll /// /// 获得/设置 子组件 /// Gets or sets Child Content - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } @@ -38,7 +37,6 @@ public partial class Scroll /// /// 获得/设置 组件高度 /// Gets or sets Height - /// 10.2.2 /// [Parameter] public string? Height { get; set; } @@ -46,7 +44,6 @@ public partial class Scroll /// /// 获得/设置 组件宽度 /// Gets or sets Width - /// 10.2.2 /// [Parameter] public string? Width { get; set; } @@ -54,7 +51,6 @@ public partial class Scroll /// /// 获得/设置 滚动条宽度 默认 null 未设置使用 配置类中的 /// Gets or sets Scroll Width. Default null. Use in config class if not set - /// 10.2.2 /// [Parameter] public int? ScrollWidth { get; set; } @@ -62,7 +58,6 @@ public partial class Scroll /// /// 获得/设置 滚动条 hover 状态下宽度 默认 null 未设置使用 配置类中的 /// Gets or sets Scroll Hover Width. Default null. Use in config class if not set - /// 10.2.2 /// [Parameter] public int? ScrollHoverWidth { get; set; } diff --git a/src/BootstrapBlazor/Components/Search/Search.razor.cs b/src/BootstrapBlazor/Components/Search/Search.razor.cs index d6cb9790b84..a5d5fa7ef2a 100644 --- a/src/BootstrapBlazor/Components/Search/Search.razor.cs +++ b/src/BootstrapBlazor/Components/Search/Search.razor.cs @@ -16,7 +16,6 @@ public partial class Search /// /// 获得/设置 the 图标 模板. 默认为 null if not set. /// Gets or sets the icon template. Default is null if not set. - /// 10.2.2 /// [Parameter] public RenderFragment>? IconTemplate { get; set; } @@ -24,7 +23,6 @@ public partial class Search /// /// 获得/设置 是否 to show the clear 按钮. 默认为 false. /// Gets or sets whether to show the clear button. Default is false. - /// 10.2.2 /// [Parameter] public bool ShowClearButton { get; set; } @@ -32,7 +30,6 @@ public partial class Search /// /// 获得/设置 the 图标 of clear 按钮. 默认为 null. /// Gets or sets the icon of clear button. Default is null. - /// 10.2.2 /// [Parameter] public string? ClearButtonIcon { get; set; } @@ -40,7 +37,6 @@ public partial class Search /// /// 获得/设置 the text of clear 按钮. 默认为 null. /// Gets or sets the text of clear button. Default is null. - /// 10.2.2 /// [Parameter] public string? ClearButtonText { get; set; } @@ -48,7 +44,6 @@ public partial class Search /// /// 获得/设置 the 颜色 of clear 按钮. 默认为 . /// Gets or sets the color of clear button. Default is . - /// 10.2.2 /// [Parameter] public Color ClearButtonColor { get; set; } = Color.Primary; @@ -56,7 +51,6 @@ public partial class Search /// /// 获得/设置 是否 to show the search 按钮. 默认为 true. /// Gets or sets whether to show the search button. Default is true. - /// 10.2.2 /// [Parameter] public bool ShowSearchButton { get; set; } = true; @@ -64,7 +58,6 @@ public partial class Search /// /// 获得/设置 the search 按钮 颜色. 默认为 . /// Gets or sets the search button color. Default is . - /// 10.2.2 /// [Parameter] public Color SearchButtonColor { get; set; } = Color.Primary; @@ -72,7 +65,6 @@ public partial class Search /// /// 获得/设置 the search 按钮 图标. 默认为 null. /// Gets or sets the search button icon. Default is null. - /// 10.2.2 /// [Parameter] public string? SearchButtonIcon { get; set; } @@ -80,7 +72,6 @@ public partial class Search /// /// 获得/设置 the loading 图标 for the search 按钮. 默认为 null. /// Gets or sets the loading icon for the search button. Default is null. - /// 10.2.2 /// [Parameter] public string? SearchButtonLoadingIcon { get; set; } @@ -88,7 +79,6 @@ public partial class Search /// /// 获得/设置 the search 按钮 text. 默认为 null. /// Gets or sets the search button text. Default is null. - /// 10.2.2 /// [Parameter] [NotNull] @@ -97,7 +87,6 @@ public partial class Search /// /// 获得/设置 the 按钮 模板. 默认为 null. /// Gets or sets the button template. Default is null. - /// 10.2.2 /// [Parameter] public RenderFragment>? ButtonTemplate { get; set; } @@ -105,7 +94,6 @@ public partial class Search /// /// 获得/设置 the prefix 按钮 模板. 默认为 null. /// Gets or sets the prefix button template. Default is null. - /// 10.2.2 /// [Parameter] public RenderFragment>? PrefixButtonTemplate { get; set; } @@ -113,7 +101,6 @@ public partial class Search /// /// 获得/设置 是否 to show the prefix 图标. 默认为 false. /// Gets or sets whether to show the prefix icon. Default is false. - /// 10.2.2 /// [Parameter] public bool ShowPrefixIcon { get; set; } @@ -121,7 +108,6 @@ public partial class Search /// /// 获得/设置 the prefix 图标. 默认为 null. /// Gets or sets the prefix icon. Default is null. - /// 10.2.2 /// [Parameter] public string? PrefixIcon { get; set; } @@ -129,7 +115,6 @@ public partial class Search /// /// 获得/设置 the prefix 图标 模板. 默认为 null. /// Gets or sets the prefix icon template. Default is null. - /// 10.2.2 /// [Parameter] public RenderFragment>? PrefixIconTemplate { get; set; } @@ -137,7 +122,6 @@ public partial class Search /// /// 获得/设置 是否 to automatically clear the search box after searching. Deprecated. /// Gets or sets whether to automatically clear the search box after searching. Deprecated. - /// 10.2.2 /// [Parameter] [Obsolete("Deprecated. Just delete it.")] @@ -147,7 +131,6 @@ public partial class Search /// /// 获得/设置 是否 the search is triggered by input. 默认为 true. If false, the search 按钮 must be clicked to trigger. /// Gets or sets whether the search is triggered by input. Default is true. If false, the search button must be clicked to trigger. - /// 10.2.2 /// [Parameter] public bool IsTriggerSearchByInput { get; set; } = true; @@ -155,7 +138,6 @@ public partial class Search /// /// 获得/设置 the 回调 委托 when the search 按钮 is clicked. /// Gets or sets the callback delegate when the search button is clicked. - /// 10.2.2 /// [Parameter] public Func>>? OnSearch { get; set; } @@ -163,7 +145,6 @@ public partial class Search /// /// 获得/设置 the 回调方法 to get 显示 text. 默认为 null, using ToString() method. /// Gets or sets the callback method to get display text. Default is null, using ToString() method. - /// 10.2.2 /// [Parameter] [NotNull] @@ -172,7 +153,6 @@ public partial class Search /// /// 获得/设置 the event 回调 when the clear 按钮 is clicked. 默认为 null. /// Gets or sets the event callback when the clear button is clicked. Default is null. - /// 10.2.2 /// [Parameter] [Obsolete("已取消 合并到 OnSearch 方法中; Deprecated. Merged into the OnSearch method")] @@ -245,7 +225,6 @@ protected override void OnParametersSet() /// /// /// - /// protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id, Interop, _displayText); private string? _displayText; diff --git a/src/BootstrapBlazor/Components/Segmented/Segmented.razor.cs b/src/BootstrapBlazor/Components/Segmented/Segmented.razor.cs index 3d44dc95b29..8877ce390bf 100644 --- a/src/BootstrapBlazor/Components/Segmented/Segmented.razor.cs +++ b/src/BootstrapBlazor/Components/Segmented/Segmented.razor.cs @@ -31,7 +31,6 @@ public partial class Segmented /// /// 获得/设置 选项集合 默认 null /// Gets or sets Items. Default null - /// 10.2.2 /// [Parameter] [NotNull] @@ -40,7 +39,6 @@ public partial class Segmented /// /// 获得/设置 选中值 默认 null /// Gets or sets Value. Default null - /// 10.2.2 /// [Parameter] [NotNull] @@ -49,7 +47,6 @@ public partial class Segmented /// /// 获得/设置 选中值回调委托 默认 null /// Gets or sets Value Changed Callback Delegate. Default null - /// 10.2.2 /// [Parameter] public EventCallback ValueChanged { get; set; } @@ -57,7 +54,6 @@ public partial class Segmented /// /// 获得/设置 选中值改变后回调委托方法 默认 null /// Gets or sets Value Changed Callback Method. Default null - /// 10.2.2 /// [Parameter] public Func? OnValueChanged { get; set; } @@ -65,7 +61,6 @@ public partial class Segmented /// /// 获得/设置 是否禁用 默认 false /// Gets or sets Whether disabled. Default false - /// 10.2.2 /// [Parameter] public bool IsDisabled { get; set; } @@ -73,7 +68,6 @@ public partial class Segmented /// /// 获得/设置 是否充满父元素 默认 false /// Gets or sets Whether is block. Default false - /// 10.2.2 /// [Parameter] public bool IsBlock { get; set; } @@ -81,7 +75,6 @@ public partial class Segmented /// /// 获得/设置 是否自动显示 Tooltip 默认 false /// Gets or sets Whether to show tooltip. Default false - /// 10.2.2 /// [Parameter] public bool ShowTooltip { get; set; } @@ -89,7 +82,6 @@ public partial class Segmented /// /// 获得/设置 组件内容 /// Gets or sets Child Content - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } @@ -97,7 +89,6 @@ public partial class Segmented /// /// 获得/设置 组件大小 默认值 /// Gets or sets Size. Default - /// 10.2.2 /// [Parameter] [NotNull] @@ -106,7 +97,6 @@ public partial class Segmented /// /// 获得/设置 候选项模板 默认 null /// Gets or sets Item Template. Default null - /// 10.2.2 /// [Parameter] [NotNull] @@ -131,7 +121,6 @@ protected override void OnParametersSet() /// /// /// - /// protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id, Interop); private IEnumerable> GetItems() @@ -151,7 +140,6 @@ private IEnumerable> GetItems() /// JavaScript Callback Triggered when SegmentItem Node Clicked /// /// - /// [JSInvokable] public async Task TriggerClick(int index) { diff --git a/src/BootstrapBlazor/Components/Segmented/SegmentedItem.cs b/src/BootstrapBlazor/Components/Segmented/SegmentedItem.cs index 60d9c9460a5..8b23370410a 100644 --- a/src/BootstrapBlazor/Components/Segmented/SegmentedItem.cs +++ b/src/BootstrapBlazor/Components/Segmented/SegmentedItem.cs @@ -14,7 +14,6 @@ public class SegmentedItem : ComponentBase, IDisposable /// /// 组件内容 /// Child Content - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } @@ -22,7 +21,6 @@ public class SegmentedItem : ComponentBase, IDisposable /// /// 获得/设置 是否禁用 默认 false /// Gets or sets Whether disabled. Default false - /// 10.2.2 /// [Parameter] public bool IsDisabled { get; set; } @@ -30,7 +28,6 @@ public class SegmentedItem : ComponentBase, IDisposable /// /// 获得/设置 是否选中 默认 false /// Gets or sets Whether active. Default false - /// 10.2.2 /// [Parameter] public bool IsActive { get; set; } @@ -38,7 +35,6 @@ public class SegmentedItem : ComponentBase, IDisposable /// /// 获得/设置 图标 默认 null /// Gets or sets Icon. Default null - /// 10.2.2 /// [Parameter] public string? Icon { get; set; } @@ -46,7 +42,6 @@ public class SegmentedItem : ComponentBase, IDisposable /// /// 获得/设置 文字 默认 null /// Gets or sets Text. Default null - /// 10.2.2 /// [Parameter] public string? Text { get; set; } @@ -54,7 +49,6 @@ public class SegmentedItem : ComponentBase, IDisposable /// /// 获得/设置 组件值 默认 null /// Gets or sets Value. Default null - /// 10.2.2 /// [Parameter] public TValue? Value { get; set; } diff --git a/src/BootstrapBlazor/Components/Select/ISelectObjectContext.cs b/src/BootstrapBlazor/Components/Select/ISelectObjectContext.cs index e37b3c78e6c..79d6a043d2d 100644 --- a/src/BootstrapBlazor/Components/Select/ISelectObjectContext.cs +++ b/src/BootstrapBlazor/Components/Select/ISelectObjectContext.cs @@ -29,6 +29,5 @@ public interface ISelectObjectContext /// 关闭当前弹窗方法 /// Close Current Popover Method /// - /// Task CloseAsync(); } diff --git a/src/BootstrapBlazor/Components/Select/InternalSelectObjectContext.cs b/src/BootstrapBlazor/Components/Select/InternalSelectObjectContext.cs index fd8e59e502b..ce3f6bef121 100644 --- a/src/BootstrapBlazor/Components/Select/InternalSelectObjectContext.cs +++ b/src/BootstrapBlazor/Components/Select/InternalSelectObjectContext.cs @@ -16,7 +16,6 @@ internal class InternalSelectObjectContext : ISelectObjectContext /// /// /// - /// public Task CloseAsync() => Component.CloseAsync(); /// diff --git a/src/BootstrapBlazor/Components/Select/MultiSelect.razor.cs b/src/BootstrapBlazor/Components/Select/MultiSelect.razor.cs index f085545da7f..c58129af15e 100644 --- a/src/BootstrapBlazor/Components/Select/MultiSelect.razor.cs +++ b/src/BootstrapBlazor/Components/Select/MultiSelect.razor.cs @@ -48,7 +48,6 @@ public partial class MultiSelect /// /// 获得/设置 显示部分模板 默认 null /// Gets or sets Display Template. Default null - /// 10.2.2 /// [Parameter] public RenderFragment>? DisplayTemplate { get; set; } @@ -56,7 +55,6 @@ public partial class MultiSelect /// /// 获得/设置 是否显示关闭按钮 默认为 true 显示 /// Gets or sets Whether to show close button. Default true - /// 10.2.2 /// [Parameter] public bool ShowCloseButton { get; set; } = true; @@ -64,7 +62,6 @@ public partial class MultiSelect /// /// 获得/设置 关闭按钮图标 默认为 null /// Gets or sets Close Button Icon. Default null - /// 10.2.2 /// [Parameter] public string? CloseButtonIcon { get; set; } @@ -72,7 +69,6 @@ public partial class MultiSelect /// /// 获得/设置 是否显示功能按钮 默认为 false 不显示 /// Gets or sets Whether to show toolbar. Default false - /// 10.2.2 /// [Parameter] public bool ShowToolbar { get; set; } @@ -80,7 +76,6 @@ public partial class MultiSelect /// /// 获得/设置 是否显示默认功能按钮 默认为 true 显示 /// Gets or sets Whether to show default buttons. Default true - /// 10.2.2 /// [Parameter] public bool ShowDefaultButtons { get; set; } = true; @@ -88,7 +83,6 @@ public partial class MultiSelect /// /// 获得/设置 是否固定高度 默认 false /// Gets or sets Whether fixed height. Default false - /// 10.2.2 /// [Parameter] public bool IsFixedHeight { get; set; } @@ -96,7 +90,6 @@ public partial class MultiSelect /// /// 获得/设置 是否为单行模式 默认 false /// Gets or sets Whether single line mode. Default false - /// 10.2.2 /// [Parameter] public bool IsSingleLine { get; set; } @@ -106,7 +99,6 @@ public partial class MultiSelect /// Gets or sets Callback method after input option updated in edit mode. Default null /// 返回 实例时输入选项生效,返回 null 时选项不生效进行舍弃操作,建议在回调方法中自行提示 /// Return instance to take effect, return null to discard, recommend prompt in callback method - /// 10.2.2 /// /// Effective when is set. [Parameter] @@ -115,7 +107,6 @@ public partial class MultiSelect /// /// 获得/设置 编辑提交按键 默认 Enter /// Gets or sets Edit Submit Key. Default Enter - /// 10.2.2 /// [Parameter] public EditSubmitKey EditSubmitKey { get; set; } @@ -123,7 +114,6 @@ public partial class MultiSelect /// /// 获得/设置 扩展按钮模板 /// Gets or sets Extension Button Template - /// 10.2.2 /// [Parameter] public RenderFragment? ButtonTemplate { get; set; } @@ -131,7 +121,6 @@ public partial class MultiSelect /// /// 获得/设置 选中项集合发生改变时回调委托方法 /// Gets or sets Selected Items Changed Callback Method - /// 10.2.2 /// [Parameter] public Func, Task>? OnSelectedItemsChanged { get; set; } @@ -139,7 +128,6 @@ public partial class MultiSelect /// /// 获得/设置 the default virtualize items text. /// Gets or sets the default virtualize items text. - /// 10.2.2 /// [Parameter] public string? DefaultVirtualizeItemText { get; set; } @@ -147,7 +135,6 @@ public partial class MultiSelect /// /// 获得/设置 全选按钮显示文本 /// Gets or sets Select All Text - /// 10.2.2 /// [Parameter] [NotNull] @@ -156,7 +143,6 @@ public partial class MultiSelect /// /// 获得/设置 全选按钮显示文本 /// Gets or sets Reverse Select Text - /// 10.2.2 /// [Parameter] [NotNull] @@ -165,7 +151,6 @@ public partial class MultiSelect /// /// 获得/设置 全选按钮显示文本 /// Gets or sets Clear Text - /// 10.2.2 /// [Parameter] [NotNull] @@ -174,7 +159,6 @@ public partial class MultiSelect /// /// 获得/设置 选项最大数 默认为 0 不限制 /// Gets or sets Max items. Default 0 (unlimited) - /// 10.2.2 /// [Parameter] public int Max { get; set; } @@ -182,7 +166,6 @@ public partial class MultiSelect /// /// 获得/设置 设置最大值时错误消息文字 /// Gets or sets Max Error Message - /// 10.2.2 /// [Parameter] [NotNull] @@ -191,7 +174,6 @@ public partial class MultiSelect /// /// 获得/设置 选项最小数 默认为 0 不限制 /// Gets or sets Min items. Default 0 (unlimited) - /// 10.2.2 /// [Parameter] public int Min { get; set; } @@ -199,7 +181,6 @@ public partial class MultiSelect /// /// 获得/设置 设置最小值时错误消息文字 /// Gets or sets Min Error Message - /// 10.2.2 /// [Parameter] [NotNull] @@ -276,7 +257,6 @@ protected override void OnAfterRender(bool firstRender) /// /// /// - /// protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id, Interop, new { ConfirmMethodCallback = nameof(ConfirmSelectedItem), @@ -328,7 +308,6 @@ private async ValueTask> LoadItems(ItemsProvid /// /// /// - /// protected override async Task OnClearValue() { await base.OnClearValue(); @@ -341,7 +320,6 @@ protected override async Task OnClearValue() /// /// /// - /// protected override string? FormatValueAsString(TValue? value) => value == null ? null : Utility.ConvertValueToString(value); @@ -351,7 +329,6 @@ protected override async Task OnClearValue() /// /// /// - /// protected override List GetRowsByItems() { var items = new List(); @@ -371,7 +348,6 @@ protected override List GetRowsByItems() /// Client-side Enter Callback Method /// /// - /// [JSInvokable] public async Task ConfirmSelectedItem(int index) { @@ -387,7 +363,6 @@ public async Task ConfirmSelectedItem(int index) /// 切换当前选项方法 /// Toggle Current Option Method /// - /// [JSInvokable] public async Task ToggleRow(string val) { @@ -419,7 +394,6 @@ public async Task ToggleRow(string val) /// Client-side Edit Submit Data Callback Method /// /// - /// [JSInvokable] public async Task TriggerEditTag(string val) { @@ -527,7 +501,6 @@ private async Task SetValue() /// 清除选择项方法 /// Clear Items Method /// - /// public async Task Clear() { SelectedItems.Clear(); @@ -538,7 +511,6 @@ public async Task Clear() /// 全选选择项方法 /// Select All Items Method /// - /// public async Task SelectAll() { SelectedItems.Clear(); @@ -550,7 +522,6 @@ public async Task SelectAll() /// 翻转选择项方法 /// Invert Selection Method /// - /// public async Task InvertSelect() { var items = Rows.Where(item => !SelectedItems.Any(i => i.Value == item.Value)).ToList(); diff --git a/src/BootstrapBlazor/Components/Select/PopoverSelectBase.cs b/src/BootstrapBlazor/Components/Select/PopoverSelectBase.cs index 205456efd81..ba2ee0d1c84 100644 --- a/src/BootstrapBlazor/Components/Select/PopoverSelectBase.cs +++ b/src/BootstrapBlazor/Components/Select/PopoverSelectBase.cs @@ -15,7 +15,6 @@ public abstract class PopoverSelectBase : PopoverDropdownBase /// /// 获得/设置 是否使用 Popover 渲染下拉框 默认 false /// Gets or sets Whether to use Popover to render dropdown. Default false - /// 10.2.2 /// [Parameter] public bool IsPopover { get; set; } @@ -23,7 +22,6 @@ public abstract class PopoverSelectBase : PopoverDropdownBase /// /// 获得/设置 弹窗偏移量 默认 [0, 10] /// Gets or sets Popover Offset. Default [0, 10] - /// 10.2.2 /// [Parameter] public string? Offset { get; set; } diff --git a/src/BootstrapBlazor/Components/Select/Select.razor.cs b/src/BootstrapBlazor/Components/Select/Select.razor.cs index ff3acac1b90..212d58a8b1a 100644 --- a/src/BootstrapBlazor/Components/Select/Select.razor.cs +++ b/src/BootstrapBlazor/Components/Select/Select.razor.cs @@ -30,7 +30,6 @@ public partial class Select : ISelect, ILookup /// /// 获得/设置 值为 null 时是否使用第一个选项或者标记为 active 的候选项作为默认值 /// Gets or sets a value indicating Whether to use the first option or the candidate marked as active as the default value when the value is null - /// 10.2.2 /// [Parameter] [Obsolete("已弃用,请使用 IsUseDefaultItemWhenValueIsNull 参数代替;Deprecated, use the IsUseDefaultItemWhenValueIsNull parameter instead")] @@ -44,7 +43,6 @@ public bool IsUseActiveWhenValueIsNull /// /// 获得/设置 值为 null 时是否使用第一个选项或者标记为 active 的候选项作为默认值 /// Gets or sets a value indicating Whether to use the first option or the candidate marked as active as the default value when the value is null - /// 10.2.2 /// [Parameter] public bool IsUseDefaultItemWhenValueIsNull { get; set; } @@ -52,7 +50,6 @@ public bool IsUseActiveWhenValueIsNull /// /// 获得/设置 the 显示 模板. 默认为 null. /// Gets or sets the display template. Default is null. - /// 10.2.2 /// [Parameter] public RenderFragment? DisplayTemplate { get; set; } @@ -60,7 +57,6 @@ public bool IsUseActiveWhenValueIsNull /// /// 获得/设置 the 回调方法 when the input value changes. 默认为 null. /// Gets or sets the callback method when the input value changes. Default is null. - /// 10.2.2 /// /// Effective when is set. [Parameter] @@ -69,7 +65,6 @@ public bool IsUseActiveWhenValueIsNull /// /// 获得/设置 the options 模板 for static 数据. /// Gets or sets the options template for static data. - /// 10.2.2 /// [Parameter] public RenderFragment? Options { get; set; } @@ -77,7 +72,6 @@ public bool IsUseActiveWhenValueIsNull /// /// 获得/设置 是否 to disable the OnSelectedItemChanged 回调方法 on first render. 默认为 false. /// Gets or sets whether to disable the OnSelectedItemChanged callback method on first render. Default is false. - /// 10.2.2 /// [Parameter] public bool DisableItemChangedWhenFirstRender { get; set; } @@ -85,7 +79,6 @@ public bool IsUseActiveWhenValueIsNull /// /// 获取/设置 选中项改变前的回调方法。返回 true 则改变选中项的值;否则选中项的值不变。 /// Gets or sets the callback method before the selected item changes. Returns true to change the selected item value; otherwise, the selected item value does not change. - /// 10.2.2 /// [Parameter] public Func>? OnBeforeSelectedItemChange { get; set; } @@ -93,7 +86,6 @@ public bool IsUseActiveWhenValueIsNull /// /// 获得/设置 是否显示 Swal 确认弹窗 默认值 为 false /// Gets or sets whether to show the Swal confirmation popup. Default is false. - /// 10.2.2 /// [Parameter] public bool ShowSwal { get; set; } @@ -101,7 +93,6 @@ public bool IsUseActiveWhenValueIsNull /// /// 获得/设置 the 回调方法 when the selected item changes. /// Gets or sets the callback method when the selected item changes. - /// 10.2.2 /// [Parameter] public Func? OnSelectedItemChanged { get; set; } @@ -109,7 +100,6 @@ public bool IsUseActiveWhenValueIsNull /// /// 获得/设置 the Swal category. 默认为 Question. /// Gets or sets the Swal category. Default is Question. - /// 10.2.2 /// [Parameter] public SwalCategory SwalCategory { get; set; } = SwalCategory.Question; @@ -117,7 +107,6 @@ public bool IsUseActiveWhenValueIsNull /// /// 获得/设置 the Swal title. 默认为 null. /// Gets or sets the Swal title. Default is null. - /// 10.2.2 /// [Parameter] public string? SwalTitle { get; set; } @@ -125,7 +114,6 @@ public bool IsUseActiveWhenValueIsNull /// /// 获得/设置 the Swal 内容. 默认为 null. /// Gets or sets the Swal content. Default is null. - /// 10.2.2 /// [Parameter] public string? SwalContent { get; set; } @@ -133,28 +121,24 @@ public bool IsUseActiveWhenValueIsNull /// /// 获得/设置 the Swal footer. 默认为 null. /// Gets or sets the Swal footer. Default is null. - /// 10.2.2 /// [Parameter] public string? SwalFooter { get; set; } /// /// - /// 10.2.2 /// [Parameter] public ILookupService? LookupService { get; set; } /// /// - /// 10.2.2 /// [Parameter] public string? LookupServiceKey { get; set; } /// /// - /// 10.2.2 /// [Parameter] public object? LookupServiceData { get; set; } @@ -162,7 +146,6 @@ public bool IsUseActiveWhenValueIsNull /// /// 获得/设置 the default text for virtualized items. 默认为 null. /// Gets or sets the default text for virtualized items. Default is null. - /// 10.2.2 /// [Parameter] public string? DefaultVirtualizeItemText { get; set; } @@ -170,7 +153,6 @@ public bool IsUseActiveWhenValueIsNull /// /// 获得/设置 是否 auto clear the search text when dropdown closed. /// Gets or sets whether auto clear the search text when dropdown closed. - /// 10.2.2 /// [Parameter] public bool IsAutoClearSearchTextWhenCollapsed { get; set; } @@ -178,7 +160,6 @@ public bool IsUseActiveWhenValueIsNull /// /// 获得/设置 the dropdown collapsed 回调方法. /// Gets or sets the dropdown collapsed callback method. - /// 10.2.2 /// [Parameter] public Func? OnCollapsed { get; set; } @@ -304,7 +285,6 @@ private async ValueTask> LoadItems(ItemsProvid /// /// /// - /// protected override bool TryParseValueFromString(string value, [MaybeNullWhen(false)] out TValue result, out string? validationErrorMessage) => ValueType == typeof(SelectedItem) ? TryParseSelectItem(value, out result, out validationErrorMessage) : base.TryParseValueFromString(value, out result, out validationErrorMessage); @@ -344,7 +324,6 @@ private bool TryParseSelectItem(string value, [MaybeNullWhen(false)] out TValue /// Trigger event 回调方法. called by JavaScript. /// Trigger event callback method. called by JavaScript. /// - /// [JSInvokable] public async Task TriggerCollapsed() { @@ -364,7 +343,6 @@ public async Task TriggerCollapsed() /// /// /// - /// protected override List GetRowsByItems() { var items = new List(); @@ -461,7 +439,6 @@ private async Task SelectedItemChanged(SelectedItem item) /// /// /// - /// protected override async Task OnClearValue() { await base.OnClearValue(); diff --git a/src/BootstrapBlazor/Components/Select/SelectBase.cs b/src/BootstrapBlazor/Components/Select/SelectBase.cs index 00022dfe333..69e7713fbc4 100644 --- a/src/BootstrapBlazor/Components/Select/SelectBase.cs +++ b/src/BootstrapBlazor/Components/Select/SelectBase.cs @@ -15,7 +15,6 @@ public abstract class SelectBase : PopoverSelectBase /// /// 获得/设置 the 颜色. default is (no 颜色). /// Gets or sets the color. The default is (no color). - /// 10.2.2 /// [Parameter] public Color Color { get; set; } @@ -23,7 +22,6 @@ public abstract class SelectBase : PopoverSelectBase /// /// 获得/设置 a value indicating 是否 to show the search box. default is false. /// Gets or sets a value indicating whether to show the search box. The default is false. - /// 10.2.2 /// [Parameter] public bool ShowSearch { get; set; } @@ -31,7 +29,6 @@ public abstract class SelectBase : PopoverSelectBase /// /// 获得/设置 the search 图标. /// Gets or sets the search icon. - /// 10.2.2 /// [Parameter] public string? SearchIcon { get; set; } @@ -39,7 +36,6 @@ public abstract class SelectBase : PopoverSelectBase /// /// 获得/设置 the search loading 图标. /// Gets or sets the search loading icon. - /// 10.2.2 /// [Parameter] public string? SearchLoadingIcon { get; set; } @@ -54,7 +50,6 @@ public abstract class SelectBase : PopoverSelectBase /// /// 获得/设置 the text to 显示 when no search results are found. /// Gets or sets the text to display when no search results are found. - /// 10.2.2 /// [Parameter] public string? NoSearchDataText { get; set; } @@ -62,7 +57,6 @@ public abstract class SelectBase : PopoverSelectBase /// /// 获得/设置 the dropdown 图标. default is "fa-solid fa-angle-up". /// Gets or sets the dropdown icon. The default is "fa-solid fa-angle-up". - /// 10.2.2 /// [Parameter] [NotNull] @@ -71,7 +65,6 @@ public abstract class SelectBase : PopoverSelectBase /// /// 获得/设置 a value indicating 是否 the 内容 is a . default is false. /// Gets or sets a value indicating whether the content is a . The default is false. - /// 10.2.2 /// [Parameter] public bool IsMarkupString { get; set; } @@ -79,7 +72,6 @@ public abstract class SelectBase : PopoverSelectBase /// /// 获得/设置 the string comparison rule. default is . /// Gets or sets the string comparison rule. The default is . - /// 10.2.2 /// [Parameter] public StringComparison StringComparison { get; set; } = StringComparison.OrdinalIgnoreCase; @@ -87,7 +79,6 @@ public abstract class SelectBase : PopoverSelectBase /// /// 获得/设置 the group item 模板. /// Gets or sets the group item template. - /// 10.2.2 /// [Parameter] public RenderFragment? GroupItemTemplate { get; set; } @@ -95,7 +86,6 @@ public abstract class SelectBase : PopoverSelectBase /// /// 获得/设置 the scroll behavior. default is . /// Gets or sets the scroll behavior. The default is . - /// 10.2.2 /// [Parameter] public ScrollIntoViewBehavior ScrollIntoViewBehavior { get; set; } = ScrollIntoViewBehavior.Smooth; @@ -111,7 +101,6 @@ public abstract class SelectBase : PopoverSelectBase /// /// 获得/设置 the placeholder text. /// Gets or sets the placeholder text. - /// 10.2.2 /// [Parameter] public string? PlaceHolder { get; set; } @@ -119,7 +108,6 @@ public abstract class SelectBase : PopoverSelectBase /// /// 获得/设置 是否 virtual scrolling is enabled. 默认为 false. /// Gets or sets whether virtual scrolling is enabled. Default is false. - /// 10.2.2 /// [Parameter] public bool IsVirtualize { get; set; } @@ -127,7 +115,6 @@ public abstract class SelectBase : PopoverSelectBase /// /// 获得/设置 the row 高度 for virtual scrolling. 默认为 33. /// Gets or sets the row height for virtual scrolling. Default is 33. - /// 10.2.2 /// /// Effective when is set to true. [Parameter] @@ -136,7 +123,6 @@ public abstract class SelectBase : PopoverSelectBase /// /// 获得/设置 the overscan count for virtual scrolling. 默认为 4. /// Gets or sets the overscan count for virtual scrolling. Default is 4. - /// 10.2.2 /// /// Effective when is set to true. [Parameter] @@ -145,7 +131,6 @@ public abstract class SelectBase : PopoverSelectBase /// /// 获得/设置 the 回调方法 when the clear 按钮 is clicked. 默认为 null. /// Gets or sets the callback method when the clear button is clicked. Default is null. - /// 10.2.2 /// [Parameter] public Func? OnClearAsync { get; set; } @@ -153,7 +138,6 @@ public abstract class SelectBase : PopoverSelectBase /// /// 获得/设置 the right-side clear 图标. 默认为 fa-solid fa-angle-up. /// Gets or sets the right-side clear icon. Default is fa-solid fa-angle-up. - /// 10.2.2 /// [Parameter] [NotNull] @@ -162,7 +146,6 @@ public abstract class SelectBase : PopoverSelectBase /// /// 获得/设置 是否 the select component is clearable. 默认为 false. /// Gets or sets whether the select component is clearable. Default is false. - /// 10.2.2 /// [Parameter] public bool IsClearable { get; set; } @@ -243,7 +226,6 @@ protected override void OnParametersSet() /// 获得 是否 show the clear 按钮. /// Gets whether show the clear button. /// - /// protected bool GetClearable() => IsClearable && !IsDisabled && IsNullable(); /// @@ -256,7 +238,6 @@ protected override void OnParametersSet() /// Clears the selected value. /// Clears the selected value. /// - /// protected virtual async Task OnClearValue() { if (ShowSearch) diff --git a/src/BootstrapBlazor/Components/Select/SelectObject.razor.cs b/src/BootstrapBlazor/Components/Select/SelectObject.razor.cs index 0eec926728d..71112ad3351 100644 --- a/src/BootstrapBlazor/Components/Select/SelectObject.razor.cs +++ b/src/BootstrapBlazor/Components/Select/SelectObject.razor.cs @@ -17,7 +17,6 @@ public partial class SelectObject /// /// 获得/设置 颜色 默认 Color.None 无设置 /// Gets or sets Color. Default Color.None - /// 10.2.2 /// [Parameter] public Color Color { get; set; } @@ -25,7 +24,6 @@ public partial class SelectObject /// /// 获得/设置 是否显示组件右侧扩展箭头 默认 true 显示 /// Gets or sets Whether to show the component right extension arrow. Default true - /// 10.2.2 /// [Parameter] public bool ShowAppendArrow { get; set; } = true; @@ -33,7 +31,6 @@ public partial class SelectObject /// /// 获得/设置 弹窗最小宽度 默认为 null 未设置使用样式中的默认值 /// Gets or sets Dropdown Min Width. Default null (use style default) - /// 10.2.2 /// [Parameter] public int? DropdownMinWidth { get; set; } @@ -41,7 +38,6 @@ public partial class SelectObject /// /// 获得 显示文字回调方法 默认 null /// Get Display Text Callback Method. Default null - /// 10.2.2 /// [Parameter] [NotNull] @@ -51,7 +47,6 @@ public partial class SelectObject /// /// 获得/设置 右侧下拉箭头图标 默认 fa-solid fa-angle-up /// Gets or sets Dropdown Icon. Default fa-solid fa-angle-up - /// 10.2.2 /// [Parameter] [NotNull] @@ -60,7 +55,6 @@ public partial class SelectObject /// /// 获得/设置 是否可清除 默认 false /// Gets or sets Whether clearable. Default false - /// 10.2.2 /// [Parameter] public bool IsClearable { get; set; } @@ -68,7 +62,6 @@ public partial class SelectObject /// /// 获得/设置 右侧清除图标 默认 fa-solid fa-angle-up /// Gets or sets Clear Icon. Default fa-solid fa-angle-up - /// 10.2.2 /// [Parameter] [NotNull] @@ -77,7 +70,6 @@ public partial class SelectObject /// /// 获得/设置 下拉列表内容模板 /// Gets or sets Dropdown Content Template - /// 10.2.2 /// [Parameter] [NotNull] @@ -133,7 +125,6 @@ public partial class SelectObject /// /// 获得 PlaceHolder 属性 /// Get PlaceHolder Attribute - /// 10.2.2 /// [Parameter] public string? PlaceHolder { get; set; } @@ -141,7 +132,6 @@ public partial class SelectObject /// /// 获得/设置 弹窗高度 默认 486px; /// Gets or sets Dropdown Height. Default 486px - /// 10.2.2 /// [Parameter] public int Height { get; set; } = 486; @@ -149,7 +139,6 @@ public partial class SelectObject /// /// 获得/设置 Value 显示模板 默认 null /// Gets or sets Value Display Template. Default null - /// 10.2.2 /// [Parameter] public RenderFragment? Template { get; set; } @@ -157,7 +146,6 @@ public partial class SelectObject /// /// 获得/设置 清除文本内容 OnClear 回调方法 默认 null /// Gets or sets OnClear Callback Method. Default null - /// 10.2.2 /// [Parameter] public Func? OnClearAsync { get; set; } @@ -170,7 +158,6 @@ public partial class SelectObject /// 获得 input 组件 Id 方法 /// Get input Component Id Method /// - /// protected override string? RetrieveId() => InputId; /// @@ -218,14 +205,12 @@ protected override void OnParametersSet() /// 获得 Text 显示文字 /// Get Display Text /// - /// private string? GetText() => GetTextCallback(Value); /// /// 关闭当前弹窗方法 /// Close Current Dropdown Method /// - /// public Task CloseAsync() => InvokeVoidAsync("close", Id); private async Task OnClearValue() diff --git a/src/BootstrapBlazor/Components/Select/SelectOption.cs b/src/BootstrapBlazor/Components/Select/SelectOption.cs index 2f6eae192e5..95efb4805da 100644 --- a/src/BootstrapBlazor/Components/Select/SelectOption.cs +++ b/src/BootstrapBlazor/Components/Select/SelectOption.cs @@ -14,7 +14,6 @@ public class SelectOption : ComponentBase /// /// 获得/设置 the 显示 name. /// Gets or sets the display name. - /// 10.2.2 /// [Parameter] public string? Text { get; set; } @@ -22,7 +21,6 @@ public class SelectOption : ComponentBase /// /// 获得/设置 the option value. /// Gets or sets the option value. - /// 10.2.2 /// [Parameter] public string? Value { get; set; } @@ -30,7 +28,6 @@ public class SelectOption : ComponentBase /// /// 获得/设置 a value indicating 是否 the option is selected. 默认为 false. /// Gets or sets a value indicating whether the option is selected. Default is false. - /// 10.2.2 /// [Parameter] public bool Active { get; set; } @@ -38,7 +35,6 @@ public class SelectOption : ComponentBase /// /// 获得/设置 a value indicating 是否 the option is disabled. 默认为 false. /// Gets or sets a value indicating whether the option is disabled. Default is false. - /// 10.2.2 /// [Parameter] public bool IsDisabled { get; set; } @@ -46,7 +42,6 @@ public class SelectOption : ComponentBase /// /// 获得/设置 the group name. /// Gets or sets the group name. - /// 10.2.2 /// [Parameter] public string? GroupName { get; set; } diff --git a/src/BootstrapBlazor/Components/Select/SelectTable.razor.cs b/src/BootstrapBlazor/Components/Select/SelectTable.razor.cs index c2c5a866c0e..3680eed0988 100644 --- a/src/BootstrapBlazor/Components/Select/SelectTable.razor.cs +++ b/src/BootstrapBlazor/Components/Select/SelectTable.razor.cs @@ -18,7 +18,6 @@ namespace BootstrapBlazor.Components; /// /// 获得/设置 TableHeader 实例 /// Gets or sets TableHeader Instance - /// 10.2.2 /// [Parameter] public RenderFragment? TableColumns { get; set; } @@ -26,7 +25,6 @@ namespace BootstrapBlazor.Components; /// /// 异步查询回调方法 /// Async Query Callback Method - /// 10.2.2 /// [Parameter] [EditorRequired] @@ -36,7 +34,6 @@ namespace BootstrapBlazor.Components; /// /// 获得/设置 颜色 默认 Color.None 无设置 /// Gets or sets Color. Default Color.None - /// 10.2.2 /// [Parameter] public Color Color { get; set; } @@ -44,7 +41,6 @@ namespace BootstrapBlazor.Components; /// /// 获得/设置 是否显示组件右侧扩展箭头 默认 true 显示 /// Gets or sets Whether to show the component right extension arrow. Default true - /// 10.2.2 /// [Parameter] public bool ShowAppendArrow { get; set; } = true; @@ -52,7 +48,6 @@ namespace BootstrapBlazor.Components; /// /// 获得/设置 弹窗表格最小宽度 默认为 null 未设置使用样式中的默认值 /// Gets or sets Dropdown Table Min Width. Default null (use style default) - /// 10.2.2 /// [Parameter] public int? TableMinWidth { get; set; } @@ -60,7 +55,6 @@ namespace BootstrapBlazor.Components; /// /// 获得 显示文字回调方法 默认 null /// Get Display Text Callback Method. Default null - /// 10.2.2 /// [Parameter] [NotNull] @@ -70,7 +64,6 @@ namespace BootstrapBlazor.Components; /// /// 获得/设置 右侧下拉箭头图标 默认 fa-solid fa-angle-up /// Gets or sets Dropdown Icon. Default fa-solid fa-angle-up - /// 10.2.2 /// [Parameter] [NotNull] @@ -79,7 +72,6 @@ namespace BootstrapBlazor.Components; /// /// 获得/设置 是否可清除 默认 false /// Gets or sets Whether clearable. Default false - /// 10.2.2 /// [Parameter] public bool IsClearable { get; set; } @@ -87,7 +79,6 @@ namespace BootstrapBlazor.Components; /// /// 获得/设置 是否显示无数据空记录 默认 false 不显示 /// Gets or sets Whether to show empty record when no data. Default false - /// 10.2.2 /// [Parameter] public bool ShowEmpty { get; set; } @@ -95,7 +86,6 @@ namespace BootstrapBlazor.Components; /// /// 获得/设置 无数据时显示模板 默认 null /// Gets or sets Empty Template. Default null - /// 10.2.2 /// [Parameter] public RenderFragment? EmptyTemplate { get; set; } @@ -151,7 +141,6 @@ namespace BootstrapBlazor.Components; /// /// 获得/设置 右侧清除图标 默认 fa-solid fa-angle-up /// Gets or sets Clear Icon. Default fa-solid fa-angle-up - /// 10.2.2 /// [Parameter] [NotNull] @@ -160,7 +149,6 @@ namespace BootstrapBlazor.Components; /// /// 获得 PlaceHolder 属性 /// Get PlaceHolder Attribute - /// 10.2.2 /// [Parameter] public string? PlaceHolder { get; set; } @@ -168,7 +156,6 @@ namespace BootstrapBlazor.Components; /// /// 获得/设置 表格高度 默认 486px /// Gets or sets Table Height. Default 486px - /// 10.2.2 /// [Parameter] public int Height { get; set; } = 486; @@ -176,7 +163,6 @@ namespace BootstrapBlazor.Components; /// /// 获得/设置 Value 显示模板 默认 null /// Gets or sets Value Display Template. Default null - /// 10.2.2 /// [Parameter] public RenderFragment? Template { get; set; } @@ -184,7 +170,6 @@ namespace BootstrapBlazor.Components; /// /// 获得/设置 是否显示搜索框 默认为 false 不显示搜索框 /// Gets or sets Whether to show search box. Default false - /// 10.2.2 /// [Parameter] public bool ShowSearch { get; set; } @@ -192,7 +177,6 @@ namespace BootstrapBlazor.Components; /// /// 获得/设置 SearchTemplate 实例 /// Gets or sets SearchTemplate Instance - /// 10.2.2 /// [Parameter] public RenderFragment? SearchTemplate { get; set; } @@ -200,7 +184,6 @@ namespace BootstrapBlazor.Components; /// /// 获得/设置 是否收缩顶部搜索框 默认为 false 不收缩搜索框 是否显示搜索框请设置 值 Top /// Gets or sets Whether to collapse top search box. Default false. Please set to Top if show search box - /// 10.2.2 /// [Parameter] public bool CollapsedTopSearch { get; set; } @@ -208,7 +191,6 @@ namespace BootstrapBlazor.Components; /// /// 获得/设置 SearchModel 实例 /// Gets or sets SearchModel Instance - /// 10.2.2 /// [Parameter] public TItem SearchModel { get; set; } = new TItem(); @@ -216,7 +198,6 @@ namespace BootstrapBlazor.Components; /// /// 获得/设置 自定义搜索模型 /// Gets or sets Custom Search Model - /// 10.2.2 /// [Parameter] public ITableSearchModel? CustomerSearchModel { get; set; } @@ -224,7 +205,6 @@ namespace BootstrapBlazor.Components; /// /// 获得/设置 自定义搜索模型模板 /// Gets or sets Custom Search Model Template - /// 10.2.2 /// [Parameter] public RenderFragment? CustomerSearchTemplate { get; set; } @@ -232,7 +212,6 @@ namespace BootstrapBlazor.Components; /// /// 获得/设置 是否分页 默认为 false /// Gets or sets Whether pagination. Default false - /// 10.2.2 /// [Parameter] public bool IsPagination { get; set; } @@ -240,7 +219,6 @@ namespace BootstrapBlazor.Components; /// /// 获得/设置 每页显示数据数量的外部数据源 /// Gets or sets PageItems Source - /// 10.2.2 /// [Parameter] [NotNull] @@ -249,7 +227,6 @@ namespace BootstrapBlazor.Components; /// /// 获得/设置 是否自动生成列信息 默认为 false /// Gets or sets Whether to auto generate columns. Default false - /// 10.2.2 /// [Parameter] public bool AutoGenerateColumns { get; set; } @@ -257,7 +234,6 @@ namespace BootstrapBlazor.Components; /// /// 获得/设置 清除文本内容 OnClear 回调方法 默认 null /// Gets or sets OnClear Callback Method. Default null - /// 10.2.2 /// [Parameter] public Func? OnClearAsync { get; set; } @@ -270,7 +246,6 @@ namespace BootstrapBlazor.Components; /// 获得 input 组件 Id 方法 /// Get input Component Id Method /// - /// protected override string? RetrieveId() => InputId; /// @@ -326,7 +301,6 @@ protected override void OnParametersSet() /// 获得 Text 显示文字 /// Get Display Text /// - /// private string? GetText() => Value == default ? null : GetTextCallback(Value); private async Task OnClickRowCallback(TItem item) @@ -349,6 +323,5 @@ private async Task OnClearValue() /// 查询方法 /// Query Method /// - /// public Task QueryAsync() => _table.QueryAsync(); } diff --git a/src/BootstrapBlazor/Components/Select/SelectTree.razor.cs b/src/BootstrapBlazor/Components/Select/SelectTree.razor.cs index a14866e5a02..7925246f8d3 100644 --- a/src/BootstrapBlazor/Components/Select/SelectTree.razor.cs +++ b/src/BootstrapBlazor/Components/Select/SelectTree.razor.cs @@ -46,7 +46,6 @@ public partial class SelectTree : IModelEqualityComparer /// /// 获得/设置 颜色 默认 Color.None 无设置 /// Gets or sets Color. Default Color.None - /// 10.2.2 /// [Parameter] public Color Color { get; set; } @@ -54,7 +53,6 @@ public partial class SelectTree : IModelEqualityComparer /// /// 获得 PlaceHolder 属性 /// Get PlaceHolder Attribute - /// 10.2.2 /// [Parameter] public string? PlaceHolder { get; set; } @@ -62,7 +60,6 @@ public partial class SelectTree : IModelEqualityComparer /// /// 获得/设置 是否 nodes can be expanded or collapsed when the component is disabled. 默认为 false. /// Gets or sets whether nodes can be expanded or collapsed when the component is disabled. Default is false. - /// 10.2.2 /// [Parameter] public bool CanExpandWhenDisabled { get; set; } = false; @@ -70,7 +67,6 @@ public partial class SelectTree : IModelEqualityComparer /// /// 获得/设置 字符串比较规则 默认 StringComparison.OrdinalIgnoreCase 大小写不敏感 /// Gets or sets String Comparison. Default StringComparison.OrdinalIgnoreCase - /// 10.2.2 /// [Parameter] public StringComparison StringComparison { get; set; } = StringComparison.OrdinalIgnoreCase; @@ -78,7 +74,6 @@ public partial class SelectTree : IModelEqualityComparer /// /// 获得/设置 带层次数据集合 /// Gets or sets Hierarchical Data Collection - /// 10.2.2 /// [Parameter] [NotNull] @@ -88,7 +83,6 @@ public partial class SelectTree : IModelEqualityComparer /// /// SelectedItemChanged 回调方法 /// SelectedItemChanged Callback Method - /// 10.2.2 /// [Parameter] public Func? OnSelectedItemChanged { get; set; } @@ -96,7 +90,6 @@ public partial class SelectTree : IModelEqualityComparer /// /// 获得/设置 点击节点获取子数据集合回调方法 /// Gets or sets OnExpandNodeAsync Callback Method - /// 10.2.2 /// [Parameter] [NotNull] @@ -104,7 +97,6 @@ public partial class SelectTree : IModelEqualityComparer /// /// - /// 10.2.2 /// [Parameter] public Type CustomKeyAttribute { get; set; } = typeof(KeyAttribute); @@ -114,7 +106,6 @@ public partial class SelectTree : IModelEqualityComparer /// Gets or sets Model Equality Comparer. Default null /// 提供此回调方法时忽略 属性 /// Ignore when providing this callback - /// 10.2.2 /// [Parameter] [NotNull] @@ -123,7 +114,6 @@ public partial class SelectTree : IModelEqualityComparer /// /// 获得/设置 是否显示 Icon 图标 默认 false 不显示 /// Gets or sets Whether to show Icon. Default false - /// 10.2.2 /// [Parameter] public bool ShowIcon { get; set; } @@ -131,7 +121,6 @@ public partial class SelectTree : IModelEqualityComparer /// /// 获得/设置 下拉箭头 Icon 图标 /// Gets or sets Dropdown Icon - /// 10.2.2 /// [Parameter] public string? DropdownIcon { get; set; } @@ -139,7 +128,6 @@ public partial class SelectTree : IModelEqualityComparer /// /// 获得/设置 是否可编辑 默认 false /// Gets or sets Whether editable. Default false - /// 10.2.2 /// [Parameter] [ExcludeFromCodeCoverage] @@ -149,7 +137,6 @@ public partial class SelectTree : IModelEqualityComparer /// /// 获得/设置 是否可编辑 默认 false /// Gets or sets Whether editable. Default false - /// 10.2.2 /// [Parameter] public bool IsEditable { get; set; } @@ -157,7 +144,6 @@ public partial class SelectTree : IModelEqualityComparer /// /// 获得/设置 是否显示搜索栏 默认 false 不显示 /// Gets or sets Whether to show search box. Default false - /// 10.2.2 /// [Parameter] public bool ShowSearch { get; set; } @@ -165,7 +151,6 @@ public partial class SelectTree : IModelEqualityComparer /// /// 获得/设置 是否固定搜索栏 默认 false 不固定 /// Gets or sets Whether fixed search box. Default false - /// 10.2.2 /// [Parameter] [Obsolete("已弃用,请删除;Deprecated, please delete")] @@ -175,7 +160,6 @@ public partial class SelectTree : IModelEqualityComparer /// /// 获得/设置 是否显示重置搜索栏按钮 默认 true 显示 /// Gets or sets Whether to show reset search button. Default true - /// 10.2.2 /// [Parameter] public bool ShowResetSearchButton { get; set; } = true; @@ -192,7 +176,6 @@ public partial class SelectTree : IModelEqualityComparer /// 获得 input 组件 Id 方法 /// Get input Component Id Method /// - /// protected override string? RetrieveId() => InputId; /// @@ -262,7 +245,6 @@ protected override async Task OnParametersSetAsync() /// /// /// - /// protected override bool TryParseValueFromString(string value, [MaybeNullWhen(false)] out TValue result, out string? validationErrorMessage) { result = (TValue)(object)value; @@ -323,7 +305,6 @@ private async Task OnItemClick(TreeViewItem item) /// 选中项更改处理方法 /// Selected Item Changed Method /// - /// private async Task ItemChanged(TreeViewItem item) { _selectedItem = item; @@ -343,6 +324,5 @@ private async Task ItemChanged(TreeViewItem item) /// /// /// - /// public bool Equals(TValue? x, TValue? y) => this.Equals(x, y); } diff --git a/src/BootstrapBlazor/Components/Select/SimpleSelectBase.cs b/src/BootstrapBlazor/Components/Select/SimpleSelectBase.cs index c592d162e29..69ccf8bc4f0 100644 --- a/src/BootstrapBlazor/Components/Select/SimpleSelectBase.cs +++ b/src/BootstrapBlazor/Components/Select/SimpleSelectBase.cs @@ -30,7 +30,6 @@ public abstract class SimpleSelectBase : SelectBase /// /// 获得/设置 the items. /// Gets or sets the items. - /// 10.2.2 /// [Parameter] [NotNull] @@ -39,7 +38,6 @@ public abstract class SimpleSelectBase : SelectBase /// /// 获得/设置 the 回调方法 for loading virtualized items. /// Gets or sets the callback method for loading virtualized items. - /// 10.2.2 /// [Parameter] [NotNull] @@ -48,7 +46,6 @@ public abstract class SimpleSelectBase : SelectBase /// /// 获得/设置 the 回调方法 when the search text changes. /// Gets or sets the callback method when the search text changes. - /// 10.2.2 /// [Parameter] public Func>? OnSearchTextChanged { get; set; } @@ -56,7 +53,6 @@ public abstract class SimpleSelectBase : SelectBase /// /// 获得/设置 是否 the select component is editable. 默认为 false. /// Gets or sets whether the select component is editable. Default is false. - /// 10.2.2 /// [Parameter] public bool IsEditable { get; set; } @@ -64,7 +60,6 @@ public abstract class SimpleSelectBase : SelectBase /// /// 获得/设置 the item 模板. /// Gets or sets the item template. - /// 10.2.2 /// [Parameter] public RenderFragment? ItemTemplate { get; set; } @@ -92,7 +87,6 @@ protected List Rows /// 获得 the rows by Items. /// Gets the rows by Items. /// - /// protected abstract List GetRowsByItems(); private List GetRowsBySearch() @@ -106,7 +100,6 @@ private List GetRowsBySearch() /// Filter the items by search text. /// /// - /// protected IEnumerable FilterBySearchText(IEnumerable source) => string.IsNullOrEmpty(SearchText) ? source : source.Where(i => i.Text.Contains(SearchText, StringComparison)); @@ -130,7 +123,6 @@ public async Task TriggerOnSearch(string searchText) /// Refreshes the virtualize component. /// Refreshes the virtualize component. /// - /// protected async Task RefreshVirtualizeElement() { if (IsVirtualize && OnQueryAsync != null) @@ -145,7 +137,6 @@ protected async Task RefreshVirtualizeElement() /// Clears the selected value. /// Clears the selected value. /// - /// protected override async Task OnClearValue() { if (ShowSearch) diff --git a/src/BootstrapBlazor/Components/SelectGeneric/MultiSelectGeneric.razor.cs b/src/BootstrapBlazor/Components/SelectGeneric/MultiSelectGeneric.razor.cs index 0aa43ef63d7..fa4865f273b 100644 --- a/src/BootstrapBlazor/Components/SelectGeneric/MultiSelectGeneric.razor.cs +++ b/src/BootstrapBlazor/Components/SelectGeneric/MultiSelectGeneric.razor.cs @@ -46,7 +46,6 @@ public partial class MultiSelectGeneric : IModelEqualityComparer /// /// 获得/设置 显示部分模板 默认 null /// Gets or sets Display Template. Default null - /// 10.2.2 /// [Parameter] public RenderFragment>>? DisplayTemplate { get; set; } @@ -54,7 +53,6 @@ public partial class MultiSelectGeneric : IModelEqualityComparer /// /// 获得/设置 是否显示关闭按钮 默认为 true 显示 /// Gets or sets Whether to show close button. Default true - /// 10.2.2 /// [Parameter] public bool ShowCloseButton { get; set; } = true; @@ -62,7 +60,6 @@ public partial class MultiSelectGeneric : IModelEqualityComparer /// /// 获得/设置 关闭按钮图标 默认为 null /// Gets or sets Close button icon. Default null - /// 10.2.2 /// [Parameter] public string? CloseButtonIcon { get; set; } @@ -70,7 +67,6 @@ public partial class MultiSelectGeneric : IModelEqualityComparer /// /// 获得/设置 是否显示功能按钮 默认为 false 不显示 /// Gets or sets Whether to show toolbar. Default false - /// 10.2.2 /// [Parameter] public bool ShowToolbar { get; set; } @@ -78,7 +74,6 @@ public partial class MultiSelectGeneric : IModelEqualityComparer /// /// 获得/设置 是否显示默认功能按钮 默认为 true 显示 /// Gets or sets Whether to show default buttons. Default true - /// 10.2.2 /// [Parameter] public bool ShowDefaultButtons { get; set; } = true; @@ -86,7 +81,6 @@ public partial class MultiSelectGeneric : IModelEqualityComparer /// /// 获得/设置 是否固定高度 默认 false /// Gets or sets Whether fixed height. Default false - /// 10.2.2 /// [Parameter] public bool IsFixedHeight { get; set; } @@ -94,7 +88,6 @@ public partial class MultiSelectGeneric : IModelEqualityComparer /// /// 获得/设置 是否为单行模式 默认 false /// Gets or sets Whether single line mode. Default false - /// 10.2.2 /// [Parameter] public bool IsSingleLine { get; set; } @@ -104,7 +97,6 @@ public partial class MultiSelectGeneric : IModelEqualityComparer /// Gets or sets Callback method when input option is updated in edit mode. Default null /// 返回 实例时输入选项生效,返回 null 时选项不生效进行舍弃操作,建议在回调方法中自行提示 /// Return instance to take effect, return null to discard, it is recommended to prompt in the callback method - /// 10.2.2 /// /// Effective when is set. [Parameter] @@ -113,7 +105,6 @@ public partial class MultiSelectGeneric : IModelEqualityComparer /// /// 获得/设置 编辑提交按键 默认 Enter /// Gets or sets Edit Submit Key. Default Enter - /// 10.2.2 /// [Parameter] public EditSubmitKey EditSubmitKey { get; set; } @@ -121,7 +112,6 @@ public partial class MultiSelectGeneric : IModelEqualityComparer /// /// 获得/设置 扩展按钮模板 /// Gets or sets Button Template - /// 10.2.2 /// [Parameter] public RenderFragment? ButtonTemplate { get; set; } @@ -129,7 +119,6 @@ public partial class MultiSelectGeneric : IModelEqualityComparer /// /// 获得/设置 选中项集合发生改变时回调委托方法 /// Callback method when selected items collection changes - /// 10.2.2 /// [Parameter] public Func>, Task>? OnSelectedItemsChanged { get; set; } @@ -137,7 +126,6 @@ public partial class MultiSelectGeneric : IModelEqualityComparer /// /// 获得/设置 the default virtualize items text. /// Gets or sets the default virtualize items text. - /// 10.2.2 /// [Parameter] public string? DefaultVirtualizeItemText { get; set; } @@ -145,7 +133,6 @@ public partial class MultiSelectGeneric : IModelEqualityComparer /// /// 获得/设置 全选按钮显示文本 /// Gets or sets Select All Text - /// 10.2.2 /// [Parameter] [NotNull] @@ -154,7 +141,6 @@ public partial class MultiSelectGeneric : IModelEqualityComparer /// /// 获得/设置 全选按钮显示文本 /// Gets or sets Reverse Select Text - /// 10.2.2 /// [Parameter] [NotNull] @@ -163,7 +149,6 @@ public partial class MultiSelectGeneric : IModelEqualityComparer /// /// 获得/设置 全选按钮显示文本 /// Gets or sets Clear Text - /// 10.2.2 /// [Parameter] [NotNull] @@ -172,7 +157,6 @@ public partial class MultiSelectGeneric : IModelEqualityComparer /// /// 获得/设置 选项最大数 默认为 0 不限制 /// Gets or sets Max items. Default 0 (no limit) - /// 10.2.2 /// [Parameter] public int Max { get; set; } @@ -180,7 +164,6 @@ public partial class MultiSelectGeneric : IModelEqualityComparer /// /// 获得/设置 设置最大值时错误消息文字 /// Gets or sets Error message when max value is set - /// 10.2.2 /// [Parameter] [NotNull] @@ -189,7 +172,6 @@ public partial class MultiSelectGeneric : IModelEqualityComparer /// /// 获得/设置 选项最小数 默认为 0 不限制 /// Gets or sets Min items. Default 0 (no limit) - /// 10.2.2 /// [Parameter] public int Min { get; set; } @@ -197,7 +179,6 @@ public partial class MultiSelectGeneric : IModelEqualityComparer /// /// 获得/设置 设置最小值时错误消息文字 /// Gets or sets Error message when min value is set - /// 10.2.2 /// [Parameter] [NotNull] @@ -206,7 +187,6 @@ public partial class MultiSelectGeneric : IModelEqualityComparer /// /// 获得/设置 the items. /// Gets or sets the items. - /// 10.2.2 /// [Parameter] [NotNull] @@ -215,7 +195,6 @@ public partial class MultiSelectGeneric : IModelEqualityComparer /// /// 获得/设置 the 回调方法 for loading virtualized items. /// Gets or sets the callback method for loading virtualized items. - /// 10.2.2 /// [Parameter] [NotNull] @@ -224,7 +203,6 @@ public partial class MultiSelectGeneric : IModelEqualityComparer /// /// 获得/设置 the 回调方法 when the search text changes. /// Gets or sets the callback method when the search text changes. - /// 10.2.2 /// [Parameter] public Func>>? OnSearchTextChanged { get; set; } @@ -232,7 +210,6 @@ public partial class MultiSelectGeneric : IModelEqualityComparer /// /// 获得/设置 the item 模板. /// Gets or sets the item template. - /// 10.2.2 /// [Parameter] public RenderFragment>? ItemTemplate { get; set; } @@ -242,7 +219,6 @@ public partial class MultiSelectGeneric : IModelEqualityComparer /// Gets or sets Value Equality Comparer. Default null /// 提供此回调方法时忽略 属性 /// Ignore when providing this callback - /// 10.2.2 /// [Parameter] public Func? ValueEqualityComparer { get; set; } @@ -256,7 +232,6 @@ public partial class MultiSelectGeneric : IModelEqualityComparer /// /// 获得/设置 数据主键标识标签 默认为 用于判断数据主键标签,如果模型未设置主键时可使用 参数自定义判断数据模型支持联合主键 /// Gets or sets Identifier tag for data primary key. Default is . Used to determine date primary key tag. If the model does not set a primary key, you can use the parameter to customize the judgment of the data model supporting joint primary keys - /// 10.2.2 /// [Parameter] [NotNull] @@ -316,7 +291,6 @@ protected override void OnAfterRender(bool firstRender) /// /// /// - /// protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id, Interop, new { ConfirmMethodCallback = nameof(ConfirmSelectedItem), @@ -343,7 +317,6 @@ public async Task TriggerOnSearch(string searchText) /// Refreshes the virtualize component. /// Refreshes the virtualize component. /// - /// private async Task RefreshVirtualizeElement() { if (IsVirtualize && OnQueryAsync != null) @@ -406,7 +379,6 @@ private async ValueTask>> LoadItems(Ite /// /// /// - /// protected override async Task OnClearValue() { await base.OnClearValue(); @@ -420,7 +392,6 @@ protected override async Task OnClearValue() /// /// /// - /// private List> GetRowsByItems() { var items = new List>(); @@ -440,7 +411,6 @@ private List> GetRowsByItems() /// Client Enter Callback Method /// /// - /// [JSInvokable] public async Task ConfirmSelectedItem(int index) { @@ -456,7 +426,6 @@ public async Task ConfirmSelectedItem(int index) /// 切换当前选项方法 /// Toggle Current Option Method /// - /// [JSInvokable] public async Task ToggleRow(string val) { @@ -555,7 +524,6 @@ private async Task SetValue() /// 清除选择项方法 /// Clear Selected Items Method /// - /// public async Task Clear() { SelectedItems.Clear(); @@ -566,7 +534,6 @@ public async Task Clear() /// 全选选择项方法 /// Select All Items Method /// - /// public async Task SelectAll() { SelectedItems.Clear(); @@ -578,7 +545,6 @@ public async Task SelectAll() /// 翻转选择项方法 /// Invert Selection Method /// - /// public async Task InvertSelect() { var items = Rows.Where(item => !SelectedItems.Any(i => Equals(i.Value, item.Value))).ToList(); @@ -645,6 +611,5 @@ private void ResetSelectedItems() /// /// /// - /// public bool Equals(TValue? x, TValue? y) => this.Equals(x, y); } diff --git a/src/BootstrapBlazor/Components/SelectGeneric/SelectGeneric.razor.cs b/src/BootstrapBlazor/Components/SelectGeneric/SelectGeneric.razor.cs index 58e4a8c8af5..159dd6d63d9 100644 --- a/src/BootstrapBlazor/Components/SelectGeneric/SelectGeneric.razor.cs +++ b/src/BootstrapBlazor/Components/SelectGeneric/SelectGeneric.razor.cs @@ -45,7 +45,6 @@ public partial class SelectGeneric : ISelectGeneric, IModelEqual /// Set Current Item Active Method /// /// - /// private string? ActiveItem(SelectedItem item) => CssBuilder.Default("dropdown-item") .AddClass("active", Equals(item.Value, Value)) .AddClass("disabled", item.IsDisabled) @@ -56,7 +55,6 @@ public partial class SelectGeneric : ISelectGeneric, IModelEqual /// /// 获得/设置 搜索文本发生变化时回调此方法 /// Callback method when search text changes - /// 10.2.2 /// [Parameter] public Func>>? OnSearchTextChanged { get; set; } @@ -64,7 +62,6 @@ public partial class SelectGeneric : ISelectGeneric, IModelEqual /// /// 获得/设置 是否可编辑 默认 false /// Gets or sets Whether editable. Default false - /// 10.2.2 /// [Parameter] public bool IsEditable { get; set; } @@ -72,7 +69,6 @@ public partial class SelectGeneric : ISelectGeneric, IModelEqual /// /// 获得/设置 选项输入更新后回调方法 默认 null /// Callback method after option input update. Default null - /// 10.2.2 /// /// 设置 后生效 [Parameter] @@ -83,7 +79,6 @@ public partial class SelectGeneric : ISelectGeneric, IModelEqual /// Callback method to convert option input update to Value. Default null /// 返回值为 null 时放弃操作 /// Discard operation when return value is null - /// 10.2.2 /// /// 设置 后生效 [Parameter] @@ -92,7 +87,6 @@ public partial class SelectGeneric : ISelectGeneric, IModelEqual /// /// 获得/设置 选项模板支持静态数据 /// Gets or sets Option template supports static data - /// 10.2.2 /// [Parameter] public RenderFragment? Options { get; set; } @@ -100,7 +94,6 @@ public partial class SelectGeneric : ISelectGeneric, IModelEqual /// /// 获得/设置 显示部分模板 默认 null /// Gets or sets Display Template. Default null - /// 10.2.2 /// [Parameter] public RenderFragment?>? DisplayTemplate { get; set; } @@ -108,7 +101,6 @@ public partial class SelectGeneric : ISelectGeneric, IModelEqual /// /// 获得/设置 禁止首次加载时触发 OnSelectedItemChanged 回调方法 默认 false /// Gets or sets Disable triggering OnSelectedItemChanged callback on first load. Default false - /// 10.2.2 /// [Parameter] public bool DisableItemChangedWhenFirstRender { get; set; } @@ -118,7 +110,6 @@ public partial class SelectGeneric : ISelectGeneric, IModelEqual /// Gets or sets Value Equality Comparer. Default null /// 提供此回调方法时忽略 属性 /// Ignore when providing this callback - /// 10.2.2 /// [Parameter] public Func? ValueEqualityComparer { get; set; } @@ -132,7 +123,6 @@ public partial class SelectGeneric : ISelectGeneric, IModelEqual /// /// 获得/设置 数据主键标识标签 默认为 用于判断数据主键标签,如果模型未设置主键时可使用 参数自定义判断数据模型支持联合主键 /// Gets or sets Identifier tag for data primary key. Default is . Used to determine date primary key tag. If the model does not set a primary key, you can use the parameter to customize the judgment of the data model supporting joint primary keys - /// 10.2.2 /// [Parameter] [NotNull] @@ -144,7 +134,6 @@ public partial class SelectGeneric : ISelectGeneric, IModelEqual /// /// 获得/设置 绑定数据集 /// Gets or sets Bound Dataset - /// 10.2.2 /// [Parameter] [NotNull] @@ -153,7 +142,6 @@ public partial class SelectGeneric : ISelectGeneric, IModelEqual /// /// 获得/设置 选项模板 /// Gets or sets Item Template - /// 10.2.2 /// [Parameter] public RenderFragment>? ItemTemplate { get; set; } @@ -161,7 +149,6 @@ public partial class SelectGeneric : ISelectGeneric, IModelEqual /// /// 获得/设置 下拉框项目改变前回调委托方法 返回 true 时选项值改变,否则选项值不变 /// Gets or sets Callback delegate before dropdown item changes. Return true to change option value, otherwise value remains unchanged - /// 10.2.2 /// [Parameter] public Func, Task>? OnBeforeSelectedItemChange { get; set; } @@ -169,7 +156,6 @@ public partial class SelectGeneric : ISelectGeneric, IModelEqual /// /// SelectedItemChanged 回调方法 /// SelectedItemChanged Callback Method - /// 10.2.2 /// [Parameter] public Func, Task>? OnSelectedItemChanged { get; set; } @@ -177,7 +163,6 @@ public partial class SelectGeneric : ISelectGeneric, IModelEqual /// /// 获得/设置 Swal 图标 默认 Question /// Gets or sets Swal Icon. Default Question - /// 10.2.2 /// [Parameter] public SwalCategory SwalCategory { get; set; } = SwalCategory.Question; @@ -185,7 +170,6 @@ public partial class SelectGeneric : ISelectGeneric, IModelEqual /// /// 获得/设置 Swal 标题 默认 null /// Gets or sets Swal Title. Default null - /// 10.2.2 /// [Parameter] public string? SwalTitle { get; set; } @@ -193,7 +177,6 @@ public partial class SelectGeneric : ISelectGeneric, IModelEqual /// /// 获得/设置 Swal 内容 默认 null /// Gets or sets Swal Content. Default null - /// 10.2.2 /// [Parameter] public string? SwalContent { get; set; } @@ -201,7 +184,6 @@ public partial class SelectGeneric : ISelectGeneric, IModelEqual /// /// 获得/设置 Footer 默认 null /// Gets or sets Footer. Default null - /// 10.2.2 /// [Parameter] public string? SwalFooter { get; set; } @@ -214,7 +196,6 @@ public partial class SelectGeneric : ISelectGeneric, IModelEqual /// 获得 input 组件 Id 方法 /// Get input Component Id Method /// - /// protected override string? RetrieveId() => InputId; /// @@ -336,7 +317,6 @@ protected override void OnParametersSet() /// /// /// - /// protected override async Task OnAfterRenderAsync(bool firstRender) { await base.OnAfterRenderAsync(firstRender); @@ -359,7 +339,6 @@ protected override async Task OnAfterRenderAsync(bool firstRender) /// /// 虚拟滚动数据加载回调方法 /// Virtual Scroll Data Load Callback Method - /// 10.2.2 /// [Parameter] [NotNull] @@ -395,7 +374,6 @@ private async Task RefreshVirtualizeElement() /// /// /// - /// protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id, Interop, new { ConfirmMethodCallback = nameof(ConfirmSelectedItem), SearchMethodCallback = nameof(TriggerOnSearch) }); /// @@ -403,7 +381,6 @@ private async Task RefreshVirtualizeElement() /// Client Enter Callback Method /// /// - /// [JSInvokable] public async Task ConfirmSelectedItem(int index) { @@ -419,7 +396,6 @@ public async Task ConfirmSelectedItem(int index) /// Client Search Bar Callback Method /// /// - /// [JSInvokable] public async Task TriggerOnSearch(string searchText) { @@ -522,7 +498,6 @@ private async Task ValueTypeChanged(SelectedItem item) /// /// /// - /// protected override async Task OnClearValue() { await base.OnClearValue(); @@ -586,6 +561,5 @@ private async Task OnChange(ChangeEventArgs args) /// /// /// - /// public bool Equals(TValue? x, TValue? y) => this.Equals(x, y); } diff --git a/src/BootstrapBlazor/Components/SelectGeneric/SelectOptionGeneric.cs b/src/BootstrapBlazor/Components/SelectGeneric/SelectOptionGeneric.cs index cac43017fd0..c309c338724 100644 --- a/src/BootstrapBlazor/Components/SelectGeneric/SelectOptionGeneric.cs +++ b/src/BootstrapBlazor/Components/SelectGeneric/SelectOptionGeneric.cs @@ -14,7 +14,6 @@ public class SelectOptionGeneric : ComponentBase /// /// 获得/设置 显示名称 /// Gets or sets Display Name - /// 10.2.2 /// [Parameter] public string? Text { get; set; } @@ -22,7 +21,6 @@ public class SelectOptionGeneric : ComponentBase /// /// 获得/设置 选项值 /// Gets or sets Option Value - /// 10.2.2 /// [Parameter] public TValue? Value { get; set; } @@ -30,7 +28,6 @@ public class SelectOptionGeneric : ComponentBase /// /// 获得/设置 是否选中 默认 false /// Gets or sets Whether selected. Default false - /// 10.2.2 /// [Parameter] public bool Active { get; set; } @@ -38,7 +35,6 @@ public class SelectOptionGeneric : ComponentBase /// /// 获得/设置 是否禁用 默认 false /// Gets or sets Whether disabled. Default false - /// 10.2.2 /// [Parameter] public bool IsDisabled { get; set; } @@ -46,7 +42,6 @@ public class SelectOptionGeneric : ComponentBase /// /// 获得/设置 分组名称 /// Gets or sets Group Name - /// 10.2.2 /// [Parameter] public string? GroupName { get; set; } diff --git a/src/BootstrapBlazor/Components/Skeleton/SkeletonAvatar.razor.cs b/src/BootstrapBlazor/Components/Skeleton/SkeletonAvatar.razor.cs index 8271990d35f..463a2bdbb99 100644 --- a/src/BootstrapBlazor/Components/Skeleton/SkeletonAvatar.razor.cs +++ b/src/BootstrapBlazor/Components/Skeleton/SkeletonAvatar.razor.cs @@ -18,7 +18,6 @@ public sealed partial class SkeletonAvatar /// /// 获得/设置 是否为圆形 默认为 false /// Gets or sets Whether circle. Default false - /// 10.2.2 /// [Parameter] public bool Circle { get; set; } diff --git a/src/BootstrapBlazor/Components/Skeleton/SkeletonBase.cs b/src/BootstrapBlazor/Components/Skeleton/SkeletonBase.cs index ba8473b4605..2f47a328b5c 100644 --- a/src/BootstrapBlazor/Components/Skeleton/SkeletonBase.cs +++ b/src/BootstrapBlazor/Components/Skeleton/SkeletonBase.cs @@ -14,7 +14,6 @@ public abstract class SkeletonBase : BootstrapComponentBase /// /// 获得/设置 是否圆角 默认为 true /// Gets or sets Whether round. Default true - /// 10.2.2 /// [Parameter] public bool Round { get; set; } = true; @@ -22,7 +21,6 @@ public abstract class SkeletonBase : BootstrapComponentBase /// /// 获得/设置 是否显示动画 默认为 true /// Gets or sets Whether active. Default true - /// 10.2.2 /// [Parameter] public bool Active { get; set; } = true; diff --git a/src/BootstrapBlazor/Components/Skeleton/SkeletonTable.razor.cs b/src/BootstrapBlazor/Components/Skeleton/SkeletonTable.razor.cs index ab5da9f59ee..b50777368ef 100644 --- a/src/BootstrapBlazor/Components/Skeleton/SkeletonTable.razor.cs +++ b/src/BootstrapBlazor/Components/Skeleton/SkeletonTable.razor.cs @@ -14,7 +14,6 @@ public partial class SkeletonTable /// /// 获得/设置 行数 默认 7 行 /// Gets or sets Rows. Default 7 - /// 10.2.2 /// [Parameter] public int Rows { get; set; } = 7; @@ -22,7 +21,6 @@ public partial class SkeletonTable /// /// 获得/设置 行数 默认 3 列 /// Gets or sets Columns. Default 3 - /// 10.2.2 /// [Parameter] public int Columns { get; set; } = 3; @@ -30,7 +28,6 @@ public partial class SkeletonTable /// /// 获得/设置 是否显示工具栏 /// Gets or sets Whether to show toolbar - /// 10.2.2 /// [Parameter] public bool ShowToolbar { get; set; } = true; diff --git a/src/BootstrapBlazor/Components/Skeleton/SkeletonTree.razor.cs b/src/BootstrapBlazor/Components/Skeleton/SkeletonTree.razor.cs index d9ab30f3bbf..f752e857320 100644 --- a/src/BootstrapBlazor/Components/Skeleton/SkeletonTree.razor.cs +++ b/src/BootstrapBlazor/Components/Skeleton/SkeletonTree.razor.cs @@ -19,7 +19,6 @@ public partial class SkeletonTree /// /// 获得/设置 Loading 图标 /// Gets or sets Loading Icon - /// 10.2.2 /// [Parameter] public string? Icon { get; set; } diff --git a/src/BootstrapBlazor/Components/Slider/Slider.razor.cs b/src/BootstrapBlazor/Components/Slider/Slider.razor.cs index f24faa3a1e4..6713fdbe8cc 100644 --- a/src/BootstrapBlazor/Components/Slider/Slider.razor.cs +++ b/src/BootstrapBlazor/Components/Slider/Slider.razor.cs @@ -22,7 +22,6 @@ public partial class Slider /// /// 获得/设置 最小值 默认为 null 未设置 /// Gets or sets Min Value. Default null - /// 10.2.2 /// [Parameter] [NotNull] @@ -31,7 +30,6 @@ public partial class Slider /// /// 获得/设置 最大值 默认为 null 未设置 /// Gets or sets Max Value. Default null - /// 10.2.2 /// [Parameter] [NotNull] @@ -40,7 +38,6 @@ public partial class Slider /// /// 获得/设置 步长 默认为 null 未设置 /// Gets or sets Step. Default null - /// 10.2.2 /// [Parameter] [NotNull] diff --git a/src/BootstrapBlazor/Components/Speech/IRecognizerProvider.cs b/src/BootstrapBlazor/Components/Speech/IRecognizerProvider.cs index 0ee936a0139..6393aff6f9b 100644 --- a/src/BootstrapBlazor/Components/Speech/IRecognizerProvider.cs +++ b/src/BootstrapBlazor/Components/Speech/IRecognizerProvider.cs @@ -15,6 +15,5 @@ public interface IRecognizerProvider /// 识别语音回调方法 /// Recognize Speech Callback Method /// - /// Task InvokeAsync(RecognizerOption option); } diff --git a/src/BootstrapBlazor/Components/Speech/ISynthesizerProvider.cs b/src/BootstrapBlazor/Components/Speech/ISynthesizerProvider.cs index 6aea41adf74..7bd02afefa5 100644 --- a/src/BootstrapBlazor/Components/Speech/ISynthesizerProvider.cs +++ b/src/BootstrapBlazor/Components/Speech/ISynthesizerProvider.cs @@ -15,6 +15,5 @@ public interface ISynthesizerProvider /// 语音合成回调方法 /// Speech Synthesis Callback Method /// - /// Task InvokeAsync(SynthesizerOption option); } diff --git a/src/BootstrapBlazor/Components/Speech/RecognizerService.cs b/src/BootstrapBlazor/Components/Speech/RecognizerService.cs index 7eb49056c5d..fb44c93db92 100644 --- a/src/BootstrapBlazor/Components/Speech/RecognizerService.cs +++ b/src/BootstrapBlazor/Components/Speech/RecognizerService.cs @@ -16,6 +16,5 @@ public class RecognizerService(IRecognizerProvider provider) /// Speech Recognition Callback Method /// /// - /// public Task InvokeAsync(RecognizerOption option) => provider.InvokeAsync(option); } diff --git a/src/BootstrapBlazor/Components/Speech/SpeechWave.razor.cs b/src/BootstrapBlazor/Components/Speech/SpeechWave.razor.cs index 3feb0c359f7..f48f5edd88e 100644 --- a/src/BootstrapBlazor/Components/Speech/SpeechWave.razor.cs +++ b/src/BootstrapBlazor/Components/Speech/SpeechWave.razor.cs @@ -14,7 +14,6 @@ public partial class SpeechWave : IDisposable /// /// 获得/设置 是否显示波形图 默认 false /// Gets or sets Whether to show waveform. Default false - /// 10.2.2 /// [Parameter] public bool Show { get; set; } @@ -22,7 +21,6 @@ public partial class SpeechWave : IDisposable /// /// 获得/设置 是否显示已用时长 默认 true /// Gets or sets Whether to show used time. Default true - /// 10.2.2 /// [Parameter] public bool ShowUsedTime { get; set; } = true; @@ -30,7 +28,6 @@ public partial class SpeechWave : IDisposable /// /// 获得/设置 倒计时结束时回调委托 /// Gets or sets Callback delegate when countdown ends - /// 10.2.2 /// [Parameter] public Func? OnTimeout { get; set; } @@ -38,7 +35,6 @@ public partial class SpeechWave : IDisposable /// /// 获得/设置 总时长 默认 60 000 毫秒 /// Gets or sets Total Time. Default 60000 ms - /// 10.2.2 /// [Parameter] public int TotalTime { get; set; } = 60 * 1000; @@ -63,7 +59,6 @@ public partial class SpeechWave : IDisposable /// /// /// - /// protected override async Task OnParametersSetAsync() { @@ -144,7 +139,6 @@ protected virtual void Dispose(bool disposing) /// Dispose 方法 /// Dispose 方法 /// - /// public void Dispose() { Dispose(true); diff --git a/src/BootstrapBlazor/Components/Speech/SynthesizerService.cs b/src/BootstrapBlazor/Components/Speech/SynthesizerService.cs index 1bfbda69527..757715accda 100644 --- a/src/BootstrapBlazor/Components/Speech/SynthesizerService.cs +++ b/src/BootstrapBlazor/Components/Speech/SynthesizerService.cs @@ -17,6 +17,5 @@ public class SynthesizerService(ISynthesizerProvider provider) /// Speech Synthesis Callback Method /// /// - /// public Task InvokeAsync(SynthesizerOption option) => provider.InvokeAsync(option); } diff --git a/src/BootstrapBlazor/Components/Spinner/Spinner.razor.cs b/src/BootstrapBlazor/Components/Spinner/Spinner.razor.cs index 26092469833..f53ae7956f2 100644 --- a/src/BootstrapBlazor/Components/Spinner/Spinner.razor.cs +++ b/src/BootstrapBlazor/Components/Spinner/Spinner.razor.cs @@ -25,7 +25,6 @@ public partial class Spinner /// /// 获得/设置 Spinner 颜色 默认 None 无设置 /// Gets or sets Spinner Color. Default None - /// 10.2.2 /// [Parameter] public Color Color { get; set; } @@ -33,7 +32,6 @@ public partial class Spinner /// /// 获得 / 设置 Spinner 大小 默认 None 无设置 /// Gets or sets Spinner Size. Default None - /// 10.2.2 /// [Parameter] public Size Size { get; set; } @@ -41,7 +39,6 @@ public partial class Spinner /// /// 获得/设置 Spinner 类型 默认为 Border /// Gets or sets Spinner Type. Default Border - /// 10.2.2 /// [Parameter] public SpinnerType SpinnerType { get; set; } diff --git a/src/BootstrapBlazor/Components/Split/Split.razor.cs b/src/BootstrapBlazor/Components/Split/Split.razor.cs index e7e7b84da8a..19802f8175f 100644 --- a/src/BootstrapBlazor/Components/Split/Split.razor.cs +++ b/src/BootstrapBlazor/Components/Split/Split.razor.cs @@ -14,7 +14,6 @@ public sealed partial class Split /// /// 获取 是否开启折叠功能 默认 false /// Gets or sets Whether to enable collapsible function. Default false - /// 10.2.2 /// [Parameter] public bool IsCollapsible { get; set; } @@ -22,7 +21,6 @@ public sealed partial class Split /// /// 获取 是否显示拖动条 默认 true /// Gets or sets Whether to show drag bar. Default true - /// 10.2.2 /// [Parameter] public bool ShowBarHandle { get; set; } = true; @@ -30,7 +28,6 @@ public sealed partial class Split /// /// 获得/设置 开启 后,恢复时是否保持原始大小 默认 true /// Gets or sets Whether to keep original size when restoring after enabling . Default true - /// 10.2.2 /// [Parameter] public bool IsKeepOriginalSize { get; set; } = true; @@ -38,7 +35,6 @@ public sealed partial class Split /// /// 获得/设置 是否垂直分割 /// Gets or sets Whether vertical split - /// 10.2.2 /// [Parameter] public bool IsVertical { get; set; } @@ -46,7 +42,6 @@ public sealed partial class Split /// /// 获得/设置 第一个窗格初始化位置占比 默认为 50% /// Gets or sets First panel initial position ratio. Default 50% - /// 10.2.2 /// [Parameter] public string Basis { get; set; } = "50%"; @@ -54,7 +49,6 @@ public sealed partial class Split /// /// 获得/设置 第一个窗格模板 /// Gets or sets First Panel Template - /// 10.2.2 /// [Parameter] public RenderFragment? FirstPaneTemplate { get; set; } @@ -62,7 +56,6 @@ public sealed partial class Split /// /// 获得/设置 第一个窗格最小宽度 支持任意单位如 10px 20% 5em 1rem 未提供单位时默认为 px /// Gets or sets First Panel Minimum Size. Supports any unit e.g. 10px 20% 5em 1rem. Default unit is px - /// 10.2.2 /// [Parameter] public string? FirstPaneMinimumSize { get; set; } @@ -70,7 +63,6 @@ public sealed partial class Split /// /// 获得/设置 第二个窗格模板 /// Gets or sets Second Panel Template - /// 10.2.2 /// [Parameter] public RenderFragment? SecondPaneTemplate { get; set; } @@ -78,7 +70,6 @@ public sealed partial class Split /// /// 获得/设置 第二个窗格最小宽度 /// Gets or sets Second Panel Minimum Size - /// 10.2.2 /// [Parameter] public string? SecondPaneMinimumSize { get; set; } @@ -86,7 +77,6 @@ public sealed partial class Split /// /// 获得/设置 窗格折叠时回调方法 参数 bool 值为 true 是表示已折叠 值为 false 表示第二个已折叠 /// Gets or sets Callback method when panel is collapsed. parameter bool value true means collapsed, false means second panel collapsed - /// 10.2.2 /// [Parameter] [Obsolete("已弃用,请使用 OnResizedAsync 回调方法 Deprecated. Please use OnResizedAsync")] @@ -96,7 +86,6 @@ public sealed partial class Split /// /// 获得/设置 窗格尺寸改变时回调方法 可参阅 /// Gets or sets Callback method when panel size changes. Refer to - /// 10.2.2 /// [Parameter] public Func? OnResizedAsync { get; set; } @@ -124,7 +113,6 @@ public sealed partial class Split /// /// /// - /// protected override async Task OnAfterRenderAsync(bool firstRender) { await base.OnAfterRenderAsync(firstRender); @@ -143,7 +131,6 @@ protected override async Task OnAfterRenderAsync(bool firstRender) /// /// /// - /// protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id, Interop, nameof(TriggerOnResize), new { IsKeepOriginalSize @@ -154,14 +141,12 @@ protected override async Task OnAfterRenderAsync(bool firstRender) /// Set Left Panel Width /// /// 可以是百分比或者其他单位可以是百分比或者其他单位 - /// public Task SetLeftWidth(string leftWidth) => InvokeVoidAsync("setLeft", Id, leftWidth); /// /// 窗格折叠时回调方法 由 JavaScript 调用 /// Callback method when panel collapsed. Called by JavaScript /// - /// [JSInvokable] public async Task TriggerOnResize(string left) { diff --git a/src/BootstrapBlazor/Components/Stack/Stack.razor.cs b/src/BootstrapBlazor/Components/Stack/Stack.razor.cs index 59ec150e304..8d66140ef6a 100644 --- a/src/BootstrapBlazor/Components/Stack/Stack.razor.cs +++ b/src/BootstrapBlazor/Components/Stack/Stack.razor.cs @@ -33,7 +33,6 @@ public partial class Stack /// /// 获得/设置 内容 /// Gets or sets Content - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } @@ -41,7 +40,6 @@ public partial class Stack /// /// 获得/设置 是否为行布局 默认 false /// Gets or sets Is Row Layout. Default false - /// 10.2.2 /// [Parameter] public bool IsRow { get; set; } @@ -49,7 +47,6 @@ public partial class Stack /// /// 获得/设置 是否反向布局 默认 false /// Gets or sets Is Reverse Layout. Default false - /// 10.2.2 /// [Parameter] public bool IsReverse { get; set; } @@ -57,7 +54,6 @@ public partial class Stack /// /// 获得/设置 是否允许折行 默认 false /// Gets or sets Is Wrap. Default false - /// 10.2.2 /// [Parameter] public bool IsWrap { get; set; } @@ -65,7 +61,6 @@ public partial class Stack /// /// 获得/设置 垂直布局模式 默认 StackAlignItems.Stretch /// Gets or sets Align Items. Default StackAlignItems.Stretch - /// 10.2.2 /// [Parameter] public StackAlignItems AlignItems { get; set; } @@ -73,7 +68,6 @@ public partial class Stack /// /// 获得/设置 水平布局调整 默认 StackJustifyContent.Start /// Gets or sets Justify Content. Default StackJustifyContent.Start - /// 10.2.2 /// [Parameter] public StackJustifyContent Justify { get; set; } diff --git a/src/BootstrapBlazor/Components/Stack/StackItem.cs b/src/BootstrapBlazor/Components/Stack/StackItem.cs index 253be2b1f0c..91236ff0f53 100644 --- a/src/BootstrapBlazor/Components/Stack/StackItem.cs +++ b/src/BootstrapBlazor/Components/Stack/StackItem.cs @@ -19,7 +19,6 @@ public class StackItem : BootstrapComponentBase, IDisposable /// /// 获得/设置 内容 /// Gets or sets Content - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } @@ -27,7 +26,6 @@ public class StackItem : BootstrapComponentBase, IDisposable /// /// 获得/设置 是否自动充满 默认 false /// Gets or sets Is Fill. Default false - /// 10.2.2 /// [Parameter] public bool IsFill { get; set; } @@ -35,7 +33,6 @@ public class StackItem : BootstrapComponentBase, IDisposable /// /// 获得/设置 垂直布局模式 默认 StackAlignItems.Stretch /// Gets or sets Align Self. Default StackAlignItems.Stretch - /// 10.2.2 /// [Parameter] public StackAlignItems AlignSelf { get; set; } diff --git a/src/BootstrapBlazor/Components/Step/Step.razor.cs b/src/BootstrapBlazor/Components/Step/Step.razor.cs index e90a5734ade..63af8b7e789 100644 --- a/src/BootstrapBlazor/Components/Step/Step.razor.cs +++ b/src/BootstrapBlazor/Components/Step/Step.razor.cs @@ -14,7 +14,6 @@ public partial class Step /// /// 获得/设置 步骤集合 /// Gets or sets Items - /// 10.2.2 /// [Parameter] [NotNull] @@ -23,7 +22,6 @@ public partial class Step /// /// 获得/设置 是否垂直渲染 默认 false 水平渲染 /// Gets or sets Is Vertical. Default false (Horizontal) - /// 10.2.2 /// [Parameter] public bool IsVertical { get; set; } @@ -31,7 +29,6 @@ public partial class Step /// /// 获得/设置 当前步骤索引 默认 0 /// Gets or sets Current Step Index. Default 0 - /// 10.2.2 /// [Parameter] public int StepIndex { get; set; } @@ -39,7 +36,6 @@ public partial class Step /// /// 获得/设置 组件内容实例 /// Gets or sets Child Content - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } @@ -47,7 +43,6 @@ public partial class Step /// /// 获得/设置 步骤全部完成时模板 默认 null /// Gets or sets Finished Template. Default null - /// 10.2.2 /// [Parameter] public RenderFragment? FinishedTemplate { get; set; } @@ -55,7 +50,6 @@ public partial class Step /// /// 获得/设置 步骤全部完成时回调方法 /// Gets or sets Callback method when all steps are finished - /// 10.2.2 /// [Parameter] public Func? OnFinishedCallback { get; set; } diff --git a/src/BootstrapBlazor/Components/Step/StepItem.cs b/src/BootstrapBlazor/Components/Step/StepItem.cs index 7075bb4ad4d..a433b089126 100644 --- a/src/BootstrapBlazor/Components/Step/StepItem.cs +++ b/src/BootstrapBlazor/Components/Step/StepItem.cs @@ -14,7 +14,6 @@ public class StepItem : ComponentBase, IDisposable /// /// 获得/设置 步骤显示文字 /// Gets or sets Text - /// 10.2.2 /// [Parameter] public string? Text { get; set; } @@ -22,7 +21,6 @@ public class StepItem : ComponentBase, IDisposable /// /// 获得/设置 步骤显示文字 /// Gets or sets Title - /// 10.2.2 /// [Parameter] public string? Title { get; set; } @@ -30,7 +28,6 @@ public class StepItem : ComponentBase, IDisposable /// /// 获得/设置 步骤显示图标 /// Gets or sets Icon - /// 10.2.2 /// [Parameter] public string? Icon { get; set; } @@ -38,7 +35,6 @@ public class StepItem : ComponentBase, IDisposable /// /// 获得/设置 步骤完成显示图标 /// Gets or sets Finished Icon - /// 10.2.2 /// [Parameter] public string? FinishedIcon { get; set; } @@ -46,7 +42,6 @@ public class StepItem : ComponentBase, IDisposable /// /// 获得/设置 描述信息 /// Gets or sets Description - /// 10.2.2 /// [Parameter] public string? Description { get; set; } @@ -54,7 +49,6 @@ public class StepItem : ComponentBase, IDisposable /// /// 获得/设置 Header 模板 /// Gets or sets Header Template - /// 10.2.2 /// [Parameter] public RenderFragment? HeaderTemplate { get; set; } @@ -62,7 +56,6 @@ public class StepItem : ComponentBase, IDisposable /// /// 获得/设置 Title 模板 /// Gets or sets Title Template - /// 10.2.2 /// [Parameter] public RenderFragment? TitleTemplate { get; set; } @@ -70,7 +63,6 @@ public class StepItem : ComponentBase, IDisposable /// /// 获得/设置 组件内容实例 /// Gets or sets Child Content - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } diff --git a/src/BootstrapBlazor/Components/SweetAlert/SwalOption.cs b/src/BootstrapBlazor/Components/SweetAlert/SwalOption.cs index 32b29073ff4..f3d2eaf2f83 100644 --- a/src/BootstrapBlazor/Components/SweetAlert/SwalOption.cs +++ b/src/BootstrapBlazor/Components/SweetAlert/SwalOption.cs @@ -133,7 +133,6 @@ public SwalOption() /// 将参数转换为组件属性方法 /// Convert parameters to component attributes method /// - /// public Dictionary ToAttributes() { var parameters = new Dictionary diff --git a/src/BootstrapBlazor/Components/SweetAlert/SweetAlert.razor.cs b/src/BootstrapBlazor/Components/SweetAlert/SweetAlert.razor.cs index e3bb1a03aaf..21d999aaada 100644 --- a/src/BootstrapBlazor/Components/SweetAlert/SweetAlert.razor.cs +++ b/src/BootstrapBlazor/Components/SweetAlert/SweetAlert.razor.cs @@ -74,7 +74,6 @@ protected override void OnInitialized() /// /// /// - /// protected override async Task OnAfterRenderAsync(bool firstRender) { await base.OnAfterRenderAsync(firstRender); diff --git a/src/BootstrapBlazor/Components/SweetAlert/SweetAlertBody.razor.cs b/src/BootstrapBlazor/Components/SweetAlert/SweetAlertBody.razor.cs index 34d8b951569..0d199ee4d83 100644 --- a/src/BootstrapBlazor/Components/SweetAlert/SweetAlertBody.razor.cs +++ b/src/BootstrapBlazor/Components/SweetAlert/SweetAlertBody.razor.cs @@ -22,7 +22,6 @@ public partial class SweetAlertBody /// /// 获得/设置 关闭按钮文字 默认为 关闭 /// Gets or sets Close Button Text. Default Close - /// 10.2.2 /// [Parameter] [NotNull] @@ -31,7 +30,6 @@ public partial class SweetAlertBody /// /// 获得/设置 确认按钮文字 默认为 确认 /// Gets or sets Confirm Button Text. Default Confirm - /// 10.2.2 /// [Parameter] [NotNull] @@ -40,7 +38,6 @@ public partial class SweetAlertBody /// /// 获得/设置 取消按钮文字 默认为 取消 /// Gets or sets Cancel Button Text. Default Cancel - /// 10.2.2 /// [Parameter] [NotNull] @@ -49,7 +46,6 @@ public partial class SweetAlertBody /// /// 获得/设置 弹窗类别默认为 Success /// Gets or sets Category. Default Success - /// 10.2.2 /// [Parameter] public SwalCategory Category { get; set; } @@ -57,7 +53,6 @@ public partial class SweetAlertBody /// /// 获得/设置 显示标题 /// Gets or sets Title - /// 10.2.2 /// [Parameter] public string? Title { get; set; } @@ -65,7 +60,6 @@ public partial class SweetAlertBody /// /// 获得/设置 显示内容 /// Gets or sets Content - /// 10.2.2 /// [Parameter] public string? Content { get; set; } @@ -73,7 +67,6 @@ public partial class SweetAlertBody /// /// 获得/设置 是否显示关闭按钮 默认 true 显示 /// Gets or sets Whether to show close button. Default true - /// 10.2.2 /// [Parameter] public bool ShowClose { get; set; } = true; @@ -81,7 +74,6 @@ public partial class SweetAlertBody /// /// 获得/设置 是否显示 Footer 默认 false 不显示 /// Gets or sets Whether to show footer. Default false - /// 10.2.2 /// [Parameter] public bool ShowFooter { get; set; } @@ -89,7 +81,6 @@ public partial class SweetAlertBody /// /// 获得/设置 是否为确认弹窗模式 默认为 false /// Gets or sets Whether is confirm dialog mode. Default false - /// 10.2.2 /// [Parameter] public bool IsConfirm { get; set; } @@ -97,7 +88,6 @@ public partial class SweetAlertBody /// /// 获得/设置 关闭按钮图标 /// Gets or sets Close Button Icon - /// 10.2.2 /// [Parameter] [NotNull] @@ -106,7 +96,6 @@ public partial class SweetAlertBody /// /// 获得/设置 确认按钮图标 /// Gets or sets Confirm Button Icon - /// 10.2.2 /// [Parameter] [NotNull] @@ -115,7 +104,6 @@ public partial class SweetAlertBody /// /// 获得/设置 关闭按钮回调方法 /// Gets or sets Close Callback Method - /// 10.2.2 /// [Parameter] public Func? OnCloseAsync { get; set; } @@ -123,7 +111,6 @@ public partial class SweetAlertBody /// /// 获得/设置 确认按钮回调方法 /// Gets or sets Confirm Callback Method - /// 10.2.2 /// [Parameter] public Func? OnConfirmAsync { get; set; } @@ -131,7 +118,6 @@ public partial class SweetAlertBody /// /// 获得/设置 显示内容模板 /// Gets or sets Body Template - /// 10.2.2 /// [Parameter] public RenderFragment? BodyTemplate { get; set; } @@ -139,7 +125,6 @@ public partial class SweetAlertBody /// /// 获得/设置 Footer 模板 /// Gets or sets Footer Template - /// 10.2.2 /// [Parameter] public RenderFragment? FooterTemplate { get; set; } @@ -147,7 +132,6 @@ public partial class SweetAlertBody /// /// 获得/设置 按钮模板 /// Gets or sets Button Template - /// 10.2.2 /// [Parameter] public RenderFragment? ButtonTemplate { get; set; } diff --git a/src/BootstrapBlazor/Components/Switch/NullSwitch.razor.cs b/src/BootstrapBlazor/Components/Switch/NullSwitch.razor.cs index 1862820b3c4..607309f1984 100644 --- a/src/BootstrapBlazor/Components/Switch/NullSwitch.razor.cs +++ b/src/BootstrapBlazor/Components/Switch/NullSwitch.razor.cs @@ -55,7 +55,6 @@ public partial class NullSwitch /// /// 获得/设置 开颜色 /// Gets or sets On Color - /// 10.2.2 /// [Parameter] public Color OnColor { get; set; } = Color.Success; @@ -63,7 +62,6 @@ public partial class NullSwitch /// /// 获得/设置 关颜色 /// Gets or sets Off Color - /// 10.2.2 /// [Parameter] public Color OffColor { get; set; } @@ -71,7 +69,6 @@ public partial class NullSwitch /// /// 获得/设置 组件宽度 默认 40 /// Gets or sets Component Width. Default 40 - /// 10.2.2 /// [Parameter] public override int Width { get; set; } = 40; @@ -79,7 +76,6 @@ public partial class NullSwitch /// /// 获得/设置 控件高度默认 20px /// Gets or sets Component Height. Default 20px - /// 10.2.2 /// [Parameter] public int Height { get; set; } = 20; @@ -87,7 +83,6 @@ public partial class NullSwitch /// /// 获得/设置 组件 On 时内置显示文本 /// Gets or sets On Inner Text - /// 10.2.2 /// [Parameter] [NotNull] @@ -96,7 +91,6 @@ public partial class NullSwitch /// /// 获得/设置 组件 Off 时内置显示文本 /// Gets or sets Off Inner Text - /// 10.2.2 /// [Parameter] [NotNull] @@ -105,7 +99,6 @@ public partial class NullSwitch /// /// 获得/设置 是否显示内置文字 默认 false 显示 /// Gets or sets Whether to show inner text. Default false - /// 10.2.2 /// [Parameter] public bool ShowInnerText { get; set; } @@ -117,7 +110,6 @@ public partial class NullSwitch /// /// 获得/设置 绑定值为空时的默认值 默认为 false /// Gets or sets Default value when null. Default false - /// 10.2.2 /// [Parameter] public bool DefaultValueWhenNull { get; set; } diff --git a/src/BootstrapBlazor/Components/Switch/Switch.razor.cs b/src/BootstrapBlazor/Components/Switch/Switch.razor.cs index f62521727f0..1ac8c005d33 100644 --- a/src/BootstrapBlazor/Components/Switch/Switch.razor.cs +++ b/src/BootstrapBlazor/Components/Switch/Switch.razor.cs @@ -64,7 +64,6 @@ public partial class Switch /// /// 获得/设置 开颜色 /// Gets or sets On Color - /// 10.2.2 /// [Parameter] public Color OnColor { get; set; } = Color.Success; @@ -72,7 +71,6 @@ public partial class Switch /// /// 获得/设置 关颜色 /// Gets or sets Off Color - /// 10.2.2 /// [Parameter] public Color OffColor { get; set; } @@ -80,7 +78,6 @@ public partial class Switch /// /// 获得/设置 组件宽度 默认 40 /// Gets or sets Component Width. Default 40 - /// 10.2.2 /// [Parameter] public override int Width { get; set; } = 40; @@ -88,7 +85,6 @@ public partial class Switch /// /// 获得/设置 控件高度默认 20px /// Gets or sets Component Height. Default 20px - /// 10.2.2 /// [Parameter] public int Height { get; set; } = 20; @@ -96,7 +92,6 @@ public partial class Switch /// /// 获得/设置 组件 On 时内置显示文本 /// Gets or sets On Inner Text - /// 10.2.2 /// [Parameter] [NotNull] @@ -105,7 +100,6 @@ public partial class Switch /// /// 获得/设置 组件 Off 时内置显示文本 /// Gets or sets Off Inner Text - /// 10.2.2 /// [Parameter] [NotNull] @@ -114,7 +108,6 @@ public partial class Switch /// /// 获得/设置 是否显示内置文字 默认 false 显示 /// Gets or sets Whether to show inner text. Default false - /// 10.2.2 /// [Parameter] public bool ShowInnerText { get; set; } diff --git a/src/BootstrapBlazor/Components/Tab/BootstrapBlazorAuthorizeView.cs b/src/BootstrapBlazor/Components/Tab/BootstrapBlazorAuthorizeView.cs index 43bc484722d..5e7c4c9b00c 100644 --- a/src/BootstrapBlazor/Components/Tab/BootstrapBlazorAuthorizeView.cs +++ b/src/BootstrapBlazor/Components/Tab/BootstrapBlazorAuthorizeView.cs @@ -19,7 +19,6 @@ public class BootstrapBlazorAuthorizeView : ComponentBase /// /// 获得/设置 与路由关联的类型,默认为 null /// Gets or sets the type associated with the route. Default is null. - /// 10.2.2 /// [Parameter] [NotNull] @@ -28,7 +27,6 @@ public class BootstrapBlazorAuthorizeView : ComponentBase /// /// 获得/设置 与路由关联的参数,默认为 null /// Gets or sets the parameters associated with the route. Default is null. - /// 10.2.2 /// [Parameter] public IReadOnlyDictionary? Parameters { get; set; } @@ -36,7 +34,6 @@ public class BootstrapBlazorAuthorizeView : ComponentBase /// /// 获得/设置 用户未授权时显示的模板,默认为 null /// Gets or sets the template to display when the user is not authorized. Default is null. - /// 10.2.2 /// [Parameter] public RenderFragment? NotAuthorized { get; set; } @@ -44,7 +41,6 @@ public class BootstrapBlazorAuthorizeView : ComponentBase /// /// 获得/设置 访问控制的资源,默认为 null /// Gets or sets the resource to which access is being controlled. Default is null. - /// 10.2.2 /// [Parameter] public object? Resource { get; set; } diff --git a/src/BootstrapBlazor/Components/Tab/Tab.razor.cs b/src/BootstrapBlazor/Components/Tab/Tab.razor.cs index bbbfe1a7afb..5a9b4b07f13 100644 --- a/src/BootstrapBlazor/Components/Tab/Tab.razor.cs +++ b/src/BootstrapBlazor/Components/Tab/Tab.razor.cs @@ -73,7 +73,6 @@ public partial class Tab /// /// 获得/设置 是否为卡片样式,默认为 false /// Gets or sets whether card style. Default is false. - /// 10.2.2 /// [Parameter] public bool IsCard { get; set; } @@ -81,7 +80,6 @@ public partial class Tab /// /// 获得/设置 是否为边框卡片样式,默认为 false /// Gets or sets whether border card style. Default is false. - /// 10.2.2 /// [Parameter] public bool IsBorderCard { get; set; } @@ -89,7 +87,6 @@ public partial class Tab /// /// 获得/设置 是否仅渲染活动标签,默认为 false /// Gets or sets whether to render only active tab. Default is false. - /// 10.2.2 /// [Parameter] public bool IsOnlyRenderActiveTab { get; set; } @@ -97,7 +94,6 @@ public partial class Tab /// /// 获得/设置 是否懒加载 TabItem,首次不渲染,默认为 false /// Gets or sets lazy load TabItem. Default is false. - /// 10.2.2 /// [Parameter] public bool IsLazyLoadTabItem { get; set; } @@ -105,7 +101,6 @@ public partial class Tab /// /// 获得/设置 Tab 标签头文本本地化回调方法 /// Gets or sets Tab header text localizer callback - /// 10.2.2 /// [Parameter] public Func? OnTabHeaderTextLocalizer { get; set; } @@ -113,7 +108,6 @@ public partial class Tab /// /// 获得/设置 组件高度,默认值为 0 自动高度 /// Gets or sets component height. Default is 0 (auto). - /// 10.2.2 /// [Parameter] public int Height { get; set; } @@ -121,7 +115,6 @@ public partial class Tab /// /// 获得/设置 组件标签显示位置,默认显示在 Top /// Gets or sets placement. Default is Top. - /// 10.2.2 /// [Parameter] public Placement Placement { get; set; } = Placement.Top; @@ -129,7 +122,6 @@ public partial class Tab /// /// 获得/设置 是否显示关闭按钮,默认为 false /// Gets or sets whether to show close button. Default is false. - /// 10.2.2 /// [Parameter] public bool ShowClose { get; set; } @@ -137,7 +129,6 @@ public partial class Tab /// /// 获得/设置 是否显示全屏按钮,默认为 false /// Gets or sets whether to show full screen button. Default is false. - /// 10.2.2 /// [Parameter] public bool ShowFullScreen { get; set; } @@ -145,7 +136,6 @@ public partial class Tab /// /// 获得/设置 是否在右键菜单上显示全屏按钮,默认为 true /// Gets or sets whether to show the full screen button on context menu. Default is true. - /// 10.2.2 /// [Parameter] public bool ShowContextMenuFullScreen { get; set; } = true; @@ -153,7 +143,6 @@ public partial class Tab /// /// 获得/设置 关闭标签页回调方法 /// Gets or sets close tab item callback - /// 10.2.2 /// /// /// 返回 false 时不关闭 TabItem 标签页 @@ -165,7 +154,6 @@ public partial class Tab /// /// 获得/设置 是否显示扩展功能按钮,默认为 false /// Gets or sets whether to show extend buttons. Default is false. - /// 10.2.2 /// [Parameter] public bool ShowExtendButtons { get; set; } @@ -173,7 +161,6 @@ public partial class Tab /// /// 获得/设置 是否显示前后导航按钮,默认为 true /// Gets or sets whether to show navigation buttons. Default is true. - /// 10.2.2 /// [Parameter] public bool ShowNavigatorButtons { get; set; } = true; @@ -181,7 +168,6 @@ public partial class Tab /// /// 获得/设置 是否自动重置标签项索引,默认为 true /// Gets or sets whether to auto reset tab item index. Default is true. - /// 10.2.2 /// [Parameter] public bool IsLoopSwitchTabItem { get; set; } = true; @@ -189,7 +175,6 @@ public partial class Tab /// /// 获得/设置 是否显示活动标签栏,默认为 true /// Gets or sets whether to show active bar. Default is true. - /// 10.2.2 /// [Parameter] public bool ShowActiveBar { get; set; } = true; @@ -197,7 +182,6 @@ public partial class Tab /// /// 获得/设置 点击 TabItem 时是否自动导航,默认为 false /// Gets or sets whether to navigate when clicking TabItem. Default is false. - /// 10.2.2 /// [Parameter] public bool ClickTabToNavigation { get; set; } @@ -205,7 +189,6 @@ public partial class Tab /// /// 获得/设置 TabItems 模板 /// Gets or sets TabItems template - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } @@ -213,7 +196,6 @@ public partial class Tab /// /// 获得/设置 未授权模板,默认 null (NET6.0/7.0 有效) /// Gets or sets NotAuthorized template. Default is null (Valid for NET6.0/7.0). - /// 10.2.2 /// [Parameter] public RenderFragment? NotAuthorized { get; set; } @@ -221,7 +203,6 @@ public partial class Tab /// /// 获得/设置 未找到模板,默认 null (NET6.0/7.0 有效) /// Gets or sets NotFound template. Default is null (Valid for NET6.0/7.0). - /// 10.2.2 /// [Parameter] public RenderFragment? NotFound { get; set; } @@ -229,7 +210,6 @@ public partial class Tab /// /// 获得/设置 未找到标签文本,默认 null (NET6.0/7.0 有效) /// Gets or sets NotFound tab text. Default is null (Valid for NET6.0/7.0). - /// 10.2.2 /// [Parameter] public string? NotFoundTabText { get; set; } @@ -237,7 +217,6 @@ public partial class Tab /// /// 获得/设置 TabItems 主体模板 /// Gets or sets TabItems body template - /// 10.2.2 /// [Parameter] public RenderFragment? Body { get; set; } @@ -245,7 +224,6 @@ public partial class Tab /// /// 获得/设置 应搜索的其他程序集的集合 /// Gets or sets a collection of additional assemblies that should be searched for components that can match URIs - /// 10.2.2 /// [Parameter] public IEnumerable? AdditionalAssemblies { get; set; } @@ -253,7 +231,6 @@ public partial class Tab /// /// 获得/设置 排除地址,支持通配符 /// Gets or sets exclude URLs. Support wildcard. - /// 10.2.2 /// [Parameter] public IEnumerable? ExcludeUrls { get; set; } @@ -261,7 +238,6 @@ public partial class Tab /// /// 获得/设置 默认标签页,关闭所有标签页时自动打开此地址,默认 null /// Gets or sets default URL. Open this url when all tabs closed. Default is null. - /// 10.2.2 /// [Parameter] public string? DefaultUrl { get; set; } @@ -269,7 +245,6 @@ public partial class Tab /// /// 获得/设置 点击 TabItem 时的回调方法 /// Gets or sets callback method when clicking TabItem - /// 10.2.2 /// [Parameter] public Func? OnClickTabItemAsync { get; set; } @@ -277,7 +252,6 @@ public partial class Tab /// /// 获得/设置 关闭当前 TabItem 菜单文本 /// Gets or sets close current tab menu text - /// 10.2.2 /// [Parameter] public string? CloseCurrentTabText { get; set; } @@ -285,7 +259,6 @@ public partial class Tab /// /// 获得/设置 关闭所有 TabItem 菜单文本 /// Gets or sets close all tabs menu text - /// 10.2.2 /// [Parameter] public string? CloseAllTabsText { get; set; } @@ -293,7 +266,6 @@ public partial class Tab /// /// 获得/设置 关闭其他 TabItem 菜单文本 /// Gets or sets close other tabs menu text - /// 10.2.2 /// [Parameter] public string? CloseOtherTabsText { get; set; } @@ -301,7 +273,6 @@ public partial class Tab /// /// 获得/设置 按钮模板,默认 null /// Gets or sets button template. Default is null. - /// 10.2.2 /// [Parameter] public RenderFragment? ButtonTemplate { get; set; } @@ -309,7 +280,6 @@ public partial class Tab /// /// 获得/设置 工具栏按钮的模板,默认为 null /// Gets or sets the template of the toolbar button. Default is null. - /// 10.2.2 /// [Parameter] public RenderFragment? ToolbarTemplate { get; set; } @@ -317,7 +287,6 @@ public partial class Tab /// /// 获得/设置 导航器前置模板,默认 null (在向前移动标签页按钮前) /// Gets or sets before navigator template. Default is null (before previous button). - /// 10.2.2 /// [Parameter] public RenderFragment? BeforeNavigatorTemplate { get; set; } @@ -325,7 +294,6 @@ public partial class Tab /// /// 获得/设置 导航器后置模板,默认 null (在向后移动标签页按钮前) /// Gets or sets after navigator template. Default is null (before next button). - /// 10.2.2 /// [Parameter] public RenderFragment? AfterNavigatorTemplate { get; set; } @@ -333,7 +301,6 @@ public partial class Tab /// /// 获得/设置 上一个标签图标 /// Gets or sets previous icon - /// 10.2.2 /// [Parameter] public string? PreviousIcon { get; set; } @@ -341,7 +308,6 @@ public partial class Tab /// /// 获得/设置 下一个标签图标 /// Gets or sets next icon - /// 10.2.2 /// [Parameter] public string? NextIcon { get; set; } @@ -349,7 +315,6 @@ public partial class Tab /// /// 获得/设置 下拉菜单图标 /// Gets or sets dropdown icon - /// 10.2.2 /// [Parameter] public string? DropdownIcon { get; set; } @@ -357,7 +322,6 @@ public partial class Tab /// /// 获得/设置 关闭标签图标 /// Gets or sets close icon - /// 10.2.2 /// [Parameter] public string? CloseIcon { get; set; } @@ -365,7 +329,6 @@ public partial class Tab /// /// 获得/设置 导航菜单集合,默认 null /// Gets or sets menus. Default is null. - /// 10.2.2 /// /// /// 使用自定义布局时,需要 Tab 导航标签显示为菜单项时设置,已内置 Layout.Menus 默认 null @@ -377,7 +340,6 @@ public partial class Tab /// /// 获得/设置 是否允许拖放标题栏更改栏位顺序,默认为 false /// Gets or sets whether to allow drag tab header to change order. Default is false. - /// 10.2.2 /// [Parameter] public bool AllowDrag { get; set; } @@ -385,7 +347,6 @@ public partial class Tab /// /// 获得/设置 拖动标签页结束的回调方法 /// Gets or sets callback method when drag item ends - /// 10.2.2 /// [Parameter] public Func? OnDragItemEndAsync { get; set; } @@ -393,7 +354,6 @@ public partial class Tab /// /// 获得/设置 标签页样式,默认为 TabStyle.Default /// Gets or sets the tab style. Default is TabStyle.Default. - /// 10.2.2 /// [Parameter] public TabStyle TabStyle { get; set; } @@ -401,7 +361,6 @@ public partial class Tab /// /// 获得/设置 是否显示工具栏,默认为 false /// Gets or sets whether to show the toolbar. Default is false. - /// 10.2.2 /// [Parameter] public bool ShowToolbar { get; set; } @@ -409,7 +368,6 @@ public partial class Tab /// /// 获得/设置 是否显示全屏按钮,默认为 true /// Gets or sets whether to show the full screen button. Default is true. - /// 10.2.2 /// [Parameter] public bool ShowFullscreenToolbarButton { get; set; } = true; @@ -417,7 +375,6 @@ public partial class Tab /// /// 获得/设置 全屏工具栏按钮图标字符串,默认为 null /// Gets or sets the full screen toolbar button icon string. Default is null. - /// 10.2.2 /// [Parameter] public string? FullscreenToolbarButtonIcon { get; set; } @@ -425,7 +382,6 @@ public partial class Tab /// /// 获得/设置 全屏工具栏按钮提示字符串,默认为 null /// Gets or sets the full screen toolbar button tooltip string. Default is null. - /// 10.2.2 /// [Parameter] public string? FullscreenToolbarTooltipText { get; set; } @@ -433,7 +389,6 @@ public partial class Tab /// /// 获得/设置 是否显示刷新按钮,默认为 true /// Gets or sets whether to show the refresh button. Default is true. - /// 10.2.2 /// [Parameter] public bool ShowRefreshToolbarButton { get; set; } = true; @@ -441,7 +396,6 @@ public partial class Tab /// /// 获得/设置 刷新工具栏按钮图标字符串,默认为 null /// Gets or sets the refresh toolbar button icon string. Default is null. - /// 10.2.2 /// [Parameter] public string? RefreshToolbarButtonIcon { get; set; } @@ -449,7 +403,6 @@ public partial class Tab /// /// 获得/设置 刷新工具栏按钮提示字符串,默认为 null /// Gets or sets the refresh toolbar button tooltip string. Default is null. - /// 10.2.2 /// [Parameter] public string? RefreshToolbarTooltipText { get; set; } @@ -457,7 +410,6 @@ public partial class Tab /// /// 获得/设置 刷新工具栏按钮单击事件回调,默认为 null /// Gets or sets the refresh toolbar button click event callback. Default is null. - /// 10.2.2 /// [Parameter] public Func? OnToolbarRefreshCallback { get; set; } @@ -465,7 +417,6 @@ public partial class Tab /// /// 获得/设置 上一个标签导航链接提示文本,默认为 null /// Gets or sets the previous tab navigation link tooltip text. Default is null. - /// 10.2.2 /// [Parameter] public string? PrevTabNavLinkTooltipText { get; set; } @@ -473,7 +424,6 @@ public partial class Tab /// /// 获得/设置 下一个标签导航链接提示文本,默认为 null /// Gets or sets the next tab navigation link tooltip text. Default is null. - /// 10.2.2 /// [Parameter] public string? NextTabNavLinkTooltipText { get; set; } @@ -481,7 +431,6 @@ public partial class Tab /// /// 获得/设置 关闭标签导航链接提示文本,默认为 null /// Gets or sets the close tab navigation link tooltip text. Default is null. - /// 10.2.2 /// [Parameter] public string? CloseTabNavLinkTooltipText { get; set; } @@ -489,7 +438,6 @@ public partial class Tab /// /// 获得/设置 是否启用标签页右键菜单,默认为 false /// Gets or sets whether to enable tab context menu. Default is false. - /// 10.2.2 /// [Parameter] public bool ShowContextMenu { get; set; } @@ -497,7 +445,6 @@ public partial class Tab /// /// 获得/设置 右键菜单前置模板,默认为 null /// Gets or sets the template of before context menu. Default is null. - /// 10.2.2 /// [Parameter] public RenderFragment? BeforeContextMenuTemplate { get; set; } @@ -505,7 +452,6 @@ public partial class Tab /// /// 获得/设置 右键菜单模板,默认为 null /// Gets or sets the template of context menu. Default is null. - /// 10.2.2 /// [Parameter] public RenderFragment? ContextMenuTemplate { get; set; } @@ -513,7 +459,6 @@ public partial class Tab /// /// 获得/设置 标签项右键菜单刷新按钮的图标,默认为 null /// Gets or sets the icon of tab item context menu refresh button. Default is null. - /// 10.2.2 /// [Parameter] public string? ContextMenuRefreshIcon { get; set; } @@ -521,7 +466,6 @@ public partial class Tab /// /// 获得/设置 标签项右键菜单关闭按钮的图标,默认为 null /// Gets or sets the icon of tab item context menu close button. Default is null. - /// 10.2.2 /// [Parameter] public string? ContextMenuCloseIcon { get; set; } @@ -529,7 +473,6 @@ public partial class Tab /// /// 获得/设置 标签项右键菜单关闭其他按钮的图标,默认为 null /// Gets or sets the icon of tab item context menu close other button. Default is null. - /// 10.2.2 /// [Parameter] public string? ContextMenuCloseOtherIcon { get; set; } @@ -537,7 +480,6 @@ public partial class Tab /// /// 获得/设置 标签项右键菜单关闭全部按钮的图标,默认为 null /// Gets or sets the icon of tab item context menu close all button. Default is null. - /// 10.2.2 /// [Parameter] public string? ContextMenuCloseAllIcon { get; set; } @@ -545,7 +487,6 @@ public partial class Tab /// /// 获得/设置 标签项右键菜单全屏按钮的图标,默认为 null /// Gets or sets the icon of tab item context menu full screen button. Default is null. - /// 10.2.2 /// [Parameter] public string? ContextMenuFullScreenIcon { get; set; } @@ -553,7 +494,6 @@ public partial class Tab /// /// 获得/设置 显示右键菜单前回调,默认为 null /// Gets or sets before popup context menu callback. Default is null. - /// 10.2.2 /// [Parameter] public Func>? OnBeforeShowContextMenu { get; set; } @@ -561,7 +501,6 @@ public partial class Tab /// /// 获得/设置 ITabHeader 实例,默认为 null /// Gets or sets the ITabHeader instance. Default is null. - /// 10.2.2 /// [Parameter] public ITabHeader? TabHeader { get; set; } @@ -569,7 +508,6 @@ public partial class Tab /// /// 获得/设置 是否开启全局异常捕获,默认 null 读取配置文件 BootstrapBlazorOptions.EnableErrorLogger 值 /// Gets or sets whether to enable global error logger. Default is null (Read from BootstrapBlazorOptions.EnableErrorLogger). - /// 10.2.2 /// [Parameter] public bool? EnableErrorLogger { get; set; } @@ -577,7 +515,6 @@ public partial class Tab /// /// 获得/设置 是否记录异常到 ILogger,默认 null 使用 BootstrapBlazorOptions.EnableErrorLoggerILogger 设置值 /// Gets or sets whether to log error to ILogger. Default is null (Use BootstrapBlazorOptions.EnableErrorLoggerILogger). - /// 10.2.2 /// [Parameter] public bool? EnableErrorLoggerILogger { get; set; } @@ -585,7 +522,6 @@ public partial class Tab /// /// 获得/设置 是否显示 Error 提示弹窗,默认 null 使用 BootstrapBlazorOptions.ShowErrorLoggerToast 设置值 /// Gets or sets whether to show error toast. Default is null (Use BootstrapBlazorOptions.ShowErrorLoggerToast). - /// 10.2.2 /// [Parameter] public bool? ShowErrorLoggerToast { get; set; } @@ -593,7 +529,6 @@ public partial class Tab /// /// 获得/设置 错误日志 Toast 弹窗标题,默认 null /// Gets or sets error logger Toast title. Default is null. - /// 10.2.2 /// [Parameter] public string? ErrorLoggerToastTitle { get; set; } @@ -601,7 +536,6 @@ public partial class Tab /// /// 获得/设置 自定义错误处理回调方法 /// Gets or sets custom error handle callback - /// 10.2.2 /// [Parameter] public Func? OnErrorHandleAsync { get; set; } @@ -656,7 +590,6 @@ public partial class Tab /// /// /// - /// protected override void OnParametersSet() { if (ShowExtendButtons) @@ -1139,7 +1072,6 @@ public void ActiveTab(int index) /// 获得当前活动 Tab /// Get current active Tab /// - /// public TabItem? GetActiveTab() => TabItems.Find(s => s.IsActive); private void ActiveTabItem(TabItem item) @@ -1204,7 +1136,6 @@ private RenderFragment RenderTabItemContent(TabItem item) => builder => /// /// /// - /// [JSInvokable] public async Task DragItemCallback(int originIndex, int currentIndex) { diff --git a/src/BootstrapBlazor/Components/Tab/TabItem.cs b/src/BootstrapBlazor/Components/Tab/TabItem.cs index 9e21d28c199..e7d8761ae24 100644 --- a/src/BootstrapBlazor/Components/Tab/TabItem.cs +++ b/src/BootstrapBlazor/Components/Tab/TabItem.cs @@ -14,7 +14,6 @@ public class TabItem : IdComponentBase /// /// 获得/设置 标签项文本,默认为 null /// Gets or sets the text. Default is null. - /// 10.2.2 /// [Parameter] public string? Text { get; set; } @@ -22,7 +21,6 @@ public class TabItem : IdComponentBase /// /// 获得/设置 TabItem 头部模板,默认为 null /// Gets or sets the TabItem Header template. Default is null. - /// 10.2.2 /// [Parameter] public RenderFragment? HeaderTemplate { get; set; } @@ -30,7 +28,6 @@ public class TabItem : IdComponentBase /// /// 获得/设置 请求 URL,默认为 null /// Gets or sets the request URL. Default is null. - /// 10.2.2 /// [Parameter] [NotNull] @@ -39,7 +36,6 @@ public class TabItem : IdComponentBase /// /// 获得/设置 当前状态是否为活跃,默认为 false /// Gets or sets whether the current state is active. Default is false. - /// 10.2.2 /// [Parameter] public bool IsActive { get; set; } @@ -47,7 +43,6 @@ public class TabItem : IdComponentBase /// /// 获得/设置 当前状态是否被禁用,默认为 false /// Gets or sets whether the current state is disabled. Default is false. - /// 10.2.2 /// [Parameter] public bool IsDisabled { get; set; } @@ -55,7 +50,6 @@ public class TabItem : IdComponentBase /// /// 获得/设置 当前 TabItem 是否可关闭,默认为 true /// Gets or sets whether the current TabItem is closable. Default is true. - /// 10.2.2 /// [Parameter] public bool Closable { get; set; } = true; @@ -63,7 +57,6 @@ public class TabItem : IdComponentBase /// /// 获得/设置 当前 TabItem 是否始终被加载,此参数用于设置 Tab.IsLazyLoadTabItem,默认为 false /// Gets or sets whether the current TabItem is always loaded. This parameter is used to set Tab.IsLazyLoadTabItem. Default is false. - /// 10.2.2 /// [Parameter] public bool AlwaysLoad { get; set; } @@ -71,7 +64,6 @@ public class TabItem : IdComponentBase /// /// 获得/设置 自定义 CSS 类,默认为 null /// Gets or sets the custom CSS class. Default is null. - /// 10.2.2 /// [Parameter] public string? CssClass { get; set; } @@ -79,7 +71,6 @@ public class TabItem : IdComponentBase /// /// 获得/设置 图标字符串,默认为 null /// Gets or sets the icon string. Default is null. - /// 10.2.2 /// [Parameter] public string? Icon { get; set; } @@ -87,7 +78,6 @@ public class TabItem : IdComponentBase /// /// 获得/设置 是否显示全屏按钮,默认为 true /// Gets or sets whether to show the full screen button. Default is true. - /// 10.2.2 /// [Parameter] public bool ShowFullScreen { get; set; } = true; @@ -95,7 +85,6 @@ public class TabItem : IdComponentBase /// /// 获得/设置 组件内容,默认为 null /// Gets or sets the component content. Default is null. - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } diff --git a/src/BootstrapBlazor/Components/Tab/TabItemContent.cs b/src/BootstrapBlazor/Components/Tab/TabItemContent.cs index d91e68b2b60..6af1b64e590 100644 --- a/src/BootstrapBlazor/Components/Tab/TabItemContent.cs +++ b/src/BootstrapBlazor/Components/Tab/TabItemContent.cs @@ -13,7 +13,6 @@ class TabItemContent : IComponent, IHandlerException, IDisposable /// /// 获得/设置 标签项,默认为 null /// Gets or sets the component content. Default is null. - /// 10.2.2 /// [Parameter, NotNull] public TabItem? Item { get; set; } diff --git a/src/BootstrapBlazor/Components/Tab/TabLink.razor.cs b/src/BootstrapBlazor/Components/Tab/TabLink.razor.cs index 9f1aec2b12f..47f45fea31d 100644 --- a/src/BootstrapBlazor/Components/Tab/TabLink.razor.cs +++ b/src/BootstrapBlazor/Components/Tab/TabLink.razor.cs @@ -14,7 +14,6 @@ public sealed partial class TabLink /// /// 获得/设置 链接的文本,默认为 null /// Gets or sets the text of the link. Default is null. - /// 10.2.2 /// [Parameter] public string? Text { get; set; } @@ -22,7 +21,6 @@ public sealed partial class TabLink /// /// 获得/设置 链接的 URL,默认为 null /// Gets or sets the URL of the link. Default is null. - /// 10.2.2 /// [Parameter] public string? Url { get; set; } @@ -30,7 +28,6 @@ public sealed partial class TabLink /// /// 获得/设置 链接的图标,默认为 null /// Gets or sets the icon of the link. Default is null. - /// 10.2.2 /// [Parameter] public string? Icon { get; set; } @@ -38,7 +35,6 @@ public sealed partial class TabLink /// /// 获得/设置 标签项是否可关闭的值,默认为 true /// Gets or sets a value indicating whether the tab item is closable. Default is true. - /// 10.2.2 /// [Parameter] public bool Closable { get; set; } = true; @@ -46,7 +42,6 @@ public sealed partial class TabLink /// /// 获得/设置 链接被单击时的回调方法,默认为 null /// Gets or sets the callback method when the link is clicked. Default is null. - /// 10.2.2 /// [Parameter] public Func? OnClick { get; set; } @@ -58,7 +53,6 @@ public sealed partial class TabLink /// /// 获得/设置 组件的内容,默认为 null /// Gets or sets the content of the component. Default is null. - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } diff --git a/src/BootstrapBlazor/Components/Tab/TabToolbarButton.razor.cs b/src/BootstrapBlazor/Components/Tab/TabToolbarButton.razor.cs index 377e9a1495f..968c5bee372 100644 --- a/src/BootstrapBlazor/Components/Tab/TabToolbarButton.razor.cs +++ b/src/BootstrapBlazor/Components/Tab/TabToolbarButton.razor.cs @@ -14,7 +14,6 @@ public partial class TabToolbarButton /// /// 获得/设置 按钮图标,默认为 null /// Gets or sets the button icon string. Default is null. - /// 10.2.2 /// [Parameter] public string? Icon { get; set; } @@ -22,7 +21,6 @@ public partial class TabToolbarButton /// /// 获得/设置 按钮单击事件处理程序,默认为 null /// Gets or sets the button click event handler. Default is null. - /// 10.2.2 /// [Parameter] public Func? OnClickAsync { get; set; } @@ -30,7 +28,6 @@ public partial class TabToolbarButton /// /// 获得/设置 提示文本,默认为 null /// Gets or sets the tooltip text. Default is null. - /// 10.2.2 /// [Parameter] public string? TooltipText { get; set; } diff --git a/src/BootstrapBlazor/Components/Table/IColumnCollection.cs b/src/BootstrapBlazor/Components/Table/IColumnCollection.cs index 3e3cff8fe4c..efd0b4c1a34 100644 --- a/src/BootstrapBlazor/Components/Table/IColumnCollection.cs +++ b/src/BootstrapBlazor/Components/Table/IColumnCollection.cs @@ -6,14 +6,14 @@ namespace BootstrapBlazor.Components; /// -/// 列集合接口 -/// Column collection interface +/// 列集合接口 +/// Column collection interface /// public interface IColumnCollection { /// - /// 获得 ITableColumn 集合 - /// Gets ITableColumn collection + /// 获得 ITableColumn 集合 + /// Gets ITableColumn collection /// List Columns { get; } } diff --git a/src/BootstrapBlazor/Components/Table/ITableColumn.cs b/src/BootstrapBlazor/Components/Table/ITableColumn.cs index 748318715f1..ea16ccd07da 100644 --- a/src/BootstrapBlazor/Components/Table/ITableColumn.cs +++ b/src/BootstrapBlazor/Components/Table/ITableColumn.cs @@ -14,147 +14,126 @@ public interface ITableColumn : IEditorItem /// /// 获得/设置 导出时是否忽略当前项,默认为 false /// Gets or sets whether to ignore current item when exporting. Default is false. - /// 10.2.2 /// bool? IgnoreWhenExport { get; set; } /// /// 获得/设置 是否允许排序,默认为 null /// Gets or sets whether sorting is allowed. Default is null. - /// 10.2.2 /// bool? Sortable { get; set; } /// /// 获得/设置 是否为默认排序列,默认为 false /// Gets or sets whether it is the default sort column. Default is false. - /// 10.2.2 /// bool DefaultSort { get; set; } /// /// 获得/设置 默认排序顺序,默认为 SortOrder.Unset /// Gets or sets the default sort order. Default is SortOrder.Unset. - /// 10.2.2 /// SortOrder DefaultSortOrder { get; set; } /// /// 获得/设置 是否允许数据过滤,默认为 null /// Gets or sets whether data filtering is allowed. Default is null. - /// 10.2.2 /// bool? Filterable { get; set; } /// /// 获得/设置 是否允许在搜索中参与,默认为 null /// Gets or sets whether the column participates in search. Default is null. - /// 10.2.2 /// bool? Searchable { get; set; } /// /// 获得/设置 列宽 /// Gets or sets the column width. - /// 10.2.2 /// int? Width { get; set; } /// /// 获得/设置 是否列固定,默认为 false /// Gets or sets whether the column is fixed. Default is false. - /// 10.2.2 /// bool Fixed { get; set; } /// /// 获得/设置 是否允许此列中文本换行,默认为 null /// Gets or sets whether text wrapping is allowed in this column. Default is null. - /// 10.2.2 /// bool? TextWrap { get; set; } /// /// 获得/设置 是否此列中文本溢出省略号,默认为 null /// Gets or sets whether text overflow is ellipsis in this column. Default is null. - /// 10.2.2 /// bool? TextEllipsis { get; set; } /// /// 获得/设置 是否允许表头文本换行,默认为 false /// Gets or sets whether the header text is allowed to wrap. Default is false. - /// 10.2.2 /// bool HeaderTextWrap { get; set; } /// /// 获得/设置 是否显示表头提示,默认为 false,可配合 HeaderTextEllipsis 使用,当 HeaderTextWrap 为 true 时此参数无效 /// Gets or sets whether the header shows a tooltip. Default is false. Can be used with HeaderTextEllipsis. This parameter is not effective when HeaderTextWrap is true. - /// 10.2.2 /// bool ShowHeaderTooltip { get; set; } /// /// 获得/设置 表头提示内容 /// Gets or sets the header tooltip content. - /// 10.2.2 /// string? HeaderTextTooltip { get; set; } /// /// 获得/设置 是否表头文本溢出时省略,默认为 false,可配合 HeaderTextTooltip 使用,当 HeaderTextWrap 为 true 时此参数无效 /// Gets or sets whether the header text is truncated when overflowing. Default is false. Can be used with HeaderTextTooltip. This parameter is not effective when HeaderTextWrap is true. - /// 10.2.2 /// bool HeaderTextEllipsis { get; set; } /// /// 获得/设置 列 td 的自定义 CSS 类,默认为 null /// Gets or sets the custom CSS class for the column td. Default is null. - /// 10.2.2 /// string? CssClass { get; set; } /// /// 获得/设置 显示列的断点,默认为 BreakPoint.None /// Gets or sets the breakpoint at which the column is shown. Default is BreakPoint.None. - /// 10.2.2 /// BreakPoint ShownWithBreakPoint { get; set; } /// /// 获得/设置 是否可以复制列,默认为 null /// Gets or sets whether the column can be copied. Default is null. - /// 10.2.2 /// bool? ShowCopyColumn { get; set; } /// /// 获得/设置 显示模板 /// Gets or sets the display template. - /// 10.2.2 /// RenderFragment? Template { get; set; } /// /// 获得/设置 搜索模板 /// Gets or sets the search template. - /// 10.2.2 /// RenderFragment? SearchTemplate { get; set; } /// /// 获得/设置 过滤模板 /// Gets or sets the filter template. - /// 10.2.2 /// RenderFragment? FilterTemplate { get; set; } /// /// 获得/设置 表头模板 /// Gets or sets the header template. - /// 10.2.2 /// RenderFragment? HeaderTemplate { get; set; } @@ -167,21 +146,18 @@ public interface ITableColumn : IEditorItem /// /// 获得/设置 列过滤器 /// Gets or sets the column filter. - /// 10.2.2 /// IFilter? Filter { get; set; } /// /// 获得/设置 格式字符串,例如日期类型的 "yyyy-MM-dd" /// Gets or sets the format string, such as "yyyy-MM-dd" for date types. - /// 10.2.2 /// string? FormatString { get; set; } /// /// 获得/设置 列格式回调委托 /// Gets or sets the column format callback delegate. - /// 10.2.2 /// Func>? Formatter { get; set; } @@ -194,7 +170,6 @@ public interface ITableColumn : IEditorItem /// /// 获得/设置 鼠标悬停时是否显示提示,默认为 null,使用 false 值 /// Gets or sets whether to show tooltips on mouse hover. Default is null, using false value. - /// 10.2.2 /// bool? ShowTips { get; set; } @@ -207,14 +182,12 @@ public interface ITableColumn : IEditorItem /// /// 获得/设置 单元格渲染回调方法 /// Gets or sets the cell render callback method. - /// 10.2.2 /// Action? OnCellRender { get; set; } /// /// 获得/设置 列是否为 MarkupString,默认为 false /// Gets or sets whether the column is a MarkupString. Default is false. - /// 10.2.2 /// bool IsMarkupString { get; set; } @@ -227,35 +200,30 @@ public interface ITableColumn : IEditorItem /// /// 获得/设置 编辑项时列是否必需,默认为 null /// Gets or sets whether the column is required when editing an item. Default is null. - /// 10.2.2 /// bool? IsRequiredWhenEdit { get; set; } /// /// 获得/设置 添加新项时列是否为只读,默认为 null,使用 IEditorItem.Readonly 值 /// Gets or sets whether the column is read-only when adding a new item. Default is null, using the value. - /// 10.2.2 /// bool? IsReadonlyWhenAdd { get; set; } /// /// 获得/设置 编辑项时列是否为只读,默认为 null,使用 IEditorItem.Readonly 值 /// Gets or sets whether the column is read-only when editing an item. Default is null, using the value. - /// 10.2.2 /// bool? IsReadonlyWhenEdit { get; set; } /// /// 获得/设置 当前编辑项是否可见,默认为 null,使用 true 值 /// Gets or sets whether the current edit item is visible. Default is null, using true value. - /// 10.2.2 /// bool? Visible { get; set; } /// /// 获得/设置 添加新项时列是否可见,默认为 null,使用 Visible 值 /// Gets or sets whether the column is visible when adding a new item. Default is null, using the value. - /// 10.2.2 /// bool? IsVisibleWhenAdd { get; set; } @@ -268,7 +236,6 @@ public interface ITableColumn : IEditorItem /// /// 获得/设置 自定义搜索逻辑 /// Gets or sets the custom search logic. - /// 10.2.2 /// Func? CustomSearch { get; set; } } diff --git a/src/BootstrapBlazor/Components/Table/ITableEditDialogOption.cs b/src/BootstrapBlazor/Components/Table/ITableEditDialogOption.cs index 594019bc7a6..ff317c71ebe 100644 --- a/src/BootstrapBlazor/Components/Table/ITableEditDialogOption.cs +++ b/src/BootstrapBlazor/Components/Table/ITableEditDialogOption.cs @@ -16,28 +16,24 @@ public interface ITableEditDialogOption /// /// 获得/设置 组件是否采用 Tracking 模式对编辑项进行直接更新,默认为 false /// Gets or sets whether to use Tracking mode to directly update edited items. Default is false. - /// 10.2.2 /// bool IsTracking { get; set; } /// /// 获得/设置 是否显示标签,默认为 true /// Gets or sets whether to display label. Default is true. - /// 10.2.2 /// bool ShowLabel { get; set; } /// /// 获得/设置 实体类编辑模式 Add 还是 Update /// Gets or sets entity class edit mode, Add or Update - /// 10.2.2 /// ItemChangedType ItemChangedType { get; set; } /// /// 获得/设置 每行显示组件数量,默认为 null /// Gets or sets the number of components displayed per row. Default is null. - /// 10.2.2 /// int? ItemsPerRow { get; set; } @@ -50,21 +46,18 @@ public interface ITableEditDialogOption /// /// 获得/设置 在 RowType Inline 模式下标签对齐方式,默认为 None(等效于 Left 左对齐) /// Gets or sets the label alignment in RowType Inline mode. Default is None (equivalent to Left). - /// 10.2.2 /// Alignment LabelAlign { get; set; } /// /// 获得/设置 查询时是否显示正在加载中动画,默认为 false /// Gets or sets whether to display loading animation when querying. Default is false. - /// 10.2.2 /// bool ShowLoading { get; set; } /// /// 获得/设置 未分组编辑项布局位置,默认为 false 在尾部 /// Gets or sets the layout position of ungrouped edit items. Default is false (at the end). - /// 10.2.2 /// bool ShowUnsetGroupItemsOnTop { get; set; } @@ -77,7 +70,6 @@ public interface ITableEditDialogOption /// /// 获得/设置 是否禁用表单内回车自动提交功能,默认为 null 未设置 /// Gets or sets whether to disable auto submit form by Enter key. Default is null. - /// 10.2.2 /// bool? DisableAutoSubmitFormByEnter { get; set; } @@ -90,14 +82,12 @@ public interface ITableEditDialogOption /// /// 获得/设置 保存按钮图标 默认 null 使用当前主题图标 /// Gets or sets save button icon. Default is null, using the current theme icon. - /// 10.2.2 /// string? SaveButtonIcon { get; set; } /// /// 获得/设置 关闭按钮文本 /// Gets or sets close button text - /// 10.2.2 /// string? CloseButtonText { get; set; } @@ -110,35 +100,30 @@ public interface ITableEditDialogOption /// /// 获得 编辑项集合 /// Gets edit item collection - /// 10.2.2 /// IEnumerable? Items { get; set; } /// /// 获得/设置 保存回调委托 /// Gets or sets save callback delegate - /// 10.2.2 /// Func>? OnEditAsync { get; set; } /// /// 获得/设置 关闭弹窗回调方法 /// Gets or sets close dialog callback method - /// 10.2.2 /// Func? OnCloseAsync { get; set; } /// /// 获得/设置 EditDialog Body 模板 /// Gets or sets EditDialog Body template - /// 10.2.2 /// RenderFragment? DialogBodyTemplate { get; set; } /// /// 获得/设置 EditDialog Footer 模板 /// Gets or sets EditDialog Footer template - /// 10.2.2 /// RenderFragment? DialogFooterTemplate { get; set; } } diff --git a/src/BootstrapBlazor/Components/Table/ITableExportContext.cs b/src/BootstrapBlazor/Components/Table/ITableExportContext.cs index 37a8b4d2136..f5213bd0418 100644 --- a/src/BootstrapBlazor/Components/Table/ITableExportContext.cs +++ b/src/BootstrapBlazor/Components/Table/ITableExportContext.cs @@ -15,35 +15,30 @@ public interface ITableExportContext /// /// 获得 Table 实例所有列集合 /// Gets all columns collection of Table instance - /// 10.2.2 /// IEnumerable Columns { get; } /// /// 获得 当前行数据集合 /// Gets current row data collection - /// 10.2.2 /// IEnumerable Rows { get; } /// /// 获得 当前 Table 内置查询条件方法 /// Gets the built-in query condition builder method of current Table - /// 10.2.2 /// QueryPageOptions BuildQueryPageOptions(); /// /// 获得 当前 Table 内置 ExportAsync 方法 /// Gets the built-in ExportAsync method of current Table - /// 10.2.2 /// Task ExportAsync(); /// /// 获得 当前 Table 显示列集合 /// Gets display columns collection of current Table - /// 10.2.2 /// IEnumerable GetVisibleColumns(); } diff --git a/src/BootstrapBlazor/Components/Table/ITableExportDataContext.cs b/src/BootstrapBlazor/Components/Table/ITableExportDataContext.cs index 749979da8ad..1cf9a0d34a6 100644 --- a/src/BootstrapBlazor/Components/Table/ITableExportDataContext.cs +++ b/src/BootstrapBlazor/Components/Table/ITableExportDataContext.cs @@ -15,28 +15,24 @@ public interface ITableExportDataContext /// /// 获得 导出类型 TableExportType 枚举类型 /// Gets export type TableExportType enumeration type - /// 10.2.2 /// TableExportType ExportType { get; } /// /// 获得 当前行数据集合 /// Gets current row data collection - /// 10.2.2 /// IEnumerable Rows { get; } /// /// 获得 当前表格可见列集合 /// Gets current table visible columns collection - /// 10.2.2 /// IEnumerable Columns { get; } /// /// 获得 当前 Table 内置查询条件 /// Gets the built-in query condition of current Table - /// 10.2.2 /// QueryPageOptions Options { get; } } diff --git a/src/BootstrapBlazor/Components/Table/ITableSearchModel.cs b/src/BootstrapBlazor/Components/Table/ITableSearchModel.cs index 493d56a5134..a9757655a95 100644 --- a/src/BootstrapBlazor/Components/Table/ITableSearchModel.cs +++ b/src/BootstrapBlazor/Components/Table/ITableSearchModel.cs @@ -22,14 +22,12 @@ public interface ITableSearchModel /// /// 获得 搜索集合 /// Gets search collection - /// 10.2.2 /// IEnumerable GetSearches(); /// /// 重置操作 /// Reset operation - /// 10.2.2 /// void Reset(); } diff --git a/src/BootstrapBlazor/Components/Table/ITableToolbarButton.cs b/src/BootstrapBlazor/Components/Table/ITableToolbarButton.cs index 5ed490499c0..cdda4388ab7 100644 --- a/src/BootstrapBlazor/Components/Table/ITableToolbarButton.cs +++ b/src/BootstrapBlazor/Components/Table/ITableToolbarButton.cs @@ -6,22 +6,20 @@ namespace BootstrapBlazor.Components; /// -/// ITableToolbarButton 接口 -/// ITableToolbarButton interface +/// ITableToolbarButton 接口 +/// ITableToolbarButton interface /// public interface ITableToolbarButton : IToolbarComponent { /// - /// 获得/设置 选中一行时启用按钮,默认为 false - /// Gets or sets whether to enable button when one row is selected. Default is false. - /// 10.2.2 + /// 获得/设置 选中一行时启用按钮,默认为 false + /// Gets or sets whether to enable button when one row is selected. Default is false. /// bool IsEnableWhenSelectedOneRow { get; set; } /// - /// 获得/设置 按钮是否被禁用的回调方法 - /// Gets or sets the callback method for button disabled state - /// 10.2.2 + /// 获得/设置 按钮是否被禁用的回调方法 + /// Gets or sets the callback method for button disabled state /// Func, bool>? IsDisabledCallback { get; set; } } diff --git a/src/BootstrapBlazor/Components/Table/IToolbarComponent.cs b/src/BootstrapBlazor/Components/Table/IToolbarComponent.cs index fc747ce64bf..b86a8c83b6c 100644 --- a/src/BootstrapBlazor/Components/Table/IToolbarComponent.cs +++ b/src/BootstrapBlazor/Components/Table/IToolbarComponent.cs @@ -6,15 +6,14 @@ namespace BootstrapBlazor.Components; /// -/// IToolbarComponent 接口 -/// IToolbarComponent interface +/// IToolbarComponent 接口 +/// IToolbarComponent interface /// public interface IToolbarComponent { /// /// 获得/设置 是否显示,默认为 true 显示 /// Gets or sets whether to display. Default is true. - /// 10.2.2 /// bool IsShow { get; set; } } diff --git a/src/BootstrapBlazor/Components/Table/InternalTableColumn.cs b/src/BootstrapBlazor/Components/Table/InternalTableColumn.cs index d05ff3c13ab..51abf64582a 100644 --- a/src/BootstrapBlazor/Components/Table/InternalTableColumn.cs +++ b/src/BootstrapBlazor/Components/Table/InternalTableColumn.cs @@ -28,201 +28,201 @@ class InternalTableColumn(string fieldName, Type fieldType, string? fieldText = public bool? TextEllipsis { get; set; } /// - /// 获得/设置 是否不进行验证 默认为 false - /// Gets or sets whether不进行验证 Default is为 false + /// 获得/设置 是否不进行验证 默认为 false + /// Gets or sets whether不进行验证 Default is为 false /// public bool SkipValidate { get; set; } /// - /// - /// + /// + /// /// public bool? Ignore { get; set; } /// - /// - /// + /// + /// /// public bool? Readonly { get; set; } /// - /// - /// + /// + /// /// public bool? IsReadonlyWhenAdd { get; set; } /// - /// - /// + /// + /// /// public bool? IsReadonlyWhenEdit { get; set; } /// - /// - /// + /// + /// /// public bool? Visible { get; set; } /// - /// - /// + /// + /// /// public bool? IsVisibleWhenAdd { get; set; } = true; /// - /// - /// + /// + /// /// public bool? IsVisibleWhenEdit { get; set; } = true; /// - /// - /// + /// + /// /// public bool? Required { get; set; } /// - /// - /// + /// + /// /// public bool? IsRequiredWhenAdd { get; set; } /// - /// - /// + /// + /// /// public bool? IsRequiredWhenEdit { get; set; } /// - /// - /// + /// + /// /// public string? RequiredErrorMessage { get; set; } /// - /// - /// + /// + /// /// public bool? ShowLabelTooltip { get; set; } /// - /// - /// + /// + /// /// public string? CssClass { get; set; } /// - /// - /// + /// + /// /// public BreakPoint ShownWithBreakPoint { get; set; } /// - /// - /// + /// + /// /// public RenderFragment? Template { get; set; } /// - /// - /// + /// + /// /// public RenderFragment? SearchTemplate { get; set; } /// - /// - /// + /// + /// /// public RenderFragment? FilterTemplate { get; set; } /// - /// - /// + /// + /// /// public RenderFragment? HeaderTemplate { get; set; } /// - /// - /// + /// + /// /// public RenderFragment? ToolboxTemplate { get; set; } /// - /// - /// + /// + /// /// public IFilter? Filter { get; set; } /// - /// - /// + /// + /// /// public string? FormatString { get; set; } /// - /// - /// + /// + /// /// public string? PlaceHolder { get; set; } /// - /// - /// + /// + /// /// public Func>? Formatter { get; set; } /// - /// - /// + /// + /// /// public Alignment? Align { get; set; } /// - /// - /// + /// + /// /// public bool? ShowTips { get; set; } /// - /// - /// + /// + /// /// public Func>? GetTooltipTextCallback { get; set; } /// - /// - /// + /// + /// /// public Type PropertyType { get; } = fieldType; /// - /// - /// + /// + /// /// [ExcludeFromCodeCoverage] public bool Editable { get; set; } = true; /// - /// - /// + /// + /// /// public string? Step { get; set; } /// - /// - /// + /// + /// /// public int Rows { get; set; } /// - /// - /// + /// + /// /// public int Cols { get; set; } /// - /// - /// + /// + /// /// [NotNull] public string? Text { get; set; } = fieldText; @@ -230,160 +230,160 @@ class InternalTableColumn(string fieldName, Type fieldType, string? fieldText = public RenderFragment? EditTemplate { get; set; } /// - /// - /// + /// + /// /// public Type? ComponentType { get; set; } /// - /// - /// + /// + /// /// public IEnumerable>? ComponentParameters { get; set; } /// - /// - /// + /// + /// /// public IEnumerable? Items { get; set; } /// - /// - /// + /// + /// /// public int Order { get; set; } /// - /// - /// + /// + /// /// public IEnumerable? Lookup { get; set; } /// - /// - /// + /// + /// /// public bool ShowSearchWhenSelect { get; set; } /// - /// - /// + /// + /// /// [Obsolete("已弃用,请删除;Deprecated, please delete")] [ExcludeFromCodeCoverage] public bool IsFixedSearchWhenSelect { get; set; } /// - /// - /// + /// + /// /// public bool IsPopover { get; set; } /// - /// - /// + /// + /// /// public StringComparison LookupStringComparison { get; set; } = StringComparison.OrdinalIgnoreCase; /// - /// - /// + /// + /// /// public string? LookupServiceKey { get; set; } /// - /// - /// + /// + /// /// public object? LookupServiceData { get; set; } /// - /// - /// + /// + /// /// public ILookupService? LookupService { get; set; } /// - /// - /// + /// + /// /// public Action? OnCellRender { get; set; } /// - /// - /// + /// + /// /// public List? ValidateRules { get; set; } /// - /// - /// + /// + /// /// public string? GroupName { get; set; } /// - /// - /// + /// + /// /// public int GroupOrder { get; set; } /// - /// - /// + /// + /// /// public bool? ShowCopyColumn { get; set; } /// - /// - /// + /// + /// /// public bool HeaderTextWrap { get; set; } /// - /// - /// + /// + /// /// public bool ShowHeaderTooltip { get; set; } /// - /// - /// + /// + /// /// public string? HeaderTextTooltip { get; set; } /// - /// - /// + /// + /// /// public bool HeaderTextEllipsis { get; set; } /// - /// - /// + /// + /// /// public bool IsMarkupString { get; set; } /// - /// - /// + /// + /// /// public string GetDisplayName() => Text; /// - /// - /// + /// + /// /// public string GetFieldName() => FieldName; /// - /// - /// + /// + /// /// public Func? CustomSearch { get; set; } /// - /// - /// + /// + /// /// public bool? IgnoreWhenExport { get; set; } } diff --git a/src/BootstrapBlazor/Components/Table/LookupContent.cs b/src/BootstrapBlazor/Components/Table/LookupContent.cs index fc870213c61..e923d76be23 100644 --- a/src/BootstrapBlazor/Components/Table/LookupContent.cs +++ b/src/BootstrapBlazor/Components/Table/LookupContent.cs @@ -42,7 +42,6 @@ internal class LookupContent : ComponentBase, ILookup /// /// 获得/设置 显示值 /// Gets or sets display值 - /// 10.2.2 /// [Parameter] public string? Value { get; set; } diff --git a/src/BootstrapBlazor/Components/Table/Table.razor.Checkbox.cs b/src/BootstrapBlazor/Components/Table/Table.razor.Checkbox.cs index 928cdbbf845..e4ee8406bbf 100644 --- a/src/BootstrapBlazor/Components/Table/Table.razor.Checkbox.cs +++ b/src/BootstrapBlazor/Components/Table/Table.razor.Checkbox.cs @@ -24,7 +24,6 @@ public partial class Table /// /// 获得/设置 是否保持选择行,默认值为 false /// Gets or sets Whether to keep selected rows. Default false - /// 10.2.2 /// [Parameter] public bool IsKeepSelectedRows { get; set; } @@ -32,7 +31,6 @@ public partial class Table /// /// 获得/设置 新建数据是否保持原选择行,默认值为 false /// Gets or sets Keep selected rows after adding data. Default false - /// 10.2.2 /// [Parameter] public bool IsKeepSelectedRowAfterAdd { get; set; } @@ -69,7 +67,6 @@ protected CheckboxState HeaderCheckState() /// /// 获得/设置 是否为多选模式,默认值为 false /// Gets or sets Multiple Selection Mode. Default false - /// 10.2.2 /// /// 此参数在 模式下为 true [Parameter] @@ -78,7 +75,6 @@ protected CheckboxState HeaderCheckState() /// /// 获得/设置 是否显示选择框文字,默认值为 false /// Gets or sets Show Checkbox Text. Default false - /// 10.2.2 /// [Parameter] public bool ShowCheckboxText { get; set; } @@ -86,7 +82,6 @@ protected CheckboxState HeaderCheckState() /// /// 获得/设置 显示选择框文字 默认为 选择 /// Gets or sets Checkbox Display Text. Default "Select" - /// 10.2.2 /// /// [Parameter] @@ -96,7 +91,6 @@ protected CheckboxState HeaderCheckState() /// /// 获得/设置 表格行是否显示选择框 默认全部显示 此属性在 参数为 true 时生效 /// Gets or sets Whether to show row checkbox. Default show all. This property is effective when is true - /// 10.2.2 /// [Parameter] public Func? ShowRowCheckboxCallback { get; set; } @@ -154,7 +148,6 @@ protected async Task OnCheck(CheckboxState state, TItem val) /// /// 获得/设置 列改变显示状态回调方法 /// Gets or sets Column Visible Changed Callback - /// 10.2.2 /// [Parameter] public Func? OnColumnVisibleChanged { get; set; } diff --git a/src/BootstrapBlazor/Components/Table/Table.razor.Edit.cs b/src/BootstrapBlazor/Components/Table/Table.razor.Edit.cs index 871b4808c31..ac0f9b302f0 100644 --- a/src/BootstrapBlazor/Components/Table/Table.razor.Edit.cs +++ b/src/BootstrapBlazor/Components/Table/Table.razor.Edit.cs @@ -19,7 +19,6 @@ public partial class Table /// /// 获得/设置 被选中数据集合 /// Gets or sets Selected Rows Collection - /// 10.2.2 /// [Parameter] public List SelectedRows { get; set; } = []; @@ -27,7 +26,6 @@ public partial class Table /// /// 获得/设置 选中行变化回调方法 /// Gets or sets Selected Rows Changed Callback - /// 10.2.2 /// [Parameter] public EventCallback> SelectedRowsChanged { get; set; } @@ -35,7 +33,6 @@ public partial class Table /// /// 获得/设置 新建行位置枚举,默认为最后插入 /// Gets or sets Insert Row Mode. Default Last - /// 10.2.2 /// [Parameter] public InsertRowMode InsertRowMode { get; set; } = InsertRowMode.Last; @@ -65,7 +62,6 @@ public partial class Table /// /// 获得/设置 组件编辑模式 默认为弹窗编辑行数据 PopupEditForm /// Gets or sets Edit Mode. Default PopupEditForm - /// 10.2.2 /// [Parameter] public EditMode EditMode { get; set; } @@ -73,7 +69,6 @@ public partial class Table /// /// 获得/设置 组件布局方式 默认为 Auto /// Gets or sets Render Mode. Default Auto - /// 10.2.2 /// [Parameter] public TableRenderMode RenderMode { get; set; } @@ -81,7 +76,6 @@ public partial class Table /// /// 获得/设置 组件布局自适应切换阈值 默认为 768 /// Gets or sets Render Mode Responsive Width. Default 768 - /// 10.2.2 /// [Parameter] public BreakPoint RenderModeResponsiveWidth { get; set; } = BreakPoint.Medium; @@ -89,7 +83,6 @@ public partial class Table /// /// 获得/设置 编辑弹框是否 Body 出现滚动条 默认 false /// Gets or sets Whether to show scrollbar in Edit Dialog Body. Default false - /// 10.2.2 /// [Parameter] public bool ScrollingDialogContent { get; set; } @@ -97,7 +90,6 @@ public partial class Table /// /// 获得/设置 是否支持键盘 ESC 关闭当前弹窗 默认 true 支持 /// Gets or sets Whether to support ESC key to close current dialog. Default true - /// 10.2.2 /// [Parameter] public bool IsKeyboard { get; set; } = true; @@ -105,7 +97,6 @@ public partial class Table /// /// 获得/设置 行样式格式回调委托 /// Gets or sets Row Class Formatter Callback - /// 10.2.2 /// [Parameter] public Func? SetRowClassFormatter { get; set; } @@ -113,7 +104,6 @@ public partial class Table /// /// 获得/设置 取消保存后回调委托方法 /// Gets or sets After Cancel Save Callback - /// 10.2.2 /// [Parameter] public Func? OnAfterCancelSaveAsync { get; set; } @@ -121,7 +111,6 @@ public partial class Table /// /// 获得/设置 保存后回调委托方法 /// Gets or sets After Save Callback - /// 10.2.2 /// [Parameter] public Func? OnAfterSaveAsync { get; set; } @@ -129,7 +118,6 @@ public partial class Table /// /// 获得/设置 删除后回调委托方法 /// Gets or sets After Delete Callback - /// 10.2.2 /// [Parameter] public Func, Task>? OnAfterDeleteAsync { get; set; } @@ -137,7 +125,6 @@ public partial class Table /// /// 获得/设置 保存删除后回调委托方法 /// Gets or sets After Modify Callback - /// 10.2.2 /// [Parameter] public Func? OnAfterModifyAsync { get; set; } @@ -145,7 +132,6 @@ public partial class Table /// /// 获得/设置 编辑数据弹窗 Title /// Gets or sets Edit Dialog Title - /// 10.2.2 /// [Parameter] [NotNull] @@ -154,7 +140,6 @@ public partial class Table /// /// 获得/设置 新建数据弹窗 Title /// Gets or sets Add Dialog Title - /// 10.2.2 /// [Parameter] [NotNull] @@ -163,7 +148,6 @@ public partial class Table /// /// 获得/设置 EditModel 实例 /// Gets or sets EditModel Instance - /// 10.2.2 /// [Parameter] [NotNull] @@ -172,7 +156,6 @@ public partial class Table /// /// 获得/设置 EditTemplate 实例 /// Gets or sets EditTemplate Instance - /// 10.2.2 /// [Parameter] public RenderFragment? EditTemplate { get; set; } @@ -180,7 +163,6 @@ public partial class Table /// /// 获得/设置 BeforeRowButtonTemplate 实例,此模板生成的按钮默认放置到按钮前面,如需放置后面请查看 /// Gets or sets BeforeRowButtonTemplate Instance. The buttons generated by this template are placed before the button by default. If you need to place them in front, please check - /// 10.2.2 /// [Parameter] public RenderFragment? BeforeRowButtonTemplate { get; set; } @@ -188,7 +170,6 @@ public partial class Table /// /// 获得/设置 RowButtonTemplate 实例,此模板生成的按钮默认放置到按钮后面,如需放置前面请查看 /// Gets or sets RowButtonTemplate Instance. The buttons generated by this template are placed after the button by default. If you need to place them in front, please check - /// 10.2.2 /// [Parameter] public RenderFragment? RowButtonTemplate { get; set; } @@ -196,7 +177,6 @@ public partial class Table /// /// 获得/设置 是否显示 行内更多按钮 默认 false 不显示 /// Gets or sets Whether to show inline more button. Default false - /// 10.2.2 /// [Parameter] public bool ShowMoreButton { get; set; } @@ -204,7 +184,6 @@ public partial class Table /// /// 获得/设置 更多按钮颜色 默认 /// Gets or sets More Button Color. Default - /// 10.2.2 /// [Parameter] public Color MoreButtonColor { get; set; } = Color.Secondary; @@ -212,7 +191,6 @@ public partial class Table /// /// 获得/设置 更多按钮文本 默认 null 读取资源文件设置文本 /// Gets or sets More Button Text. Default null (Read from resource file) - /// 10.2.2 /// [Parameter] public string? MoreButtonText { get; set; } @@ -220,7 +198,6 @@ public partial class Table /// /// 获得/设置 行内更多按钮下拉框模板 默认 null /// Gets or sets Inline More Button Dropdown Template. Default null - /// 10.2.2 /// [Parameter] public RenderFragment? MoreButtonDropdownTemplate { get; set; } @@ -228,7 +205,6 @@ public partial class Table /// /// 获得/设置 行内功能按钮列头文本 默认为 操作 /// Gets or sets Column Button Header Text. Default "Operation" - /// 10.2.2 /// [Parameter] [NotNull] @@ -237,7 +213,6 @@ public partial class Table /// /// 获得/设置 点击行即选中本行 默认为 false /// Gets or sets Click Row to Select. Default false - /// 10.2.2 /// [Parameter] public bool ClickToSelect { get; set; } @@ -245,7 +220,6 @@ public partial class Table /// /// 获得/设置 单选模式下双击即编辑本行 默认为 false /// Gets or sets Double Click Row to Edit in Single Select Mode. Default false - /// 10.2.2 /// [Parameter] public bool DoubleClickToEdit { get; set; } @@ -253,7 +227,6 @@ public partial class Table /// /// 获得/设置 是否自动生成列信息 默认为 false /// Gets or sets Whether to auto generate columns. Default false - /// 10.2.2 /// [Parameter] public bool AutoGenerateColumns { get; set; } @@ -261,7 +234,6 @@ public partial class Table /// /// 获得/设置 查询时是否显示正在加载中动画 默认为 false /// Gets or sets Whether to show loading animation when querying. Default false - /// 10.2.2 /// [Parameter] public bool ShowLoading { get; set; } @@ -272,7 +244,6 @@ public partial class Table /// /// 获得/设置 数据服务参数 组件采用就近原则 如果提供了 Items > OnQueryAsync > DataService > 全局注入的数据服务 IDataService /// Gets or sets Data Service. Use nearby principle. Items > OnQueryAsync > DataService > Global Data Service - /// 10.2.2 /// [Parameter] public IDataService? DataService { get; set; } @@ -378,7 +349,6 @@ private async Task InternalOnAddAsync() /// /// 获得/设置 新建模型回调方法 默认 null 未设置时使用默认无参构造函数创建 /// Gets or sets Create Item Callback. Default null. Use default parameterless constructor if not set - /// 10.2.2 /// [Parameter] public Func? CreateItemCallback { get; set; } @@ -386,7 +356,6 @@ private async Task InternalOnAddAsync() /// /// 获得/设置 是否自动初始化模型属性 默认为 false /// Gets or sets Whether to automatically initialize model properties. Default value is false - /// 10.2.2 /// [Parameter] public bool IsAutoInitializeModelProperty { get; set; } @@ -412,7 +381,6 @@ private TItem CreateInstance() /// /// 获得/设置 新建搜索模型回调方法 默认 null 未设置时先 尝试使用 回调,再使用默认无参构造函数创建 /// Gets or sets Create Search Model Callback. Default null. Try to use callback first, then use default parameterless constructor - /// 10.2.2 /// [Parameter] public Func? CreateSearchModelCallback { get; set; } @@ -468,21 +436,18 @@ private async Task OnSelectedRowsChanged() /// Check if current row is selected /// /// - /// protected virtual bool CheckActive(TItem val) => SelectedRows.Any(row => Equals(val, row)); /// /// 刷新按钮回调方法 /// Refresh Button Callback /// - /// protected Task OnClickRefreshAsync() => QueryAsync(); /// /// 点击 CardView 按钮回调方法 /// Click CardView Button Callback /// - /// protected void OnClickCardView() { var model = RenderMode; @@ -526,7 +491,6 @@ private async Task QueryAsync(bool shouldRender, int? pageIndex = null, bool tri /// 查询按钮调用此方法 参数 pageIndex 默认值 null 保持上次页码 第一页页码为 1 /// Query Button calls this method. Parameter pageIndex default null, keep last page number. First page number is 1 /// - /// public Task QueryAsync(int? pageIndex = null) => QueryAsync(true, pageIndex); /// @@ -534,7 +498,6 @@ private async Task QueryAsync(bool shouldRender, int? pageIndex = null, bool tri /// Show/Hide Loading Mask /// /// true 时显示,false 时隐藏true to display, false to hide - /// public async ValueTask ToggleLoading(bool state) { if (ShowLoading) @@ -549,7 +512,6 @@ public async ValueTask ToggleLoading(bool state) /// Show/Hide Loading Mask /// /// true 时显示,false 时隐藏true to display, false to hide - /// protected async ValueTask InternalToggleLoading(bool state) { if (ShowLoading && !IsLoading) diff --git a/src/BootstrapBlazor/Components/Table/Table.razor.Localization.cs b/src/BootstrapBlazor/Components/Table/Table.razor.Localization.cs index c7e3f308e1c..dc8efdd2d20 100644 --- a/src/BootstrapBlazor/Components/Table/Table.razor.Localization.cs +++ b/src/BootstrapBlazor/Components/Table/Table.razor.Localization.cs @@ -10,455 +10,403 @@ namespace BootstrapBlazor.Components; public partial class Table { /// - /// 获得/设置 新建按钮文本 - /// Gets or sets Add Button Text - /// 10.2.2 + /// 获得/设置 新建按钮文本 + /// Gets or sets Add Button Text /// [Parameter] [NotNull] public string? AddButtonText { get; set; } /// - /// 获得/设置 新建按钮图标 - /// Gets or sets Add Button Icon - /// 10.2.2 + /// 获得/设置 新建按钮图标 + /// Gets or sets Add Button Icon /// [Parameter] public string? AddButtonIcon { get; set; } /// - /// 获得/设置 编辑按钮文本 - /// Gets or sets Edit Button Text - /// 10.2.2 + /// 获得/设置 编辑按钮文本 + /// Gets or sets Edit Button Text /// [Parameter] [NotNull] public string? EditButtonText { get; set; } /// - /// 获得/设置 编辑按钮图标 - /// Gets or sets Edit Button Icon - /// 10.2.2 + /// 获得/设置 编辑按钮图标 + /// Gets or sets Edit Button Icon /// [Parameter] public string? EditButtonIcon { get; set; } /// - /// 获得/设置 更多按钮图标 - /// Gets or sets More Button Icon - /// 10.2.2 + /// 获得/设置 更多按钮图标 + /// Gets or sets More Button Icon /// [Parameter] public string? MoreButtonIcon { get; set; } /// - /// 获得/设置 更新按钮文本 - /// Gets or sets Update Button Text - /// 10.2.2 + /// 获得/设置 更新按钮文本 + /// Gets or sets Update Button Text /// [Parameter] [NotNull] public string? UpdateButtonText { get; set; } /// - /// 获得/设置 取消按钮文本 - /// Gets or sets Cancel Button Text - /// 10.2.2 + /// 获得/设置 取消按钮文本 + /// Gets or sets Cancel Button Text /// [Parameter] [NotNull] public string? CancelButtonText { get; set; } /// - /// 获得/设置 取消按钮图标 - /// Gets or sets Cancel Button Icon - /// 10.2.2 + /// 获得/设置 取消按钮图标 + /// Gets or sets Cancel Button Icon /// [Parameter] public string? CancelButtonIcon { get; set; } /// - /// 获得/设置 删除按钮文本 - /// Gets or sets Delete Button Text - /// 10.2.2 + /// 获得/设置 删除按钮文本 + /// Gets or sets Delete Button Text /// [Parameter] [NotNull] public string? DeleteButtonText { get; set; } /// - /// 获得/设置 删除按钮图标 - /// Gets or sets Delete Button Icon - /// 10.2.2 + /// 获得/设置 删除按钮图标 + /// Gets or sets Delete Button Icon /// [Parameter] public string? DeleteButtonIcon { get; set; } /// - /// 获得/设置 取消删除按钮文本 - /// Gets or sets Cancel Delete Button Text - /// 10.2.2 + /// 获得/设置 取消删除按钮文本 + /// Gets or sets Cancel Delete Button Text /// [Parameter] [NotNull] public string? CancelDeleteButtonText { get; set; } /// - /// 获得/设置 保存按钮文本 - /// Gets or sets Save Button Text - /// 10.2.2 + /// 获得/设置 保存按钮文本 + /// Gets or sets Save Button Text /// [Parameter] [NotNull] public string? SaveButtonText { get; set; } /// - /// 获得/设置 保存按钮图标 - /// Gets or sets Save Button Icon - /// 10.2.2 + /// 获得/设置 保存按钮图标 + /// Gets or sets Save Button Icon /// [Parameter] public string? SaveButtonIcon { get; set; } /// - /// 获得/设置 关闭按钮文本 - /// Gets or sets Close Button Text - /// 10.2.2 + /// 获得/设置 关闭按钮文本 + /// Gets or sets Close Button Text /// [Parameter] [NotNull] public string? CloseButtonText { get; set; } /// - /// 获得/设置 关闭按钮图标 - /// Gets or sets Close Button Icon - /// 10.2.2 + /// 获得/设置 关闭按钮图标 + /// Gets or sets Close Button Icon /// [Parameter] public string? CloseButtonIcon { get; set; } /// - /// 获得/设置 确认删除按钮文本 - /// Gets or sets Confirm Delete Button Text - /// 10.2.2 + /// 获得/设置 确认删除按钮文本 + /// Gets or sets Confirm Delete Button Text /// [Parameter] [NotNull] public string? ConfirmDeleteButtonText { get; set; } /// - /// 获得/设置 确认删除弹窗文本 - /// Gets or sets Confirm Delete Dialog Text - /// 10.2.2 + /// 获得/设置 确认删除弹窗文本 + /// Gets or sets Confirm Delete Dialog Text /// [Parameter] [NotNull] public string? ConfirmDeleteContentText { get; set; } /// - /// 获得/设置 刷新按钮文本 - /// Gets or sets Refresh Button Text - /// 10.2.2 + /// 获得/设置 刷新按钮文本 + /// Gets or sets Refresh Button Text /// [Parameter] [NotNull] public string? RefreshButtonText { get; set; } /// - /// 获得/设置 刷新按钮图标 - /// Gets or sets Refresh Button Icon - /// 10.2.2 + /// 获得/设置 刷新按钮图标 + /// Gets or sets Refresh Button Icon /// [Parameter] public string? RefreshButtonIcon { get; set; } /// - /// 获得/设置 视图按钮文本 - /// Gets or sets Card View Button Text - /// 10.2.2 + /// 获得/设置 视图按钮文本 + /// Gets or sets Card View Button Text /// [Parameter] [NotNull] public string? CardViewButtonText { get; set; } /// - /// 获得/设置 视图按钮图标 - /// Gets or sets Card View Button Icon - /// 10.2.2 + /// 获得/设置 视图按钮图标 + /// Gets or sets Card View Button Icon /// [Parameter] public string? CardViewButtonIcon { get; set; } /// - /// 获得/设置 列显示隐藏按钮提示信息文本 - /// Gets or sets Column Button Title Text - /// 10.2.2 + /// 获得/设置 列显示隐藏按钮提示信息文本 + /// Gets or sets Column Button Title Text /// [Parameter] [NotNull] public string? ColumnButtonTitleText { get; set; } /// - /// 获得/设置 列按钮文本 - /// Gets or sets Column Button Text - /// 10.2.2 + /// 获得/设置 列按钮文本 + /// Gets or sets Column Button Text /// [Parameter] [NotNull] public string? ColumnButtonText { get; set; } /// - /// 获得/设置 列拷贝按钮图标 - /// Gets or sets Copy Column Button Icon - /// 10.2.2 + /// 获得/设置 列拷贝按钮图标 + /// Gets or sets Copy Column Button Icon /// [Parameter] public string? CopyColumnButtonIcon { get; set; } /// - /// 获得/设置 导出按钮文本 - /// Gets or sets Export Button Text - /// 10.2.2 + /// 获得/设置 导出按钮文本 + /// Gets or sets Export Button Text /// [Parameter] [NotNull] public string? ExportButtonText { get; set; } /// - /// 获得/设置 搜索栏 Placeholder 文本 - /// Gets or sets Search Placeholder Text - /// 10.2.2 + /// 获得/设置 搜索栏 Placeholder 文本 + /// Gets or sets Search Placeholder Text /// [Parameter] [NotNull] public string? SearchPlaceholderText { get; set; } /// - /// 获得/设置 搜索按钮文本 - /// Gets or sets Search Button Text - /// 10.2.2 + /// 获得/设置 搜索按钮文本 + /// Gets or sets Search Button Text /// [Parameter] [NotNull] public string? SearchButtonText { get; set; } /// - /// 获得/设置 搜索按钮图标 - /// Gets or sets Search Button Icon - /// 10.2.2 + /// 获得/设置 搜索按钮图标 + /// Gets or sets Search Button Icon /// [Parameter] public string? SearchButtonIcon { get; set; } /// - /// 获得/设置 搜索弹窗文本 - /// Gets or sets Search Dialog Text - /// 10.2.2 + /// 获得/设置 搜索弹窗文本 + /// Gets or sets Search Dialog Text /// [Parameter] [NotNull] public string? SearchModalTitle { get; set; } /// - /// 获得/设置 搜索框提示文字 - /// Gets or sets Search Tooltip - /// 10.2.2 + /// 获得/设置 搜索框提示文字 + /// Gets or sets Search Tooltip /// [Parameter] [NotNull] public string? SearchTooltip { get; set; } /// - /// 获得/设置 重置按钮文本 - /// Gets or sets Reset Search Button Text - /// 10.2.2 + /// 获得/设置 重置按钮文本 + /// Gets or sets Reset Search Button Text /// [Parameter] [NotNull] public string? ResetSearchButtonText { get; set; } /// - /// 获得/设置 重置按钮图标 - /// Gets or sets Reset Search Button Icon - /// 10.2.2 + /// 获得/设置 重置按钮图标 + /// Gets or sets Reset Search Button Icon /// [Parameter] public string? ResetSearchButtonIcon { get; set; } /// - /// 获得/设置 高级搜索按钮文本 - /// Gets or sets Advance Search Button Text - /// 10.2.2 + /// 获得/设置 高级搜索按钮文本 + /// Gets or sets Advance Search Button Text /// [Parameter] [NotNull] public string? AdvanceButtonText { get; set; } /// - /// 获得/设置 高级搜索按钮图标 - /// Gets or sets Advance Search Button Icon - /// 10.2.2 + /// 获得/设置 高级搜索按钮图标 + /// Gets or sets Advance Search Button Icon /// [Parameter] public string? AdvanceButtonIcon { get; set; } /// - /// 获得/设置 新增按钮 Toast 提示 Title 文字 - /// Gets or sets Add Button Toast Title - /// 10.2.2 + /// 获得/设置 新增按钮 Toast 提示 Title 文字 + /// Gets or sets Add Button Toast Title /// [Parameter] [NotNull] public string? AddButtonToastTitle { get; set; } /// - /// 获得/设置 新增按钮 Toast 提示 Content 文字 - /// Gets or sets Add Button Toast Content - /// 10.2.2 + /// 获得/设置 新增按钮 Toast 提示 Content 文字 + /// Gets or sets Add Button Toast Content /// [Parameter] [NotNull] public string? AddButtonToastContent { get; set; } /// - /// 获得/设置 编辑按钮 Toast 提示 Title 文字 - /// Gets or sets Edit Button Toast Title - /// 10.2.2 + /// 获得/设置 编辑按钮 Toast 提示 Title 文字 + /// Gets or sets Edit Button Toast Title /// [Parameter] [NotNull] public string? EditButtonToastTitle { get; set; } /// - /// 获得/设置 编辑按钮 Toast 未选择时提示 Content 文字 - /// Gets or sets Edit Button Toast Not Selected Content - /// 10.2.2 + /// 获得/设置 编辑按钮 Toast 未选择时提示 Content 文字 + /// Gets or sets Edit Button Toast Not Selected Content /// [Parameter] [NotNull] public string? EditButtonToastNotSelectContent { get; set; } /// - /// 获得/设置 编辑按钮 Toast 选择项设置不可编辑时提示 Content 文字 - /// Gets or sets Edit Button Toast Read Only Content - /// 10.2.2 + /// 获得/设置 编辑按钮 Toast 选择项设置不可编辑时提示 Content 文字 + /// Gets or sets Edit Button Toast Read Only Content /// [Parameter] [NotNull] public string? EditButtonToastReadonlyContent { get; set; } /// - /// 获得/设置 编辑按钮 Toast 多项选择时提示 Content 文字 - /// Gets or sets Edit Button Toast Multiple Selected Content - /// 10.2.2 + /// 获得/设置 编辑按钮 Toast 多项选择时提示 Content 文字 + /// Gets or sets Edit Button Toast Multiple Selected Content /// [Parameter] [NotNull] public string? EditButtonToastMoreSelectContent { get; set; } /// - /// 获得/设置 编辑按钮 Toast 未提供 Save 方法时提示 Content 文字 - /// Gets or sets Edit Button Toast No Save Method Content - /// 10.2.2 + /// 获得/设置 编辑按钮 Toast 未提供 Save 方法时提示 Content 文字 + /// Gets or sets Edit Button Toast No Save Method Content /// [Parameter] [NotNull] public string? EditButtonToastNoSaveMethodContent { get; set; } /// - /// 获得/设置 保存按钮 Toast 提示 Title 文字 - /// Gets or sets Save Button Toast Title - /// 10.2.2 + /// 获得/设置 保存按钮 Toast 提示 Title 文字 + /// Gets or sets Save Button Toast Title /// [Parameter] [NotNull] public string? SaveButtonToastTitle { get; set; } /// - /// 获得/设置 保存按钮 Toast 提示 Content 文字 - /// Gets or sets Save Button Toast Content - /// 10.2.2 + /// 获得/设置 保存按钮 Toast 提示 Content 文字 + /// Gets or sets Save Button Toast Content /// [Parameter] [NotNull] public string? SaveButtonToastContent { get; set; } /// - /// 获得/设置 保存按钮结果 Toast 提示 Content 文字 - /// Gets or sets Save Button Toast Result Content - /// 10.2.2 + /// 获得/设置 保存按钮结果 Toast 提示 Content 文字 + /// Gets or sets Save Button Toast Result Content /// [Parameter] [NotNull] public string? SaveButtonToastResultContent { get; set; } /// - /// 获得/设置 保存成功文字 - /// Gets or sets Success Text - /// 10.2.2 + /// 获得/设置 保存成功文字 + /// Gets or sets Success Text /// [Parameter] [NotNull] public string? SuccessText { get; set; } /// - /// 获得/设置 保存失败 - /// Gets or sets Fail Text - /// 10.2.2 + /// 获得/设置 保存失败 + /// Gets or sets Fail Text /// [Parameter] [NotNull] public string? FailText { get; set; } /// - /// 获得/设置 删除按钮 Toast 提示 Title 文字 - /// Gets or sets Delete Button Toast Title - /// 10.2.2 + /// 获得/设置 删除按钮 Toast 提示 Title 文字 + /// Gets or sets Delete Button Toast Title /// [Parameter] [NotNull] public string? DeleteButtonToastTitle { get; set; } /// - /// 获得/设置 删除按钮选项中有无法删除项时 Toast 提示文字 - /// Gets or sets Delete Button Toast Can Not Delete Content - /// 10.2.2 + /// 获得/设置 删除按钮选项中有无法删除项时 Toast 提示文字 + /// Gets or sets Delete Button Toast Can Not Delete Content /// [Parameter] [NotNull] public string? DeleteButtonToastCanNotDeleteContent { get; set; } /// - /// 获得/设置 删除按钮 Toast 提示 Content 文字 - /// Gets or sets Delete Button Toast Content - /// 10.2.2 + /// 获得/设置 删除按钮 Toast 提示 Content 文字 + /// Gets or sets Delete Button Toast Content /// [Parameter] [NotNull] public string? DeleteButtonToastContent { get; set; } /// - /// 获得/设置 删除按钮结果 Toast 提示 Content 文字 - /// Gets or sets Delete Button Toast Result Content - /// 10.2.2 + /// 获得/设置 删除按钮结果 Toast 提示 Content 文字 + /// Gets or sets Delete Button Toast Result Content /// [Parameter] [NotNull] public string? DeleteButtonToastResultContent { get; set; } /// - /// 获得/设置 高级排序按钮文本 - /// Gets or sets Advanced Sort Button Text - /// 10.2.2 + /// 获得/设置 高级排序按钮文本 + /// Gets or sets Advanced Sort Button Text /// [Parameter] [NotNull] public string? AdvancedSortButtonText { get; set; } /// - /// 获得/设置 高级排序弹窗文本 - /// Gets or sets Advanced Sort Modal Title - /// 10.2.2 + /// 获得/设置 高级排序弹窗文本 + /// Gets or sets Advanced Sort Modal Title /// [Parameter] [NotNull] diff --git a/src/BootstrapBlazor/Components/Table/Table.razor.Pagination.cs b/src/BootstrapBlazor/Components/Table/Table.razor.Pagination.cs index a67c2874a10..012bc427047 100644 --- a/src/BootstrapBlazor/Components/Table/Table.razor.Pagination.cs +++ b/src/BootstrapBlazor/Components/Table/Table.razor.Pagination.cs @@ -10,7 +10,6 @@ public partial class Table /// /// 获得/设置 是否分页,默认值为 false /// Gets or sets Whether to allow pagination. Default false - /// 10.2.2 /// [Parameter] public bool IsPagination { get; set; } @@ -18,7 +17,6 @@ public partial class Table /// /// 获得/设置 分页上下翻页的页码数量,默认为 5 /// Gets or sets Page up/down page link count. Default 5 - /// 10.2.2 /// [Parameter] public int MaxPageLinkCount { get; set; } = 5; @@ -26,7 +24,6 @@ public partial class Table /// /// 获得/设置 是否在顶端显示分页,默认值为 false /// Gets or sets Whether to show pagination at top. Default false - /// 10.2.2 /// [Parameter] public bool ShowTopPagination { get; set; } @@ -34,7 +31,6 @@ public partial class Table /// /// 获得/设置 是否显示行号列 默认为 false /// Gets or sets Whether to show line number column. Default false - /// 10.2.2 /// [Parameter] public bool ShowLineNo { get; set; } @@ -42,7 +38,6 @@ public partial class Table /// /// 获得/设置 行号列标题文字 默认为 行号 /// Gets or sets Line Number Column Header Text. Default "Line No" - /// 10.2.2 /// [Parameter] [NotNull] @@ -51,7 +46,6 @@ public partial class Table /// /// 获得/设置 每页显示数据数量的外部数据源 /// Gets or sets External data source for items per page - /// 10.2.2 /// [Parameter] [NotNull] @@ -60,7 +54,6 @@ public partial class Table /// /// 异步查询回调方法,设置 后无法触发此回调方法 /// Async query callback method. Cannot trigger this when is set - /// 10.2.2 /// [Parameter] public Func>>? OnQueryAsync { get; set; } @@ -86,7 +79,6 @@ public partial class Table /// /// 获得/设置 默认每页数据数量 默认 null 使用 第一个值 /// Gets or sets Default items per page. Default null (Use first value of ) - /// 10.2.2 /// [Parameter] public int? PageItems { get; set; } @@ -94,7 +86,6 @@ public partial class Table /// /// 获得/设置 是否显示 Goto 跳转导航 /// Gets or sets Whether to show Goto navigator - /// 10.2.2 /// [Parameter] public bool ShowGotoNavigator { get; set; } = true; @@ -102,7 +93,6 @@ public partial class Table /// /// 获得/设置 是否显示 Goto 跳转导航文本信息 默认 null /// Gets or sets Whether to show Goto navigator label text. Default null - /// 10.2.2 /// [Parameter] public string? GotoNavigatorLabelText { get; set; } @@ -110,7 +100,6 @@ public partial class Table /// /// 获得/设置 Goto 导航模板 /// Gets or sets Goto navigator template - /// 10.2.2 /// [Parameter] public RenderFragment? GotoTemplate { get; set; } @@ -118,7 +107,6 @@ public partial class Table /// /// 获得/设置 是否显示 PageInfo 内容 默认 true 显示 /// Gets or sets Whether to show PageInfo. Default true - /// 10.2.2 /// [Parameter] public bool ShowPageInfo { get; set; } = true; @@ -126,7 +114,6 @@ public partial class Table /// /// 获得/设置 分页信息文字 默认 null /// Gets or sets Page Info Text. Default null - /// 10.2.2 /// [Parameter] public string? PageInfoText { get; set; } @@ -134,7 +121,6 @@ public partial class Table /// /// 获得/设置 分页信息模板 /// Gets or sets Page Info Template - /// 10.2.2 /// [Parameter] public RenderFragment? PageInfoTemplate { get; set; } @@ -142,7 +128,6 @@ public partial class Table /// /// 获得/设置 分页信息内容模板 默认 null /// Gets or sets Page Info Body Template. Default null - /// 10.2.2 /// [Parameter] public RenderFragment? PageInfoBodyTemplate { get; set; } @@ -231,7 +216,6 @@ protected async Task OnPageItemsValueChanged(int pageItems) /// 获得 分页数据源 /// Get Page Items Source /// - /// protected List GetPageItemsSource() { _pageItemsSource ??= PageItemsSource.Select(i => new SelectedItem($"{i}", Localizer["PageItemsText", i].Value)).ToList(); diff --git a/src/BootstrapBlazor/Components/Table/Table.razor.Search.cs b/src/BootstrapBlazor/Components/Table/Table.razor.Search.cs index 8b13dee5661..c2b39038d4d 100644 --- a/src/BootstrapBlazor/Components/Table/Table.razor.Search.cs +++ b/src/BootstrapBlazor/Components/Table/Table.razor.Search.cs @@ -11,158 +11,141 @@ namespace BootstrapBlazor.Components; public partial class Table { /// - /// 获得 高级搜索样式 - /// Get Advanced Search Class + /// 获得 高级搜索样式 + /// Get Advanced Search Class /// protected string? AdvanceSearchClass => CssBuilder.Default("btn btn-secondary") .AddClass("btn-info", IsAdvanceSearch) .Build(); /// - /// 获得/设置 是否已经处理高级搜索 默认 false - /// Gets or sets Whether processed advanced search. Default false + /// 获得/设置 是否已经处理高级搜索 默认 false + /// Gets or sets Whether processed advanced search. Default false /// protected bool IsAdvanceSearch { get; set; } /// - /// 获得/设置 SearchTemplate 实例 - /// Gets or sets SearchTemplate Instance - /// 10.2.2 + /// 获得/设置 SearchTemplate 实例 + /// Gets or sets SearchTemplate Instance /// [Parameter] public RenderFragment? SearchTemplate { get; set; } /// - /// 获得/设置 SearchModel 实例 - /// Gets or sets SearchModel Instance - /// 10.2.2 + /// 获得/设置 SearchModel 实例 + /// Gets or sets SearchModel Instance /// [Parameter, NotNull] public TItem? SearchModel { get; set; } /// - /// 获得/设置 自定义搜索模型 - /// Gets or sets Customer Search Model - /// 10.2.2 + /// 获得/设置 自定义搜索模型 + /// Gets or sets Customer Search Model /// [Parameter] public ITableSearchModel? CustomerSearchModel { get; set; } /// - /// 获得/设置 自定义搜索模型模板 - /// Gets or sets Customer Search Model Template - /// 10.2.2 + /// 获得/设置 自定义搜索模型模板 + /// Gets or sets Customer Search Model Template /// [Parameter] public RenderFragment? CustomerSearchTemplate { get; set; } /// - /// 获得/设置 是否显示搜索框 默认为 false 不显示搜索框 - /// Gets or sets Whether to show search box. Default false - /// 10.2.2 + /// 获得/设置 是否显示搜索框 默认为 false 不显示搜索框 + /// Gets or sets Whether to show search box. Default false /// [Parameter] public bool ShowSearch { get; set; } /// - /// 获得/设置 是否收缩顶部搜索框,默认值为 false,是否显示搜索框请设置 值为 Top - /// Gets or sets Whether to collapse top search box. Default false. Set to Top if needed - /// 10.2.2 + /// 获得/设置 是否收缩顶部搜索框,默认值为 false,是否显示搜索框请设置 值为 Top + /// Gets or sets Whether to collapse top search box. Default false. Set to Top if needed /// [Parameter] public bool CollapsedTopSearch { get; set; } /// - /// 获得/设置 是否显示搜索文本框,默认值为 true - /// Gets or sets Whether to show search text box. Default true. - /// 10.2.2 + /// 获得/设置 是否显示搜索文本框,默认值为 true + /// Gets or sets Whether to show search text box. Default true. /// [Parameter] public bool ShowSearchText { get; set; } = true; /// - /// 获得/设置 是否显示搜索框提示文本 默认 true - /// Gets or sets Whether to show search text tooltip. Default true - /// 10.2.2 + /// 获得/设置 是否显示搜索框提示文本 默认 true + /// Gets or sets Whether to show search text tooltip. Default true /// [Parameter] public bool ShowSearchTextTooltip { get; set; } = true; /// - /// 获得/设置 是否显示清空搜索按钮 默认 true 显示 - /// Gets or sets Whether to show reset search button. Default true. - /// 10.2.2 + /// 获得/设置 是否显示清空搜索按钮 默认 true 显示 + /// Gets or sets Whether to show reset search button. Default true. /// [Parameter] public bool ShowResetButton { get; set; } = true; /// - /// 获得/设置 是否显示搜索按钮,默认值为 true - /// Gets or sets Whether to show search button. Default true. - /// 10.2.2 + /// 获得/设置 是否显示搜索按钮,默认值为 true + /// Gets or sets Whether to show search button. Default true. /// [Parameter] public bool ShowSearchButton { get; set; } = true; /// - /// 获得/设置 是否显示高级搜索按钮,默认值为 true - /// Gets or sets Whether to show advanced search button. Default true. - /// 10.2.2 + /// 获得/设置 是否显示高级搜索按钮,默认值为 true + /// Gets or sets Whether to show advanced search button. Default true. /// [Parameter] public bool ShowAdvancedSearch { get; set; } = true; /// - /// 获得/设置 搜索关键字 通过列设置的 Searchable 自动生成搜索拉姆达表达式 - /// Gets or sets Search Keyword. Automatically generate search lambda expression based on Searchable set on columns - /// 10.2.2 + /// 获得/设置 搜索关键字 通过列设置的 Searchable 自动生成搜索拉姆达表达式 + /// Gets or sets Search Keyword. Automatically generate search lambda expression based on Searchable set on columns /// [Parameter] public string? SearchText { get; set; } /// - /// 获得/设置 搜索栏渲染方式 默认 Popup 弹窗模式 - /// Gets or sets Search Mode. Default Popup - /// 10.2.2 + /// 获得/设置 搜索栏渲染方式 默认 Popup 弹窗模式 + /// Gets or sets Search Mode. Default Popup /// [Parameter] public SearchMode SearchMode { get; set; } /// - /// 获得/设置 每行显示组件数量 默认为 2 - /// Gets or sets Items per row. Default 2 - /// 10.2.2 + /// 获得/设置 每行显示组件数量 默认为 2 + /// Gets or sets Items per row. Default 2 /// [Parameter] public int SearchDialogItemsPerRow { get; set; } = 2; /// - /// 获得/设置 设置行内组件布局格式 默认 Inline 布局 - /// Gets or sets Row Layout Type. Default Inline - /// 10.2.2 + /// 获得/设置 设置行内组件布局格式 默认 Inline 布局 + /// Gets or sets Row Layout Type. Default Inline /// [Parameter] public RowType SearchDialogRowType { get; set; } = RowType.Inline; /// - /// 获得/设置 设置 Inline 模式下标签对齐方式 默认 None 等效于 Left 左对齐 - /// Gets or sets Label Alignment in Inline mode of . Default None (Left) - /// 10.2.2 + /// 获得/设置 设置 Inline 模式下标签对齐方式 默认 None 等效于 Left 左对齐 + /// Gets or sets Label Alignment in Inline mode of . Default None (Left) /// [Parameter] public Alignment SearchDialogLabelAlign { get; set; } /// - /// 重置搜索按钮异步回调方法 - /// Reset Search Button Async Callback - /// 10.2.2 + /// 重置搜索按钮异步回调方法 + /// Reset Search Button Async Callback /// [Parameter] public Func? OnResetSearchAsync { get; set; } /// - /// 重置查询方法 - /// Reset Search Method + /// 重置查询方法 + /// Reset Search Method /// protected async Task ResetSearchClick() { @@ -186,8 +169,8 @@ protected async Task ResetSearchClick() } /// - /// 查询方法 - /// Search Method + /// 查询方法 + /// Search Method /// protected async Task SearchClick() { @@ -196,32 +179,29 @@ protected async Task SearchClick() } /// - /// 获得/设置 搜索框的大小 - /// Gets or sets Search Dialog Size - /// 10.2.2 + /// 获得/设置 搜索框的大小 + /// Gets or sets Search Dialog Size /// [Parameter] public Size SearchDialogSize { get; set; } = Size.ExtraExtraLarge; /// - /// 获得/设置 搜索框是否可以拖拽 默认 false 不可以拖拽 - /// Gets or sets Whether search dialog is draggable. Default false - /// 10.2.2 + /// 获得/设置 搜索框是否可以拖拽 默认 false 不可以拖拽 + /// Gets or sets Whether search dialog is draggable. Default false /// [Parameter] public bool SearchDialogIsDraggable { get; set; } /// - /// 获得/设置 搜索框是否显示最大化按钮,默认值为 true - /// Gets or sets Whether to show maximize button on search dialog. Default true - /// 10.2.2 + /// 获得/设置 搜索框是否显示最大化按钮,默认值为 true + /// Gets or sets Whether to show maximize button on search dialog. Default true /// [Parameter] public bool SearchDialogShowMaximizeButton { get; set; } = true; /// - /// 高级查询按钮点击时调用此方法 - /// Advanced Search Button Click Method + /// 高级查询按钮点击时调用此方法 + /// Advanced Search Button Click Method /// protected async Task ShowSearchDialog() { @@ -271,10 +251,9 @@ protected async Task ShowSearchDialog() } /// - /// 获得 中过滤条件 模板中的条件无法获得 - /// Get Filter Actions from . Conditions in cannot be obtained + /// 获得 中过滤条件 模板中的条件无法获得 + /// Get Filter Actions from . Conditions in cannot be obtained /// - /// protected IEnumerable GetCustomerSearches() { var searches = new List(); @@ -287,10 +266,9 @@ protected IEnumerable GetCustomerSearches() } /// - /// 获得 中过滤条件 - /// Get Filter Actions from + /// 获得 中过滤条件 + /// Get Filter Actions from /// - /// protected List GetAdvanceSearches() { var searches = new List(); @@ -321,10 +299,9 @@ protected List GetAdvanceSearches() } /// - /// 通过列集合中的 列与 拼装 IFilterAction 集合 - /// Assemble IFilterAction collection using columns and + /// 通过列集合中的 列与 拼装 IFilterAction 集合 + /// Assemble IFilterAction collection using columns and /// - /// protected List GetSearches() => Columns.Where(col => col.GetSearchable()).ToSearches(SearchText); private async Task OnSearchTextValueChanged(string? value) @@ -347,8 +324,8 @@ private async Task OnSearchKeyUp(KeyboardEventArgs args) } /// - /// 重置搜索按钮调用此方法 - /// Reset Search Button Click Method + /// 重置搜索按钮调用此方法 + /// Reset Search Button Click Method /// protected async Task ClearSearchClick() { diff --git a/src/BootstrapBlazor/Components/Table/Table.razor.Sort.cs b/src/BootstrapBlazor/Components/Table/Table.razor.Sort.cs index 293488a7871..8abb6b0de47 100644 --- a/src/BootstrapBlazor/Components/Table/Table.razor.Sort.cs +++ b/src/BootstrapBlazor/Components/Table/Table.razor.Sort.cs @@ -24,7 +24,6 @@ public partial class Table /// /// 获得/设置 升序图标 /// Gets or sets Sort Ascending Icon - /// 10.2.2 /// [Parameter] [NotNull] @@ -33,7 +32,6 @@ public partial class Table /// /// 获得/设置 降序图标 /// Gets or sets Sort Descending Icon - /// 10.2.2 /// [Parameter] [NotNull] @@ -42,7 +40,6 @@ public partial class Table /// /// 获得/设置 默认排序图标 /// Gets or sets Default sort Icon - /// 10.2.2 /// [Parameter] [NotNull] @@ -51,7 +48,6 @@ public partial class Table /// /// 获得/设置 过滤图标 /// Gets or sets Filter Icon Default fa-solid fa-filter - /// 10.2.2 /// [Parameter] public string? FilterIcon { get; set; } @@ -59,7 +55,6 @@ public partial class Table /// /// 获得/设置 多列排序顺序,默认为空,多列时使用逗号分割,如:"Name, Age desc" /// Gets or sets Multi-column sort order. Default empty. Separated by comma, e.g., "Name, Age desc" - /// 10.2.2 /// [Parameter] public string? SortString { get; set; } @@ -67,7 +62,6 @@ public partial class Table /// /// 获得/设置 点击表头排序时回调方法 /// Gets or sets Callback method when clicking header to sort - /// 10.2.2 /// [Parameter] public Func? OnSort { get; set; } @@ -113,7 +107,6 @@ protected Func OnClickHeader(ITableColumn col) => async () => /// /// /// - /// protected string? GetHeaderClassString(ITableColumn col, bool isFilterHeader = false) => CssBuilder.Default() .AddClass("sortable", col.GetSortable() && !isFilterHeader) .AddClass("filterable", col.GetFilterable()) @@ -126,7 +119,6 @@ protected Func OnClickHeader(ITableColumn col) => async () => /// Get header cell style /// /// - /// protected string? GetHeaderCellClassString(ITableColumn col) => CssBuilder.Default() .AddClass("table-text") .AddClass("text-truncate", col.HeaderTextEllipsis) @@ -199,7 +191,6 @@ private int MultipleSelectColumnLeft() /// /// /// - /// protected string? GetFixedCellClassString(ITableColumn col, string? cellClass = null) => CssBuilder.Default(cellClass) .AddClass("fixed", col.Fixed) .AddClass("fixed-right", col.Fixed && IsTail(col)) @@ -211,7 +202,6 @@ private int MultipleSelectColumnLeft() /// 获得扩展按钮列固定列样式 /// Get fixed column style for extend button column /// - /// protected string? FixedExtendButtonsColumnClassString => CssBuilder.Default("table-column-button") .AddClass("fixed", FixedExtendButtonsColumn) .AddClass("fixed-right", !IsExtendButtonsInRowHeader) @@ -223,7 +213,6 @@ private int MultipleSelectColumnLeft() /// 获得 按钮列样式表集合 /// Get button column class collection /// - /// protected string? ExtendButtonsColumnClass => CssBuilder.Default() .AddClass("fixed", FixedExtendButtonsColumn) .AddClass("fixed-right", !IsExtendButtonsInRowHeader) @@ -235,7 +224,6 @@ private int MultipleSelectColumnLeft() /// 获得扩展按钮列固定列样式 /// Gets扩展button列固定列style /// - /// protected string? GetFixedExtendButtonsColumnStyleString(int margin = 0) => CssBuilder.Default() .AddClass($"right: {(IsFixedHeader ? margin : 0)}px;", FixedExtendButtonsColumn && !IsExtendButtonsInRowHeader) .AddClass($"left: {GetExtendButtonsColumnLeftMargin()}px;", FixedExtendButtonsColumn && IsExtendButtonsInRowHeader) @@ -333,7 +321,6 @@ private bool IsTail(ITableColumn col) /// Get cell style for setting text overflow /// /// - /// protected string? GetCellStyleString(ITableColumn col) { return col.GetTextEllipsis() && !AllowResizing @@ -351,7 +338,6 @@ string GetFixedHeaderStyleString() => IsFixedHeader /// /// /// - /// protected string? GetFixedCellStyleString(ITableColumn col, int margin = 0) { string? ret = null; @@ -421,7 +407,6 @@ string GetFixedHeaderStyleString() => IsFixedHeader /// Get style string for specified column header /// /// - /// protected string? GetHeaderWrapperClassString(ITableColumn col) => CssBuilder.Default("table-cell") .AddClass("is-sort", col.GetSortable()) .AddClass("is-filter", col.GetFilterable()) @@ -436,7 +421,6 @@ string GetFixedHeaderStyleString() => IsFixedHeader /// /// /// - /// protected string? GetCellClassString(ITableColumn col, bool hasChildren, bool inCell) => CssBuilder.Default("table-cell") .AddClass(col.GetAlign().ToDescriptionString(), col.Align == Alignment.Center || col.Align == Alignment.Right) .AddClass("is-wrap", col.GetTextWrap()) @@ -452,7 +436,6 @@ string GetFixedHeaderStyleString() => IsFixedHeader /// 获取指定列头样式字符串 /// 获取指定列头style字符串 /// - /// protected string? GetIconClassString(string fieldName) => CssBuilder.Default("sort-icon") .AddClass(SortIcon, SortName != fieldName || SortOrder == SortOrder.Unset) .AddClass(SortIconAsc, SortName == fieldName && SortOrder == SortOrder.Asc) @@ -463,7 +446,6 @@ string GetFixedHeaderStyleString() => IsFixedHeader /// 获取列工具箱图标的样式字符串 /// Get column toolbox icon style string /// - /// protected string? GetColumnToolboxIconClassString() => CssBuilder.Default(ColumnToolboxIcon) .Build(); @@ -479,7 +461,6 @@ string GetFixedHeaderStyleString() => IsFixedHeader /// /// 获得/设置 是否显示高级排序按钮 默认 false 不显示 /// Gets or sets Whether to show advanced sort button. Default false - /// 10.2.2 /// [Parameter] public bool ShowAdvancedSort { get; set; } @@ -487,7 +468,6 @@ string GetFixedHeaderStyleString() => IsFixedHeader /// /// 获得/设置 高级排序按钮图标 /// Gets or sets Advanced Sort Button Icon - /// 10.2.2 /// [Parameter] public string? AdvancedSortButtonIcon { get; set; } @@ -495,7 +475,6 @@ string GetFixedHeaderStyleString() => IsFixedHeader /// /// 获得/设置 高级排序框的大小 默认 Medium /// Gets or sets Advanced Sort Dialog Size. Default Medium - /// 10.2.2 /// [Parameter] public Size AdvancedSortDialogSize { get; set; } = Size.Medium; @@ -503,7 +482,6 @@ string GetFixedHeaderStyleString() => IsFixedHeader /// /// 获得/设置 高级排序框是否可以拖拽 默认 false 不可以拖拽 /// Gets or sets Whether advanced sort dialog is draggable. Default false - /// 10.2.2 /// [Parameter] public bool AdvancedSortDialogIsDraggable { get; set; } @@ -511,7 +489,6 @@ string GetFixedHeaderStyleString() => IsFixedHeader /// /// 获得/设置 高级排序框是否显示最大化按钮 默认 false 不显示 /// Gets or sets Whether to show maximize button on advanced sort dialog. Default false - /// 10.2.2 /// [Parameter] public bool AdvancedSortDialogShowMaximizeButton { get; set; } @@ -519,7 +496,6 @@ string GetFixedHeaderStyleString() => IsFixedHeader /// /// 获得/设置 高级排序,默认为 Empty /// Gets or sets Advanced Sort Items. Default Empty - /// 10.2.2 /// [Parameter] public List AdvancedSortItems { get; set; } = []; @@ -553,7 +529,6 @@ private async Task ShowSortDialog() /// 获得 中过滤条件 /// Get filter conditions from /// - /// protected IEnumerable GetAdvancedSortList() => ShowAdvancedSort ? AdvancedSortItems.Select(p => p.ToString()) : Enumerable.Empty(); #endregion } diff --git a/src/BootstrapBlazor/Components/Table/Table.razor.Toolbar.cs b/src/BootstrapBlazor/Components/Table/Table.razor.Toolbar.cs index 0f3df4dfcd9..576d06e5e7f 100644 --- a/src/BootstrapBlazor/Components/Table/Table.razor.Toolbar.cs +++ b/src/BootstrapBlazor/Components/Table/Table.razor.Toolbar.cs @@ -12,7 +12,6 @@ public partial class Table /// /// 获得/设置 是否显示工具栏 默认 false 不显示 /// Gets or sets Whether to show toolbar. Default false - /// 10.2.2 /// [Parameter] public bool ShowToolbar { get; set; } @@ -20,7 +19,6 @@ public partial class Table /// /// 获得/设置 the 模板 of table toolbar. 默认为 null. /// Gets or sets the template of table toolbar. Default is null. - /// 10.2.2 /// [Parameter] public RenderFragment? ToolbarTemplate { get; set; } @@ -28,7 +26,6 @@ public partial class Table /// /// 获得/设置 首次加载是否显示加载骨架屏 默认 false 不显示 使用 参数值 /// Gets or sets Whether to show skeleton when first loading. Default false. Use parameter value - /// 10.2.2 /// [Parameter] public bool ShowSkeleton { get; set; } @@ -36,7 +33,6 @@ public partial class Table /// /// 获得/设置 首次加载是否显示加载动画 默认 true 显示 设置 值覆盖此参数 /// Gets or sets Whether to show loading animation when first loading. Default true. Setting value covers this parameter - /// 10.2.2 /// [Parameter] public bool ShowLoadingInFirstRender { get; set; } = true; @@ -44,7 +40,6 @@ public partial class Table /// /// 获得/设置 是否显示按钮列 默认为 true /// Gets or sets Whether to show Button Column. Default true - /// 10.2.2 /// /// 本属性设置为 true 新建编辑删除按钮设置为 false 可单独控制每个按钮是否显示 [Parameter] @@ -53,7 +48,6 @@ public partial class Table /// /// 获得/设置 是否显示新建按钮 默认为 true 显示 /// Gets or sets Whether to show Add Button. Default true - /// 10.2.2 /// [Parameter] public bool ShowAddButton { get; set; } = true; @@ -61,7 +55,6 @@ public partial class Table /// /// 获得/设置 是否显示编辑按钮 默认为 true 行内是否显示请使用 /// Gets or sets Whether to show Edit Button. Default true. Use and for in-row display - /// 10.2.2 /// [Parameter] public bool ShowEditButton { get; set; } = true; @@ -69,7 +62,6 @@ public partial class Table /// /// 获得/设置 是否显示删除按钮 默认为 true 行内是否显示请使用 /// Gets or sets Whether to show Delete Button. Default true. Use and for in-row display - /// 10.2.2 /// [Parameter] public bool ShowDeleteButton { get; set; } = true; @@ -77,7 +69,6 @@ public partial class Table /// /// 获得/设置 是否显示导出按钮 默认为 false 不显示 /// Gets or sets Whether to show Export Button. Default false - /// 10.2.2 /// [Parameter] public bool ShowExportButton { get; set; } @@ -85,7 +76,6 @@ public partial class Table /// /// 获得/设置 是否显示 Excel 导出按钮 默认为 true 显示 /// Gets or sets Whether to show Export Excel Button. Default true - /// 10.2.2 /// [Parameter] public bool ShowExportExcelButton { get; set; } = true; @@ -93,7 +83,6 @@ public partial class Table /// /// 获得/设置 是否显示 Csv 导出按钮 默认为 false 显示 /// Gets or sets Whether to show Export Csv Button. Default false - /// 10.2.2 /// [Parameter] public bool ShowExportCsvButton { get; set; } @@ -101,7 +90,6 @@ public partial class Table /// /// 获得/设置 是否显示 Pdf 导出按钮 默认为 false 显示 /// Gets or sets Whether to show Export Pdf Button. Default false - /// 10.2.2 /// [Parameter] public bool ShowExportPdfButton { get; set; } @@ -109,7 +97,6 @@ public partial class Table /// /// 获得/设置 导出按钮图标 /// Gets or sets Export Button Icon - /// 10.2.2 /// [Parameter] public string? ExportButtonIcon { get; set; } @@ -117,7 +104,6 @@ public partial class Table /// /// 获得/设置 内置导出 Csv 按钮图标 /// Gets or sets Default Export Csv Button Icon - /// 10.2.2 /// [Parameter] public string? CsvExportIcon { get; set; } @@ -125,7 +111,6 @@ public partial class Table /// /// 获得/设置 内置导出 Excel 按钮图标 /// Gets or sets Default Export Excel Button Icon - /// 10.2.2 /// [Parameter] public string? ExcelExportIcon { get; set; } @@ -133,7 +118,6 @@ public partial class Table /// /// 获得/设置 内置导出 Pdf 按钮图标 /// Gets or sets Default Export Pdf Button Icon - /// 10.2.2 /// [Parameter] public string? PdfExportIcon { get; set; } @@ -141,7 +125,6 @@ public partial class Table /// /// 获得/设置 导出数据前是否弹出 Toast 提示框 默认 true /// Gets or sets Whether to show Toast before export. Default true - /// 10.2.2 /// [Parameter] public bool ShowToastBeforeExport { get; set; } = true; @@ -149,7 +132,6 @@ public partial class Table /// /// 获得/设置 导出数据后是否弹出 Toast 提示框 默认 true /// Gets or sets Whether to show Toast after export. Default true - /// 10.2.2 /// [Parameter] public bool ShowToastAfterExport { get; set; } = true; @@ -157,7 +139,6 @@ public partial class Table /// /// 获得/设置 导出数据前回调方法 默认 null /// Gets or sets Before Export Callback. Default null - /// 10.2.2 /// [Parameter] public Func? BeforeExportCallback { get; set; } @@ -165,7 +146,6 @@ public partial class Table /// /// 获得/设置 导出数据后回调方法 默认 null /// Gets or sets After Export Callback. Default null - /// 10.2.2 /// [Parameter] public Func? AfterExportCallback { get; set; } @@ -173,7 +153,6 @@ public partial class Table /// /// 获得/设置 导出按钮下拉菜单模板 默认 null /// Gets or sets Export Button Dropdown Template. Default null - /// 10.2.2 /// [Parameter] public RenderFragment>? ExportButtonDropdownTemplate { get; set; } @@ -181,7 +160,6 @@ public partial class Table /// /// 获得/设置 内置导出微软 Csv 按钮文本 默认 null 读取资源文件 /// Gets or sets Export Microsoft Csv Button Text. Default null (Read from resource file) - /// 10.2.2 /// [Parameter] public string? ExportCsvDropdownItemText { get; set; } @@ -189,7 +167,6 @@ public partial class Table /// /// 获得/设置 内置导出微软 Excel 按钮文本 默认 null 读取资源文件 /// Gets or sets Export Microsoft Excel Button Text. Default null (Read from resource file) - /// 10.2.2 /// [Parameter] public string? ExportExcelDropdownItemText { get; set; } @@ -197,7 +174,6 @@ public partial class Table /// /// 获得/设置 内置导出 Pdf 按钮文本 默认 null 读取资源文件 /// Gets or sets Export Pdf Button Text. Default null (Read from resource file) - /// 10.2.2 /// [Parameter] public string? ExportPdfDropdownItemText { get; set; } @@ -205,7 +181,6 @@ public partial class Table /// /// 获得/设置 是否显示扩展按钮 默认为 false /// Gets or sets Whether to show Extension Button. Default false - /// 10.2.2 /// [Parameter] public bool ShowExtendButtons { get; set; } @@ -213,7 +188,6 @@ public partial class Table /// /// 获得/设置 是否自动收缩工具栏按钮 默认 true /// Gets or sets Whether to auto collapse toolbar buttons. Default true - /// 10.2.2 /// [Parameter] public bool IsAutoCollapsedToolbarButton { get; set; } = true; @@ -221,7 +195,6 @@ public partial class Table /// /// 获得/设置 工具栏按钮收缩后是否继承原先按钮的颜色样式和中空化 默认 false /// Gets or sets Whether to inherit button style when toolbar buttons collapsed. Default false - /// 10.2.2 /// [Parameter] public bool ShowColorWhenToolbarButtonsCollapsed { get; set; } @@ -229,7 +202,6 @@ public partial class Table /// /// 获得/设置 工具栏移动端按钮图标 /// Gets or sets Toolbar Mobile Button Icon - /// 10.2.2 /// [Parameter] public string? GearIcon { get; set; } @@ -237,7 +209,6 @@ public partial class Table /// /// 获得/设置 扩展按钮是否在前面 默认 false 在行尾 /// Gets or sets Whether extension buttons are in front. Default false (At the end) - /// 10.2.2 /// [Parameter] public bool IsExtendButtonsInRowHeader { get; set; } @@ -245,7 +216,6 @@ public partial class Table /// /// 获得/设置 行内操作列宽度 默认为 130 /// Gets or sets Extension Column Width. Default 130 - /// 10.2.2 /// [Parameter] public int ExtendButtonColumnWidth { get; set; } = 130; @@ -253,7 +223,6 @@ public partial class Table /// /// 获得/设置 行内操作列对齐方式 默认 center /// Gets or sets Extension Column Alignment. Default center - /// 10.2.2 /// [Parameter] public Alignment ExtendButtonColumnAlignment { get; set; } @@ -261,7 +230,6 @@ public partial class Table /// /// 获得/设置 是否显示行内扩展编辑按钮 默认 true 显示 /// Gets or sets Whether to show inline extension edit button. Default true - /// 10.2.2 /// [Parameter] public bool ShowExtendEditButton { get; set; } = true; @@ -269,7 +237,6 @@ public partial class Table /// /// 获得/设置 是否显示行内扩展编辑按钮 默认为 null 未设置时使用 /// Gets or sets Whether to show inline extension edit button. Default null. use value if not set - /// 10.2.2 /// [Parameter] public Func? ShowExtendEditButtonCallback { get; set; } @@ -277,7 +244,6 @@ public partial class Table /// /// 获得/设置 是否禁用行内扩展编辑按钮 默认 false 不禁用 /// Gets or sets Whether to disable inline extension edit button. Default false - /// 10.2.2 /// [Parameter] public bool DisableExtendEditButton { get; set; } @@ -285,7 +251,6 @@ public partial class Table /// /// 获得/设置 是否禁用行内扩展编辑按钮 默认为 null 未设置时使用 /// Gets or sets Whether to disable inline extension edit button. Default null. use value if not set - /// 10.2.2 /// [Parameter] public Func? DisableExtendEditButtonCallback { get; set; } @@ -293,7 +258,6 @@ public partial class Table /// /// 获得/设置 是否禁用行内扩展删除按钮 默认 false 不禁用 /// Gets or sets Whether to disable inline extension delete button. Default false - /// 10.2.2 /// [Parameter] public bool DisableExtendDeleteButton { get; set; } @@ -301,7 +265,6 @@ public partial class Table /// /// 获得/设置 是否禁用行内扩展删除按钮 默认为 null 未设置时使用 /// Gets or sets Whether to disable inline extension delete button. Default null. use value if not set - /// 10.2.2 /// [Parameter] public Func? DisableExtendDeleteButtonCallback { get; set; } @@ -309,7 +272,6 @@ public partial class Table /// /// 获得/设置 是否显示行内扩展编辑按钮 默认为 null 未设置时使用 /// Gets or sets Whether to show inline extension edit button. Default null. use value if not set - /// 10.2.2 /// [Parameter] [Obsolete("已弃用,请使用 ShowExtendEditButtonCallback 参数. Deprecated Use ShowExtendEditButtonCallback instead.")] @@ -323,7 +285,6 @@ public Func? ShowEditButtonCallback /// /// 获得/设置 是否显示行内扩展删除按钮 默认 true 显示 /// Gets or sets Whether to show inline extension delete button. Default true - /// 10.2.2 /// [Parameter] public bool ShowExtendDeleteButton { get; set; } = true; @@ -331,7 +292,6 @@ public Func? ShowEditButtonCallback /// /// 获得/设置 是否显示行内扩展删除按钮 默认为 null 未设置时使用 /// Gets or sets Whether to show inline extension delete button. Default null. use value if not set - /// 10.2.2 /// [Parameter] public Func? ShowExtendDeleteButtonCallback { get; set; } @@ -339,7 +299,6 @@ public Func? ShowEditButtonCallback /// /// 获得/设置 是否显示行内扩展删除按钮 默认为 null 未设置时使用 /// Gets or sets Whether to show inline extension delete button. Default null. use value if not set - /// 10.2.2 /// [Parameter] [Obsolete(" 已过期,请使用 ShowExtendDeleteButtonCallback 参数. Deprecated Use ShowExtendDeleteButtonCallback instead.")] @@ -353,7 +312,6 @@ public Func? ShowDeleteButtonCallback /// /// 获得/设置 是否固定扩展按钮列 默认为 false 不固定 /// Gets or sets Whether to fix Extension Button Column. Default false - /// 10.2.2 /// [Parameter] public bool FixedExtendButtonsColumn { get; set; } @@ -361,7 +319,6 @@ public Func? ShowDeleteButtonCallback /// /// 获得/设置 是否固定多选列 默认为 false 不固定 /// Gets or sets Whether to fix Multiple Select Column. Default false - /// 10.2.2 /// [Parameter] public bool FixedMultipleColumn { get; set; } @@ -369,7 +326,6 @@ public Func? ShowDeleteButtonCallback /// /// 获得/设置 是否固定明细行 Header 列 默认为 false 不固定 /// Gets or sets Whether to fix Detail Row Header Column. Default false - /// 10.2.2 /// [Parameter] public bool FixedDetailRowHeaderColumn { get; set; } @@ -377,7 +333,6 @@ public Func? ShowDeleteButtonCallback /// /// 获得/设置 是否固定 LineNo 列 默认为 false 不固定 /// Gets or sets Whether to fix LineNo Column. Default false - /// 10.2.2 /// [Parameter] public bool FixedLineNoColumn { get; set; } @@ -385,7 +340,6 @@ public Func? ShowDeleteButtonCallback /// /// 获得/设置 是否显示刷新按钮 默认为 true /// Gets or sets Whether to show Refresh Button. Default true - /// 10.2.2 /// [Parameter] public bool ShowRefresh { get; set; } = true; @@ -393,7 +347,6 @@ public Func? ShowDeleteButtonCallback /// /// 获得/设置 是否显示视图按钮 默认为 false 模式下此设置无效 /// Gets or sets Whether to show Card View Button. Default false. Not effective in mode - /// 10.2.2 /// [Parameter] public bool ShowCardView { get; set; } @@ -401,7 +354,6 @@ public Func? ShowDeleteButtonCallback /// /// 获得/设置 是否显示列选择下拉框 默认为 false 不显示 点击下拉框内列控制是否显示后触发 回调方法 /// Gets or sets Whether to show Column List Dropdown. Default false. Trigger when column visible changed - /// 10.2.2 /// [Parameter] public bool ShowColumnList { get; set; } @@ -409,7 +361,6 @@ public Func? ShowDeleteButtonCallback /// /// 获得/设置 列选择下拉框中是否显示控制功能按钮默认为 false 不显示 /// Gets or sets Whether to show control buttons in Column List Dropdown. Default false - /// 10.2.2 /// [Parameter] public bool ShowColumnListControls { get; set; } @@ -417,7 +368,6 @@ public Func? ShowDeleteButtonCallback /// /// 获得/设置 列选择下拉框图标 /// Gets or sets Column List Dropdown Icon - /// 10.2.2 /// [Parameter] public string? ColumnListButtonIcon { get; set; } @@ -425,7 +375,6 @@ public Func? ShowDeleteButtonCallback /// /// 获得/设置 保存、删除失败后是否显示 Toast 提示框 默认为 true 显示 /// Gets or sets Whether to show Toast when save or delete failed. Default true - /// 10.2.2 /// [Parameter] public bool ShowToastAfterSaveOrDeleteModel { get; set; } = true; @@ -435,7 +384,6 @@ public Func? ShowDeleteButtonCallback /// Gets or sets Table Toolbar Button Template /// 表格工具栏左侧按钮模板,模板中内容出现在默认按钮前面 /// Table toolbar left button template, content appears before default buttons - /// 10.2.2 /// [Parameter] public RenderFragment? TableToolbarBeforeTemplate { get; set; } @@ -445,7 +393,6 @@ public Func? ShowDeleteButtonCallback /// Gets or sets Table Toolbar Button Template /// 表格工具栏左侧按钮模板,模板中内容出现在默认按钮后面 /// Table toolbar left button template, content appears after default buttons - /// 10.2.2 /// [Parameter] public RenderFragment? TableToolbarTemplate { get; set; } @@ -455,7 +402,6 @@ public Func? ShowDeleteButtonCallback /// Gets or sets Table Toolbar Button Template /// 表格工具栏右侧按钮模板,模板中内容出现在默认按钮前面 /// Table toolbar right button template, content appears before default buttons - /// 10.2.2 /// [Parameter] public RenderFragment? TableExtensionToolbarBeforeTemplate { get; set; } @@ -465,7 +411,6 @@ public Func? ShowDeleteButtonCallback /// Gets or sets Table Toolbar Button Template /// 表格工具栏右侧按钮模板,模板中内容出现在默认按钮后面 /// Table toolbar right button template, content appears after default buttons - /// 10.2.2 /// [Parameter] public RenderFragment? TableExtensionToolbarTemplate { get; set; } @@ -473,7 +418,6 @@ public Func? ShowDeleteButtonCallback /// /// 获得/设置 新建按钮回调方法 用于补充模型字段值 /// Gets or sets Add Button Callback. Used to populate model field values - /// 10.2.2 /// /// /// 有些场景下新建模型有些属性字段默认值需要更改为默认业务值,或者该属性数据库中设置不可为空,新建模型默认值为空时,可通过此回调进行属性值补充更新 @@ -485,7 +429,6 @@ public Func? ShowDeleteButtonCallback /// /// 获得/设置 编辑按钮回调方法 /// Gets or sets Edit Button Callback - /// 10.2.2 /// [Parameter] public Func? OnEditAsync { get; set; } @@ -493,7 +436,6 @@ public Func? ShowDeleteButtonCallback /// /// 获得/设置 保存按钮异步回调方法 /// Gets or sets Save Button Async Callback - /// 10.2.2 /// [Parameter] public Func>? OnSaveAsync { get; set; } @@ -501,7 +443,6 @@ public Func? ShowDeleteButtonCallback /// /// 获得/设置 删除按钮异步回调方法 /// Gets or sets Delete Button Async Callback - /// 10.2.2 /// [Parameter] public Func, Task>? OnDeleteAsync { get; set; } @@ -509,7 +450,6 @@ public Func? ShowDeleteButtonCallback /// /// 获得/设置 导出按钮异步回调方法 /// Gets or sets Export Button Async Callback - /// 10.2.2 /// [Parameter] public Func, Task>? OnExportAsync { get; set; } @@ -517,7 +457,6 @@ public Func? ShowDeleteButtonCallback /// /// 获得/设置 保存弹窗中的保存按钮显示文本 默认为资源文件中的 保存 /// Gets or sets Save Button Text in Edit Dialog. Default "Save" in resource file - /// 10.2.2 /// [Parameter] public string? EditDialogSaveButtonText { get; set; } @@ -525,7 +464,6 @@ public Func? ShowDeleteButtonCallback /// /// 获得/设置 保存弹窗中的保存按钮图标 默认 null 使用当前主题图标 /// Gets or sets Save Button Icon in Edit Dialog. Default null (Use current theme icon) - /// 10.2.2 /// [Parameter] public string? EditDialogSaveButtonIcon { get; set; } @@ -533,7 +471,6 @@ public Func? ShowDeleteButtonCallback /// /// 获得/设置 保存弹窗中的关闭按钮显示文本 默认为资源文件中的 关闭 /// Gets or sets Close Button Text in Edit Dialog. Default "Close" in resource file - /// 10.2.2 /// [Parameter] public string? EditDialogCloseButtonText { get; set; } @@ -541,7 +478,6 @@ public Func? ShowDeleteButtonCallback /// /// 获得/设置 保存弹窗中的关闭按钮图标 默认 null 使用当前主题图标 /// Gets or sets Close Button Icon in Edit Dialog. Default null (Use current theme icon) - /// 10.2.2 /// [Parameter] public string? EditDialogCloseButtonIcon { get; set; } @@ -549,7 +485,6 @@ public Func? ShowDeleteButtonCallback /// /// 获得/设置 导出数据弹窗 Title 默认为资源文件 导出数据 /// Gets or sets Export Dialog Title. Default "Export Data" in resource file - /// 10.2.2 /// [Parameter] [NotNull] @@ -558,7 +493,6 @@ public Func? ShowDeleteButtonCallback /// /// 获得/设置 导出数据提示内容 默认为资源文件 /// Gets or sets Export Toast Content. Default in resource file - /// 10.2.2 /// [Parameter] [NotNull] @@ -567,7 +501,6 @@ public Func? ShowDeleteButtonCallback /// /// 获得/设置 正在导出数据提示内容 默认为资源文件 /// Gets or sets Export In Progress Toast Content. Default in resource file - /// 10.2.2 /// [Parameter] [NotNull] @@ -576,7 +509,6 @@ public Func? ShowDeleteButtonCallback /// /// 获得/设置 编辑弹窗配置类扩展回调方法 新建/编辑弹窗弹出前回调此方法用于设置弹窗配置信息 /// Gets or sets Edit Dialog Option Callback. Called before showing Add/Edit Dialog to configure options - /// 10.2.2 /// [Parameter] public Action>? BeforeShowEditDialogCallback { get; set; } @@ -608,7 +540,6 @@ public Func? ShowDeleteButtonCallback /// /// 获得/设置 抽屉打开之前回调方法 用于设置 抽屉配置信息 /// Gets or sets Before Show Drawer Callback. Used to configure - /// 10.2.2 /// [Parameter] public Func? OnBeforeShowDrawer { get; set; } @@ -627,7 +558,6 @@ public Func? ShowDeleteButtonCallback /// 获得当前可见列集合 /// Get Visible Columns Collection /// - /// public IEnumerable GetVisibleColumns() { // 不可见列 @@ -796,7 +726,6 @@ private async Task ShowDeleteToastAsync(string title, string content, ToastCateg /// 取消保存方法 /// Cancel Save Method /// - /// protected async Task CancelSave() { if (EditMode == EditMode.EditForm) @@ -823,7 +752,6 @@ protected async Task CancelSave() /// /// /// - /// protected async Task SaveModelAsync(EditContext context, ItemChangedType changedType) { bool valid; @@ -924,7 +852,6 @@ protected async Task SaveAsync(EditContext context, ItemChangedType changedType) /// /// 获得/设置 编辑框的大小 默认值 /// Gets or sets the Edit Dialog Size. Default is - /// 10.2.2 /// [Parameter] public Size EditDialogSize { get; set; } = Size.ExtraExtraLarge; @@ -932,7 +859,6 @@ protected async Task SaveAsync(EditContext context, ItemChangedType changedType) /// /// 获得/设置 编辑框是否可以拖拽 默认 false 不可以拖拽,参数 值为 false 时此参数才生效 /// Gets or sets Whether to drag the edit dialog. Default false. This parameter takes effect only when is false - /// 10.2.2 /// [Parameter] public bool EditDialogIsDraggable { get; set; } @@ -940,7 +866,6 @@ protected async Task SaveAsync(EditContext context, ItemChangedType changedType) /// /// 获得/设置 编辑框 FullScreenSize 参数 默认 none /// Gets or sets Edit Dialog FullScreenSize Parameter. Default none - /// 10.2.2 /// [Parameter] public FullScreenSize EditDialogFullScreenSize { get; set; } @@ -948,7 +873,6 @@ protected async Task SaveAsync(EditContext context, ItemChangedType changedType) /// /// 获得/设置 编辑框是否显示最大化按钮 默认 true 显示,此时 参数无效 /// Gets or sets Whether to show maximize button on edit dialog. Default true. When true, parameter is invalid - /// 10.2.2 /// [Parameter] public bool EditDialogShowMaximizeButton { get; set; } = true; @@ -956,7 +880,6 @@ protected async Task SaveAsync(EditContext context, ItemChangedType changedType) /// /// 获得/设置 未分组编辑项布局位置 默认 false 在尾部 /// Gets or sets Layout position of ungrouped edit items. Default false (At the end) - /// 10.2.2 /// [Parameter] public bool ShowUnsetGroupItemsOnTop { get; set; } @@ -964,7 +887,6 @@ protected async Task SaveAsync(EditContext context, ItemChangedType changedType) /// /// 获得/设置 弹窗 Footer /// Gets or sets Dialog Footer - /// 10.2.2 /// [Parameter] public RenderFragment? EditFooterTemplate { get; set; } @@ -972,7 +894,6 @@ protected async Task SaveAsync(EditContext context, ItemChangedType changedType) /// /// 获得/设置 编辑弹窗关闭前回调方法 /// Gets or sets Before Close Edit Dialog Callback - /// 10.2.2 /// [Parameter] public Func? EditDialogCloseAsync { get; set; } @@ -980,7 +901,6 @@ protected async Task SaveAsync(EditContext context, ItemChangedType changedType) /// /// 获得/设置 编辑弹窗 Dialog, 可避免弹窗中 Table 再次弹窗时隐藏原表格问题 /// Gets or sets Edit Dialog. To avoid hiding the original table when the table popup again in the popup window - /// 10.2.2 /// [Parameter] public Dialog? EditDialog { get; set; } diff --git a/src/BootstrapBlazor/Components/Table/Table.razor.TreeNode.cs b/src/BootstrapBlazor/Components/Table/Table.razor.TreeNode.cs index 825f0b39250..62dae9ad24d 100644 --- a/src/BootstrapBlazor/Components/Table/Table.razor.TreeNode.cs +++ b/src/BootstrapBlazor/Components/Table/Table.razor.TreeNode.cs @@ -10,7 +10,6 @@ public partial class Table /// /// 获得/设置 是否为树形数据 默认为 false /// Gets or sets Whether it is tree data. Default false - /// 10.2.2 /// [Parameter] public bool IsTree { get; set; } @@ -18,7 +17,6 @@ public partial class Table /// /// 获得/设置 生成树状结构回调方法 /// Gets or sets Callback for generating tree structure - /// 10.2.2 /// [Parameter] public Func, Task>>>? TreeNodeConverter { get; set; } @@ -26,7 +24,6 @@ public partial class Table /// /// 获得/设置 树形数据节点展开式回调委托方法 /// Gets or sets Callback delegate for expanding tree data node - /// 10.2.2 /// [Parameter] public Func>>>? OnTreeExpand { get; set; } @@ -49,7 +46,6 @@ public partial class Table /// /// 获得/设置 树形结构小箭头图标 /// Gets or sets Tree Node Icon - /// 10.2.2 /// [Parameter] public string? TreeIcon { get; set; } @@ -57,7 +53,6 @@ public partial class Table /// /// 获得/设置 树形结构展开小箭头图标 /// Gets or sets Tree Node Expand Icon - /// 10.2.2 /// [Parameter] public string? TreeExpandIcon { get; set; } @@ -65,7 +60,6 @@ public partial class Table /// /// 获得/设置 树形结构正在加载图标 /// Gets or sets Tree Node Loading Icon - /// 10.2.2 /// [Parameter] public string? TreeNodeLoadingIcon { get; set; } @@ -73,7 +67,6 @@ public partial class Table /// /// 获得/设置 缩进大小 默认为 16 单位 px /// Gets or sets Indent Size. Default 16 px - /// 10.2.2 /// [Parameter] public int IndentSize { get; set; } = 16; @@ -83,7 +76,6 @@ public partial class Table /// Tree Node Indent /// /// - /// protected string? GetTreeStyleString(int degree) => CssBuilder.Default() .AddClass($"margin-left: {degree * IndentSize}px;") .Build(); @@ -93,7 +85,6 @@ public partial class Table /// Tree Node Expand Arrow /// /// - /// protected string? GetTreeClassString(bool isExpand) => CssBuilder.Default("is-tree") .AddClass(TreeIcon, !IsLoadChildren && !isExpand) .AddClass(TreeExpandIcon, !IsLoadChildren && isExpand) diff --git a/src/BootstrapBlazor/Components/Table/Table.razor.cs b/src/BootstrapBlazor/Components/Table/Table.razor.cs index 6e57e8e0e1c..efbd5db87ee 100644 --- a/src/BootstrapBlazor/Components/Table/Table.razor.cs +++ b/src/BootstrapBlazor/Components/Table/Table.razor.cs @@ -20,7 +20,6 @@ public partial class Table : ITable, IModelEqualityComparer where /// /// 获得/设置 a value indicating 是否 automatic search functionality is enabled. 默认 value is false. /// Gets or sets a value indicating whether automatic search functionality is enabled. Default value is false. - /// 10.2.2 /// [Parameter] public bool AutoSearchOnInput { get; set; } @@ -28,7 +27,6 @@ public partial class Table : ITable, IModelEqualityComparer where /// /// 获得/设置 不支持过滤类型提示信息 默认 null 读取资源文件内容 /// Gets or sets Not Supported Column Filter Message. Default null (Read from resource file) - /// 10.2.2 /// [Parameter] public string? NotSupportedColumnFilterMessage { get; set; } @@ -36,7 +34,6 @@ public partial class Table : ITable, IModelEqualityComparer where /// /// 获得/设置 Loading 模板 /// Gets or sets Loading Template - /// 10.2.2 /// [Parameter] public RenderFragment? LoadingTemplate { get; set; } @@ -44,7 +41,6 @@ public partial class Table : ITable, IModelEqualityComparer where /// /// 获得/设置 列工具栏图标 fa-solid fa-gear /// Gets or sets Column Toolbox Icon fa-solid fa-gear - /// 10.2.2 /// [Parameter] [NotNull] @@ -53,7 +49,6 @@ public partial class Table : ITable, IModelEqualityComparer where /// /// 获得/设置 默认固定列宽度 默认 200 单位 px /// Gets or sets Default Fixed Column Width. Default 200 px - /// 10.2.2 /// [Parameter] public int DefaultFixedColumnWidth { get; set; } = 200; @@ -61,7 +56,6 @@ public partial class Table : ITable, IModelEqualityComparer where /// /// 获得/设置 是否使用按钮组显示行内扩展按钮 默认 true /// Gets or sets Whether to use button group for extend buttons. Default true - /// 10.2.2 /// [Parameter] public bool IsGroupExtendButtons { get; set; } = true; @@ -128,7 +122,6 @@ public partial class Table : ITable, IModelEqualityComparer where /// /// /// - /// protected string? GetRowClassString(TItem item, string? css = null) => CssBuilder.Default(css) .AddClass(SetRowClassFormatter?.Invoke(item)) .AddClass("active", CheckActive(item)) @@ -155,7 +148,6 @@ public partial class Table : ITable, IModelEqualityComparer where /// Get Detail Row CSS Class /// /// - /// protected string? GetDetailRowClassString(TItem item) => CssBuilder.Default("is-detail") .AddClass("show", ExpandRows.Contains(item)) .Build(); @@ -165,7 +157,6 @@ public partial class Table : ITable, IModelEqualityComparer where /// Get Detail Row Icon CSS Class /// /// - /// protected string? GetDetailCaretClassString(TItem item) => CssBuilder.Default("node-icon") .AddClass(TreeIcon, !ExpandRows.Contains(item)) .AddClass(TreeExpandIcon, ExpandRows.Contains(item)) @@ -209,7 +200,6 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 滚动条宽度 默认 null 未设置使用 配置类中的 /// Gets or sets Scroll Width. Default null (Use ) - /// 10.2.2 /// [Parameter] public int? ScrollWidth { get; set; } @@ -217,7 +207,6 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 滚动条 hover 状态下宽度 默认 null 未设置使用 配置类中的 /// Gets or sets Scroll Hover Width. Default null (Use ) - /// 10.2.2 /// [Parameter] public int? ScrollHoverWidth { get; set; } @@ -225,7 +214,6 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 列调整提示前缀文字 默认 null 未设置使用资源文件中文字 /// Gets or sets Column Resize Tooltip Prefix. Default null (Read from resource file) - /// 10.2.2 /// [Parameter] public string? ColumnWidthTooltipPrefix { get; set; } @@ -233,7 +221,6 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 是否显示列宽提示信息,默认 false 显示 /// Gets or sets Whether to show column width tooltip. Default false - /// 10.2.2 /// [Parameter] public bool ShowColumnWidthTooltip { get; set; } @@ -241,7 +228,6 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 行 Key 回调方法 /// Gets or sets 行 Key callback method - /// 10.2.2 /// //[Parameter] //public Func? OnGetRowKey { get; set; } @@ -259,7 +245,6 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 Table 高度 默认为 null /// Gets or sets Table Height. Default null - /// 10.2.2 /// /// /// 开启固定表头功能时生效 @@ -271,7 +256,6 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 固定表头 默认 false /// Gets or sets Fixed Header. Default false - /// 10.2.2 /// [Parameter] public bool IsFixedHeader { get; set; } @@ -279,7 +263,6 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 固定 Footer 默认 false /// Gets or sets Fixed Footer. Default false - /// 10.2.2 /// [Parameter] public bool IsFixedFooter { get; set; } @@ -287,7 +270,6 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 多表头模板 /// Gets or sets Multi Header Template - /// 10.2.2 /// [Parameter] public RenderFragment? MultiHeaderTemplate { get; set; } @@ -295,7 +277,6 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 列拷贝 Tooltip 文字 /// Gets or sets Copy Column Tooltip Text - /// 10.2.2 /// [Parameter] public string? CopyColumnTooltipText { get; set; } @@ -303,7 +284,6 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 列拷贝完毕后 Tooltip 文字 /// Gets or sets Copy Column Copied Tooltip Text - /// 10.2.2 /// [Parameter] public string? CopyColumnCopiedTooltipText { get; set; } @@ -311,7 +291,6 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 CopyColumn Tooltip 默认 true /// Gets or sets CopyColumn Tooltip. Default true - /// 10.2.2 /// [Parameter] public bool ShowCopyColumnTooltip { get; set; } = true; @@ -325,7 +304,6 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 组件工作模式为 Excel 模式 默认 false /// Gets or sets Excel Mode. Default false - /// 10.2.2 /// [Parameter] public bool IsExcel { get; set; } @@ -333,7 +311,6 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 是否启用 Excel 模式下的键盘导航功能 默认 true /// Gets or sets Enable Keyboard Navigation in Excel Mode. Default true - /// 10.2.2 /// [Parameter] public bool EnableKeyboardNavigationCell { get; set; } = true; @@ -341,7 +318,6 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 是否显示明细行 默认为 null 为空时使用 进行逻辑判断 /// Gets or sets Whether to show detail row. Default null (Check ) - /// 10.2.2 /// [Parameter] public bool? IsDetails { get; set; } @@ -349,7 +325,6 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 无数据时是否隐藏表格 Footer 默认为 false 不隐藏 /// Gets or sets Whether to hide footer when no data. Default false - /// 10.2.2 /// [Parameter] public bool IsHideFooterWhenNoData { get; set; } @@ -357,7 +332,6 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 每行显示组件数量 默认为 2 /// Gets or sets Items per row in Edit Dialog. Default 2 - /// 10.2.2 /// [Parameter] public int EditDialogItemsPerRow { get; set; } = 2; @@ -365,7 +339,6 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 设置行内组件布局格式 默认 Inline 布局 /// Gets or sets Row Layout Format. Default Inline - /// 10.2.2 /// [Parameter] public RowType EditDialogRowType { get; set; } = RowType.Inline; @@ -373,7 +346,6 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 设置 Inline 模式下标签对齐方式 默认 None 等效于 Left 左对齐 /// Gets or sets Label Alignment in Inline Mode. Default None (Left) - /// 10.2.2 /// [Parameter] public Alignment EditDialogLabelAlign { get; set; } @@ -381,7 +353,6 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 是否禁用表单内回车自动提交功能 默认 null 未设置 /// Gets or sets Whether to disable auto submit form by enter. Default null - /// 10.2.2 /// [Parameter] public bool? DisableAutoSubmitFormByEnter { get; set; } @@ -389,7 +360,6 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 明细行 Row Header 宽度 默认 24 /// Gets or sets Detail Row Header Width. Default 24 - /// 10.2.2 /// [Parameter] public int DetailColumnWidth { get; set; } @@ -397,7 +367,6 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 显示文字的复选框列宽度 默认 80 /// Gets or sets Show Checkbox Text Column Width. Default 80 - /// 10.2.2 /// [Parameter] public int ShowCheckboxTextColumnWidth { get; set; } @@ -405,7 +374,6 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 复选框宽度 默认 36 /// Gets or sets Checkbox Column Width. Default 36 - /// 10.2.2 /// [Parameter] public int CheckboxColumnWidth { get; set; } @@ -413,7 +381,6 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 紧凑模式下复选框宽度 默认 28 /// Gets or sets Compact Checkbox Column Width. Default 28 - /// 10.2.2 /// [Parameter] public int CheckboxColumnCompactWidth { get; set; } @@ -421,7 +388,6 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 行号列宽度 默认 60 /// Gets or sets Line No Column Width. Default 60 - /// 10.2.2 /// [Parameter] public int LineNoColumnWidth { get; set; } @@ -429,7 +395,6 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 行号内容位置 /// Gets or sets Line No Column Alignment - /// 10.2.2 /// [Parameter] public Alignment LineNoColumnAlignment { get; set; } @@ -437,7 +402,6 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 呈现每行之前的回调 /// Gets or sets Callback before render row - /// 10.2.2 /// [Parameter] public Action? OnBeforeRenderRow { get; set; } @@ -445,7 +409,6 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 Table 组件渲染完毕回调 /// Gets or sets Callback after Table rendered - /// 10.2.2 /// [Parameter] public Func, bool, Task>? OnAfterRenderCallback { get; set; } @@ -453,7 +416,6 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 是否自动将选中行滚动到可视区域 默认 false /// Gets or sets Whether to auto scroll last selected row to view. Default false - /// 10.2.2 /// [Parameter] public bool AutoScrollLastSelectedRowToView { get; set; } @@ -461,7 +423,6 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 选中行滚动到可视区域对齐方式 默认 ScrollToViewAlign.Center /// Gets or sets Alignment for auto scroll selected row. Default ScrollToViewAlign.Center - /// 10.2.2 /// [Parameter] public ScrollToViewAlign AutoScrollVerticalAlign { get; set; } = ScrollToViewAlign.Center; @@ -469,7 +430,6 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 双击单元格回调委托 /// Gets or sets Double Click Cell Callback - /// 10.2.2 /// [Parameter] public Func? OnDoubleClickCellCallback { get; set; } @@ -477,7 +437,6 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 展开收起明细行回调方法 第二个参数 true 时表示展开 false 时表示收起 /// Gets or sets Callback for toggle detail row. Second param true for expand, false for collapse - /// 10.2.2 /// [Parameter] public Func? OnToggleDetailRowCallback { get; set; } @@ -485,7 +444,6 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 工具栏下拉框按钮是否 IsPopover 默认 false /// Gets or sets Whether toolbar dropdown button is Popover. Default false - /// 10.2.2 /// [Parameter] public bool IsPopoverToolbarDropdownButton { get; set; } @@ -493,7 +451,6 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 数据滚动模式 /// Gets or sets Scroll Mode - /// 10.2.2 /// [Parameter] public ScrollMode ScrollMode { get; set; } @@ -501,7 +458,6 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 虚拟滚动行高 默认为 38 /// Gets or sets Virtual Scroll Row Height. Default 38 - /// 10.2.2 /// /// /// 需要设置 值为 Virtual 时生效 @@ -513,7 +469,6 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 the overscan count for virtual scrolling. 默认为 10. /// Gets or sets the overscan count for virtual scrolling. Default is 10. - /// 10.2.2 /// /// Effective when is set to . [Parameter] @@ -526,7 +481,6 @@ private string GetSortTooltip(ITableColumn col) => SortName != col.GetFieldName( /// /// 获得/设置 组件是否采用 Tracking 模式对编辑项进行直接更新 默认 false /// Gets or sets Whether to use Tracking mode. Default false - /// 10.2.2 /// [Parameter] public bool IsTracking { get; set; } @@ -560,7 +514,6 @@ private bool ShowDetails() => IsDetails == null /// /// 获得/设置 明细行手风琴效果 默认 false /// Gets or sets Accordion for detail rows. Default false - /// 10.2.2 /// [Parameter] public bool IsAccordion { get; set; } @@ -568,7 +521,6 @@ private bool ShowDetails() => IsDetails == null /// /// 获得/设置 列最小宽度 默认 null 未设置 可通过 统一设置 /// Gets or sets Column Min Width. Default null - /// 10.2.2 /// [Parameter] public int? ColumnMinWidth { get; set; } @@ -614,7 +566,6 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 明细行模板 /// Gets or sets Detail Row Template - /// 10.2.2 /// [Parameter] public RenderFragment? DetailRowTemplate { get; set; } @@ -622,7 +573,6 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 行模板 /// Gets or sets Row Template - /// 10.2.2 /// [Parameter] public RenderFragment>? RowTemplate { get; set; } @@ -630,7 +580,6 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 行内容模板 /// Gets or sets Row Content Template - /// 10.2.2 /// [Parameter] public RenderFragment>? RowContentTemplate { get; set; } @@ -638,7 +587,6 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 TableHeader 实例 /// Gets or sets TableHeader Instance - /// 10.2.2 /// [Parameter] public RenderFragment? TableColumns { get; set; } @@ -646,7 +594,6 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 TableFooter 实例 /// Gets or sets TableFooter Instance - /// 10.2.2 /// [Parameter] public RenderFragment>? TableFooter { get; set; } @@ -654,7 +601,6 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 Table Footer 模板 /// Gets or sets Table Footer Template - /// 10.2.2 /// [Parameter] public RenderFragment>? FooterTemplate { get; set; } @@ -662,7 +608,6 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 数据集合,适用于无功能仅做数据展示使用,高级功能时请使用 回调委托 /// Gets or sets Items. Use for advanced features - /// 10.2.2 /// [Parameter] public IEnumerable? Items { get; set; } @@ -670,7 +615,6 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 数据集合回调方法 /// Gets or sets Items Changed Callback - /// 10.2.2 /// [Parameter] public EventCallback> ItemsChanged { get; set; } @@ -678,7 +622,6 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 表格组件大小 默认为 Normal 正常模式 /// Gets or sets Table Size. Default Normal - /// 10.2.2 /// [Parameter] public TableSize TableSize { get; set; } @@ -686,7 +629,6 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 无数据时显示模板 默认 null /// Gets or sets Empty Template. Default null - /// 10.2.2 /// [Parameter] public RenderFragment? EmptyTemplate { get; set; } @@ -694,7 +636,6 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 无数据时显示文本 默认取资源文件 英文 NoData 中文 无数据 /// Gets or sets Empty Text. Default null (Read from resource file) - /// 10.2.2 /// [Parameter] public string? EmptyText { get; set; } @@ -702,7 +643,6 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 无数据时显示图片路径 默认 null 未设置 /// Gets or sets Empty Image Path. Default null - /// 10.2.2 /// [Parameter] public string? EmptyImage { get; set; } @@ -710,7 +650,6 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 是否显示无数据空记录 默认 false 不显示 /// Gets or sets Whether to show empty record. Default false - /// 10.2.2 /// [Parameter] public bool ShowEmpty { get; set; } @@ -718,7 +657,6 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 是否显示过滤表头 默认 false 不显示 /// Gets or sets Whether to show filter header. Default false - /// 10.2.2 /// [Parameter] public bool ShowFilterHeader { get; set; } @@ -726,7 +664,6 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 是否显示过滤表头 默认 false 不显示 /// Gets or sets Whether to show multi filter header. Default false - /// 10.2.2 /// [Parameter] public bool ShowMultiFilterHeader { get; set; } @@ -734,7 +671,6 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 是否显示表脚 默认为 false /// Gets or sets Whether to show footer. Default false - /// 10.2.2 /// [Parameter] public bool ShowFooter { get; set; } @@ -742,7 +678,6 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 是否允许列宽度调整 默认 false 固定表头时此属性生效 /// Gets or sets Whether to allow resizing column width. Default false (Effective when fixed header) - /// 10.2.2 /// [Parameter] public bool AllowResizing { get; set; } @@ -750,7 +685,6 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 是否表头允许折行 默认 false 不折行 此设置为 true 时覆盖 参数值 /// Gets or sets Whether header text wrap. Default false - /// 10.2.2 /// [Parameter] public bool HeaderTextWrap { get; set; } @@ -758,7 +692,6 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 是否斑马线样式 默认为 false /// Gets or sets Striped Style. Default false - /// 10.2.2 /// /// /// 此参数在 模式下不生效 @@ -770,7 +703,6 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 首次加载时是否自动查询数据 默认 true 模式下此参数不起作用 /// Gets or sets Whether to auto query on first render. Default true - /// 10.2.2 /// [Parameter] public bool IsAutoQueryFirstRender { get; set; } = true; @@ -778,7 +710,6 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 是否带边框样式 默认为 false /// Gets or sets Bordered Style. Default false - /// 10.2.2 /// [Parameter] public bool IsBordered { get; set; } @@ -786,7 +717,6 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 是否自动刷新表格 默认为 false /// Gets or sets Whether to auto refresh. Default false - /// 10.2.2 /// /// /// 此参数在 模式下不生效 @@ -798,7 +728,6 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 自动刷新时间间隔 默认 2000 毫秒 /// Gets or sets Auto Refresh Interval. Default 2000 ms - /// 10.2.2 /// [Parameter] public int AutoRefreshInterval { get; set; } = 2000; @@ -806,7 +735,6 @@ public async Task ExpandDetailRow(TItem item) /// /// 获取/设置 表格 thead 样式 ,默认为浅色 /// Gets or sets Table Header Style. Default - /// 10.2.2 /// [Parameter] public TableHeaderStyle HeaderStyle { get; set; } = TableHeaderStyle.None; @@ -814,7 +742,6 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 单击行回调委托方法 /// Gets or sets On Click Row Callback - /// 10.2.2 /// [Parameter] public Func? OnClickRowCallback { get; set; } @@ -822,7 +749,6 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 双击行回调委托方法 /// Gets or sets On Double Click Row Callback - /// 10.2.2 /// [Parameter] public Func? OnDoubleClickRowCallback { get; set; } @@ -830,7 +756,6 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 是否显示每行的明细行展开图标 /// Gets or sets Whether to show detail row expand icon - /// 10.2.2 /// /// /// 此参数在 模式下不生效 @@ -842,7 +767,6 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 动态数据上下文实例 /// Gets or sets Dynamic Data Context Instance - /// 10.2.2 /// [Parameter] public IDynamicObjectContext? DynamicContext { get; set; } @@ -850,7 +774,6 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 未设置排序时 tooltip 显示文字 默认点击升序 /// Gets or sets Unset Sort Tooltip Text. Default Click to Asc - /// 10.2.2 /// [Parameter] [NotNull] @@ -859,7 +782,6 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 升序排序时 tooltip 显示文字 默认点击降序 /// Gets or sets Asc Sort Tooltip Text. Default Click to Desc - /// 10.2.2 /// [Parameter] [NotNull] @@ -868,7 +790,6 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 降序排序时 tooltip 显示文字 默认取消排序 /// Gets or sets Desc Sort Tooltip Text. Default Cancel Sort - /// 10.2.2 /// [Parameter] [NotNull] @@ -877,7 +798,6 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 列创建时回调委托方法 /// Gets or sets On Column Creating Callback - /// 10.2.2 /// [Parameter] public Func, Task>? OnColumnCreating { get; set; } @@ -885,7 +805,6 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 自定义列排序规则 默认 null 未设置 使用内部排序机制 1 2 3 0 -3 -2 -1 顺序 /// Gets or sets Custom Column Order Callback. Default null - /// 10.2.2 /// /// /// 如果设置 并且设置 开启客户端持久化后本回调不生效 @@ -897,7 +816,6 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 数据主键标识标签 默认为
用于判断数据主键标签,如果模型未设置主键时可使用 参数自定义判断
数据模型支持联合主键
/// Gets or sets Data Primary Key Attribute. Default - /// 10.2.2 ///
[Parameter] [NotNull] @@ -906,7 +824,6 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 比较数据是否相同回调方法 默认为 null 提供此回调方法时忽略 属性 /// Gets or sets Model Equality Comparer. Default null Ignore if this callback is provided - /// 10.2.2 /// [Parameter] public Func? ModelEqualityComparer { get; set; } @@ -914,7 +831,6 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 获得高级搜索条件回调方法 默认 null /// Gets or sets Get Advanced Search Filter Callback. Default null - /// 10.2.2 /// [Parameter] public Func?>? GetAdvancedSearchFilterCallback { get; set; } @@ -922,7 +838,6 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 客户端表格名称 默认 null 用于客户端列宽与列顺序持久化功能 /// Gets or sets Client Table Name. Default null - /// 10.2.2 /// [Parameter] public string? ClientTableName { get; set; } @@ -930,7 +845,6 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 左对齐显示文本 /// Gets or sets Align Left Text - /// 10.2.2 /// [Parameter] [NotNull] @@ -939,7 +853,6 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置左对齐提示信息文本 /// Gets or sets Align Left Tooltip Text - /// 10.2.2 /// [Parameter] [NotNull] @@ -948,7 +861,6 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 居中对齐显示文本 /// Gets or sets Align Center Text - /// 10.2.2 /// [Parameter] [NotNull] @@ -957,7 +869,6 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 居中对齐提示信息文本 /// Gets or sets Align Center Tooltip Text - /// 10.2.2 /// [Parameter] [NotNull] @@ -966,7 +877,6 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 右对齐显示文本 /// Gets or sets Align Right Text - /// 10.2.2 /// [Parameter] [NotNull] @@ -975,7 +885,6 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 右对齐提示信息文本 /// Gets or sets Align Right Tooltip Text - /// 10.2.2 /// [Parameter] [NotNull] @@ -984,7 +893,6 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 新建按钮是否禁用回调方法 默认 null 未设置 /// Gets or sets Disable Add Button Callback. Default null - /// 10.2.2 /// [Parameter] public Func, bool>? DisableAddButtonCallback { get; set; } @@ -992,7 +900,6 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 删除按钮是否禁用回调方法 默认 null 未设置 /// Gets or sets Disable Delete Button Callback. Default null - /// 10.2.2 /// [Parameter] public Func, bool>? DisableDeleteButtonCallback { get; set; } @@ -1000,7 +907,6 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 编辑按钮是否禁用回调方法 默认 null 未设置 /// Gets or sets Disable Edit Button Callback. Default null - /// 10.2.2 /// [Parameter] public Func, bool>? DisableEditButtonCallback { get; set; } @@ -1008,7 +914,6 @@ public async Task ExpandDetailRow(TItem item) /// /// 获得/设置 翻页时是否自动滚动到顶部 默认 false /// Gets or sets Whether to scroll to top when paging. Default false - /// 10.2.2 /// [Parameter] public bool IsAutoScrollTopWhenClickPage { get; set; } @@ -1502,7 +1407,6 @@ private async Task ProcessFirstRender() /// /// /// - /// protected override async Task InvokeInitAsync() { ScreenSize = BreakPoint.None; @@ -1568,7 +1472,6 @@ public void ResetVisibleColumns(IEnumerable columns) /// 周期性查询方法 /// Periodic Query Method /// - /// protected async Task LoopQueryAsync() { try @@ -1613,7 +1516,6 @@ public List Rows /// /// /// - /// protected RenderFragment GetValue(ITableColumn col, TItem item) => builder => { if (col.Template != null) @@ -1707,7 +1609,6 @@ private static TableCellArgs GetCellArgs(TItem item, ITableColumn col, ref int c /// /// /// - /// protected RenderFragment RenderCell(ITableColumn col, TItem item, ItemChangedType changedType) { return col.CanWrite(typeof(TItem), changedType) ? RenderEditTemplate() : RenderTemplate(); @@ -1728,7 +1629,6 @@ RenderFragment RenderEditTemplate() => col.EditTemplate == null /// /// /// - /// protected RenderFragment RenderExcelCell(ITableColumn col, TItem item, ItemChangedType changedType) { col.PlaceHolder ??= ""; @@ -1899,7 +1799,6 @@ private async Task OnContextMenu(MouseEventArgs e, TItem item) /// /// 获得/设置 是否允许拖放标题栏更改栏位顺序,默认为 false /// Gets or sets Whether to allow dragging column header to change column order. Default false - /// 10.2.2 /// [Parameter] public bool AllowDragColumn { get; set; } @@ -1909,7 +1808,6 @@ private async Task OnContextMenu(MouseEventArgs e, TItem item) /// /// 获得/设置 拖动列结束回调方法,默认 null 可存储数据库用于服务器端保持列顺序 /// Gets or sets Drag Column End Callback. Default null - /// 10.2.2 /// [Parameter] public Func, Task>? OnDragColumnEndAsync { get; set; } @@ -1917,7 +1815,6 @@ private async Task OnContextMenu(MouseEventArgs e, TItem item) /// /// 获得/设置 设置列宽回调方法 /// Gets or sets Resize Column Callback - /// 10.2.2 /// [Parameter] public Func? OnResizeColumnAsync { get; set; } @@ -1925,7 +1822,6 @@ private async Task OnContextMenu(MouseEventArgs e, TItem item) /// /// 获得/设置 自动调整列宽回调方法 /// Gets or sets Auto Fit Column Width Callback - /// 10.2.2 /// [Parameter] [Obsolete("已弃用,请使用 OnAutoFitColumnWidthCallback 替代; Deprecated, please use OnAutoFitColumnWidthCallback instead")] @@ -1935,7 +1831,6 @@ private async Task OnContextMenu(MouseEventArgs e, TItem item) /// /// 获得/设置 自动调整列宽回调方法 /// Gets or sets Auto Fit Column Width Callback - /// 10.2.2 /// [Parameter] public Func>? OnAutoFitColumnWidthCallback { get; set; } @@ -1943,7 +1838,6 @@ private async Task OnContextMenu(MouseEventArgs e, TItem item) /// /// 获得/设置 列宽自适应时是否包含表头 默认 false /// Gets or sets Whether to include header when auto fit column width. Default false - /// 10.2.2 /// [Parameter] public bool FitColumnWidthIncludeHeader { get; set; } @@ -1963,7 +1857,6 @@ public async Task FitAllColumnWidth() /// /// /// - /// [JSInvokable] public async Task DragColumnCallback(int originIndex, int currentIndex) { @@ -1994,7 +1887,6 @@ public async Task DragColumnCallback(int originIndex, int currentIndex) /// /// /// - /// [JSInvokable] public async Task ResizeColumnCallback(int index, float width) { @@ -2011,7 +1903,6 @@ public async Task ResizeColumnCallback(int index, float width) /// /// 当前列名称当前列name /// 当前列宽当前列宽 - /// [JSInvokable] public async Task AutoFitColumnWidthCallback(string fieldName, float calcWidth) { diff --git a/src/BootstrapBlazor/Components/Table/TableAdvancedSortDialog.razor.cs b/src/BootstrapBlazor/Components/Table/TableAdvancedSortDialog.razor.cs index 56e92a7dda7..9c0d891d69d 100644 --- a/src/BootstrapBlazor/Components/Table/TableAdvancedSortDialog.razor.cs +++ b/src/BootstrapBlazor/Components/Table/TableAdvancedSortDialog.razor.cs @@ -16,7 +16,6 @@ public partial class TableAdvancedSortDialog : ComponentBase, IResultDialog /// /// 获得/设置 排序列列表实例值 /// Gets or sets sort column list instance value - /// 10.2.2 /// [Parameter] [NotNull] @@ -28,7 +27,6 @@ public partial class TableAdvancedSortDialog : ComponentBase, IResultDialog /// /// 获得/设置 排序列列表回调方法,支持双向绑定 /// Gets or sets sort column list callback method, supports two-way binding - /// 10.2.2 /// [Parameter] public EventCallback> ValueChanged { get; set; } @@ -36,7 +34,6 @@ public partial class TableAdvancedSortDialog : ComponentBase, IResultDialog /// /// 获得/设置 可排序列的列表 /// Gets or sets the list of sortable columns - /// 10.2.2 /// [Parameter] public IEnumerable? Items { get; set; } @@ -44,7 +41,6 @@ public partial class TableAdvancedSortDialog : ComponentBase, IResultDialog /// /// 获得/设置 增加排序条件图标 /// Gets or sets add sort condition icon - /// 10.2.2 /// [Parameter] public string? PlusIcon { get; set; } @@ -52,7 +48,6 @@ public partial class TableAdvancedSortDialog : ComponentBase, IResultDialog /// /// 获得/设置 移除排序条件图标 /// Gets or sets remove sort condition icon - /// 10.2.2 /// [Parameter] public string? RemoveIcon { get; set; } @@ -60,7 +55,6 @@ public partial class TableAdvancedSortDialog : ComponentBase, IResultDialog /// /// 获得/设置 减少排序条件图标 /// Gets or sets decrease sort condition icon - /// 10.2.2 /// [Parameter] public string? MinusIcon { get; set; } diff --git a/src/BootstrapBlazor/Components/Table/TableCellButton.cs b/src/BootstrapBlazor/Components/Table/TableCellButton.cs index 58aeb3724f7..9f1bb4a75f9 100644 --- a/src/BootstrapBlazor/Components/Table/TableCellButton.cs +++ b/src/BootstrapBlazor/Components/Table/TableCellButton.cs @@ -15,7 +15,6 @@ public class TableCellButton : ButtonBase, ITableCellButton /// /// 获得/设置 Table 扩展按钮集合实例 /// Gets or sets Table extension buttons collection instance - /// 10.2.2 /// [CascadingParameter] protected TableExtensionButton? Buttons { get; set; } @@ -35,7 +34,6 @@ public class TableCellButton : ButtonBase, ITableCellButton /// /// 获得/设置 是否显示,默认为 true 显示 /// Gets or sets whether to display. Default is true. - /// 10.2.2 /// /// 一般是通过 context 进行业务判断是否需要显示功能按钮 [Parameter] diff --git a/src/BootstrapBlazor/Components/Table/TableCellComponent.cs b/src/BootstrapBlazor/Components/Table/TableCellComponent.cs index e46df225595..b3c52c4b8a3 100644 --- a/src/BootstrapBlazor/Components/Table/TableCellComponent.cs +++ b/src/BootstrapBlazor/Components/Table/TableCellComponent.cs @@ -14,7 +14,6 @@ public class TableCellComponent : ComponentBase, ITableCellComponent, IDisposabl /// /// 获得/设置 子组件 /// Gets or sets child component - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } @@ -22,7 +21,6 @@ public class TableCellComponent : ComponentBase, ITableCellComponent, IDisposabl /// /// 获得/设置 Table 扩展按钮集合实例 /// Gets or sets Table extension buttons collection instance - /// 10.2.2 /// [CascadingParameter] protected TableExtensionButton? Buttons { get; set; } @@ -30,7 +28,6 @@ public class TableCellComponent : ComponentBase, ITableCellComponent, IDisposabl /// /// 获得/设置 是否显示,默认为 true 显示 /// Gets or sets whether to display. Default is true. - /// 10.2.2 /// /// 一般是通过 context 进行业务判断是否需要显示功能按钮 [Parameter] diff --git a/src/BootstrapBlazor/Components/Table/TableCellPopConfirmButton.cs b/src/BootstrapBlazor/Components/Table/TableCellPopConfirmButton.cs index db7112d176d..c9cadfc0885 100644 --- a/src/BootstrapBlazor/Components/Table/TableCellPopConfirmButton.cs +++ b/src/BootstrapBlazor/Components/Table/TableCellPopConfirmButton.cs @@ -17,7 +17,6 @@ public class TableCellPopConfirmButton : PopConfirmButtonBase, ITableCellButton /// /// 获得/设置 Table 扩展按钮集合实例 /// Gets or sets Table extension buttons collection instance - /// 10.2.2 /// [CascadingParameter] protected TableExtensionButton? Buttons { get; set; } @@ -41,7 +40,6 @@ public class TableCellPopConfirmButton : PopConfirmButtonBase, ITableCellButton /// /// 获得/设置 是否显示本按钮,默认为 true 显示 /// Gets or sets whether to display this button. Default is true. - /// 10.2.2 /// /// 一般是通过 context 进行业务判断是否需要显示功能按钮 [Parameter] diff --git a/src/BootstrapBlazor/Components/Table/TableColumn.cs b/src/BootstrapBlazor/Components/Table/TableColumn.cs index 2b252da180e..7d0fd5b226b 100644 --- a/src/BootstrapBlazor/Components/Table/TableColumn.cs +++ b/src/BootstrapBlazor/Components/Table/TableColumn.cs @@ -42,7 +42,6 @@ public class TableColumn : BootstrapComponentBase, ITableColumn /// /// 获得/设置 数据绑定字段值 /// Gets or sets data binding field value - /// 10.2.2 /// [Parameter] [MaybeNull] @@ -51,7 +50,6 @@ public class TableColumn : BootstrapComponentBase, ITableColumn /// /// 获得/设置 ValueExpression 表达式 /// Gets or sets ValueExpression expression - /// 10.2.2 /// [Parameter] public Expression>? FieldExpression { get; set; } diff --git a/src/BootstrapBlazor/Components/Table/TableExportContext.cs b/src/BootstrapBlazor/Components/Table/TableExportContext.cs index d3197855e24..5412d670888 100644 --- a/src/BootstrapBlazor/Components/Table/TableExportContext.cs +++ b/src/BootstrapBlazor/Components/Table/TableExportContext.cs @@ -40,7 +40,6 @@ internal class TableExportContext : ITableExportContext /// /// /// - /// public QueryPageOptions BuildQueryPageOptions() => OptionsBuilder(); private Func OptionsBuilder { get; } diff --git a/src/BootstrapBlazor/Components/Table/TableExtensionButton.razor.cs b/src/BootstrapBlazor/Components/Table/TableExtensionButton.razor.cs index 1febcc36e62..6bbf3fc4972 100644 --- a/src/BootstrapBlazor/Components/Table/TableExtensionButton.razor.cs +++ b/src/BootstrapBlazor/Components/Table/TableExtensionButton.razor.cs @@ -17,7 +17,6 @@ public partial class TableExtensionButton /// /// 获得/设置 子组件内容 /// Gets or sets the content to be rendered inside this - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } @@ -25,7 +24,6 @@ public partial class TableExtensionButton /// /// 获得/设置 扩展按钮点击回调方法 /// Gets or sets extension button click callback method - /// 10.2.2 /// [Parameter] public Func? OnClickButton { get; set; } diff --git a/src/BootstrapBlazor/Components/Table/TableFooterCell.razor.cs b/src/BootstrapBlazor/Components/Table/TableFooterCell.razor.cs index f1806b77f19..b2e74de7f49 100644 --- a/src/BootstrapBlazor/Components/Table/TableFooterCell.razor.cs +++ b/src/BootstrapBlazor/Components/Table/TableFooterCell.razor.cs @@ -24,7 +24,6 @@ public partial class TableFooterCell /// /// 获得/设置 单元格内容 /// Gets or sets cell content - /// 10.2.2 /// [Parameter] public string? Text { get; set; } @@ -32,7 +31,6 @@ public partial class TableFooterCell /// /// 获得/设置 文字对齐方式,默认为 Alignment.None /// Gets or sets text alignment. Default is Alignment.None. - /// 10.2.2 /// [Parameter] public Alignment Align { get; set; } @@ -40,7 +38,6 @@ public partial class TableFooterCell /// /// 获得/设置 格式化字符串,如时间类型设置 yyyy-MM-dd /// Gets or sets format string, such as yyyy-MM-dd for date type - /// 10.2.2 /// [Parameter] public string? FormatString { get; set; } @@ -48,7 +45,6 @@ public partial class TableFooterCell /// /// 获得/设置 列格式化回调委托 /// Gets or sets column format callback delegate - /// 10.2.2 /// [Parameter] public Func>? Formatter { get; set; } @@ -56,7 +52,6 @@ public partial class TableFooterCell /// /// 获得/设置 聚合方法枚举,默认 Sum /// Gets or sets aggregate method enumeration. Default is Sum. - /// 10.2.2 /// [Parameter] public AggregateType Aggregate { get; set; } @@ -64,7 +59,6 @@ public partial class TableFooterCell /// /// 获得/设置 自定义统计列回调方法 /// Gets or sets custom aggregate column callback method - /// 10.2.2 /// [Parameter] public Func? CustomerAggregateCallback { get; set; } @@ -72,7 +66,6 @@ public partial class TableFooterCell /// /// 获得/设置 统计列名称,默认为 null 不参与统计仅作为显示单元格 /// Gets or sets aggregate column field name. Default is null (not included in statistics, just for display). - /// 10.2.2 /// [Parameter] public string? Field { get; set; } @@ -80,7 +73,6 @@ public partial class TableFooterCell /// /// 获得/设置 colspan 值,默认 null 自己手动设置值 /// Gets or sets colspan value. Default is null (set manually). - /// 10.2.2 /// [Parameter] public Func? ColspanCallback { get; set; } @@ -97,7 +89,6 @@ public partial class TableFooterCell /// /// 获得/设置 显示节点阈值,默认值 BreakPoint.None 未设置 /// Gets or sets display breakpoint threshold. Default is BreakPoint.None (not set). - /// 10.2.2 /// [Parameter] public BreakPoint ShownWithBreakPoint { get; set; } diff --git a/src/BootstrapBlazor/Components/Table/TableFormatContent.cs b/src/BootstrapBlazor/Components/Table/TableFormatContent.cs index 68daf0c7df8..4cbbe33ff79 100644 --- a/src/BootstrapBlazor/Components/Table/TableFormatContent.cs +++ b/src/BootstrapBlazor/Components/Table/TableFormatContent.cs @@ -16,7 +16,6 @@ internal class TableFormatContent : ComponentBase /// /// 获得/设置 格式化方法 /// Gets or sets formatter method - /// 10.2.2 /// [Parameter] [NotNull] @@ -26,7 +25,6 @@ internal class TableFormatContent : ComponentBase /// /// 获得/设置 当前显示数据项 /// Gets or sets current display data item - /// 10.2.2 /// [Parameter] [NotNull] diff --git a/src/BootstrapBlazor/Components/Table/TableToolbar.razor.cs b/src/BootstrapBlazor/Components/Table/TableToolbar.razor.cs index a7eddcff860..a5c1bd9eafb 100644 --- a/src/BootstrapBlazor/Components/Table/TableToolbar.razor.cs +++ b/src/BootstrapBlazor/Components/Table/TableToolbar.razor.cs @@ -23,7 +23,6 @@ public partial class TableToolbar : ComponentBase /// /// 获得/设置 子组件内容 /// Gets or sets the content to be rendered inside this - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } @@ -31,7 +30,6 @@ public partial class TableToolbar : ComponentBase /// /// 获得/设置 按钮点击后回调委托 /// Gets or sets button click callback delegate - /// 10.2.2 /// [Parameter] [NotNull] @@ -40,7 +38,6 @@ public partial class TableToolbar : ComponentBase /// /// 获得/设置 是否自动收缩工具栏按钮,默认 true /// Gets or sets whether to auto collapse toolbar buttons. Default is true. - /// 10.2.2 /// [Parameter] public bool IsAutoCollapsedToolbarButton { get; set; } = true; @@ -48,7 +45,6 @@ public partial class TableToolbar : ComponentBase /// /// 获得/设置 工具栏按钮收缩后是否继承原先按钮的颜色样式,默认 false /// Gets or sets whether to inherit button color style when toolbar buttons collapsed. Default is false. - /// 10.2.2 /// [Parameter] public bool ShowColorWhenToolbarButtonsCollapsed { get; set; } @@ -56,7 +52,6 @@ public partial class TableToolbar : ComponentBase /// /// 获得/设置 移动端按钮图标 /// Gets or sets mobile button icon - /// 10.2.2 /// [Parameter] public string? GearIcon { get; set; } diff --git a/src/BootstrapBlazor/Components/Table/TableToolbarButton.cs b/src/BootstrapBlazor/Components/Table/TableToolbarButton.cs index 809648d260c..72a7e80f064 100644 --- a/src/BootstrapBlazor/Components/Table/TableToolbarButton.cs +++ b/src/BootstrapBlazor/Components/Table/TableToolbarButton.cs @@ -15,7 +15,6 @@ public class TableToolbarButton : ButtonBase, ITableToolbarButton /// /// 获得/设置 按钮点击后回调委托 /// Gets or sets button click callback delegate - /// 10.2.2 /// [Parameter] public Func, Task>? OnClickCallback { get; set; } @@ -41,7 +40,6 @@ public class TableToolbarButton : ButtonBase, ITableToolbarButton /// /// 获得/设置 Table Toolbar 实例 /// Gets or sets Table Toolbar instance - /// 10.2.2 /// [CascadingParameter] protected TableToolbar? Toolbar { get; set; } diff --git a/src/BootstrapBlazor/Components/Table/TableToolbarComponent.cs b/src/BootstrapBlazor/Components/Table/TableToolbarComponent.cs index b13d740ee22..8c97df00570 100644 --- a/src/BootstrapBlazor/Components/Table/TableToolbarComponent.cs +++ b/src/BootstrapBlazor/Components/Table/TableToolbarComponent.cs @@ -20,7 +20,6 @@ public class TableToolbarComponent : ComponentBase, IToolbarComponent, ID /// /// 获得/设置 子组件 /// Gets or sets child component - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } @@ -28,7 +27,6 @@ public class TableToolbarComponent : ComponentBase, IToolbarComponent, ID /// /// 获得/设置 Table Toolbar 实例 /// Gets or sets Table Toolbar instance - /// 10.2.2 /// [CascadingParameter] protected TableToolbar? Toolbar { get; set; } diff --git a/src/BootstrapBlazor/Components/Table/TableToolbarPopConfirmButton.cs b/src/BootstrapBlazor/Components/Table/TableToolbarPopConfirmButton.cs index bc95bb2ed32..879be6d5334 100644 --- a/src/BootstrapBlazor/Components/Table/TableToolbarPopConfirmButton.cs +++ b/src/BootstrapBlazor/Components/Table/TableToolbarPopConfirmButton.cs @@ -17,7 +17,6 @@ public class TableToolbarPopConfirmButton : PopConfirmButtonBase, ITableT /// /// 获得/设置 按钮点击后回调委托 /// Gets or sets button click callback delegate - /// 10.2.2 /// [Parameter] public Func, Task>? OnConfirmCallback { get; set; } @@ -25,7 +24,6 @@ public class TableToolbarPopConfirmButton : PopConfirmButtonBase, ITableT /// /// 获得/设置 是否显示,默认为 true 显示 /// Gets or sets whether to display. Default is true. - /// 10.2.2 /// [Parameter] public bool IsShow { get; set; } = true; @@ -33,7 +31,6 @@ public class TableToolbarPopConfirmButton : PopConfirmButtonBase, ITableT /// /// 获得/设置 选中一行时启用按钮,默认为 false /// Gets or sets whether to enable button when one row is selected. Default is false. - /// 10.2.2 /// [Parameter] public bool IsEnableWhenSelectedOneRow { get; set; } @@ -41,7 +38,6 @@ public class TableToolbarPopConfirmButton : PopConfirmButtonBase, ITableT /// /// 获得/设置 按钮是否被禁用的回调方法 /// Gets or sets the callback method for button disabled state - /// 10.2.2 /// [Parameter] public Func, bool>? IsDisabledCallback { get; set; } diff --git a/src/BootstrapBlazor/Components/Textarea/Textarea.razor.cs b/src/BootstrapBlazor/Components/Textarea/Textarea.razor.cs index 695e9b39af2..5a5c6239924 100644 --- a/src/BootstrapBlazor/Components/Textarea/Textarea.razor.cs +++ b/src/BootstrapBlazor/Components/Textarea/Textarea.razor.cs @@ -15,27 +15,23 @@ public partial class Textarea /// 滚动到顶部方法 /// Scrolls to the top /// - /// public Task ScrollToTop() => InvokeVoidAsync("execute", Id, "toTop"); /// /// 滚动到指定位置方法 /// Scrolls to a specific value /// - /// public Task ScrollTo(int value) => InvokeVoidAsync("execute", Id, "to", value); /// /// 滚动到底部方法 /// Scrolls to the bottom /// - /// public Task ScrollToBottom() => InvokeVoidAsync("execute", Id, "toBottom"); /// /// 获得/设置 是否自动滚动,默认为 false /// Gets or sets whether auto-scroll is enabled. Default is false. - /// 10.2.2 /// [Parameter] public bool IsAutoScroll { get; set; } @@ -43,7 +39,6 @@ public partial class Textarea /// /// 获得/设置 是否 Shift + Enter 替代默认 Enter 键行为,默认为 false /// Gets or sets whether Shift + Enter replaces the default Enter key behavior. Default is false. - /// 10.2.2 /// [Parameter] public bool UseShiftEnter { get; set; } diff --git a/src/BootstrapBlazor/Components/ThemeProvider/ThemeProvider.razor.cs b/src/BootstrapBlazor/Components/ThemeProvider/ThemeProvider.razor.cs index 4d66fb799c3..20ee4ee5ae6 100644 --- a/src/BootstrapBlazor/Components/ThemeProvider/ThemeProvider.razor.cs +++ b/src/BootstrapBlazor/Components/ThemeProvider/ThemeProvider.razor.cs @@ -16,7 +16,6 @@ public partial class ThemeProvider /// /// 获得/设置 自动模式图标,默认 null /// Gets or sets the auto mode icon. Default is null. - /// 10.2.2 /// [Parameter] public string? AutoModeIcon { get; set; } @@ -24,7 +23,6 @@ public partial class ThemeProvider /// /// 获得/设置 自动模式文本,默认 null 未设置使用本地化资源 /// Gets or sets the auto mode text. Default is null (uses localized resource). - /// 10.2.2 /// [Parameter] public string? AutoModeText { get; set; } @@ -32,7 +30,6 @@ public partial class ThemeProvider /// /// 获得/设置 暗黑模式图标,默认 null /// Gets or sets the dark mode icon. Default is null. - /// 10.2.2 /// [Parameter] public string? DarkModeIcon { get; set; } @@ -40,7 +37,6 @@ public partial class ThemeProvider /// /// 获得/设置 暗黑模式文本,默认 null 未设置使用本地化资源 /// Gets or sets the dark mode text. Default is null (uses localized resource). - /// 10.2.2 /// [Parameter] public string? DarkModeText { get; set; } @@ -48,7 +44,6 @@ public partial class ThemeProvider /// /// 获得/设置 明亮模式图标,默认 null /// Gets or sets the light mode icon. Default is null. - /// 10.2.2 /// [Parameter] public string? LightModeIcon { get; set; } @@ -56,7 +51,6 @@ public partial class ThemeProvider /// /// 获得/设置 明亮模式文本,默认 null 未设置使用本地化资源 /// Gets or sets the light mode text. Default is null (uses localized resource). - /// 10.2.2 /// [Parameter] public string? LightModeText { get; set; } @@ -64,7 +58,6 @@ public partial class ThemeProvider /// /// 获得/设置 当前选中模式图标,默认 null /// Gets or sets the active mode icon. Default is null. - /// 10.2.2 /// [Parameter] public string? ActiveIcon { get; set; } @@ -72,7 +65,6 @@ public partial class ThemeProvider /// /// 获得/设置 下拉框是否显示阴影效果,默认 true /// Gets or sets whether the dropdown shows shadow. Default is true. - /// 10.2.2 /// [Parameter] public bool ShowShadow { get; set; } = true; @@ -80,7 +72,6 @@ public partial class ThemeProvider /// /// 获得/设置 下拉框对齐方式,默认 Right /// Gets or sets the dropdown alignment. Default is Right. - /// 10.2.2 /// [Parameter] public Alignment Alignment { get; set; } = Alignment.Right; @@ -88,7 +79,6 @@ public partial class ThemeProvider /// /// 获得/设置 主题切换回调方法 /// Gets or sets the theme changed callback method - /// 10.2.2 /// [Parameter] public Func? OnThemeChangedAsync { get; set; } @@ -96,7 +86,6 @@ public partial class ThemeProvider /// /// 获得/设置 主题类型 /// Gets or sets the theme type - /// 10.2.2 /// [Parameter] public ThemeValue ThemeValue { get; set; } = ThemeValue.UseLocalStorage; @@ -104,7 +93,6 @@ public partial class ThemeProvider /// /// 获得/设置 主题类型改变回调方法 /// Gets or sets the theme type changed callback method - /// 10.2.2 /// [Parameter] public EventCallback ThemeValueChanged { get; set; } diff --git a/src/BootstrapBlazor/Components/TimePicker/TimePicker.razor.cs b/src/BootstrapBlazor/Components/TimePicker/TimePicker.razor.cs index 6d9c0c1555e..333658e748e 100644 --- a/src/BootstrapBlazor/Components/TimePicker/TimePicker.razor.cs +++ b/src/BootstrapBlazor/Components/TimePicker/TimePicker.razor.cs @@ -16,7 +16,6 @@ public partial class TimePicker /// /// 获得/设置 取消按钮显示文字 /// Gets or sets the cancel button display text - /// 10.2.2 /// [Parameter] [NotNull] @@ -25,7 +24,6 @@ public partial class TimePicker /// /// 获得/设置 确定按钮显示文字 /// Gets or sets the confirm button display text - /// 10.2.2 /// [Parameter] [NotNull] @@ -34,7 +32,6 @@ public partial class TimePicker /// /// 获得/设置 是否显示秒,默认为 true /// Gets or sets whether to display seconds. Default is true. - /// 10.2.2 /// [Parameter] [NotNull] @@ -43,7 +40,6 @@ public partial class TimePicker /// /// 获得/设置 取消按钮回调委托 /// Gets or sets the cancel button callback delegate - /// 10.2.2 /// [Parameter] public Func? OnClose { get; set; } @@ -51,7 +47,6 @@ public partial class TimePicker /// /// 获得/设置 确认按钮回调委托 /// Gets or sets the confirm button callback delegate - /// 10.2.2 /// [Parameter] public Func? OnConfirm { get; set; } diff --git a/src/BootstrapBlazor/Components/TimePicker/TimePickerCell.razor.cs b/src/BootstrapBlazor/Components/TimePicker/TimePickerCell.razor.cs index 1641bac0748..48bc36750fe 100644 --- a/src/BootstrapBlazor/Components/TimePicker/TimePickerCell.razor.cs +++ b/src/BootstrapBlazor/Components/TimePicker/TimePickerCell.razor.cs @@ -59,7 +59,6 @@ public partial class TimePickerCell /// /// 获得/设置 时间选择框视图模式 /// Gets or sets the time picker view mode - /// 10.2.2 /// [Parameter] public TimePickerCellViewMode ViewMode { get; set; } @@ -67,7 +66,6 @@ public partial class TimePickerCell /// /// 获得/设置 组件值 /// Gets or sets the component value - /// 10.2.2 /// [Parameter] public TimeSpan Value { get; set; } @@ -75,7 +73,6 @@ public partial class TimePickerCell /// /// 获得/设置 组件值变化时的委托方法 /// Gets or sets the delegate method when the component value changes - /// 10.2.2 /// [Parameter] public EventCallback ValueChanged { get; set; } @@ -83,7 +80,6 @@ public partial class TimePickerCell /// /// 获得/设置 向上箭头图标 /// Gets or sets the up arrow icon - /// 10.2.2 /// [Parameter] public string? UpIcon { get; set; } @@ -91,7 +87,6 @@ public partial class TimePickerCell /// /// 获得/设置 向下箭头图标 /// Gets or sets the down arrow icon - /// 10.2.2 /// [Parameter] public string? DownIcon { get; set; } @@ -119,7 +114,6 @@ protected override void OnParametersSet() /// /// 处理向上翻页按钮的单击事件 /// Handles the up button click event - /// 10.2.2 /// [JSInvokable] public async Task OnClickUp() @@ -144,7 +138,6 @@ public async Task OnClickUp() /// /// 处理单元格高度回调方法 /// Handles the cell height callback method - /// 10.2.2 /// [JSInvokable] public void OnHeightCallback(double height) => _height = height; @@ -152,7 +145,6 @@ public async Task OnClickUp() /// /// 处理向下翻页按钮的单击事件 /// Handles the down button click event - /// 10.2.2 /// [JSInvokable] public async Task OnClickDown() diff --git a/src/BootstrapBlazor/Components/Timeline/Timeline.razor.cs b/src/BootstrapBlazor/Components/Timeline/Timeline.razor.cs index d16d12d769b..d8e31250ae3 100644 --- a/src/BootstrapBlazor/Components/Timeline/Timeline.razor.cs +++ b/src/BootstrapBlazor/Components/Timeline/Timeline.razor.cs @@ -24,7 +24,6 @@ public partial class Timeline /// /// 获得/设置 绑定数据集合 /// Gets or sets the bound data collection - /// 10.2.2 /// [Parameter] [NotNull] @@ -33,7 +32,6 @@ public partial class Timeline /// /// 获得/设置 是否反转 /// Gets or sets whether to reverse - /// 10.2.2 /// [Parameter] public bool IsReverse { get; set; } @@ -41,7 +39,6 @@ public partial class Timeline /// /// 获得/设置 是否左右交替出现,默认 false /// Gets or sets whether items alternate left and right. Default is false. - /// 10.2.2 /// [Parameter] public bool IsAlternate { get; set; } @@ -49,7 +46,6 @@ public partial class Timeline /// /// 获得/设置 内容是否出现在时间线左侧,默认为 false /// Gets or sets whether content appears on the left side of the timeline. Default is false. - /// 10.2.2 /// [Parameter] public bool IsLeft { get; set; } diff --git a/src/BootstrapBlazor/Components/Timeline/TimelineItem.cs b/src/BootstrapBlazor/Components/Timeline/TimelineItem.cs index fdd58fc4da0..f16e006b1a1 100644 --- a/src/BootstrapBlazor/Components/Timeline/TimelineItem.cs +++ b/src/BootstrapBlazor/Components/Timeline/TimelineItem.cs @@ -60,7 +60,6 @@ public class TimelineItem /// 获得 图标样式 /// Gets the icon style /// - /// internal string? ToIconClassString() => CssBuilder.Default("timeline-item-icon") .AddClass(Icon, !string.IsNullOrEmpty(Icon)) .AddClass($"text-{Color.ToDescriptionString()}", Color != Color.None) diff --git a/src/BootstrapBlazor/Components/Timer/Timer.razor.cs b/src/BootstrapBlazor/Components/Timer/Timer.razor.cs index 0a7955fb31a..12bd558046a 100644 --- a/src/BootstrapBlazor/Components/Timer/Timer.razor.cs +++ b/src/BootstrapBlazor/Components/Timer/Timer.razor.cs @@ -44,7 +44,6 @@ public partial class Timer /// /// 获得/设置 当前值 /// Gets or sets the current value - /// 10.2.2 /// [Parameter] public TimeSpan Value { get; set; } @@ -52,7 +51,6 @@ public partial class Timer /// /// 获得/设置 组件宽度 /// Gets or sets the component width - /// 10.2.2 /// [Parameter] public override int Width { get; set; } = 300; @@ -60,7 +58,6 @@ public partial class Timer /// /// 获得/设置 倒计时结束时的回调委托 /// Gets or sets the callback delegate when the countdown ends - /// 10.2.2 /// [Parameter] public Func? OnTimeout { get; set; } @@ -68,7 +65,6 @@ public partial class Timer /// /// 获得/设置 取消时的回调委托 /// Gets or sets the callback delegate when cancelled - /// 10.2.2 /// [Parameter] public Func? OnCancel { get; set; } @@ -76,7 +72,6 @@ public partial class Timer /// /// 获得/设置 进度条宽度,默认为 6 /// Gets or sets the progress bar width. Default is 6. - /// 10.2.2 /// [Parameter] public override int StrokeWidth { get; set; } = 6; @@ -84,7 +79,6 @@ public partial class Timer /// /// 获得/设置 倒计时结束时是否设备震动 /// Gets or sets whether the device vibrates when the countdown ends - /// 10.2.2 /// [Parameter] public bool IsVibrate { get; set; } = true; @@ -92,7 +86,6 @@ public partial class Timer /// /// 获得/设置 暂停按钮显示文字 /// Gets or sets the pause button display text - /// 10.2.2 /// [Parameter] [NotNull] @@ -101,7 +94,6 @@ public partial class Timer /// /// 获得/设置 继续按钮显示文字 /// Gets or sets the resume button display text - /// 10.2.2 /// [Parameter] [NotNull] @@ -110,7 +102,6 @@ public partial class Timer /// /// 获得/设置 取消按钮显示文字 /// Gets or sets the cancel button display text - /// 10.2.2 /// [Parameter] [NotNull] @@ -119,7 +110,6 @@ public partial class Timer /// /// 获得/设置 开始按钮显示文字 /// Gets or sets the start button display text - /// 10.2.2 /// [Parameter] [NotNull] @@ -128,7 +118,6 @@ public partial class Timer /// /// 获得/设置 Alert 图标 /// Gets or sets the alert icon - /// 10.2.2 /// [Parameter] public string? Icon { get; set; } diff --git a/src/BootstrapBlazor/Components/Title/Title.cs b/src/BootstrapBlazor/Components/Title/Title.cs index 1d4cff0067a..4fb64026a38 100644 --- a/src/BootstrapBlazor/Components/Title/Title.cs +++ b/src/BootstrapBlazor/Components/Title/Title.cs @@ -18,7 +18,6 @@ public class Title : ComponentBase /// /// 获得/设置 当前页标题文字 /// Gets or sets the current page title text - /// 10.2.2 /// [Parameter] public string? Text { get; set; } diff --git a/src/BootstrapBlazor/Components/Toast/Toast.razor.cs b/src/BootstrapBlazor/Components/Toast/Toast.razor.cs index ea6a950c65c..885a4b898df 100644 --- a/src/BootstrapBlazor/Components/Toast/Toast.razor.cs +++ b/src/BootstrapBlazor/Components/Toast/Toast.razor.cs @@ -46,7 +46,6 @@ public partial class Toast /// /// 获得/设置 ToastOption 实例 /// Gets or sets the ToastOption instance - /// 10.2.2 /// [Parameter] [NotNull] diff --git a/src/BootstrapBlazor/Components/Toast/ToastContainer.razor.cs b/src/BootstrapBlazor/Components/Toast/ToastContainer.razor.cs index f0d6fe72bf2..1b0683098e5 100644 --- a/src/BootstrapBlazor/Components/Toast/ToastContainer.razor.cs +++ b/src/BootstrapBlazor/Components/Toast/ToastContainer.razor.cs @@ -29,7 +29,6 @@ public partial class ToastContainer : IDisposable /// /// 获得/设置 弹出窗位置 /// Gets or sets the popup window placement - /// 10.2.2 /// [Parameter] [NotNull] diff --git a/src/BootstrapBlazor/Components/Toggle/Toggle.razor.cs b/src/BootstrapBlazor/Components/Toggle/Toggle.razor.cs index adce8f79b53..5d267c9bef7 100644 --- a/src/BootstrapBlazor/Components/Toggle/Toggle.razor.cs +++ b/src/BootstrapBlazor/Components/Toggle/Toggle.razor.cs @@ -29,7 +29,6 @@ public partial class Toggle /// /// 获得/设置 组件颜色,默认为 Success /// Gets or sets the component color. Default is Success. - /// 10.2.2 /// [Parameter] public Color Color { get; set; } = Color.Success; diff --git a/src/BootstrapBlazor/Components/Toggle/ToggleBase.cs b/src/BootstrapBlazor/Components/Toggle/ToggleBase.cs index 3e15315c100..6e10d178100 100644 --- a/src/BootstrapBlazor/Components/Toggle/ToggleBase.cs +++ b/src/BootstrapBlazor/Components/Toggle/ToggleBase.cs @@ -22,7 +22,6 @@ public class ToggleBase : ValidateBase /// /// 获得/设置 组件宽度 /// Gets or sets the component width - /// 10.2.2 /// [Parameter] public virtual int Width { get; set; } = 120; @@ -30,7 +29,6 @@ public class ToggleBase : ValidateBase /// /// 获得/设置 组件 On 时显示的文本 /// Gets or sets the text to display when the component is On - /// 10.2.2 /// [Parameter] [NotNull] @@ -39,7 +37,6 @@ public class ToggleBase : ValidateBase /// /// 获得/设置 组件 Off 时显示的文本 /// Gets or sets the text to display when the component is Off - /// 10.2.2 /// [Parameter] [NotNull] diff --git a/src/BootstrapBlazor/Components/Toolbar/Toolbar.razor.cs b/src/BootstrapBlazor/Components/Toolbar/Toolbar.razor.cs index 40caeb143e0..463cb3a2414 100644 --- a/src/BootstrapBlazor/Components/Toolbar/Toolbar.razor.cs +++ b/src/BootstrapBlazor/Components/Toolbar/Toolbar.razor.cs @@ -14,7 +14,6 @@ public partial class Toolbar /// /// 获得/设置 是否允许换行显示工具栏内容,默认 false /// Gets or sets whether to allow toolbar content wrapping. Default is false. - /// 10.2.2 /// [Parameter] public bool IsWrap { get; set; } @@ -22,7 +21,6 @@ public partial class Toolbar /// /// 获得/设置 子组件模板 /// Gets or sets the child component template - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } diff --git a/src/BootstrapBlazor/Components/Toolbar/ToolbarButtonGroup.razor.cs b/src/BootstrapBlazor/Components/Toolbar/ToolbarButtonGroup.razor.cs index f9b936b01dc..ff69fb58256 100644 --- a/src/BootstrapBlazor/Components/Toolbar/ToolbarButtonGroup.razor.cs +++ b/src/BootstrapBlazor/Components/Toolbar/ToolbarButtonGroup.razor.cs @@ -14,7 +14,6 @@ public partial class ToolbarButtonGroup /// /// 获得/设置 子组件模板 /// Gets or sets the child component template - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } diff --git a/src/BootstrapBlazor/Components/Toolbar/ToolbarItem.razor.cs b/src/BootstrapBlazor/Components/Toolbar/ToolbarItem.razor.cs index 0a2bee646ae..efc627d953e 100644 --- a/src/BootstrapBlazor/Components/Toolbar/ToolbarItem.razor.cs +++ b/src/BootstrapBlazor/Components/Toolbar/ToolbarItem.razor.cs @@ -14,7 +14,6 @@ public partial class ToolbarItem /// /// 获得/设置 子组件模板 /// Gets or sets the child component template - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } diff --git a/src/BootstrapBlazor/Components/Tooltip/ITooltip.cs b/src/BootstrapBlazor/Components/Tooltip/ITooltip.cs index de7b1191fc2..90f13ce28e6 100644 --- a/src/BootstrapBlazor/Components/Tooltip/ITooltip.cs +++ b/src/BootstrapBlazor/Components/Tooltip/ITooltip.cs @@ -14,28 +14,24 @@ public interface ITooltip /// /// 获得/设置 位置 /// Gets or sets the placement - /// 10.2.2 /// Placement Placement { get; set; } /// /// 获得/设置 显示内容 /// Gets or sets the display content - /// 10.2.2 /// string? Title { get; set; } /// /// 获得/设置 内容是否为 Html,默认 false /// Gets or sets whether the content is HTML. Default is false. - /// 10.2.2 /// bool IsHtml { get; set; } /// /// 获得/设置 触发方式,可组合 click focus hover manual,默认为 focus hover /// Gets or sets the trigger method. Can be combined: click, focus, hover, manual. Default is focus hover. - /// 10.2.2 /// /// 设置 manual 时,请使用 组件实例方法 对弹窗状态进行控制 string? Trigger { get; set; } @@ -43,7 +39,6 @@ public interface ITooltip /// /// 获得/设置 自定义样式,默认 null /// Gets or sets the custom style. Default is null. - /// 10.2.2 /// /// 由 data-bs-custom-class 实现 string? CustomClass { get; set; } @@ -51,7 +46,6 @@ public interface ITooltip /// /// 获得/设置 显示隐藏延时,默认 null /// Gets or sets the show/hide delay. Default is null. - /// 10.2.2 /// /// Delay showing and hiding the tooltip (ms)—doesn't apply to manual trigger type. If a number is supplied, delay is applied to both hide/show. Object structure is: delay: { "show": 500, "hide": 100 }. string? Delay { get; set; } @@ -59,14 +53,12 @@ public interface ITooltip /// /// 获得/设置 是否对 Title 进行关键字过滤,默认 true /// Gets or sets whether to filter the Title by keyword. Default is true. - /// 10.2.2 /// bool Sanitize { get; set; } /// /// 获得/设置 元素选择器 /// Gets or sets the element selector - /// 10.2.2 /// string? Selector { get; set; } } diff --git a/src/BootstrapBlazor/Components/Tooltip/Tooltip.razor.cs b/src/BootstrapBlazor/Components/Tooltip/Tooltip.razor.cs index 8b54377f7aa..e7927a74f99 100644 --- a/src/BootstrapBlazor/Components/Tooltip/Tooltip.razor.cs +++ b/src/BootstrapBlazor/Components/Tooltip/Tooltip.razor.cs @@ -60,7 +60,6 @@ public partial class Tooltip : ITooltip /// /// 获得/设置 获取显示内容的异步回调方法,默认 null /// Gets or sets the callback method to get display content asynchronously. Default is null. - /// 10.2.2 /// [Parameter] public Func>? GetTitleCallback { get; set; } @@ -86,7 +85,6 @@ public partial class Tooltip : ITooltip /// /// 获得/设置 位置,默认为 null /// Gets or sets the placement. Default is null. - /// 10.2.2 /// [Parameter] public string[]? FallbackPlacements { get; set; } @@ -94,7 +92,6 @@ public partial class Tooltip : ITooltip /// /// 获得/设置 偏移量,默认为 null /// Gets or sets the offset. Default is null. - /// 10.2.2 /// [Parameter] public string? Offset { get; set; } @@ -114,7 +111,6 @@ public partial class Tooltip : ITooltip /// /// 获得/设置 子组件 /// Gets or sets the child component - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } @@ -173,7 +169,6 @@ public void SetParameters(string title, Placement placement = Placement.Auto, st /// Hides the Tooltip popup /// /// 延时指定毫秒后关闭弹窗,默认 null 不延时Delay hiding the popup for specified milliseconds. Default is null (no delay). - /// public Task Hide(int? delay = null) => InvokeVoidAsync("hide", Id, delay); /// @@ -181,6 +176,5 @@ public void SetParameters(string title, Placement placement = Placement.Auto, st /// Toggles the Tooltip popup state /// /// 延时指定毫秒后切换弹窗状态,默认 null 不延时Delay toggling the popup state for specified milliseconds. Default is null (no delay). - /// public Task Toggle(int? delay = null) => InvokeVoidAsync("toggle", Id, delay); } diff --git a/src/BootstrapBlazor/Components/Tooltip/TooltipWrapperBase.cs b/src/BootstrapBlazor/Components/Tooltip/TooltipWrapperBase.cs index 4889e7c6cf5..997863587fe 100644 --- a/src/BootstrapBlazor/Components/Tooltip/TooltipWrapperBase.cs +++ b/src/BootstrapBlazor/Components/Tooltip/TooltipWrapperBase.cs @@ -33,7 +33,6 @@ public abstract class TooltipWrapperBase : BootstrapModuleComponentBase /// /// 获得/设置 Tooltip 显示文字,默认为 null /// Gets or sets the Tooltip display text. Default is null. - /// 10.2.2 /// [Parameter] public string? TooltipText { get; set; } @@ -41,7 +40,6 @@ public abstract class TooltipWrapperBase : BootstrapModuleComponentBase /// /// 获得/设置 Tooltip 显示位置,默认为 Top /// Gets or sets the Tooltip display position. Default is Top. - /// 10.2.2 /// [Parameter] public Placement TooltipPlacement { get; set; } = Placement.Top; @@ -49,7 +47,6 @@ public abstract class TooltipWrapperBase : BootstrapModuleComponentBase /// /// 获得/设置 Tooltip 触发方式,默认为 hover focus /// Gets or sets the Tooltip trigger method. Default is hover focus. - /// 10.2.2 /// [Parameter] [NotNull] diff --git a/src/BootstrapBlazor/Components/Transfer/Transfer.razor.cs b/src/BootstrapBlazor/Components/Transfer/Transfer.razor.cs index 66c603901c1..173f822bd4a 100644 --- a/src/BootstrapBlazor/Components/Transfer/Transfer.razor.cs +++ b/src/BootstrapBlazor/Components/Transfer/Transfer.razor.cs @@ -53,7 +53,6 @@ public partial class Transfer /// /// 获得/设置 组件绑定数据项集合 /// Gets or sets the component bound data item collection - /// 10.2.2 /// [Parameter] [NotNull] @@ -63,7 +62,6 @@ public partial class Transfer /// /// 获得/设置 选中项集合发生改变时回调委托方法 /// Gets or sets the callback method when the selected items collection changes - /// 10.2.2 /// [Parameter] public Func, Task>? OnSelectedItemsChanged { get; set; } @@ -71,7 +69,6 @@ public partial class Transfer /// /// 获得/设置 左侧面板 Header 显示文本 /// Gets or sets the left panel header display text - /// 10.2.2 /// [Parameter] public string? LeftPanelText { get; set; } @@ -79,7 +76,6 @@ public partial class Transfer /// /// 获得/设置 右侧面板 Header 显示文本 /// Gets or sets the right panel header display text - /// 10.2.2 /// [Parameter] public string? RightPanelText { get; set; } @@ -87,7 +83,6 @@ public partial class Transfer /// /// 获得/设置 向左侧转移图标 /// Gets or sets the left transfer icon - /// 10.2.2 /// [Parameter] public string? LeftIcon { get; set; } @@ -95,7 +90,6 @@ public partial class Transfer /// /// 获得/设置 向右侧转移图标 /// Gets or sets the right transfer icon - /// 10.2.2 /// [Parameter] public string? RightIcon { get; set; } @@ -103,7 +97,6 @@ public partial class Transfer /// /// 获得/设置 左侧按钮显示文本 /// Gets or sets the left button display text - /// 10.2.2 /// [Parameter] public string? LeftButtonText { get; set; } @@ -111,7 +104,6 @@ public partial class Transfer /// /// 获得/设置 右侧按钮显示文本 /// Gets or sets the right button display text - /// 10.2.2 /// [Parameter] public string? RightButtonText { get; set; } @@ -119,7 +111,6 @@ public partial class Transfer /// /// 获得/设置 是否显示搜索框 /// Gets or sets whether to display the search box - /// 10.2.2 /// [Parameter] public bool ShowSearch { get; set; } @@ -127,7 +118,6 @@ public partial class Transfer /// /// 获得/设置 左侧面板搜索框 placeholder 文字 /// Gets or sets the left panel search box placeholder text - /// 10.2.2 /// [Parameter] [Obsolete("已过期,请使用 LeftPanelSearchPlaceHolderString 代替 (Deprecated, please use LeftPanelSearchPlaceHolderString)")] @@ -137,7 +127,6 @@ public partial class Transfer /// /// 获得/设置 左侧面板搜索框 placeholder 文字 /// Gets or sets the left panel search box placeholder text - /// 10.2.2 /// [Parameter] public string? LeftPanelSearchPlaceHolderString { get; set; } @@ -145,7 +134,6 @@ public partial class Transfer /// /// 获得/设置 右侧面板搜索框 placeholder 文字 /// Gets or sets the right panel search box placeholder text - /// 10.2.2 /// [Parameter] [Obsolete("已过期,请使用 RightPanelSearchPlaceHolderString 代替 (Deprecated, please use RightPanelSearchPlaceHolderString)")] @@ -155,7 +143,6 @@ public partial class Transfer /// /// 获得/设置 右侧面板搜索框 placeholder 文字 /// Gets or sets the right panel search box placeholder text - /// 10.2.2 /// [Parameter] public string? RightPanelSearchPlaceHolderString { get; set; } @@ -163,7 +150,6 @@ public partial class Transfer /// /// 获得/设置 右侧面板包含的最大数量,默认为 0 不限制 /// Gets or sets the maximum number of items in the right panel. Default is 0 (no limit). - /// 10.2.2 /// [Parameter] public int Max { get; set; } @@ -171,7 +157,6 @@ public partial class Transfer /// /// 获得/设置 设置最大值时的错误消息文字 /// Gets or sets the error message text when setting the maximum value - /// 10.2.2 /// [Parameter] [NotNull] @@ -180,7 +165,6 @@ public partial class Transfer /// /// 获得/设置 右侧面板包含的最小数量,默认为 0 不限制 /// Gets or sets the minimum number of items in the right panel. Default is 0 (no limit). - /// 10.2.2 /// [Parameter] public int Min { get; set; } @@ -188,7 +172,6 @@ public partial class Transfer /// /// 获得/设置 设置最小值时的错误消息文字 /// Gets or sets the error message text when setting the minimum value - /// 10.2.2 /// [Parameter] [NotNull] @@ -197,7 +180,6 @@ public partial class Transfer /// /// 获得/设置 数据样式回调方法,默认为 null /// Gets or sets the data style callback method. Default is null. - /// 10.2.2 /// [Parameter] [NotNull] @@ -206,7 +188,6 @@ public partial class Transfer /// /// 获得/设置 左侧 Panel Header 模板 /// Gets or sets the left Panel Header template - /// 10.2.2 /// [Parameter] public RenderFragment>? LeftHeaderTemplate { get; set; } @@ -214,7 +195,6 @@ public partial class Transfer /// /// 获得/设置 左侧 Panel Item 模板 /// Gets or sets the left Panel Item template - /// 10.2.2 /// [Parameter] public RenderFragment? LeftItemTemplate { get; set; } @@ -222,7 +202,6 @@ public partial class Transfer /// /// 获得/设置 右侧 Panel Header 模板 /// Gets or sets the right Panel Header template - /// 10.2.2 /// [Parameter] public RenderFragment>? RightHeaderTemplate { get; set; } @@ -230,7 +209,6 @@ public partial class Transfer /// /// 获得/设置 右侧 Panel Item 模板 /// Gets or sets the right Panel Item template - /// 10.2.2 /// [Parameter] public RenderFragment? RightItemTemplate { get; set; } @@ -238,7 +216,6 @@ public partial class Transfer /// /// 获得/设置 组件高度 默认值 null 未设置 /// Gets or sets the component height. Default is null (not set) - /// 10.2.2 /// [Parameter] public string? Height { get; set; } @@ -246,7 +223,6 @@ public partial class Transfer /// /// 获得/设置 候选项是否为换行模式 默认 false 不换行 /// Gets or sets whether the items are in wrap mode. Default is false (no wrap) - /// 10.2.2 /// [Parameter] public bool IsWrapItem { get; set; } = true; @@ -254,7 +230,6 @@ public partial class Transfer /// /// 获得/设置 候选项宽度 默认 null 未设置 /// Gets or sets the item width. Default is null (not set) - /// 10.2.2 /// [Parameter] public string? ItemWidth { get; set; } @@ -262,7 +237,6 @@ public partial class Transfer /// /// 获得/设置 候选项文本是否为换行 默认 false 不换行 /// Gets or sets whether the item text is wrapped. Default is false (no wrap) - /// 10.2.2 /// [Parameter] public bool IsWrapItemText { get; set; } @@ -405,7 +379,6 @@ private async Task TransferItems(List source, List t /// /// /// - /// protected override bool TryParseValueFromString(string value, out TValue result, out string? validationErrorMessage) { validationErrorMessage = null; @@ -433,7 +406,6 @@ protected override bool TryParseValueFromString(string value, out TValue result, /// /// /// - /// protected override string? FormatValueAsString(TValue? value) => value == null ? null : Utility.ConvertValueToString(value); diff --git a/src/BootstrapBlazor/Components/Transfer/TransferPanel.razor.cs b/src/BootstrapBlazor/Components/Transfer/TransferPanel.razor.cs index 1d6d3cae55a..2fe681b0ccf 100644 --- a/src/BootstrapBlazor/Components/Transfer/TransferPanel.razor.cs +++ b/src/BootstrapBlazor/Components/Transfer/TransferPanel.razor.cs @@ -55,7 +55,6 @@ public partial class TransferPanel /// /// 获得/设置 数据集合 /// Gets or sets the data collection - /// 10.2.2 /// [Parameter] [NotNull] @@ -67,7 +66,6 @@ public partial class TransferPanel /// /// 获得/设置 数据样式回调方法,默认为 null /// Gets or sets the data style callback method. Default is null. - /// 10.2.2 /// [Parameter] public Func? OnSetItemClass { get; set; } @@ -75,7 +73,6 @@ public partial class TransferPanel /// /// 获得/设置 面板显示文字 /// Gets or sets the panel display text - /// 10.2.2 /// [Parameter] [NotNull] @@ -84,7 +81,6 @@ public partial class TransferPanel /// /// 获得/设置 是否显示搜索框 /// Gets or sets whether to display the search box - /// 10.2.2 /// [Parameter] public bool ShowSearch { get; set; } @@ -92,7 +88,6 @@ public partial class TransferPanel /// /// 获得/设置 搜索框图标 /// Gets or sets the search box icon - /// 10.2.2 /// [Parameter] public string? SearchIcon { get; set; } @@ -100,7 +95,6 @@ public partial class TransferPanel /// /// 获得/设置 选项状态变化时回调方法 /// Gets or sets the callback method when selected items change - /// 10.2.2 /// [Parameter] public Func? OnSelectedItemsChanged { get; set; } @@ -108,7 +102,6 @@ public partial class TransferPanel /// /// 获得/设置 搜索框的 placeholder 字符串 /// Gets or sets the search box placeholder string - /// 10.2.2 /// [Parameter] [NotNull] @@ -117,7 +110,6 @@ public partial class TransferPanel /// /// 获得/设置 是否禁用,默认为 false /// Gets or sets whether to disable. Default is false. - /// 10.2.2 /// [Parameter] public bool IsDisabled { get; set; } @@ -125,7 +117,6 @@ public partial class TransferPanel /// /// 获得/设置 Header 模板 /// Gets or sets the header template - /// 10.2.2 /// [Parameter] public RenderFragment>? HeaderTemplate { get; set; } @@ -133,7 +124,6 @@ public partial class TransferPanel /// /// 获得/设置 Item 模板 /// Gets or sets the item template - /// 10.2.2 /// [Parameter] public RenderFragment? ItemTemplate { get; set; } diff --git a/src/BootstrapBlazor/Components/Transition/Transition.razor.cs b/src/BootstrapBlazor/Components/Transition/Transition.razor.cs index d55a16d030e..869820f87ad 100644 --- a/src/BootstrapBlazor/Components/Transition/Transition.razor.cs +++ b/src/BootstrapBlazor/Components/Transition/Transition.razor.cs @@ -24,7 +24,6 @@ public partial class Transition /// /// 获得/设置 是否显示动画,默认 true /// Gets or sets whether to display the animation. Default is true. - /// 10.2.2 /// [Parameter] public bool Show { get; set; } = true; @@ -32,7 +31,6 @@ public partial class Transition /// /// 获得/设置 动画名称,默认 FadeIn /// Gets or sets the animation name. Default is FadeIn. - /// 10.2.2 /// [Parameter] public TransitionType TransitionType { get; set; } = TransitionType.FadeIn; @@ -40,7 +38,6 @@ public partial class Transition /// /// 获得/设置 动画执行时长,单位毫秒,默认为 0 /// Gets or sets the animation execution duration in milliseconds. Default is 0. - /// 10.2.2 /// [Parameter] public int Duration { get; set; } @@ -48,7 +45,6 @@ public partial class Transition /// /// 获得/设置 子内容 /// Gets or sets the child content - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } @@ -56,7 +52,6 @@ public partial class Transition /// /// 获得/设置 动画执行完成回调委托 /// Gets or sets the animation completion callback delegate - /// 10.2.2 /// [Parameter] public Func? OnTransitionEnd { get; set; } @@ -77,6 +72,5 @@ public async Task TransitionEndAsync() /// /// /// - /// protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id, Interop, nameof(TransitionEndAsync)); } diff --git a/src/BootstrapBlazor/Components/Tree/Tree.razor.cs b/src/BootstrapBlazor/Components/Tree/Tree.razor.cs index f1b4663da64..65c86621dcf 100644 --- a/src/BootstrapBlazor/Components/Tree/Tree.razor.cs +++ b/src/BootstrapBlazor/Components/Tree/Tree.razor.cs @@ -37,7 +37,6 @@ public partial class Tree /// Gets or sets TreeItem icon /// /// - /// private static string? GetIconClassString(TreeItem item) => CssBuilder.Default("tree-icon") .AddClass(item.Icon) .Build(); @@ -47,7 +46,6 @@ public partial class Tree /// Gets or sets TreeItem 小箭头style /// /// - /// private string? GetCaretClassString(TreeItem item) => CssBuilder.Default("node-icon") .AddClass("invisible", !item.HasChildNode && !item.Items.Any()) .AddClass(NodeIcon, item.IsCollapsed) @@ -59,7 +57,6 @@ public partial class Tree /// Gets or sets 当前行style /// /// - /// private string? GetItemClassString(TreeItem item) => CssBuilder.Default("tree-item") .AddClass("active", ActiveItem == item) .Build(); @@ -69,7 +66,6 @@ public partial class Tree /// Gets or sets TreeNode style /// /// - /// private static string? GetTreeNodeClassString(TreeItem item) => CssBuilder.Default("tree-ul") .AddClass("show", !item.IsCollapsed) .Build(); @@ -77,7 +73,6 @@ public partial class Tree /// /// 获得/设置 选中节点 默认 null /// Gets or sets 选中节点 Default is null - /// 10.2.2 /// [Parameter] public TreeItem? ActiveItem { get; set; } @@ -85,7 +80,6 @@ public partial class Tree /// /// 获得/设置 是否为手风琴效果 默认为 false /// Gets or sets whether为手风琴效果 Default is为 false - /// 10.2.2 /// [Parameter] public bool IsAccordion { get; set; } @@ -93,7 +87,6 @@ public partial class Tree /// /// 获得/设置 是否点击节点时展开或者收缩子项 默认 false /// Gets or sets whether点击节点时展开或者收缩子项 Default is false - /// 10.2.2 /// [Parameter] public bool ClickToggleNode { get; set; } @@ -101,7 +94,6 @@ public partial class Tree /// /// 获得/设置 是否显示加载骨架屏 默认 false 不显示 /// Gets or sets whetherdisplay加载骨架屏 Default is false 不display - /// 10.2.2 /// [Parameter] public bool ShowSkeleton { get; set; } @@ -109,7 +101,6 @@ public partial class Tree /// /// 获得/设置 Tree Node 节点图标 /// Gets or sets Tree Node 节点icon - /// 10.2.2 /// [Parameter] public string? NodeIcon { get; set; } @@ -117,7 +108,6 @@ public partial class Tree /// /// 获得/设置 Tree Node 展开节点图标 /// Gets or sets Tree Node 展开节点icon - /// 10.2.2 /// [Parameter] public string? ExpandNodeIcon { get; set; } @@ -125,7 +115,6 @@ public partial class Tree /// /// 获得/设置 菜单数据集合 /// Gets or sets 菜单datacollection - /// 10.2.2 /// [Parameter] [NotNull] @@ -134,7 +123,6 @@ public partial class Tree /// /// 获得/设置 是否显示 CheckBox 默认 false 不显示 /// Gets or sets whetherdisplay CheckBox Default is false 不display - /// 10.2.2 /// [Parameter] public bool ShowCheckbox { get; set; } @@ -142,7 +130,6 @@ public partial class Tree /// /// 获得/设置 是否显示 Radio 默认 false 不显示 /// Gets or sets whetherdisplay Radio Default is false 不display - /// 10.2.2 /// [Parameter] public bool ShowRadio { get; set; } @@ -150,7 +137,6 @@ public partial class Tree /// /// 获得/设置 是否显示 Icon 图标 默认 false 不显示 /// Gets or sets whetherdisplay Icon icon Default is false 不display - /// 10.2.2 /// [Parameter] public bool ShowIcon { get; set; } @@ -158,7 +144,6 @@ public partial class Tree /// /// 获得/设置 树形控件节点点击时回调委托 /// Gets or sets 树形控件节点点击时回调delegate - /// 10.2.2 /// [Parameter] public Func? OnTreeItemClick { get; set; } @@ -166,7 +151,6 @@ public partial class Tree /// /// 获得/设置 树形控件节点选中时回调委托 /// Gets or sets 树形控件节点选中时回调delegate - /// 10.2.2 /// [Parameter] public Func, Task>? OnTreeItemChecked { get; set; } @@ -174,7 +158,6 @@ public partial class Tree /// /// 获得/设置 节点展开前回调委托 /// Gets or sets 节点展开前回调delegate - /// 10.2.2 /// [Parameter] public Func? OnExpandNode { get; set; } @@ -208,7 +191,6 @@ protected override void OnParametersSet() /// 选中节点时触发此方法 /// 选中节点时触发此方法 /// - /// private async Task OnClick(TreeItem item) { if (!item.IsDisabled) @@ -264,7 +246,6 @@ private async Task OnExpandRowAsync(TreeItem item) /// /// /// - /// private async Task OnStateChanged(CheckboxState state, TreeItem item) { // 向下级联操作 @@ -280,7 +261,6 @@ private async Task OnStateChanged(CheckboxState state, TreeItem item) /// 获得 所有选中节点集合 /// Gets 所有选中节点collection /// - /// public IEnumerable GetCheckedItems() => Items.Aggregate(new List(), (t, item) => { t.Add(item); diff --git a/src/BootstrapBlazor/Components/Tree/TreeItem.cs b/src/BootstrapBlazor/Components/Tree/TreeItem.cs index 827fd370861..e8ed1425afb 100644 --- a/src/BootstrapBlazor/Components/Tree/TreeItem.cs +++ b/src/BootstrapBlazor/Components/Tree/TreeItem.cs @@ -52,7 +52,6 @@ public class TreeItem : NodeItem /// 获得 所有子项集合 /// Gets 所有子项collection /// - /// public IEnumerable GetAllSubItems() => Items.Concat(GetSubItems(Items)); private static IEnumerable GetSubItems(List items) => items.SelectMany(i => i.Items.Count > 0 ? i.Items.Concat(GetSubItems(i.Items)) : i.Items); diff --git a/src/BootstrapBlazor/Components/TreeView/TreeView.razor.cs b/src/BootstrapBlazor/Components/TreeView/TreeView.razor.cs index 447d6cc7642..44e71f2ae13 100644 --- a/src/BootstrapBlazor/Components/TreeView/TreeView.razor.cs +++ b/src/BootstrapBlazor/Components/TreeView/TreeView.razor.cs @@ -35,7 +35,6 @@ public partial class TreeView : IModelEqualityComparer /// /// 获得/设置 是否显示树视图项的工具栏,默认为 false /// Gets or sets whether to show the toolbar of tree view item. Default is false. - /// 10.2.2 /// [Parameter] public bool ShowToolbar { get; set; } @@ -43,7 +42,6 @@ public partial class TreeView : IModelEqualityComparer /// /// 获得/设置 确定是否显示树视图项工具栏的回调方法 /// Gets or sets the callback method that determines whether to show the toolbar of the tree view item. - /// 10.2.2 /// [Parameter] public Func, Task>? ShowToolbarCallback { get; set; } @@ -51,7 +49,6 @@ public partial class TreeView : IModelEqualityComparer /// /// 获得/设置 整个组件是否被禁用,默认为 false /// Gets or sets whether the entire component is disabled. Default is false. - /// 10.2.2 /// [Parameter] public bool IsDisabled { get; set; } @@ -59,7 +56,6 @@ public partial class TreeView : IModelEqualityComparer /// /// 获得/设置 组件被禁用时,节点是否可以展开或折叠,默认为 false /// Gets or sets whether nodes can be expanded or collapsed when the component is disabled. Default is false. - /// 10.2.2 /// [Parameter] public bool CanExpandWhenDisabled { get; set; } @@ -67,7 +63,6 @@ public partial class TreeView : IModelEqualityComparer /// /// 获得/设置 树视图是否具有手风琴行为,默认为 false。虚拟滚动模式不支持手风琴行为。 /// Gets or sets whether the tree view has accordion behavior. Default is false. Accordion behavior is not supported in virtual scrolling mode. - /// 10.2.2 /// [Parameter] public bool IsAccordion { get; set; } @@ -75,7 +70,6 @@ public partial class TreeView : IModelEqualityComparer /// /// 获得/设置 点击节点是否展开或折叠其子节点,默认为 false /// Gets or sets whether clicking a node expands or collapses its children. Default is false. - /// 10.2.2 /// [Parameter] public bool ClickToggleNode { get; set; } @@ -83,7 +77,6 @@ public partial class TreeView : IModelEqualityComparer /// /// 获得/设置 点击节点是否切换其复选框状态,默认为 false。仅在 ShowCheckbox 为 true 时有效。 /// Gets or sets whether clicking a node toggles its checkbox state. Default is false. Effective when ShowCheckbox is true. - /// 10.2.2 /// [Parameter] public bool ClickToggleCheck { get; set; } @@ -91,7 +84,6 @@ public partial class TreeView : IModelEqualityComparer /// /// 获得/设置 是否显示加载骨架,默认为 false /// Gets or sets whether to show the loading skeleton. Default is false. - /// 10.2.2 /// [Parameter] public bool ShowSkeleton { get; set; } @@ -99,7 +91,6 @@ public partial class TreeView : IModelEqualityComparer /// /// 获得/设置 是否显示搜索栏,默认为 false /// Gets or sets whether to show the search bar. Default is false. - /// 10.2.2 /// [Parameter] public bool ShowSearch { get; set; } @@ -107,7 +98,6 @@ public partial class TreeView : IModelEqualityComparer /// /// 获得/设置 是否显示重置搜索按钮,默认为 true /// Gets or sets whether to show the reset search button. Default is true. - /// 10.2.2 /// [Parameter] public bool ShowResetSearchButton { get; set; } = true; @@ -115,7 +105,6 @@ public partial class TreeView : IModelEqualityComparer /// /// 获得/设置 搜索栏模板,默认为 null /// Gets or sets the search bar template. Default is null. - /// 10.2.2 /// [Parameter] public RenderFragment? SearchTemplate { get; set; } @@ -123,7 +112,6 @@ public partial class TreeView : IModelEqualityComparer /// /// 获得/设置 搜索图标,默认未设置,使用内置主题图标 /// Gets or sets the search icon. Default is not set, using the built-in theme icon. - /// 10.2.2 /// [Parameter] public string? SearchIcon { get; set; } @@ -131,7 +119,6 @@ public partial class TreeView : IModelEqualityComparer /// /// 获得/设置 清除搜索图标,默认未设置,使用内置主题图标 /// Gets or sets the clear search icon. Default is not set, using the built-in theme icon. - /// 10.2.2 /// [Parameter] public string? ClearSearchIcon { get; set; } @@ -139,7 +126,6 @@ public partial class TreeView : IModelEqualityComparer /// /// 获得/设置 搜索回调方法,默认为 null /// Gets or sets the search callback method. Default is null. - /// 10.2.2 /// /// Enabled by setting to true. [Parameter] @@ -148,7 +134,6 @@ public partial class TreeView : IModelEqualityComparer /// /// 获得/设置 分层数据集合 /// Gets or sets the hierarchical data collection. - /// 10.2.2 /// [Parameter] [NotNull] @@ -157,7 +142,6 @@ public partial class TreeView : IModelEqualityComparer /// /// 获得/设置 是否显示复选框,默认为 false /// Gets or sets whether to show checkboxes. Default is false. - /// 10.2.2 /// [Parameter] public bool ShowCheckbox { get; set; } @@ -165,7 +149,6 @@ public partial class TreeView : IModelEqualityComparer /// /// 获得/设置 最多选中项数 /// Gets or sets the maximum number of selected items. - /// 10.2.2 /// [Parameter] public int MaxSelectedCount { get; set; } @@ -173,7 +156,6 @@ public partial class TreeView : IModelEqualityComparer /// /// 获得/设置 超过最多选中项数时的回调方法 /// Gets or sets the callback method when the maximum number of selected items is exceeded. - /// 10.2.2 /// [Parameter] public Func? OnMaxSelectedCountExceed { get; set; } @@ -181,7 +163,6 @@ public partial class TreeView : IModelEqualityComparer /// /// 获得/设置 是否显示图标,默认为 false /// Gets or sets whether to show icons. Default is false. - /// 10.2.2 /// [Parameter] public bool ShowIcon { get; set; } @@ -189,7 +170,6 @@ public partial class TreeView : IModelEqualityComparer /// /// 获得/设置 树项被点击时的回调方法 /// Gets or sets the callback method when a tree item is clicked. - /// 10.2.2 /// [Parameter] public Func, Task>? OnTreeItemClick { get; set; } @@ -197,7 +177,6 @@ public partial class TreeView : IModelEqualityComparer /// /// 获得/设置 点击节点前的回调方法 /// Gets or sets the callback method before a tree item is clicked. - /// 10.2.2 /// [Parameter] public Func, Task>? OnBeforeTreeItemClick { get; set; } @@ -205,7 +184,6 @@ public partial class TreeView : IModelEqualityComparer /// /// 获得/设置 树项被选中时的回调方法 /// Gets or sets the callback method when a tree item is checked. - /// 10.2.2 /// [Parameter] public Func>, Task>? OnTreeItemChecked { get; set; } @@ -213,21 +191,18 @@ public partial class TreeView : IModelEqualityComparer /// /// 获得/设置 节点展开时获取子数据的回调方法 /// Gets or sets the callback method to get child data when a node is expanded. - /// 10.2.2 /// [Parameter] public Func, Task>>>? OnExpandNodeAsync { get; set; } /// /// - /// 10.2.2 /// [Parameter] public Type CustomKeyAttribute { get; set; } = typeof(KeyAttribute); /// /// - /// 10.2.2 /// [Parameter] public Func? ModelEqualityComparer { get; set; } @@ -235,7 +210,6 @@ public partial class TreeView : IModelEqualityComparer /// /// 获得/设置 树节点的加载图标 /// Gets or sets the loading icon for tree nodes. - /// 10.2.2 /// [Parameter] public string? LoadingIcon { get; set; } @@ -243,7 +217,6 @@ public partial class TreeView : IModelEqualityComparer /// /// 获得/设置 树节点的图标 /// Gets or sets the icon for tree nodes. - /// 10.2.2 /// [Parameter] public string? NodeIcon { get; set; } @@ -251,7 +224,6 @@ public partial class TreeView : IModelEqualityComparer /// /// 获得/设置 展开状态的树节点图标 /// Gets or sets the icon for expanded tree nodes. - /// 10.2.2 /// [Parameter] public string? ExpandNodeIcon { get; set; } @@ -269,7 +241,6 @@ public partial class TreeView : IModelEqualityComparer /// ArrowDown moves to the next node. /// Space selects the current node. /// - /// 10.2.2 /// [Parameter] public bool EnableKeyboard { get; set; } @@ -277,7 +248,6 @@ public partial class TreeView : IModelEqualityComparer /// /// 获得/设置 键盘导航时的滚动至视图选项,默认为 null,使用 { behavior: "smooth", block: "nearest", inline: "start" }。 /// Gets or sets the scroll into view options for keyboard navigation. Default is null, using { behavior: "smooth", block: "nearest", inline: "start" }. - /// 10.2.2 /// [Parameter] public ScrollIntoViewOptions? ScrollIntoViewOptions { get; set; } @@ -285,7 +255,6 @@ public partial class TreeView : IModelEqualityComparer /// /// 获得/设置 是否启用虚拟滚动,默认为 false /// Gets or sets whether to enable virtual scrolling. Default is false. - /// 10.2.2 /// [Parameter] public bool IsVirtualize { get; set; } @@ -293,7 +262,6 @@ public partial class TreeView : IModelEqualityComparer /// /// 获得/设置 虚拟滚动时的行高,默认为 29f /// Gets or sets the row height for virtual scrolling. Default is 29f. - /// 10.2.2 /// /// Effective when is set to true. [Parameter] @@ -302,7 +270,6 @@ public partial class TreeView : IModelEqualityComparer /// /// 获得/设置 虚拟滚动时的超扫描计数,默认为 10 /// Gets or sets the overscan count for virtual scrolling. Default is 10. - /// 10.2.2 /// /// Effective when is set to true. [Parameter] @@ -311,7 +278,6 @@ public partial class TreeView : IModelEqualityComparer /// /// 获得/设置 工具栏内容模板,默认为 null /// Gets or sets the toolbar content template. Default is null. - /// 10.2.2 /// [Parameter] public RenderFragment? ToolbarTemplate { get; set; } @@ -319,7 +285,6 @@ public partial class TreeView : IModelEqualityComparer /// /// 获得/设置 弹出窗口标题,默认为 null /// Gets or sets the title of the popup-window. Default is null. - /// 10.2.2 /// [Parameter] public string? ToolbarEditTitle { get; set; } @@ -327,7 +292,6 @@ public partial class TreeView : IModelEqualityComparer /// /// 获得/设置 弹出窗口标签文本,默认为 null /// Gets or sets the title of the popup-window. Default is null. - /// 10.2.2 /// [Parameter] public string? ToolbarEditLabelText { get; set; } @@ -335,7 +299,6 @@ public partial class TreeView : IModelEqualityComparer /// /// 获得/设置 更新树文本值的回调,默认为 null. 如果返回 true 则更新树文本值,否则不更新。 /// Gets or sets the update the tree text value callback. Default is null. If return true will update the tree text value, otherwise will not update. - /// 10.2.2 /// [Parameter] public Func>? OnUpdateCallbackAsync { get; set; } @@ -343,7 +306,6 @@ public partial class TreeView : IModelEqualityComparer /// /// 获得/设置 节点状态变化时是否自动更新子节点,默认为 false /// Gets or sets whether to automatically update child nodes when the node state changes. Default is false. - /// 10.2.2 /// [Parameter] public bool AutoCheckChildren { get; set; } @@ -351,7 +313,6 @@ public partial class TreeView : IModelEqualityComparer /// /// 获得/设置 节点状态变化时是否自动更新父节点,默认为 false /// Gets or sets whether to automatically update parent nodes when the node state changes. Default is false. - /// 10.2.2 /// [Parameter] public bool AutoCheckParent { get; set; } @@ -359,7 +320,6 @@ public partial class TreeView : IModelEqualityComparer /// /// 获得/设置 是否允许拖放操作,默认为 false /// Gets or sets a value indicating whether drag-and-drop operations are allowed. Default is false - /// 10.2.2 /// [Parameter] public bool AllowDrag { get; set; } @@ -367,7 +327,6 @@ public partial class TreeView : IModelEqualityComparer /// /// 获得/设置 拖动标签页结束回调方法 /// Gets or sets 拖动标签页结束callback method - /// 10.2.2 /// [Parameter] public Func, Task>? OnDragItemEndAsync { get; set; } @@ -422,7 +381,6 @@ protected override void OnParametersSet() /// /// /// - /// protected override async Task OnParametersSetAsync() { _rows = null; @@ -460,7 +418,6 @@ protected override async Task OnParametersSetAsync() /// /// /// - /// protected override async Task OnAfterRenderAsync(bool firstRender) { await base.OnAfterRenderAsync(firstRender); @@ -480,13 +437,11 @@ protected override async Task OnAfterRenderAsync(bool firstRender) /// /// /// - /// protected override bool ShouldRender() => _shouldRender; /// /// /// - /// protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id, new { Invoke = Interop, @@ -502,7 +457,6 @@ protected override async Task OnAfterRenderAsync(bool firstRender) /// Client-side user keyboard operation handler method called by JavaScript /// /// - /// [JSInvokable] public async ValueTask TriggerKeyDown(string key) { @@ -532,7 +486,6 @@ public async ValueTask TriggerKeyDown(string key) /// The zero-based index of the item being dragged from its original position. /// The zero-based index of the item's current position after the drag operation. /// A value indicating whether the drag operation involves child items. - /// [JSInvokable] public async ValueTask TriggerDragEnd(int originIndex, int currentIndex, bool isChildren) { @@ -552,7 +505,6 @@ public async ValueTask TriggerDragEnd(int originIndex, int currentIndex, bool is /// Client-side method to query the state of the specified row checkbox, called by JavaScript /// /// - /// [JSInvokable] public Task> GetParentsState(List items) { @@ -885,7 +837,6 @@ public void ClearCheckedItems() /// 获得 all selected node 集合s /// Gets all selected node collections /// - /// public IEnumerable> GetCheckedItems() => Items.Aggregate(new List>(), (t, item) => { t.Add(item); @@ -899,7 +850,6 @@ public IEnumerable> GetCheckedItems() => Items.Aggregate(new /// /// /// - /// public bool Equals(TItem? x, TItem? y) => this.Equals(x, y); private List>? _rows = null; diff --git a/src/BootstrapBlazor/Components/TreeView/TreeViewRow.razor.cs b/src/BootstrapBlazor/Components/TreeView/TreeViewRow.razor.cs index 7db29fecced..17904c4ef4e 100644 --- a/src/BootstrapBlazor/Components/TreeView/TreeViewRow.razor.cs +++ b/src/BootstrapBlazor/Components/TreeView/TreeViewRow.razor.cs @@ -16,7 +16,6 @@ public partial class TreeViewRow /// /// 获得/设置 节点是否为活跃状态,默认为 false /// Gets or sets whether the node is active. Default is false. - /// 10.2.2 /// [Parameter] public bool IsActive { get; set; } @@ -24,7 +23,6 @@ public partial class TreeViewRow /// /// 获得/设置 节点索引,默认为 0 /// Gets or sets the node index. Default is 0. - /// 10.2.2 /// [Parameter] public int Index { get; set; } @@ -39,7 +37,6 @@ public partial class TreeViewRow /// /// 获得/设置 树节点的加载图标 /// Gets or sets the loading icon for tree nodes. - /// 10.2.2 /// [Parameter] public string? LoadingIcon { get; set; } @@ -47,7 +44,6 @@ public partial class TreeViewRow /// /// 获得/设置 树节点的图标 /// Gets or sets the icon for tree nodes. - /// 10.2.2 /// [Parameter] public string? NodeIcon { get; set; } @@ -55,7 +51,6 @@ public partial class TreeViewRow /// /// 获得/设置 展开的树节点的图标 /// Gets or sets the icon for expanded tree nodes. - /// 10.2.2 /// [Parameter] public string? ExpandNodeIcon { get; set; } @@ -63,7 +58,6 @@ public partial class TreeViewRow /// /// 获得/设置 整个组件是否被禁用,默认为 false /// Gets or sets whether the entire component is disabled. Default is false. - /// 10.2.2 /// [Parameter] public bool IsDisabled { get; set; } @@ -71,7 +65,6 @@ public partial class TreeViewRow /// /// 获得/设置 是否显示复选框,默认为 false /// Gets or sets whether to show checkboxes. Default is false. - /// 10.2.2 /// [Parameter] public bool ShowCheckbox { get; set; } @@ -79,7 +72,6 @@ public partial class TreeViewRow /// /// 获得/设置 组件被禁用时,节点是否可以展开或折叠,默认为 false /// Gets or sets whether nodes can be expanded or collapsed when the component is disabled. Default is false. - /// 10.2.2 /// [Parameter] public bool CanExpandWhenDisabled { get; set; } @@ -87,7 +79,6 @@ public partial class TreeViewRow /// /// 获得/设置 节点切换事件回调 /// Gets or sets the node click event callback. - /// 10.2.2 /// [Parameter] public Func, Task>? OnToggleNodeAsync { get; set; } @@ -95,7 +86,6 @@ public partial class TreeViewRow /// /// 获得/设置 节点复选框状态变化事件回调 /// Gets or sets the node checkbox state change event callback. - /// 10.2.2 /// [Parameter] public Func, CheckboxState, Task>? OnCheckStateChanged { get; set; } @@ -103,7 +93,6 @@ public partial class TreeViewRow /// /// 获得/设置 可选中的最大节点数 /// Gets or sets the maximum number of selected items. - /// 10.2.2 /// [Parameter] public int MaxSelectedCount { get; set; } @@ -111,7 +100,6 @@ public partial class TreeViewRow /// /// 获得/设置 在节点状态改变前被调用的回调 /// Gets or sets the callback that is invoked before the node state changes. - /// 10.2.2 /// [Parameter] public Func, CheckboxState, Task>? OnBeforeStateChangedCallback { get; set; } @@ -119,7 +107,6 @@ public partial class TreeViewRow /// /// 获得/设置 是否显示图标,默认为 false /// Gets or sets whether to show icons. Default is false. - /// 10.2.2 /// [Parameter] public bool ShowIcon { get; set; } @@ -127,7 +114,6 @@ public partial class TreeViewRow /// /// 获得/设置 点击事件回调,默认为 null /// Gets or sets the click event callback. Default is null. - /// 10.2.2 /// [Parameter] public Func, Task>? OnClick { get; set; } @@ -135,7 +121,6 @@ public partial class TreeViewRow /// /// 获得/设置 是否显示工具栏,默认为 false /// Gets or sets whether show the toolbar of tree view item. Default is false. - /// 10.2.2 /// [Parameter] public bool ShowToolbar { get; set; } @@ -143,7 +128,6 @@ public partial class TreeViewRow /// /// 获得/设置 决定是否显示工具栏的回调 /// A callback method that determines whether to show the toolbar of the tree view item. - /// 10.2.2 /// [Parameter] public Func, Task>? ShowToolbarCallback { get; set; } @@ -151,7 +135,6 @@ public partial class TreeViewRow /// /// 获得/设置 弹出窗口的标题 /// Gets or sets the title of the popup-window. Default is null. - /// 10.2.2 /// [Parameter] public string? ToolbarEditTitle { get; set; } @@ -159,7 +142,6 @@ public partial class TreeViewRow /// /// 获得/设置 弹出窗口的标题 /// Gets or sets the title of the popup-window. Default is null. - /// 10.2.2 /// [Parameter] public string? ToolbarEditLabelText { get; set; } @@ -167,7 +149,6 @@ public partial class TreeViewRow /// /// 获得/设置 工具栏内容模板 /// Gets or sets the toolbar content template. Default is null. - /// 10.2.2 /// [Parameter] public RenderFragment? ToolbarTemplate { get; set; } @@ -176,7 +157,6 @@ public partial class TreeViewRow /// 获得/设置 更新树节点文本值的回调 /// Gets or sets the update the tree text value callback. Default is null. If return true will update the tree text value, otherwise will not update. /// - /// 10.2.2 /// [Parameter] public Func>? OnUpdateCallbackAsync { get; set; } @@ -235,7 +215,6 @@ private bool GetDisabledStatus() /// /// /// - /// protected override async Task OnParametersSetAsync() { await base.OnParametersSetAsync(); diff --git a/src/BootstrapBlazor/Components/TreeView/TreeViewToolbarEditButton.razor.cs b/src/BootstrapBlazor/Components/TreeView/TreeViewToolbarEditButton.razor.cs index 3ebc28e81dc..d67d887b331 100644 --- a/src/BootstrapBlazor/Components/TreeView/TreeViewToolbarEditButton.razor.cs +++ b/src/BootstrapBlazor/Components/TreeView/TreeViewToolbarEditButton.razor.cs @@ -22,7 +22,6 @@ public partial class TreeViewToolbarEditButton : ComponentBase /// /// 获得/设置 项更改事件回调 /// Gets or sets the item changed event callback. - /// 10.2.2 /// [Parameter] public EventCallback> ItemChanged { get; set; } @@ -30,7 +29,6 @@ public partial class TreeViewToolbarEditButton : ComponentBase /// /// 获得/设置 更新树文本值的回调方法,默认为 null。如果返回 true 将更新树文本值,否则不更新。 /// Gets or sets the callback method to update the tree text value. Default is null. If it returns true, the tree text value will be updated; otherwise, it will not be updated. - /// 10.2.2 /// [Parameter] public Func>? OnUpdateCallbackAsync { get; set; } @@ -38,7 +36,6 @@ public partial class TreeViewToolbarEditButton : ComponentBase /// /// 获得/设置 弹出窗口的标题,默认为 null /// Gets or sets the title of the popup window. Default is null. - /// 10.2.2 /// [Parameter] public string? Title { get; set; } @@ -46,7 +43,6 @@ public partial class TreeViewToolbarEditButton : ComponentBase /// /// 获得/设置 弹出窗口标签的文本,默认为 null /// Gets or sets the text of the popup window label. Default is null. - /// 10.2.2 /// [Parameter] public string? Text { get; set; } @@ -54,7 +50,6 @@ public partial class TreeViewToolbarEditButton : ComponentBase /// /// 获得/设置 编辑按钮的图标,默认为 null /// Gets or sets the icon of the edit button. Default is null. - /// 10.2.2 /// [Parameter] public string? Icon { get; set; } diff --git a/src/BootstrapBlazor/Components/Typed/Typed.razor.cs b/src/BootstrapBlazor/Components/Typed/Typed.razor.cs index ebe08160b53..2facd8c9b56 100644 --- a/src/BootstrapBlazor/Components/Typed/Typed.razor.cs +++ b/src/BootstrapBlazor/Components/Typed/Typed.razor.cs @@ -14,7 +14,6 @@ public partial class Typed /// /// 获得/设置 组件显示文字,默认 null /// Gets or sets the component display text. Default is null. - /// 10.2.2 /// [Parameter] public string? Text { get; set; } @@ -22,7 +21,6 @@ public partial class Typed /// /// 获得/设置 组件配置实例,默认 null /// Gets or sets the component configuration instance. Default is null. - /// 10.2.2 /// [Parameter] public TypedOptions? Options { get; set; } @@ -30,7 +28,6 @@ public partial class Typed /// /// 获得/设置 打字结束回调方法,默认 null /// Gets or sets the callback method when typing is complete. Default is null. - /// 10.2.2 /// [Parameter] public Func? OnCompleteAsync { get; set; } @@ -43,7 +40,6 @@ public partial class Typed /// /// /// - /// protected override async Task OnAfterRenderAsync(bool firstRender) { await base.OnAfterRenderAsync(firstRender); @@ -62,7 +58,6 @@ protected override async Task OnAfterRenderAsync(bool firstRender) /// /// /// - /// protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id, Interop, Text, Options, new { TriggerComplete = nameof(TriggerComplete) @@ -72,7 +67,6 @@ protected override async Task OnAfterRenderAsync(bool firstRender) /// 打字结束方法,由 JavaScript 触发 /// Called when typing is complete, triggered by JavaScript /// - /// [JSInvokable] public async Task TriggerComplete() { diff --git a/src/BootstrapBlazor/Components/Typed/TypedOptions.cs b/src/BootstrapBlazor/Components/Typed/TypedOptions.cs index d98fe9b3035..0166a423e99 100644 --- a/src/BootstrapBlazor/Components/Typed/TypedOptions.cs +++ b/src/BootstrapBlazor/Components/Typed/TypedOptions.cs @@ -105,7 +105,6 @@ public class TypedOptions : IEquatable /// /// /// - /// public bool Equals(TypedOptions? option) { if (option == null) @@ -147,7 +146,6 @@ private bool EqualText(List? text) /// /// /// - /// public override bool Equals(object? obj) { if (obj is TypedOptions option) @@ -161,6 +159,5 @@ public override bool Equals(object? obj) /// /// /// - /// public override int GetHashCode() => base.GetHashCode(); } diff --git a/src/BootstrapBlazor/Components/Upload/AvatarUpload.razor.cs b/src/BootstrapBlazor/Components/Upload/AvatarUpload.razor.cs index 65d61358bbb..9945ed4bb44 100644 --- a/src/BootstrapBlazor/Components/Upload/AvatarUpload.razor.cs +++ b/src/BootstrapBlazor/Components/Upload/AvatarUpload.razor.cs @@ -14,7 +14,6 @@ public partial class AvatarUpload /// /// 获得/设置 文件预览框宽度 /// Gets or sets the width of the file preview box - /// 10.2.2 /// [Parameter] public int Width { get; set; } = 100; @@ -22,7 +21,6 @@ public partial class AvatarUpload /// /// 获得/设置 文件预览框高度 /// Gets or sets the height of the file preview box - /// 10.2.2 /// [Parameter] public int Height { get; set; } = 100; @@ -30,7 +28,6 @@ public partial class AvatarUpload /// /// 获得/设置 是否圆形图片框,Avatar 模式时生效,默认为 false /// Gets or sets whether to use circular image frame. Default is false. - /// 10.2.2 /// [Parameter] public bool IsCircle { get; set; } @@ -38,7 +35,6 @@ public partial class AvatarUpload /// /// 获得/设置 边框圆角,默认为 null /// Gets or sets the border radius. Default is null. - /// 10.2.2 /// [Parameter] public string? BorderRadius { get; set; } @@ -46,7 +42,6 @@ public partial class AvatarUpload /// /// 获得/设置 允许的文件扩展名集合,".png" /// Gets or sets the allowed file extensions collection. ".png" - /// 10.2.2 /// [Parameter] public List? AllowExtensions { get; set; } @@ -54,7 +49,6 @@ public partial class AvatarUpload /// /// 获得/设置 删除图标 /// Gets or sets the delete icon - /// 10.2.2 /// [Parameter] public string? DeleteIcon { get; set; } @@ -62,7 +56,6 @@ public partial class AvatarUpload /// /// 获得/设置 加载中图标 /// Gets or sets the loading icon - /// 10.2.2 /// [Parameter] public string? LoadingIcon { get; set; } @@ -70,7 +63,6 @@ public partial class AvatarUpload /// /// 获得/设置 新增图标 /// Gets or sets the add icon - /// 10.2.2 /// [Parameter] public string? AddIcon { get; set; } @@ -78,7 +70,6 @@ public partial class AvatarUpload /// /// 获得/设置 上传成功状态图标 /// Gets or sets the valid status icon - /// 10.2.2 /// [Parameter] public string? ValidStatusIcon { get; set; } @@ -86,7 +77,6 @@ public partial class AvatarUpload /// /// 获得/设置 上传失败状态图标 /// Gets or sets the invalid status icon - /// 10.2.2 /// [Parameter] public string? InvalidStatusIcon { get; set; } @@ -94,7 +84,6 @@ public partial class AvatarUpload /// /// 获得/设置 继续上传按钮是否在列表前,默认 false /// Gets or sets whether the upload button is displayed before the list. Default is false. - /// 10.2.2 /// [Parameter] public bool IsUploadButtonAtFirst { get; set; } @@ -102,7 +91,6 @@ public partial class AvatarUpload /// /// 获得/设置 是否允许预览的回调方法,默认 null /// Gets or sets the callback method to determine whether preview is allowed. Default is null. - /// 10.2.2 /// [Parameter] public Func? CanPreviewCallback { get; set; } @@ -164,7 +152,6 @@ protected override void OnParametersSet() /// /// /// - /// protected override async Task TriggerOnChanged(UploadFile file) { // 从客户端获得预览地址不使用 base64 编码 @@ -179,7 +166,6 @@ protected override async Task TriggerOnChanged(UploadFile file) /// 预览当前头像方法 /// 预览当前头像方法 /// - /// public async Task Preview() { if (ShowPreviewList) @@ -226,14 +212,12 @@ public override async Task ToggleMessage(IReadOnlyCollection r /// /// /// - /// protected override ValueTask ShowValidResult() => ValueTask.CompletedTask; /// /// /// /// - /// protected override async ValueTask RemoveValidResult(string? validateId = null) { if (!string.IsNullOrEmpty(validateId)) @@ -248,7 +232,6 @@ protected override async ValueTask RemoveValidResult(string? validateId = null) /// /// /// - /// protected override async ValueTask DisposeAsync(bool disposing) { if (disposing) diff --git a/src/BootstrapBlazor/Components/Upload/ButtonUpload.razor.cs b/src/BootstrapBlazor/Components/Upload/ButtonUpload.razor.cs index 18dc75145b5..b9f8a001612 100644 --- a/src/BootstrapBlazor/Components/Upload/ButtonUpload.razor.cs +++ b/src/BootstrapBlazor/Components/Upload/ButtonUpload.razor.cs @@ -16,7 +16,6 @@ public partial class ButtonUpload /// /// 获得/设置 浏览按钮加载中图标 /// Gets or sets the loading icon for the browse button - /// 10.2.2 /// [Parameter] public string? LoadingIcon { get; set; } @@ -24,7 +23,6 @@ public partial class ButtonUpload /// /// 获得/设置 上传失败状态图标 /// Gets or sets the upload failed status icon - /// 10.2.2 /// [Parameter] public string? InvalidStatusIcon { get; set; } @@ -32,7 +30,6 @@ public partial class ButtonUpload /// /// 获得/设置 上传成功状态图标 /// Gets or sets the upload success status icon - /// 10.2.2 /// [Parameter] public string? ValidStatusIcon { get; set; } @@ -40,7 +37,6 @@ public partial class ButtonUpload /// /// 获得/设置 浏览按钮图标 /// Gets or sets the browse button icon - /// 10.2.2 /// [Parameter] public string? BrowserButtonIcon { get; set; } @@ -48,7 +44,6 @@ public partial class ButtonUpload /// /// 获得/设置 上传按钮样式,默认 null 使用 Button 默认 Primary 颜色 /// Gets or sets the upload button style. Default is null, uses Button Primary color. - /// 10.2.2 /// [Parameter] public string? BrowserButtonClass { get; set; } @@ -56,7 +51,6 @@ public partial class ButtonUpload /// /// 获得/设置 是否显示上传列表,默认 true /// Gets or sets whether to display the upload file list. Default is true. - /// 10.2.2 /// [Parameter] public bool ShowUploadFileList { get; set; } = true; @@ -64,7 +58,6 @@ public partial class ButtonUpload /// /// 获得/设置 浏览按钮显示文字 /// Gets or sets the browse button display text - /// 10.2.2 /// [Parameter] [NotNull] @@ -73,7 +66,6 @@ public partial class ButtonUpload /// /// 获得/设置 浏览按钮颜色 /// Gets or sets the browse button color - /// 10.2.2 /// [Parameter] public Color BrowserButtonColor { get; set; } = Color.Primary; @@ -81,7 +73,6 @@ public partial class ButtonUpload /// /// 获得/设置 按钮大小 /// Gets or sets the button size - /// 10.2.2 /// [Parameter] public Size Size { get; set; } @@ -89,7 +80,6 @@ public partial class ButtonUpload /// /// 获得/设置 子组件内容 /// Gets or sets the child content - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } @@ -97,7 +87,6 @@ public partial class ButtonUpload /// /// 获得/设置 设置文件格式图标回调委托 /// Gets or sets the callback delegate for setting file format icons - /// 10.2.2 /// [Parameter] public Func? OnGetFileFormat { get; set; } diff --git a/src/BootstrapBlazor/Components/Upload/CardUpload.razor.cs b/src/BootstrapBlazor/Components/Upload/CardUpload.razor.cs index 6474392f275..bd965cd4a4c 100644 --- a/src/BootstrapBlazor/Components/Upload/CardUpload.razor.cs +++ b/src/BootstrapBlazor/Components/Upload/CardUpload.razor.cs @@ -55,7 +55,6 @@ public partial class CardUpload /// /// 获得/设置 是否允许预览的回调方法,默认 null /// Gets or sets the callback method to determine whether preview is allowed. Default is null. - /// 10.2.2 /// [Parameter] public Func? CanPreviewCallback { get; set; } @@ -63,7 +62,6 @@ public partial class CardUpload /// /// 获得/设置 图标模板 /// Gets or sets the icon template - /// 10.2.2 /// [Parameter] public RenderFragment? IconTemplate { get; set; } @@ -71,7 +69,6 @@ public partial class CardUpload /// /// 获得/设置 操作按钮前模板 /// Gets or sets the before action button template - /// 10.2.2 /// [Parameter] public RenderFragment? BeforeActionButtonTemplate { get; set; } @@ -79,7 +76,6 @@ public partial class CardUpload /// /// 获得/设置 操作按钮模板 /// Gets or sets the action button template - /// 10.2.2 /// [Parameter] public RenderFragment? ActionButtonTemplate { get; set; } @@ -87,7 +83,6 @@ public partial class CardUpload /// /// 获得/设置 是否显示文件尺寸,默认为 true /// Gets or sets whether to display the file size. Default is true. - /// 10.2.2 /// [Parameter] public bool ShowFileSize { get; set; } = true; @@ -95,7 +90,6 @@ public partial class CardUpload /// /// 获得/设置 新建图标 /// Gets or sets the add icon - /// 10.2.2 /// [Parameter] public string? AddIcon { get; set; } @@ -103,7 +97,6 @@ public partial class CardUpload /// /// 获得/设置 状态图标 /// Gets or sets the status icon - /// 10.2.2 /// [Parameter] public string? StatusIcon { get; set; } @@ -111,7 +104,6 @@ public partial class CardUpload /// /// 获得/设置 移除图标 /// Gets or sets the remove icon - /// 10.2.2 /// [Parameter] public string? RemoveIcon { get; set; } @@ -119,7 +111,6 @@ public partial class CardUpload /// /// 获得/设置 放大图标 /// Gets or sets the zoom icon - /// 10.2.2 /// [Parameter] public string? ZoomIcon { get; set; } @@ -127,7 +118,6 @@ public partial class CardUpload /// /// 获得/设置 是否显示放大按钮,默认 true /// Gets or sets whether to display the zoom button. Default is true. - /// 10.2.2 /// [Parameter] public bool ShowZoomButton { get; set; } = true; @@ -135,7 +125,6 @@ public partial class CardUpload /// /// 获得/设置 是否显示删除按钮,默认 true /// Gets or sets whether to display the delete button. Default is true. - /// 10.2.2 /// [Parameter] [Obsolete("已弃用,请使用 ShowDeleteButton 参数。(Deprecated, please use the ShowDeleteButton parameter)")] @@ -145,7 +134,6 @@ public partial class CardUpload /// /// 获得/设置 继续上传按钮是否在列表前,默认 false /// Gets or sets whether the continue upload button is in front of the list. Default is false. - /// 10.2.2 /// [Parameter] public bool IsUploadButtonAtFirst { get; set; } @@ -153,7 +141,6 @@ public partial class CardUpload /// /// 获得/设置 点击放大图标回调方法 /// Gets or sets the callback method for the zoom icon click event - /// 10.2.2 /// [Parameter] public Func? OnZoomAsync { get; set; } @@ -161,7 +148,6 @@ public partial class CardUpload /// /// 获得/设置 允许的文件扩展名集合 ".png" /// Gets or sets the allowed file extensions collection. ".png" - /// 10.2.2 /// [Parameter] public List? AllowExtensions { get; set; } @@ -169,7 +155,6 @@ public partial class CardUpload /// /// 获得/设置 删除前是否显示确认对话框,依赖 ShowDeleteButton 属性为 true 时有效 /// Gets or sets whether to display a confirmation dialog before deletion. Only takes effect when the ShowDeleteButton property is true. - /// 10.2.2 /// [Parameter] public bool ShowDeleteConfirmButton { get; set; } @@ -177,7 +162,6 @@ public partial class CardUpload /// /// 获得/设置 删除确认弹窗中确认按钮颜色,默认 Color.Danger /// Gets or sets the color of the confirmation button in the delete confirmation dialog. Default is Color.Danger. - /// 10.2.2 /// [Parameter] public Color DeleteConfirmButtonColor { get; set; } = Color.Danger; @@ -185,7 +169,6 @@ public partial class CardUpload /// /// 获得/设置 删除确认弹窗中确认按钮图标,默认 null /// Gets or sets the confirmation button icon in the delete confirmation dialog. Default is null. - /// 10.2.2 /// [Parameter] public string? DeleteConfirmButtonIcon { get; set; } @@ -193,7 +176,6 @@ public partial class CardUpload /// /// 获得/设置 删除确认弹窗中确认文本内容,默认 null 使用资源文件中内置文字 /// Gets or sets the confirmation text content in the delete confirmation dialog. Default is null (uses built-in text from resource file). - /// 10.2.2 /// [Parameter] public string? DeleteConfirmContent { get; set; } @@ -201,7 +183,6 @@ public partial class CardUpload /// /// 获得/设置 删除确认弹窗中确认按钮显示文字,默认 null /// Gets or sets the confirmation button display text in the delete confirmation dialog. Default is null. - /// 10.2.2 /// [Parameter] public string? DeleteConfirmButtonText { get; set; } @@ -209,7 +190,6 @@ public partial class CardUpload /// /// 获得/设置 删除确认弹窗中取消按钮显示文字,默认 null /// Gets or sets the cancel button display text in the delete confirmation dialog. Default is null. - /// 10.2.2 /// [Parameter] public string? DeleteCloseButtonText { get; set; } @@ -236,7 +216,6 @@ protected override void OnParametersSet() /// /// /// - /// protected override async Task TriggerOnChanged(UploadFile file) { // 从客户端获得预览地址不使用 base64 编码 @@ -273,14 +252,12 @@ public override async Task ToggleMessage(IReadOnlyCollection r /// /// /// - /// protected override ValueTask ShowValidResult() => ValueTask.CompletedTask; /// /// /// /// - /// protected override async ValueTask RemoveValidResult(string? validateId = null) { if (!string.IsNullOrEmpty(validateId)) diff --git a/src/BootstrapBlazor/Components/Upload/DropUpload.razor.cs b/src/BootstrapBlazor/Components/Upload/DropUpload.razor.cs index ee749549b96..81c223d0288 100644 --- a/src/BootstrapBlazor/Components/Upload/DropUpload.razor.cs +++ b/src/BootstrapBlazor/Components/Upload/DropUpload.razor.cs @@ -16,7 +16,6 @@ public partial class DropUpload /// /// 获得/设置 Body 模板,默认 null。设置 BodyTemplate 后 IconTemplate 和 TextTemplate 不生效。 /// Gets or sets the body template. Default is null. When BodyTemplate is set, IconTemplate and TextTemplate are not effective. - /// 10.2.2 /// [Parameter] public RenderFragment? BodyTemplate { get; set; } @@ -24,7 +23,6 @@ public partial class DropUpload /// /// 获得/设置 图标模板,默认 null /// Gets or sets the icon template. Default is null. - /// 10.2.2 /// [Parameter] public RenderFragment? IconTemplate { get; set; } @@ -32,7 +30,6 @@ public partial class DropUpload /// /// 获得/设置 图标,默认 null /// Gets or sets the icon. Default is null. - /// 10.2.2 /// [Parameter] public string? UploadIcon { get; set; } @@ -40,7 +37,6 @@ public partial class DropUpload /// /// 获得/设置 文字模板,默认 null /// Gets or sets the text template. Default is null. - /// 10.2.2 /// [Parameter] public RenderFragment? TextTemplate { get; set; } @@ -48,7 +44,6 @@ public partial class DropUpload /// /// 获得/设置 上传文字,默认 null /// Gets or sets the upload text. Default is null. - /// 10.2.2 /// [Parameter] [NotNull] @@ -57,7 +52,6 @@ public partial class DropUpload /// /// 获得/设置 是否显示 Footer,默认 false /// Gets or sets whether to display the footer. Default is false. - /// 10.2.2 /// [Parameter] public bool ShowFooter { get; set; } @@ -65,7 +59,6 @@ public partial class DropUpload /// /// 获得/设置 Footer 字符串模板,默认 null /// Gets or sets the footer template. Default is null. - /// 10.2.2 /// [Parameter] public RenderFragment? FooterTemplate { get; set; } @@ -73,7 +66,6 @@ public partial class DropUpload /// /// 获得/设置 Footer 字符串信息,默认 null /// Gets or sets the footer text. Default is null. - /// 10.2.2 /// [Parameter] [NotNull] @@ -82,7 +74,6 @@ public partial class DropUpload /// /// 获得/设置 是否显示上传列表,默认 true /// Gets or sets whether to display the upload file list. Default is true. - /// 10.2.2 /// [Parameter] public bool ShowUploadFileList { get; set; } = true; @@ -90,7 +81,6 @@ public partial class DropUpload /// /// 获得/设置 设置文件格式图标回调委托 /// Gets or sets the file format icon callback delegate - /// 10.2.2 /// [Parameter] public Func? OnGetFileFormat { get; set; } @@ -98,7 +88,6 @@ public partial class DropUpload /// /// 获得/设置 加载中图标 /// Gets or sets the loading icon. - /// 10.2.2 /// [Parameter] public string? LoadingIcon { get; set; } @@ -106,7 +95,6 @@ public partial class DropUpload /// /// 获得/设置 上传失败状态图标 /// Gets or sets the upload failed status icon. - /// 10.2.2 /// [Parameter] public string? InvalidStatusIcon { get; set; } @@ -114,7 +102,6 @@ public partial class DropUpload /// /// 获得/设置 上传成功状态图标 /// Gets or sets the upload success status icon. - /// 10.2.2 /// [Parameter] public string? ValidStatusIcon { get; set; } diff --git a/src/BootstrapBlazor/Components/Upload/FileListUploadBase.cs b/src/BootstrapBlazor/Components/Upload/FileListUploadBase.cs index 1fb338e2783..15b13d8965b 100644 --- a/src/BootstrapBlazor/Components/Upload/FileListUploadBase.cs +++ b/src/BootstrapBlazor/Components/Upload/FileListUploadBase.cs @@ -15,7 +15,6 @@ public class FileListUploadBase : UploadBase /// /// 获得/设置 是否显示删除按钮,默认 false /// Gets or sets whether to display the delete button. Default is false. - /// 10.2.2 /// [Parameter] public bool ShowDeleteButton { get; set; } @@ -23,7 +22,6 @@ public class FileListUploadBase : UploadBase /// /// 获得/设置 删除按钮图标 /// Gets or sets the delete button icon - /// 10.2.2 /// [Parameter] public string? DeleteIcon { get; set; } @@ -31,7 +29,6 @@ public class FileListUploadBase : UploadBase /// /// 获得/设置 是否显示下载按钮,默认 false /// Gets or sets whether to display the download button. Default is false. - /// 10.2.2 /// [Parameter] public bool ShowDownloadButton { get; set; } @@ -39,7 +36,6 @@ public class FileListUploadBase : UploadBase /// /// 获得/设置 下载按钮图标 /// Gets or sets the download button icon - /// 10.2.2 /// [Parameter] public string? DownloadIcon { get; set; } @@ -47,7 +43,6 @@ public class FileListUploadBase : UploadBase /// /// 获得/设置 点击下载按钮回调方法,默认 null /// Gets or sets the callback method for the download button click event. Default is null. - /// 10.2.2 /// [Parameter] public Func? OnDownload { get; set; } @@ -55,7 +50,6 @@ public class FileListUploadBase : UploadBase /// /// 获得/设置 取消按钮图标 /// Gets or sets the cancel button icon - /// 10.2.2 /// [Parameter] public string? CancelIcon { get; set; } @@ -63,7 +57,6 @@ public class FileListUploadBase : UploadBase /// /// 获得/设置 点击取消按钮回调方法,默认 null /// Gets or sets the callback method for the cancel button click event. Default is null. - /// 10.2.2 /// [Parameter] public Func? OnCancel { get; set; } diff --git a/src/BootstrapBlazor/Components/Upload/InputUpload.razor.cs b/src/BootstrapBlazor/Components/Upload/InputUpload.razor.cs index 19383dc12bd..fbfc32e1cca 100644 --- a/src/BootstrapBlazor/Components/Upload/InputUpload.razor.cs +++ b/src/BootstrapBlazor/Components/Upload/InputUpload.razor.cs @@ -16,7 +16,6 @@ public partial class InputUpload /// /// 获得/设置 浏览按钮图标 /// Gets or sets the browse button icon - /// 10.2.2 /// [Parameter] public string? BrowserButtonIcon { get; set; } @@ -24,7 +23,6 @@ public partial class InputUpload /// /// 获得/设置 上传按钮样式,默认 btn-primary /// Gets or sets the upload button style. Default is btn-primary. - /// 10.2.2 /// [Parameter] public string BrowserButtonClass { get; set; } = "btn-primary"; @@ -32,7 +30,6 @@ public partial class InputUpload /// /// 获得/设置 浏览按钮显示文字 /// Gets or sets the browse button display text - /// 10.2.2 /// [Parameter] [NotNull] @@ -41,7 +38,6 @@ public partial class InputUpload /// /// 获得/设置 删除按钮样式,默认 btn-danger /// Gets or sets the delete button style. Default is btn-danger. - /// 10.2.2 /// [Parameter] public string DeleteButtonClass { get; set; } = "btn-danger"; @@ -49,7 +45,6 @@ public partial class InputUpload /// /// 获得/设置 删除按钮图标 /// Gets or sets the delete button icon - /// 10.2.2 /// [Parameter] public string? DeleteButtonIcon { get; set; } @@ -57,7 +52,6 @@ public partial class InputUpload /// /// 获得/设置 删除按钮显示文字 /// Gets or sets the delete button display text - /// 10.2.2 /// [Parameter] [NotNull] @@ -66,7 +60,6 @@ public partial class InputUpload /// /// 获得/设置 是否显示删除按钮,默认为 false /// Gets or sets whether to display the delete button. Default is false. - /// 10.2.2 /// [Parameter] public bool ShowDeleteButton { get; set; } @@ -74,7 +67,6 @@ public partial class InputUpload /// /// 获得/设置 PlaceHolder 占位符文本 /// Gets or sets the placeholder text - /// 10.2.2 /// [Parameter] public string? PlaceHolder { get; set; } diff --git a/src/BootstrapBlazor/Components/Upload/UploadBase.cs b/src/BootstrapBlazor/Components/Upload/UploadBase.cs index 6ff132cc69b..c712db654d3 100644 --- a/src/BootstrapBlazor/Components/Upload/UploadBase.cs +++ b/src/BootstrapBlazor/Components/Upload/UploadBase.cs @@ -17,7 +17,6 @@ public abstract class UploadBase : ValidateBase, IUpload /// /// 获得/设置 是否仅上传一次,默认 false /// Gets or sets whether to upload only once. Default is false. - /// 10.2.2 /// [Parameter] [Obsolete("已弃用。请使用 IsMultiple 参数。(Deprecated. Please use IsMultiple parameter.)")] @@ -27,7 +26,6 @@ public abstract class UploadBase : ValidateBase, IUpload /// /// 获得/设置 最大上传个数,默认为最大值 int.MaxValue /// Gets or sets the maximum number of files to upload. Default is int.MaxValue. - /// 10.2.2 /// [Parameter] [Obsolete("已弃用。请使用 MaxFileCount 参数。(Deprecated. Please use MaxFileCount parameter.)")] @@ -37,7 +35,6 @@ public abstract class UploadBase : ValidateBase, IUpload /// /// 获得/设置 最大上传个数,默认为 null /// Gets or sets the maximum number of files to upload. Default is null. - /// 10.2.2 /// [Parameter] public int? MaxFileCount { get; set; } @@ -45,7 +42,6 @@ public abstract class UploadBase : ValidateBase, IUpload /// /// 获得/设置 所有文件上传完毕回调方法,默认 null /// Gets or sets the callback method when all files have been uploaded. Default is null. - /// 10.2.2 /// [Parameter] public Func, Task>? OnAllFileUploaded { get; set; } @@ -53,7 +49,6 @@ public abstract class UploadBase : ValidateBase, IUpload /// /// 获得/设置 已上传文件集合,可用于组件初始化 /// Gets or sets the uploaded file collection for component initialization - /// 10.2.2 /// [Parameter] public List? DefaultFileList { get; set; } @@ -61,7 +56,6 @@ public abstract class UploadBase : ValidateBase, IUpload /// /// 获得/设置 是否显示上传进度,默认为 false /// Gets or sets whether to display the upload progress. Default is false. - /// 10.2.2 /// [Parameter] public bool ShowProgress { get; set; } @@ -69,7 +63,6 @@ public abstract class UploadBase : ValidateBase, IUpload /// /// 获得/设置 上传接收的文件格式,默认为 null 接收任意格式 /// Gets or sets the accepted file format. Default is null (accepts all formats). - /// 10.2.2 /// [Parameter] public string? Accept { get; set; } @@ -77,7 +70,6 @@ public abstract class UploadBase : ValidateBase, IUpload /// /// 获得/设置 媒体捕获机制的首选面向模式,默认为 null /// Gets or sets the preferred facing mode for media capture. Default is null. - /// 10.2.2 /// [Parameter] public string? Capture { get; set; } @@ -85,7 +77,6 @@ public abstract class UploadBase : ValidateBase, IUpload /// /// 获得/设置 是否上传整个目录,默认为 false /// Gets or sets whether to upload the entire directory. Default is false. - /// 10.2.2 /// [Parameter] public bool IsDirectory { get; set; } @@ -93,7 +84,6 @@ public abstract class UploadBase : ValidateBase, IUpload /// /// 获得/设置 是否允许多文件上传,默认 false /// Gets or sets whether to allow multiple file uploads. Default is false. - /// 10.2.2 /// [Parameter] public bool IsMultiple { get; set; } @@ -101,7 +91,6 @@ public abstract class UploadBase : ValidateBase, IUpload /// /// 获得/设置 点击删除按钮时回调此方法,默认 null /// Gets or sets the callback method when the delete button is clicked. Default is null. - /// 10.2.2 /// [Parameter] public Func>? OnDelete { get; set; } @@ -109,7 +98,6 @@ public abstract class UploadBase : ValidateBase, IUpload /// /// 获得/设置 点击浏览按钮时回调此方法,如果多文件上传此回调会触发多次,默认 null /// Gets or sets the callback method when the browse button is clicked. This may be called multiple times for multiple file uploads. Default is null. - /// 10.2.2 /// [Parameter] public Func? OnChange { get; set; } @@ -168,7 +156,6 @@ protected override void OnParametersSet() /// User selects files callback method /// /// - /// protected async Task OnFileChange(InputFileChangeEventArgs args) { var fileCount = args.FileCount; @@ -250,7 +237,6 @@ private void UpdateValue(List items) /// Trigger OnChanged event callback method /// /// - /// protected virtual async Task TriggerOnChanged(UploadFile file) { if (OnChange != null) @@ -264,7 +250,6 @@ protected virtual async Task TriggerOnChanged(UploadFile file) /// Delete file method. /// /// - /// protected virtual async Task OnFileDelete(UploadFile item) { var ret = true; @@ -295,7 +280,6 @@ protected virtual async Task OnFileDelete(UploadFile item) /// Whether to display progress bar method /// /// - /// protected bool GetShowProgress(UploadFile item) => ShowProgress && !item.Uploaded; /// @@ -318,7 +302,6 @@ protected void Update(UploadFile file) /// Gets当前文件collection Get the files collection. /// /// - /// protected List GetUploadFiles() { if (_filesCache == null) @@ -345,7 +328,6 @@ protected List GetUploadFiles() /// 检查whether可以继续上传文件 Check whether can upload file. /// /// - /// protected bool CanUpload() { // 允许多上传 @@ -362,14 +344,12 @@ protected bool CanUpload() /// 检查上传按钮是否可用方法 不可用时返回 true /// 检查上传buttonwhether可用方法 不可用时返回 true /// - /// protected bool CheckStatus() => IsDisabled || !CanUpload(); /// /// 判断是否显示新建按钮 /// 判断whetherdisplay新建button /// - /// protected bool ShowAddButton() { if (IsDisabled) @@ -399,7 +379,6 @@ public virtual void Reset() /// append html attribute method. /// append html attribute method. /// - /// protected IDictionary GetUploadAdditionalAttributes() { var ret = new Dictionary diff --git a/src/BootstrapBlazor/Components/Upload/UploadFile.cs b/src/BootstrapBlazor/Components/Upload/UploadFile.cs index 530a2eb250f..d85a17150f6 100644 --- a/src/BootstrapBlazor/Components/Upload/UploadFile.cs +++ b/src/BootstrapBlazor/Components/Upload/UploadFile.cs @@ -89,13 +89,11 @@ public class UploadFile /// 获得 UploadFile 的文件名 /// Gets the file name of the UploadFile /// - /// public string? GetFileName() => FileName ?? OriginFileName ?? File?.Name; /// /// 获得 UploadFile 的文件扩展名 /// Gets the file extension of the UploadFile /// - /// public string? GetExtension() => Path.GetExtension(GetFileName()); } diff --git a/src/BootstrapBlazor/Components/Upload/UploadPreviewList.razor.cs b/src/BootstrapBlazor/Components/Upload/UploadPreviewList.razor.cs index 3e12edc9672..b1e0556f966 100644 --- a/src/BootstrapBlazor/Components/Upload/UploadPreviewList.razor.cs +++ b/src/BootstrapBlazor/Components/Upload/UploadPreviewList.razor.cs @@ -14,7 +14,6 @@ public partial class UploadPreviewList /// /// 获得/设置 待上传文件集合 /// Gets or sets the collection of files to be uploaded. - /// 10.2.2 /// [Parameter] [NotNull] @@ -23,7 +22,6 @@ public partial class UploadPreviewList /// /// 获得/设置 上传列表禁用状态 /// Gets or sets the disable status of the upload list. - /// 10.2.2 /// [Parameter] public bool IsDisabled { get; set; } @@ -31,7 +29,6 @@ public partial class UploadPreviewList /// /// 获得/设置 是否在操作期间显示进度 /// Gets or sets a value indicating whether progress should be displayed during the operation. - /// 10.2.2 /// [Parameter] public bool ShowProgress { get; set; } @@ -39,7 +36,6 @@ public partial class UploadPreviewList /// /// 获得/设置 上传文件格式回调方法 /// Gets or sets the upload file format callback method. - /// 10.2.2 /// [Parameter] public Func? OnGetFileFormat { get; set; } @@ -47,7 +43,6 @@ public partial class UploadPreviewList /// /// 获得/设置 点击取消按钮回调方法,默认 null /// Gets or sets the callback method for the cancel button click event. Default is null. - /// 10.2.2 /// [Parameter] public Func? OnCancel { get; set; } @@ -55,7 +50,6 @@ public partial class UploadPreviewList /// /// 获得/设置 取消按钮图标 /// Gets or sets the cancel button icon. - /// 10.2.2 /// [Parameter] public string? CancelIcon { get; set; } @@ -63,7 +57,6 @@ public partial class UploadPreviewList /// /// 获得/设置 加载状态图标 /// Gets or sets the loading state icon. - /// 10.2.2 /// [Parameter] public string? LoadingIcon { get; set; } @@ -71,7 +64,6 @@ public partial class UploadPreviewList /// /// 获得/设置 下载按钮图标 /// Gets or sets the download button icon. - /// 10.2.2 /// [Parameter] public string? DownloadIcon { get; set; } @@ -79,7 +71,6 @@ public partial class UploadPreviewList /// /// 获得/设置 上传失败状态图标 /// Gets or sets the upload failed status icon. - /// 10.2.2 /// [Parameter] public string? InvalidStatusIcon { get; set; } @@ -87,7 +78,6 @@ public partial class UploadPreviewList /// /// 获得/设置 上传成功状态图标 /// Gets or sets the upload success status icon. - /// 10.2.2 /// [Parameter] public string? ValidStatusIcon { get; set; } @@ -95,7 +85,6 @@ public partial class UploadPreviewList /// /// 获得/设置 删除按钮图标 /// Gets or sets the delete button icon. - /// 10.2.2 /// [Parameter] public string? DeleteIcon { get; set; } @@ -103,7 +92,6 @@ public partial class UploadPreviewList /// /// 获得/设置 是否显示下载按钮,默认 false /// Gets or sets whether to display the download button. Default is false. - /// 10.2.2 /// [Parameter] public bool ShowDownloadButton { get; set; } @@ -111,7 +99,6 @@ public partial class UploadPreviewList /// /// 获得/设置 点击下载按钮回调方法,默认 null /// Gets or sets the callback method for the download button click event. Default is null. - /// 10.2.2 /// [Parameter] public Func? OnDownload { get; set; } @@ -119,7 +106,6 @@ public partial class UploadPreviewList /// /// 获得/设置 点击删除按钮回调方法,默认 null /// Gets or sets the callback method for the delete button click event. Default is null. - /// 10.2.2 /// [Parameter] public Func>? OnDelete { get; set; } @@ -127,7 +113,6 @@ public partial class UploadPreviewList /// /// 获得/设置 Excel 类型文件图标 /// Gets or sets the Excel file type icon. - /// 10.2.2 /// [Parameter] public string? FileIconExcel { get; set; } @@ -135,7 +120,6 @@ public partial class UploadPreviewList /// /// 获得/设置 Word 文档文件图标 /// Gets or sets the Word document file type icon. - /// 10.2.2 /// [Parameter] public string? FileIconDocx { get; set; } @@ -143,7 +127,6 @@ public partial class UploadPreviewList /// /// 获得/设置 PowerPoint 文件图标 /// Gets or sets the PowerPoint file type icon. - /// 10.2.2 /// [Parameter] public string? FileIconPPT { get; set; } @@ -151,7 +134,6 @@ public partial class UploadPreviewList /// /// 获得/设置 音频文件图标 /// Gets or sets the audio file type icon. - /// 10.2.2 /// [Parameter] public string? FileIconAudio { get; set; } @@ -159,7 +141,6 @@ public partial class UploadPreviewList /// /// 获得/设置 视频文件图标 /// Gets or sets the video file type icon. - /// 10.2.2 /// [Parameter] public string? FileIconVideo { get; set; } @@ -167,7 +148,6 @@ public partial class UploadPreviewList /// /// 获得/设置 代码文件图标 /// Gets or sets the code file type icon. - /// 10.2.2 /// [Parameter] public string? FileIconCode { get; set; } @@ -175,7 +155,6 @@ public partial class UploadPreviewList /// /// 获得/设置 PDF 文件图标 /// Gets or sets the PDF file type icon. - /// 10.2.2 /// [Parameter] public string? FileIconPdf { get; set; } @@ -183,7 +162,6 @@ public partial class UploadPreviewList /// /// 获得/设置 压缩文件图标 /// Gets or sets the compressed file type icon. - /// 10.2.2 /// [Parameter] public string? FileIconZip { get; set; } @@ -191,7 +169,6 @@ public partial class UploadPreviewList /// /// 获得/设置 档案文件图标 /// Gets or sets the archive file type icon. - /// 10.2.2 /// [Parameter] public string? FileIconArchive { get; set; } @@ -199,7 +176,6 @@ public partial class UploadPreviewList /// /// 获得/设置 图像文件图标 /// Gets or sets the image file type icon. - /// 10.2.2 /// [Parameter] public string? FileIconImage { get; set; } @@ -207,7 +183,6 @@ public partial class UploadPreviewList /// /// 获得/设置 通用文件图标 /// Gets or sets the generic file type icon. - /// 10.2.2 /// [Parameter] public string? FileIconFile { get; set; } diff --git a/src/BootstrapBlazor/Components/Validate/IValidateCollection.cs b/src/BootstrapBlazor/Components/Validate/IValidateCollection.cs index c3d3ac71612..78a667863dd 100644 --- a/src/BootstrapBlazor/Components/Validate/IValidateCollection.cs +++ b/src/BootstrapBlazor/Components/Validate/IValidateCollection.cs @@ -16,20 +16,17 @@ public interface IValidateCollection /// Validates the specified validation context /// /// - /// IEnumerable Validate(ValidationContext validationContext); /// /// 返回合法成员集合 /// Gets the valid member names collection /// - /// List GetValidMemberNames(); /// /// 返回非法成员集合 /// Gets the invalid member names collection /// - /// List GetInvalidMemberNames(); } diff --git a/src/BootstrapBlazor/Components/Validate/IValidateComponent.cs b/src/BootstrapBlazor/Components/Validate/IValidateComponent.cs index df8bfd5c4f4..c490dbd4ae6 100644 --- a/src/BootstrapBlazor/Components/Validate/IValidateComponent.cs +++ b/src/BootstrapBlazor/Components/Validate/IValidateComponent.cs @@ -21,7 +21,6 @@ public interface IValidateComponent /// 判断是否需要进行复杂类验证 /// Determines whether complex type validation is needed /// - /// bool IsComplexValue(object? value); /// diff --git a/src/BootstrapBlazor/Components/Validate/ValidateBase.cs b/src/BootstrapBlazor/Components/Validate/ValidateBase.cs index ef4584dc916..3bef1dc3bb2 100644 --- a/src/BootstrapBlazor/Components/Validate/ValidateBase.cs +++ b/src/BootstrapBlazor/Components/Validate/ValidateBase.cs @@ -165,7 +165,6 @@ protected string CurrentValueAsString /// /// 获得/设置 Value 改变时回调方法 /// Gets or sets the callback method when value changes - /// 10.2.2 /// [Parameter] public Func? OnValueChanged { get; set; } @@ -173,7 +172,6 @@ protected string CurrentValueAsString /// /// 获得/设置 类型转化失败格式化字符串 默认为 null /// Gets or sets the parsing error message format string. Default is null. - /// 10.2.2 /// [Parameter] [NotNull] @@ -182,7 +180,6 @@ protected string CurrentValueAsString /// /// 获得/设置 是否不进行验证 默认为 false /// Gets or sets whether to skip validation. Default is false. - /// 10.2.2 /// [Parameter] public bool SkipValidate { get; set; } @@ -190,7 +187,6 @@ protected string CurrentValueAsString /// /// 获得/设置 是否禁用 默认为 false /// Gets or sets whether the component is disabled. Default is false. - /// 10.2.2 /// [Parameter] public bool IsDisabled { get; set; } @@ -198,7 +194,6 @@ protected string CurrentValueAsString /// /// 获得/设置 是否显示必填项标记 默认为 null 未设置 /// Gets or sets whether to display the required field marker. Default is null. - /// 10.2.2 /// [Parameter] public bool? ShowRequired { get; set; } @@ -206,7 +201,6 @@ protected string CurrentValueAsString /// /// 获得/设置 必填项错误文本 默认为 null 未设置 /// Gets or sets the required field error message. Default is null. - /// 10.2.2 /// [Parameter] public string? RequiredErrorMessage { get; set; } @@ -253,14 +247,12 @@ protected virtual bool TryParseValueFromString(string value, [MaybeNullWhen(fals /// 格式化解析错误信息 /// Formats the parsing error message /// - /// protected virtual string? FormatParsingErrorMessage() => ParsingErrorMessage; /// /// 判断是否为必填字段 /// Determines whether the field is required /// - /// protected virtual bool IsRequired() => ShowRequired ?? FieldIdentifier ?.Model.GetType().GetPropertyByName(FieldIdentifier.Value.FieldName)!.GetCustomAttribute(true) != null || (ValidateRules?.OfType().Select(i => i.IsRequired).Any() ?? false) @@ -285,7 +277,6 @@ protected virtual bool IsRequired() => ShowRequired ?? FieldIdentifier /// /// /// - /// public override Task SetParametersAsync(ParameterView parameters) { parameters.SetParameterProperties(this); @@ -360,7 +351,6 @@ protected override void OnParametersSet() /// /// /// - /// protected override bool ShouldRender() { if (ValidateForm == null) @@ -422,7 +412,6 @@ private string GetDefaultRequiredErrorMessage() /// /// 获得/设置 自定义验证集合 /// Gets or sets the custom validation collection - /// 10.2.2 /// [Parameter] public List? ValidateRules { get; set; } @@ -436,7 +425,6 @@ private string GetDefaultRequiredErrorMessage() /// /// /// - /// public virtual bool IsComplexValue(object? value) => value != null && value is not string && !value.GetType().IsAssignableTo(typeof(System.Collections.IEnumerable)) @@ -559,14 +547,12 @@ public virtual Task ToggleMessage(IReadOnlyCollection results) /// 加载 validate 模块方法 /// Loads the validate module /// - /// protected Task LoadValidateModule() => JSRuntime.LoadModuleByName("validate"); /// /// 增加客户端 Tooltip 方法 /// Shows the client-side validation tooltip /// - /// protected virtual async ValueTask ShowValidResult() { var id = RetrieveId(); @@ -581,7 +567,6 @@ protected virtual async ValueTask ShowValidResult() /// 移除客户端 Tooltip 方法 /// Removes the client-side validation tooltip /// - /// protected virtual async ValueTask RemoveValidResult(string? validateId = null) { var id = validateId ?? RetrieveId(); @@ -606,7 +591,6 @@ protected virtual void OnValidate(bool? valid) /// /// /// - /// protected override async ValueTask DisposeAsync(bool disposing) { if (disposing) diff --git a/src/BootstrapBlazor/Components/ValidateForm/BootstrapBlazorDataAnnotationsValidator.cs b/src/BootstrapBlazor/Components/ValidateForm/BootstrapBlazorDataAnnotationsValidator.cs index 3fc8eb14d49..7518320fdc8 100644 --- a/src/BootstrapBlazor/Components/ValidateForm/BootstrapBlazorDataAnnotationsValidator.cs +++ b/src/BootstrapBlazor/Components/ValidateForm/BootstrapBlazorDataAnnotationsValidator.cs @@ -8,22 +8,22 @@ namespace BootstrapBlazor.Components; /// -/// BootstrapBlazorDataAnnotationsValidator 验证组件 -/// BootstrapBlazorDataAnnotationsValidator Validation Component +/// BootstrapBlazorDataAnnotationsValidator 验证组件 +/// BootstrapBlazorDataAnnotationsValidator Validation Component /// public class BootstrapBlazorDataAnnotationsValidator : ComponentBase, IDisposable { /// - /// 获得/设置 当前编辑数据上下文 - /// Gets or sets Current Edit Data Context + /// 获得/设置 当前编辑数据上下文 + /// Gets or sets Current Edit Data Context /// [CascadingParameter] [NotNull] private EditContext? CurrentEditContext { get; set; } /// - /// 获得/设置 当前编辑窗体上下文 - /// Gets or sets 当前编辑窗体上下文 + /// 获得/设置 当前编辑窗体上下文 + /// Gets or sets 当前编辑窗体上下文 /// [CascadingParameter] [NotNull] @@ -37,8 +37,8 @@ public class BootstrapBlazorDataAnnotationsValidator : ComponentBase, IDisposabl private ValidationMessageStore? _message = null; /// - /// 初始化方法 - /// 初始化方法 + /// 初始化方法 + /// 初始化方法 /// protected override void OnInitialized() { @@ -53,10 +53,9 @@ protected override void OnInitialized() private TaskCompletionSource? _tcs; /// - /// 手动验证表单方法 - /// 手动验证表单方法 + /// 手动验证表单方法 + /// 手动验证表单方法 /// - /// internal async Task ValidateAsync() { _tcs = new(false); @@ -66,8 +65,8 @@ internal async Task ValidateAsync() } /// - /// 手动验证表单方法 - /// 手动验证表单方法 + /// 手动验证表单方法 + /// 手动验证表单方法 /// [ExcludeFromCodeCoverage] internal bool Validate() => CurrentEditContext.Validate(); @@ -146,8 +145,8 @@ private void Dispose(bool disposing) } /// - /// - /// + /// + /// /// public void Dispose() { diff --git a/src/BootstrapBlazor/Components/ValidateForm/ValidateForm.razor.cs b/src/BootstrapBlazor/Components/ValidateForm/ValidateForm.razor.cs index 9e962fc0e1e..01d3808455a 100644 --- a/src/BootstrapBlazor/Components/ValidateForm/ValidateForm.razor.cs +++ b/src/BootstrapBlazor/Components/ValidateForm/ValidateForm.razor.cs @@ -21,7 +21,6 @@ public partial class ValidateForm /// /// 获得/设置 表单提交后验证合规时回调方法 /// Gets or sets the callback method when form submission is validated. - /// 10.2.2 /// [Parameter] public Func? OnValidSubmit { get; set; } @@ -29,7 +28,6 @@ public partial class ValidateForm /// /// 获得/设置 表单提交后验证不合规时回调方法 /// Gets or sets the callback method when form submission is invalid. - /// 10.2.2 /// [Parameter] public Func? OnInvalidSubmit { get; set; } @@ -37,7 +35,6 @@ public partial class ValidateForm /// /// 获得/设置 表单内绑定字段值变化时回调方法 /// Gets or sets the callback method when a bound field's value has changed within the form. - /// 10.2.2 /// [Parameter] [NotNull] @@ -46,7 +43,6 @@ public partial class ValidateForm /// /// 获得/设置 是否显示所有验证失败字段的提示信息 默认 false 仅显示第一个验证失败字段的提示信息 /// Gets or sets whether to display all validation failure messages. The default is false, which only displays the first validation failure message. - /// 10.2.2 /// [Parameter] public bool ShowAllInvalidResult { get; set; } @@ -54,7 +50,6 @@ public partial class ValidateForm /// /// 获得/设置 是否验证所有字段 默认 false /// Gets or sets whether to validate all properties. The default is false. - /// 10.2.2 /// [Parameter] public bool ValidateAllProperties { get; set; } @@ -62,7 +57,6 @@ public partial class ValidateForm /// /// 获得/设置 表单绑定模型对象 /// Gets or sets the top-level model object for the form. - /// 10.2.2 /// [Parameter] [NotNull] @@ -71,7 +65,6 @@ public partial class ValidateForm /// /// 获得/设置 组件子内容 /// Gets or sets the content to be rendered inside this component. - /// 10.2.2 /// [Parameter] public RenderFragment? ChildContent { get; set; } @@ -79,7 +72,6 @@ public partial class ValidateForm /// /// 获得/设置 是否获取必填项标记 默认为 true 显示 /// Gets or sets whether to display the required mark. The default is true, which means the required mark is displayed. - /// 10.2.2 /// [Parameter] public bool ShowRequiredMark { get; set; } = true; @@ -87,7 +79,6 @@ public partial class ValidateForm /// /// 获得/设置 是否显示验证表单内的 Label 默认为 null /// Gets or sets whether to display labels within the validation form. The default value is null. - /// 10.2.2 /// [Parameter] public bool? ShowLabel { get; set; } @@ -95,7 +86,6 @@ public partial class ValidateForm /// /// 获得/设置 是否显示标签 Tooltip 多用于标签文字过长导致裁减时使用 默认 null /// Gets or sets whether to display a tooltip for the label, often used when the label text is too long and gets truncated. The default is null. - /// 10.2.2 /// [Parameter] public bool? ShowLabelTooltip { get; set; } @@ -103,7 +93,6 @@ public partial class ValidateForm /// /// 获得/设置 是否为无表单模式 默认 false /// Gets or sets whether to use a formless mode. The default is false. - /// 10.2.2 /// /// 设置为 true 时不渲染 form 元素,仅级联 EditContext 用于 Table InCell 编辑模式 [Parameter] @@ -112,7 +101,6 @@ public partial class ValidateForm /// /// 获得/设置 是否禁用表单内回车自动提交功能 默认 null 未设置 /// Gets or sets whether禁用表单内回车自动提交功能 Default is null 未Sets - /// 10.2.2 /// [Parameter] public bool? DisableAutoSubmitFormByEnter { get; set; } @@ -120,7 +108,6 @@ public partial class ValidateForm /// /// 获得/设置 标签宽度 默认 null 未设置 使用全局设置 --bb-row-label-width /// Gets or sets the label width. The default is null, which means the global setting --bb-row-label-width is used. - /// 10.2.2 /// [Parameter] public int? LabelWidth { get; set; } @@ -707,14 +694,12 @@ public void NotifyFieldChanged(in FieldIdentifier fieldIdentifier, object? value /// 获取 当前表单值改变的属性集合 /// Get the set of attributes whose current form values ​​have changed. /// - /// public ConcurrentDictionary ValueChangedFields { get; } = new(); /// /// 获取 当前表单值改变的属性集合 /// Get the set of attributes whose current form values ​​have changed. /// - /// [Obsolete("已弃用,单词拼写错误,请使用 ValueChangedFields,Deprecated Please use ValueChangedFields instead. wrong typo")] [ExcludeFromCodeCoverage] public ConcurrentDictionary ValueChagnedFields { get; } = new(); diff --git a/src/BootstrapBlazor/Components/Waterfall/Waterfall.razor.cs b/src/BootstrapBlazor/Components/Waterfall/Waterfall.razor.cs index c75b4512f68..7cdd84f2ad4 100644 --- a/src/BootstrapBlazor/Components/Waterfall/Waterfall.razor.cs +++ b/src/BootstrapBlazor/Components/Waterfall/Waterfall.razor.cs @@ -14,7 +14,6 @@ public partial class Waterfall /// /// 获得/设置 点击列表项回调方法 /// Gets or sets 点击列表项callback method - /// 10.2.2 /// [Parameter] public Func? OnClickItemAsync { get; set; } @@ -22,7 +21,6 @@ public partial class Waterfall /// /// 获得/设置 请求数据回调方法 /// Gets or sets 请求datacallback method - /// 10.2.2 /// [Parameter] [NotNull] @@ -31,7 +29,6 @@ public partial class Waterfall /// /// 获得/设置 模板 默认为 null /// Gets or sets template Default is为 null - /// 10.2.2 /// [Parameter] public RenderFragment<(WaterfallItem Item, RenderFragment Context)>? Template { get; set; } @@ -39,7 +36,6 @@ public partial class Waterfall /// /// 获得/设置 图片模板 默认为 null /// Gets or sets 图片template Default is为 null - /// 10.2.2 /// [Parameter] public RenderFragment? ItemTemplate { get; set; } @@ -47,7 +43,6 @@ public partial class Waterfall /// /// 获得/设置 加载模板 /// Gets or sets 加载template - /// 10.2.2 /// [Parameter] public RenderFragment? LoadTemplate { get; set; } @@ -57,7 +52,6 @@ public partial class Waterfall /// /// 获得/设置 每一项宽度 默认 216 /// Gets or sets 每一项width Default is 216 - /// 10.2.2 /// [Parameter] public int ItemWidth { get; set; } = 216; @@ -65,7 +59,6 @@ public partial class Waterfall /// /// 获得/设置 每一项最小宽度 默认 316 用于显示 loading 图标 /// Gets or sets 每一项最小width Default is 316 用于display loading icon - /// 10.2.2 /// [Parameter] public int ItemMinHeight { get; set; } = 316; @@ -85,7 +78,6 @@ public partial class Waterfall /// /// /// - /// protected override async Task OnAfterRenderAsync(bool firstRender) { await base.OnAfterRenderAsync(firstRender); @@ -100,7 +92,6 @@ protected override async Task OnAfterRenderAsync(bool firstRender) /// /// /// - /// protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id, Interop, nameof(OnloadAsync)); /// @@ -124,7 +115,6 @@ public async Task OnloadAsync(WaterfallItem? item) /// 点击图片callback method /// /// - /// [JSInvokable] public async Task OnClickItem(WaterfallItem item) { diff --git a/src/BootstrapBlazor/Components/Waterfall/WaterfallItem.cs b/src/BootstrapBlazor/Components/Waterfall/WaterfallItem.cs index 3d22d4e28b2..f4dfbe05a60 100644 --- a/src/BootstrapBlazor/Components/Waterfall/WaterfallItem.cs +++ b/src/BootstrapBlazor/Components/Waterfall/WaterfallItem.cs @@ -6,20 +6,20 @@ namespace BootstrapBlazor.Components; /// -/// Waterfall 组件数据类 -/// Waterfall componentdata类 +/// Waterfall 组件数据类 +/// Waterfall componentdata类 /// public class WaterfallItem { /// - /// 获得/设置 id - /// Gets or sets id + /// 获得/设置 id + /// Gets or sets id /// public string? Id { get; set; } /// - /// the url of image element - /// the url of image element + /// the url of image element + /// the url of image element /// public string? Url { get; set; } } diff --git a/src/BootstrapBlazor/Components/Watermark/Watermark.razor.cs b/src/BootstrapBlazor/Components/Watermark/Watermark.razor.cs index e7979309c49..badbf5be4d5 100644 --- a/src/BootstrapBlazor/Components/Watermark/Watermark.razor.cs +++ b/src/BootstrapBlazor/Components/Watermark/Watermark.razor.cs @@ -14,7 +14,6 @@ public partial class Watermark /// /// 获得/设置 组件内容 /// Gets or sets componentcontent - /// 10.2.2 /// [Parameter] [EditorRequired] @@ -23,7 +22,6 @@ public partial class Watermark /// /// 获得/设置 水印文本 默认 BootstrapBlazor /// Gets or sets 水印文本 Default is BootstrapBlazor - /// 10.2.2 /// [Parameter] public string? Text { get; set; } @@ -31,7 +29,6 @@ public partial class Watermark /// /// 获得/设置 字体大小 默认 null 未设置 默认使用 16px 字体大小 单位 px /// Gets or sets 字体大小 Default is null 未Sets Default is使用 16px 字体大小 单位 px - /// 10.2.2 /// [Parameter] public int? FontSize { get; set; } @@ -39,7 +36,6 @@ public partial class Watermark /// /// 获得/设置 颜色 默认 null 未设置 /// Gets or sets color Default is null 未Sets - /// 10.2.2 /// [Parameter] public string? Color { get; set; } @@ -47,7 +43,6 @@ public partial class Watermark /// /// 获得/设置 水印的旋转角度 默认 null 45° /// Gets or sets 水印的旋转角度 Default is null 45° - /// 10.2.2 /// [Parameter] public int? Rotate { get; set; } @@ -55,7 +50,6 @@ public partial class Watermark /// /// 获得/设置 水印元素的 z-index 值 默认 null /// Gets or sets 水印元素的 z-index 值 Default is null - /// 10.2.2 /// [Parameter] public int? ZIndex { get; set; } @@ -63,7 +57,6 @@ public partial class Watermark /// /// 获得/设置 水印之间的间距 值 默认 null /// Gets or sets 水印之间的间距 值 Default is null - /// 10.2.2 /// [Parameter] public int? Gap { get; set; } @@ -71,7 +64,6 @@ public partial class Watermark /// /// 获得/设置 是否为整页面水印 默认 false /// Gets or sets whether为整页面水印 Default is false - /// 10.2.2 /// [Parameter] public bool IsPage { get; set; } @@ -100,7 +92,6 @@ protected override void OnParametersSet() /// /// /// - /// protected override async Task OnAfterRenderAsync(bool firstRender) { await base.OnAfterRenderAsync(firstRender); @@ -114,7 +105,6 @@ protected override async Task OnAfterRenderAsync(bool firstRender) /// /// /// - /// protected override Task InvokeInitAsync() => InvokeVoidAsync("init", Id, GetOptions()); private object GetOptions() => new diff --git a/src/BootstrapBlazor/Components/WebSpeech/Recognition/WebSpeechRecognition.cs b/src/BootstrapBlazor/Components/WebSpeech/Recognition/WebSpeechRecognition.cs index 69abdb6b9ef..add24137bb1 100644 --- a/src/BootstrapBlazor/Components/WebSpeech/Recognition/WebSpeechRecognition.cs +++ b/src/BootstrapBlazor/Components/WebSpeech/Recognition/WebSpeechRecognition.cs @@ -6,8 +6,8 @@ namespace BootstrapBlazor.Components; /// -/// WebSpeechRecognition 类 -/// WebSpeechRecognition 类 +/// WebSpeechRecognition 类 +/// WebSpeechRecognition 类 /// public class WebSpeechRecognition(JSModule module, IComponentIdGenerator componentIdGenerator) { @@ -16,56 +16,56 @@ public class WebSpeechRecognition(JSModule module, IComponentIdGenerator compone private string? _id; /// - /// fired when the speech recognition service has begun listening to incoming audio with intent to recognize grammars associated with the current SpeechRecognition. - /// fired when the speech recognition service has begun listening to incoming audio with intent to recognize grammars associated with the current SpeechRecognition. + /// fired when the speech recognition service has begun listening to incoming audio with intent to recognize grammars associated with the current SpeechRecognition. + /// fired when the speech recognition service has begun listening to incoming audio with intent to recognize grammars associated with the current SpeechRecognition. /// public Func? OnStartAsync { get; set; } /// - /// fired when the speech recognition service has disconnected. - /// fired when the speech recognition service has disconnected. + /// fired when the speech recognition service has disconnected. + /// fired when the speech recognition service has disconnected. /// public Func? OnEndAsync { get; set; } /// - /// fired when sound recognized by the speech recognition service as speech has been detected. - /// fired when sound recognized by the speech recognition service as speech has been detected. + /// fired when sound recognized by the speech recognition service as speech has been detected. + /// fired when sound recognized by the speech recognition service as speech has been detected. /// public Func? OnSpeechStartAsync { get; set; } /// - /// fired when speech recognized by the speech recognition service has stopped being detected. - /// fired when speech recognized by the speech recognition service has stopped being detected. + /// fired when speech recognized by the speech recognition service has stopped being detected. + /// fired when speech recognized by the speech recognition service has stopped being detected. /// public Func? OnSpeechEndAsync { get; set; } /// - /// fired when the speech recognition service returns a result — a word or phrase has been positively recognized and this has been communicated back to the app - /// fired when the speech recognition service returns a result — a word or phrase has been positively recognized and this has been communicated back to the app + /// fired when the speech recognition service returns a result — a word or phrase has been positively recognized and this has been communicated back to the app + /// fired when the speech recognition service returns a result — a word or phrase has been positively recognized and this has been communicated back to the app /// public Func? OnResultAsync { get; set; } /// - /// fired when a speech recognition error occurs. - /// fired when a speech recognition error occurs. + /// fired when a speech recognition error occurs. + /// fired when a speech recognition error occurs. /// public Func? OnErrorAsync { get; set; } /// - /// fired when the speech recognition service returns a final result with no significant recognition. - /// fired when the speech recognition service returns a final result with no significant recognition. + /// fired when the speech recognition service returns a final result with no significant recognition. + /// fired when the speech recognition service returns a final result with no significant recognition. /// public Func? OnNoMatchAsync { get; set; } /// - /// 开始识别方法 - /// 开始识别方法 + /// 开始识别方法 + /// 开始识别方法 /// public Task StartAsync(string lang) => StartAsync(new WebSpeechRecognitionOption() { Lang = lang }); /// - /// 开始识别方法 - /// 开始识别方法 + /// 开始识别方法 + /// 开始识别方法 /// public async Task StartAsync(WebSpeechRecognitionOption option) { @@ -83,30 +83,27 @@ public async Task StartAsync(WebSpeechRecognitionOption option) } /// - /// 结束识别方法 - /// 结束识别方法 + /// 结束识别方法 + /// 结束识别方法 /// - /// public async Task StopAsync() { await module.InvokeVoidAsync("stop", _id); } /// - /// 中断识别方法 - /// 中断识别方法 + /// 中断识别方法 + /// 中断识别方法 /// - /// public async Task AbortAsync() { await module.InvokeVoidAsync("abort", _id); } /// - /// 开始识别回调方法由 Javascript 调用 - /// 开始识别callback method由 Javascript 调用 + /// 开始识别回调方法由 Javascript 调用 + /// 开始识别callback method由 Javascript 调用 /// - /// [JSInvokable] public async Task TriggerStartCallback() { @@ -117,10 +114,9 @@ public async Task TriggerStartCallback() } /// - /// 语音开始回调方法由 Javascript 调用 - /// 语音开始callback method由 Javascript 调用 + /// 语音开始回调方法由 Javascript 调用 + /// 语音开始callback method由 Javascript 调用 /// - /// [JSInvokable] public async Task TriggerSpeechStartCallback() { @@ -131,10 +127,9 @@ public async Task TriggerSpeechStartCallback() } /// - /// 语音结束回调方法由 Javascript 调用 - /// 语音结束callback method由 Javascript 调用 + /// 语音结束回调方法由 Javascript 调用 + /// 语音结束callback method由 Javascript 调用 /// - /// [JSInvokable] public async Task TriggerSpeechEndCallback() { @@ -145,10 +140,9 @@ public async Task TriggerSpeechEndCallback() } /// - /// 异常回调方法由 Javascript 调用 - /// exceptioncallback method由 Javascript 调用 + /// 异常回调方法由 Javascript 调用 + /// exceptioncallback method由 Javascript 调用 /// - /// [JSInvokable] public async Task TriggerErrorCallback(WebSpeechRecognitionError error) { @@ -159,10 +153,9 @@ public async Task TriggerErrorCallback(WebSpeechRecognitionError error) } /// - /// 识别结果回调方法由 Javascript 调用 - /// 识别结果callback method由 Javascript 调用 + /// 识别结果回调方法由 Javascript 调用 + /// 识别结果callback method由 Javascript 调用 /// - /// [JSInvokable] public async Task TriggerResultCallback(WebSpeechRecognitionEvent @event) { @@ -173,10 +166,9 @@ public async Task TriggerResultCallback(WebSpeechRecognitionEvent @event) } /// - /// 无识别结果回调方法由 Javascript 调用 - /// 无识别结果callback method由 Javascript 调用 + /// 无识别结果回调方法由 Javascript 调用 + /// 无识别结果callback method由 Javascript 调用 /// - /// [JSInvokable] public async Task TriggerNoMatchCallback(WebSpeechRecognitionError error) { @@ -187,10 +179,9 @@ public async Task TriggerNoMatchCallback(WebSpeechRecognitionError error) } /// - /// 朗读结束回调方法由 Javascript 调用 - /// 朗读结束callback method由 Javascript 调用 + /// 朗读结束回调方法由 Javascript 调用 + /// 朗读结束callback method由 Javascript 调用 /// - /// [JSInvokable] public async Task TriggerEndCallback() { diff --git a/src/BootstrapBlazor/Components/WebSpeech/Recognition/WebSpeechRecognitionError.cs b/src/BootstrapBlazor/Components/WebSpeech/Recognition/WebSpeechRecognitionError.cs index 0260f13e172..a51248cc84e 100644 --- a/src/BootstrapBlazor/Components/WebSpeech/Recognition/WebSpeechRecognitionError.cs +++ b/src/BootstrapBlazor/Components/WebSpeech/Recognition/WebSpeechRecognitionError.cs @@ -6,20 +6,20 @@ namespace BootstrapBlazor.Components; /// -/// WebSpeechRecognitionError 类 -/// WebSpeechRecognitionError 类 +/// WebSpeechRecognitionError 类 +/// WebSpeechRecognitionError 类 /// public class WebSpeechRecognitionError { /// - /// A string naming the 类型 of error. no-speech aborted audio-capture network not-allowed service-not-allowed bad-grammar language-not-supported. - /// A string naming the type of error. no-speech aborted audio-capture network not-allowed service-not-allowed bad-grammar language-not-supported. + /// A string naming the 类型 of error. no-speech aborted audio-capture network not-allowed service-not-allowed bad-grammar language-not-supported. + /// A string naming the type of error. no-speech aborted audio-capture network not-allowed service-not-allowed bad-grammar language-not-supported. /// public string? Error { get; set; } /// - /// A string containing more details about the error that was raised. Note that the spec does not define the exact wording of these messages — this is up to the implementors to decide upon. - /// A string containing more details about the error that was raised. Note that the spec does not define the exact wording of these messages — this is up to the implementors to decide upon. + /// A string containing more details about the error that was raised. Note that the spec does not define the exact wording of these messages — this is up to the implementors to decide upon. + /// A string containing more details about the error that was raised. Note that the spec does not define the exact wording of these messages — this is up to the implementors to decide upon. /// public string? Message { get; set; } } diff --git a/src/BootstrapBlazor/Components/WebSpeech/Recognition/WebSpeechRecognitionEvent.cs b/src/BootstrapBlazor/Components/WebSpeech/Recognition/WebSpeechRecognitionEvent.cs index 2199b8b148f..879b4689ac0 100644 --- a/src/BootstrapBlazor/Components/WebSpeech/Recognition/WebSpeechRecognitionEvent.cs +++ b/src/BootstrapBlazor/Components/WebSpeech/Recognition/WebSpeechRecognitionEvent.cs @@ -6,20 +6,20 @@ namespace BootstrapBlazor.Components; /// -/// WebSpeechRecognitionEvent 类 -/// WebSpeechRecognitionEvent 类 +/// WebSpeechRecognitionEvent 类 +/// WebSpeechRecognitionEvent 类 /// public class WebSpeechRecognitionEvent { /// - /// 获得/设置 识别文本内容 - /// Gets or sets 识别文本content + /// 获得/设置 识别文本内容 + /// Gets or sets 识别文本content /// public string? Transcript { get; set; } /// - /// 获得/设置 是否已经结束 - /// Gets or sets whether已经结束 + /// 获得/设置 是否已经结束 + /// Gets or sets whether已经结束 /// public bool IsFinal { get; set; } } diff --git a/src/BootstrapBlazor/Components/WebSpeech/Recognition/WebSpeechRecognitionOption.cs b/src/BootstrapBlazor/Components/WebSpeech/Recognition/WebSpeechRecognitionOption.cs index 36896d36edb..d91d1e42cf8 100644 --- a/src/BootstrapBlazor/Components/WebSpeech/Recognition/WebSpeechRecognitionOption.cs +++ b/src/BootstrapBlazor/Components/WebSpeech/Recognition/WebSpeechRecognitionOption.cs @@ -8,35 +8,35 @@ namespace BootstrapBlazor.Components; /// -/// WebSpeechRecognitionOption 配置类 -/// WebSpeechRecognitionOption 配置类 +/// WebSpeechRecognitionOption 配置类 +/// WebSpeechRecognitionOption 配置类 /// public class WebSpeechRecognitionOption { /// - /// sets the maximum number of SpeechRecognitionAlternatives provided per SpeechRecognitionResult. - /// sets the maximum number of SpeechRecognitionAlternatives provided per SpeechRecognitionResult. + /// sets the maximum number of SpeechRecognitionAlternatives provided per SpeechRecognitionResult. + /// sets the maximum number of SpeechRecognitionAlternatives provided per SpeechRecognitionResult. /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public float? MaxAlternatives { get; set; } /// - /// 是否 continuous results are returned for each recognition, or only a single result. - /// whether continuous results are returned for each recognition, or only a single result. + /// 是否 continuous results are returned for each recognition, or only a single result. + /// whether continuous results are returned for each recognition, or only a single result. /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public bool? Continuous { get; set; } /// - /// 是否 interim results should be returned (true) or not (false). Interim results are results that are not yet final (e.g. the SpeechRecognitionResult.isFinal 属性 is false). - /// whether interim results should be returned (true) or not (false). Interim results are results that are not yet final (e.g. the SpeechRecognitionResult.isFinal property is false). + /// 是否 interim results should be returned (true) or not (false). Interim results are results that are not yet final (e.g. the SpeechRecognitionResult.isFinal 属性 is false). + /// whether interim results should be returned (true) or not (false). Interim results are results that are not yet final (e.g. the SpeechRecognitionResult.isFinal property is false). /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public bool? InterimResults { get; set; } /// - /// sets the language of the current SpeechRecognition. If not specified, this defaults to the HTML lang attribute value, or the user agent's language setting if that isn't set either. - /// sets the language of the current SpeechRecognition. If not specified, this defaults to the HTML lang attribute value, or the user agent's language setting if that isn't set either. + /// sets the language of the current SpeechRecognition. If not specified, this defaults to the HTML lang attribute value, or the user agent's language setting if that isn't set either. + /// sets the language of the current SpeechRecognition. If not specified, this defaults to the HTML lang attribute value, or the user agent's language setting if that isn't set either. /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? Lang { get; set; } diff --git a/src/BootstrapBlazor/Components/WebSpeech/Synthesizer/WebSpeechSynthesisError.cs b/src/BootstrapBlazor/Components/WebSpeech/Synthesizer/WebSpeechSynthesisError.cs index 4683168c2cd..8bd5eb28e21 100644 --- a/src/BootstrapBlazor/Components/WebSpeech/Synthesizer/WebSpeechSynthesisError.cs +++ b/src/BootstrapBlazor/Components/WebSpeech/Synthesizer/WebSpeechSynthesisError.cs @@ -6,26 +6,26 @@ namespace BootstrapBlazor.Components; /// -/// WebSpeechSynthesisError 类 -/// WebSpeechSynthesisError 类 +/// WebSpeechSynthesisError 类 +/// WebSpeechSynthesisError 类 /// public class WebSpeechSynthesisError { /// - /// Returns the 索引 position of the character in the SpeechSynthesisUtterance.text that was being spoken when the event was triggered. - /// Returns the index position of the character in the SpeechSynthesisUtterance.text that was being spoken when the event was triggered. + /// Returns the 索引 position of the character in the SpeechSynthesisUtterance.text that was being spoken when the event was triggered. + /// Returns the index position of the character in the SpeechSynthesisUtterance.text that was being spoken when the event was triggered. /// public int CharIndex { get; set; } /// - /// Returns the elapsed time in seconds after the SpeechSynthesisUtterance.text started being spoken that the event was triggered at. - /// Returns the elapsed time in seconds after the SpeechSynthesisUtterance.text started being spoken that the event was triggered at. + /// Returns the elapsed time in seconds after the SpeechSynthesisUtterance.text started being spoken that the event was triggered at. + /// Returns the elapsed time in seconds after the SpeechSynthesisUtterance.text started being spoken that the event was triggered at. /// public float ElapsedTime { get; set; } /// - /// Returns an error code indicating what has gone wrong with a speech synthesis attempt. - /// Returns an error code indicating what has gone wrong with a speech synthesis attempt. + /// Returns an error code indicating what has gone wrong with a speech synthesis attempt. + /// Returns an error code indicating what has gone wrong with a speech synthesis attempt. /// public string? Error { get; set; } } diff --git a/src/BootstrapBlazor/Components/WebSpeech/Synthesizer/WebSpeechSynthesisUtterance.cs b/src/BootstrapBlazor/Components/WebSpeech/Synthesizer/WebSpeechSynthesisUtterance.cs index 4741046f663..0a470e889bf 100644 --- a/src/BootstrapBlazor/Components/WebSpeech/Synthesizer/WebSpeechSynthesisUtterance.cs +++ b/src/BootstrapBlazor/Components/WebSpeech/Synthesizer/WebSpeechSynthesisUtterance.cs @@ -8,49 +8,49 @@ namespace BootstrapBlazor.Components; /// -/// WebSpeechSynthesisUtterance 类 -/// WebSpeechSynthesisUtterance 类 +/// WebSpeechSynthesisUtterance 类 +/// WebSpeechSynthesisUtterance 类 /// public class WebSpeechSynthesisUtterance { /// - /// gets and sets the text that will be synthesized when the utterance is spoken. - /// gets and sets the text that will be synthesized when the utterance is spoken. + /// gets and sets the text that will be synthesized when the utterance is spoken. + /// gets and sets the text that will be synthesized when the utterance is spoken. /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? Text { get; set; } /// - /// gets and sets A string representing a BCP 47 language tag - /// gets and sets A string representing a BCP 47 language tag + /// gets and sets A string representing a BCP 47 language tag + /// gets and sets A string representing a BCP 47 language tag /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? Lang { get; set; } /// - /// gets and sets the pitch at which the utterance will be spoken at. - /// gets and sets the pitch at which the utterance will be spoken at. + /// gets and sets the pitch at which the utterance will be spoken at. + /// gets and sets the pitch at which the utterance will be spoken at. /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public float? Pitch { get; set; } /// - /// gets and sets the speed at which the utterance will be spoken at. - /// gets and sets the speed at which the utterance will be spoken at. + /// gets and sets the speed at which the utterance will be spoken at. + /// gets and sets the speed at which the utterance will be spoken at. /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public float? Rate { get; set; } /// - /// gets and sets the voice that will be used to speak the utterance. - /// gets and sets the voice that will be used to speak the utterance. + /// gets and sets the voice that will be used to speak the utterance. + /// gets and sets the voice that will be used to speak the utterance. /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public WebSpeechSynthesisVoice? Voice { get; set; } /// - /// gets and sets the volume that the utterance will be spoken at. - /// gets and sets the volume that the utterance will be spoken at. + /// gets and sets the volume that the utterance will be spoken at. + /// gets and sets the volume that the utterance will be spoken at. /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public float? Volume { get; set; } diff --git a/src/BootstrapBlazor/Components/WebSpeech/Synthesizer/WebSpeechSynthesisVoice.cs b/src/BootstrapBlazor/Components/WebSpeech/Synthesizer/WebSpeechSynthesisVoice.cs index 4adf895fdfa..edcd78f0aee 100644 --- a/src/BootstrapBlazor/Components/WebSpeech/Synthesizer/WebSpeechSynthesisVoice.cs +++ b/src/BootstrapBlazor/Components/WebSpeech/Synthesizer/WebSpeechSynthesisVoice.cs @@ -6,38 +6,38 @@ namespace BootstrapBlazor.Components; /// -/// WebSpeechSynthesisVoice 类 -/// WebSpeechSynthesisVoice 类 +/// WebSpeechSynthesisVoice 类 +/// WebSpeechSynthesisVoice 类 /// public class WebSpeechSynthesisVoice { /// - /// 获得/设置 是否为默认 - /// Gets or sets whether为Default is + /// 获得/设置 是否为默认 + /// Gets or sets whether为Default is /// public bool Default { get; set; } /// - /// 获得/设置 indicating the language of the voice. - /// Gets or sets indicating the language of the voice. + /// 获得/设置 indicating the language of the voice. + /// Gets or sets indicating the language of the voice. /// public string? Lang { get; set; } /// - /// 获得/设置 human-readable name that represents the voice. - /// Gets or sets human-readable name that represents the voice. + /// 获得/设置 human-readable name that represents the voice. + /// Gets or sets human-readable name that represents the voice. /// public string? Name { get; set; } /// - /// 获得/设置 indicating whether the voice is supplied by a local speech synthesizer service - /// Gets or sets indicating whether the voice is supplied by a local speech synthesizer service + /// 获得/设置 indicating whether the voice is supplied by a local speech synthesizer service + /// Gets or sets indicating whether the voice is supplied by a local speech synthesizer service /// public bool LocalService { get; set; } /// - /// 获得/设置 the type of URI and location of the speech synthesis service for this voice. - /// Gets or sets the type of URI and location of the speech synthesis service for this voice. + /// 获得/设置 the type of URI and location of the speech synthesis service for this voice. + /// Gets or sets the type of URI and location of the speech synthesis service for this voice. /// public string? VoiceURI { get; set; } } diff --git a/src/BootstrapBlazor/Components/WebSpeech/Synthesizer/WebSpeechSynthesizer.cs b/src/BootstrapBlazor/Components/WebSpeech/Synthesizer/WebSpeechSynthesizer.cs index 4f584225799..96cf1e16d3d 100644 --- a/src/BootstrapBlazor/Components/WebSpeech/Synthesizer/WebSpeechSynthesizer.cs +++ b/src/BootstrapBlazor/Components/WebSpeech/Synthesizer/WebSpeechSynthesizer.cs @@ -31,7 +31,6 @@ public class WebSpeechSynthesizer(JSModule module, IComponentIdGenerator compone /// 获得 语音包方法 /// Gets 语音包方法 /// - /// public async Task GetVoices() => await module.InvokeAsync("getVoices"); /// @@ -74,7 +73,6 @@ public Task SpeakAsync(string? text, WebSpeechSynthesisVoice? voice = null) => S /// 暂停朗读方法 /// 暂停朗读方法 /// - /// public async Task PauseAsync() { await module.InvokeVoidAsync("pause", _id); @@ -84,7 +82,6 @@ public async Task PauseAsync() /// 恢复朗读方法 /// 恢复朗读方法 /// - /// public async Task ResumeAsync() { await module.InvokeVoidAsync("resume", _id); @@ -94,7 +91,6 @@ public async Task ResumeAsync() /// 取消朗读方法 /// 取消朗读方法 /// - /// public async Task CancelAsync() { await module.InvokeVoidAsync("cancel", _id); @@ -104,7 +100,6 @@ public async Task CancelAsync() /// 朗读异常回调方法由 Javascript 调用 /// 朗读exceptioncallback method由 Javascript 调用 /// - /// [JSInvokable] public async Task TriggerErrorCallback(WebSpeechSynthesisError error) { @@ -118,7 +113,6 @@ public async Task TriggerErrorCallback(WebSpeechSynthesisError error) /// 朗读结束回调方法由 Javascript 调用 /// 朗读结束callback method由 Javascript 调用 /// - /// [JSInvokable] public async Task TriggerEndCallback() { @@ -132,7 +126,6 @@ public async Task TriggerEndCallback() /// 正在朗读回调方法由 Javascript 调用 /// 正在朗读callback method由 Javascript 调用 /// - /// [JSInvokable] public Task TriggerSpeakingCallback() => TriggerErrorCallback(new WebSpeechSynthesisError() { diff --git a/src/BootstrapBlazor/Components/WebSpeech/WebSpeechService.cs b/src/BootstrapBlazor/Components/WebSpeech/WebSpeechService.cs index 82e728229b6..eabea13397f 100644 --- a/src/BootstrapBlazor/Components/WebSpeech/WebSpeechService.cs +++ b/src/BootstrapBlazor/Components/WebSpeech/WebSpeechService.cs @@ -6,8 +6,8 @@ namespace BootstrapBlazor.Components; /// -/// Web Speech 服务 -/// Web Speech 服务 +/// Web Speech 服务 +/// Web Speech 服务 /// public class WebSpeechService(IJSRuntime runtime, IComponentIdGenerator ComponentIdGenerator) { @@ -16,10 +16,9 @@ public class WebSpeechService(IJSRuntime runtime, IComponentIdGenerator Componen private JSModule? RecognitionModule { get; set; } /// - /// 语音合成方法 - /// 语音合成方法 + /// 语音合成方法 + /// 语音合成方法 /// - /// public async Task CreateSynthesizerAsync() { if (SynthesisModule == null) @@ -30,10 +29,9 @@ public async Task CreateSynthesizerAsync() } /// - /// 语音识别方法 - /// 语音识别方法 + /// 语音识别方法 + /// 语音识别方法 /// - /// public async Task CreateRecognitionAsync() { if (RecognitionModule == null) diff --git a/src/BootstrapBlazor/Converter/ColumnVisibleItemConverter.cs b/src/BootstrapBlazor/Converter/ColumnVisibleItemConverter.cs index b5caaa16e6c..321edbdac2d 100644 --- a/src/BootstrapBlazor/Converter/ColumnVisibleItemConverter.cs +++ b/src/BootstrapBlazor/Converter/ColumnVisibleItemConverter.cs @@ -20,7 +20,6 @@ public class ColumnVisibleItemConverter : JsonConverter /// /// /// - /// public override ColumnVisibleItem? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { string? name = null; diff --git a/src/BootstrapBlazor/Converter/JsonFilterKeyValueActionConverter.cs b/src/BootstrapBlazor/Converter/JsonFilterKeyValueActionConverter.cs index 51b7e9b7bc9..0af6a02f7e7 100644 --- a/src/BootstrapBlazor/Converter/JsonFilterKeyValueActionConverter.cs +++ b/src/BootstrapBlazor/Converter/JsonFilterKeyValueActionConverter.cs @@ -20,7 +20,6 @@ public sealed class JsonFilterKeyValueActionConverter : JsonConverter /// /// - /// public override FilterKeyValueAction? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { var action = new FilterKeyValueAction(); diff --git a/src/BootstrapBlazor/Converter/JsonQueryPageOptionConverter.cs b/src/BootstrapBlazor/Converter/JsonQueryPageOptionConverter.cs index 193fcbec80a..716e1961f84 100644 --- a/src/BootstrapBlazor/Converter/JsonQueryPageOptionConverter.cs +++ b/src/BootstrapBlazor/Converter/JsonQueryPageOptionConverter.cs @@ -20,7 +20,6 @@ public sealed class JsonQueryPageOptionsConverter : JsonConverter /// /// - /// public override QueryPageOptions? Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { var ret = new QueryPageOptions(); diff --git a/src/BootstrapBlazor/Dynamic/DataTableDynamicContext.cs b/src/BootstrapBlazor/Dynamic/DataTableDynamicContext.cs index 32c984933eb..78586cd1b63 100644 --- a/src/BootstrapBlazor/Dynamic/DataTableDynamicContext.cs +++ b/src/BootstrapBlazor/Dynamic/DataTableDynamicContext.cs @@ -114,7 +114,6 @@ private static bool GetShownColumns(ITableColumn col, IEnumerable? invis /// GetItems 方法 /// GetItems 方法 /// - /// public override IEnumerable GetItems() { if (UseCache) @@ -161,14 +160,12 @@ private List BuildItems() /// GetItems 方法 /// GetItems 方法 /// - /// public override IEnumerable GetColumns() => Columns; /// /// 获得列信息方法 /// Gets列信息方法 /// - /// private List InternalGetColumns() { var ret = new List(); @@ -184,7 +181,6 @@ private List InternalGetColumns() /// /// /// - /// protected internal override IEnumerable OnColumnCreating(ITableColumn col) { AddAttributesCallback?.Invoke(this, col); @@ -197,7 +193,6 @@ protected internal override IEnumerable OnColumnCreating /// 新建方法 /// /// 当前选中行当前选中行 - /// public override async Task AddAsync(IEnumerable selectedItems) { if (OnAddAsync != null) @@ -248,7 +243,6 @@ public override async Task AddAsync(IEnumerable selectedItems) /// 删除方法 /// /// - /// public override async Task DeleteAsync(IEnumerable items) { var ret = false; @@ -296,7 +290,6 @@ public override async Task DeleteAsync(IEnumerable items) /// /// /// - /// private Task OnCellValueChanged(IDynamicObject item, ITableColumn column, object? val) { // 更新内部 DataRow diff --git a/src/BootstrapBlazor/Dynamic/DataTableDynamicObject.cs b/src/BootstrapBlazor/Dynamic/DataTableDynamicObject.cs index 9b6fb30d224..6723b220791 100644 --- a/src/BootstrapBlazor/Dynamic/DataTableDynamicObject.cs +++ b/src/BootstrapBlazor/Dynamic/DataTableDynamicObject.cs @@ -23,7 +23,6 @@ public class DataTableDynamicObject : DynamicObject /// /// /// - /// public override object? GetValue(string propertyName) { object? ret = null; diff --git a/src/BootstrapBlazor/Dynamic/DynamicColumnsObject.cs b/src/BootstrapBlazor/Dynamic/DynamicColumnsObject.cs index 536cff4830e..ad592cf2702 100644 --- a/src/BootstrapBlazor/Dynamic/DynamicColumnsObject.cs +++ b/src/BootstrapBlazor/Dynamic/DynamicColumnsObject.cs @@ -42,7 +42,6 @@ public DynamicColumnsObject() : this([]) { } /// /// /// - /// public virtual object? GetValue(string propertyName) { return Columns.TryGetValue(propertyName, out object? v) ? v : null; diff --git a/src/BootstrapBlazor/Dynamic/DynamicObject.cs b/src/BootstrapBlazor/Dynamic/DynamicObject.cs index e70a6034356..8c03f16d77a 100644 --- a/src/BootstrapBlazor/Dynamic/DynamicObject.cs +++ b/src/BootstrapBlazor/Dynamic/DynamicObject.cs @@ -22,7 +22,6 @@ public class DynamicObject : IDynamicObject /// Gets指定property值方法 /// /// - /// public virtual object? GetValue(string propertyName) => Utility.GetPropertyValue(this, propertyName); /// diff --git a/src/BootstrapBlazor/Dynamic/DynamicObjectContext.cs b/src/BootstrapBlazor/Dynamic/DynamicObjectContext.cs index e790e1ac8d4..26c785ae5fa 100644 --- a/src/BootstrapBlazor/Dynamic/DynamicObjectContext.cs +++ b/src/BootstrapBlazor/Dynamic/DynamicObjectContext.cs @@ -19,14 +19,12 @@ public abstract class DynamicObjectContext : IDynamicObjectContext /// 获取动态类型各列信息 /// 获取动态type各列信息 /// - /// public abstract IEnumerable GetColumns(); /// /// 获得动态类数据方法 /// Gets动态类data方法 /// - /// public abstract IEnumerable GetItems(); /// @@ -73,7 +71,6 @@ protected internal virtual IEnumerable OnColumnCreating( /// 动态type新建回调delegate /// /// 当前选中行当前选中行 - /// public abstract Task AddAsync(IEnumerable selectedItems); /// @@ -81,21 +78,18 @@ protected internal virtual IEnumerable OnColumnCreating( /// 动态type删除回调delegate /// /// - /// public abstract Task DeleteAsync(IEnumerable items); /// /// 动态类型集合变化时回调方法 /// 动态typecollection变化时callback method /// - /// public Func? OnValueChanged { get; set; } /// /// 动态类型属性值变化时回调方法 /// 动态typeproperty值变化时callback method /// - /// public Func? OnChanged { get; set; } /// diff --git a/src/BootstrapBlazor/Dynamic/IDynamicObject.cs b/src/BootstrapBlazor/Dynamic/IDynamicObject.cs index ae4bf822c19..fe4c892658f 100644 --- a/src/BootstrapBlazor/Dynamic/IDynamicObject.cs +++ b/src/BootstrapBlazor/Dynamic/IDynamicObject.cs @@ -16,7 +16,6 @@ public interface IDynamicObject /// 通过指定property名获取property值方法 /// /// 属性名称propertyname - /// object? GetValue(string propertyName); /// diff --git a/src/BootstrapBlazor/Dynamic/IDynamicObjectContext.cs b/src/BootstrapBlazor/Dynamic/IDynamicObjectContext.cs index a76f6ac7e2e..b2478d2bf30 100644 --- a/src/BootstrapBlazor/Dynamic/IDynamicObjectContext.cs +++ b/src/BootstrapBlazor/Dynamic/IDynamicObjectContext.cs @@ -15,14 +15,12 @@ public interface IDynamicObjectContext /// 获取动态类型各列信息 /// 获取动态type各列信息 /// - /// IEnumerable GetColumns(); /// /// 获得动态数据方法 /// Gets动态data方法 /// - /// IEnumerable GetItems(); /// @@ -30,7 +28,6 @@ public interface IDynamicObjectContext /// 新建方法 /// /// 当前选中行当前选中行 - /// Task AddAsync(IEnumerable selectedItems); /// @@ -38,14 +35,12 @@ public interface IDynamicObjectContext /// 删除方法 /// /// - /// Task DeleteAsync(IEnumerable items); /// /// 获得/设置 动态类型属性值变化时回调方法 默认为 null /// Gets or sets 动态typeproperty值变化时callback method Default is为 null /// - /// Func? OnValueChanged { get; set; } /// diff --git a/src/BootstrapBlazor/Enums/MarqueeDirection.cs b/src/BootstrapBlazor/Enums/MarqueeDirection.cs index 1e56852c46d..b206ba60657 100644 --- a/src/BootstrapBlazor/Enums/MarqueeDirection.cs +++ b/src/BootstrapBlazor/Enums/MarqueeDirection.cs @@ -8,37 +8,37 @@ namespace BootstrapBlazor.Components; /// -/// Marquee组件,文本滚动方向枚举类型 Marquee component, Text scrolling direction enumeration +/// Marquee组件,文本滚动方向枚举类型 Marquee component, Text scrolling direction enumeration /// -/// Marqueecomponent,文本滚动方向enumtype Marquee component, Text scrolling direction enumeration +/// Marqueecomponent,文本滚动方向enumtype Marquee component, Text scrolling direction enumeration /// /// public enum MarqueeDirection { /// - /// 文本从左向右滚动 scrolling text from left to right - /// 文本从左向右滚动 scrolling text from left to right + /// 文本从左向右滚动 scrolling text from left to right + /// 文本从左向右滚动 scrolling text from left to right /// [Description("LeftToRight")] LeftToRight, /// - /// 文本从右向左滚动 scrolling text from right to left - /// 文本从右向左滚动 scrolling text from right to left + /// 文本从右向左滚动 scrolling text from right to left + /// 文本从右向左滚动 scrolling text from right to left /// [Description("RightToLeft")] RightToLeft, /// - /// Marquee组件,从上到下滚动文本 scrolling text from top to bottom - /// Marqueecomponent,从上到下滚动文本 scrolling text from top to bottom + /// Marquee组件,从上到下滚动文本 scrolling text from top to bottom + /// Marqueecomponent,从上到下滚动文本 scrolling text from top to bottom /// [Description("TopToBottom")] TopToBottom, /// - /// 从下至上滚动文本> Scroll text from bottom to top - /// 从下至上滚动文本> Scroll text from bottom to top + /// 从下至上滚动文本> Scroll text from bottom to top + /// 从下至上滚动文本> Scroll text from bottom to top /// [Description("BottomToTop")] BottomToTop diff --git a/src/BootstrapBlazor/Enums/MessageShowMode.cs b/src/BootstrapBlazor/Enums/MessageShowMode.cs index 967cab68718..2977eb25185 100644 --- a/src/BootstrapBlazor/Enums/MessageShowMode.cs +++ b/src/BootstrapBlazor/Enums/MessageShowMode.cs @@ -6,20 +6,20 @@ namespace BootstrapBlazor.Components; /// -/// 消息显示模式 -/// 消息display模式 +/// 消息显示模式 +/// 消息display模式 /// public enum MessageShowMode { /// - /// 单个模式,始终显示一个消息弹窗 - /// 单个模式,始终display一个消息弹窗 + /// 单个模式,始终显示一个消息弹窗 + /// 单个模式,始终display一个消息弹窗 /// Single, /// - /// 多个模式,消息均显示 - /// 多个模式,消息均display + /// 多个模式,消息均显示 + /// 多个模式,消息均display /// Multiple } diff --git a/src/BootstrapBlazor/Enums/ObjectFitMode.cs b/src/BootstrapBlazor/Enums/ObjectFitMode.cs index f6650e31528..cb5af226e78 100644 --- a/src/BootstrapBlazor/Enums/ObjectFitMode.cs +++ b/src/BootstrapBlazor/Enums/ObjectFitMode.cs @@ -8,42 +8,42 @@ namespace BootstrapBlazor.Components; /// -/// Image 组件图片填充模式 -/// Image component图片填充模式 +/// Image 组件图片填充模式 +/// Image component图片填充模式 /// public enum ObjectFitMode { /// - /// 填充 内容拉伸填满 - /// 填充 content拉伸填满 + /// 填充 内容拉伸填满 + /// 填充 content拉伸填满 /// [Description("fill")] Fill, /// - /// 保持原有尺寸比例 会留白 - /// 保持原有尺寸比例 会留白 + /// 保持原有尺寸比例 会留白 + /// 保持原有尺寸比例 会留白 /// [Description("contain")] Contain, /// - /// 覆盖 保持原有尺寸比例 宽度和高度至少有一个和容器一致 - /// 覆盖 保持原有尺寸比例 width和height至少有一个和容器一致 + /// 覆盖 保持原有尺寸比例 宽度和高度至少有一个和容器一致 + /// 覆盖 保持原有尺寸比例 width和height至少有一个和容器一致 /// [Description("cover")] Cover, /// - /// 保持原有尺寸比例 - /// 保持原有尺寸比例 + /// 保持原有尺寸比例 + /// 保持原有尺寸比例 /// [Description("none")] None, /// - /// 依次设置了 none 或 contain, 最终呈现的是尺寸比较小的那个 - /// 依次Sets了 none 或 contain, 最终呈现的是尺寸比较小的那个 + /// 依次设置了 none 或 contain, 最终呈现的是尺寸比较小的那个 + /// 依次Sets了 none 或 contain, 最终呈现的是尺寸比较小的那个 /// [Description("scale-down")] ScaleDown diff --git a/src/BootstrapBlazor/Enums/OtpInputType.cs b/src/BootstrapBlazor/Enums/OtpInputType.cs index 97e534d002a..4736a4af470 100644 --- a/src/BootstrapBlazor/Enums/OtpInputType.cs +++ b/src/BootstrapBlazor/Enums/OtpInputType.cs @@ -6,26 +6,26 @@ namespace BootstrapBlazor.Components; /// -/// OTP input 类型 -/// OTP input type +/// OTP input 类型 +/// OTP input type /// public enum OtpInputType { /// - /// Number OTP Input - /// Number OTP Input + /// Number OTP Input + /// Number OTP Input /// Number, /// - /// Text OTP Input - /// Text OTP Input + /// Text OTP Input + /// Text OTP Input /// Text, /// - /// Password OTP Input - /// Password OTP Input + /// Password OTP Input + /// Password OTP Input /// Password } diff --git a/src/BootstrapBlazor/Enums/Placement.cs b/src/BootstrapBlazor/Enums/Placement.cs index 5313ab4f508..542bcba2e76 100644 --- a/src/BootstrapBlazor/Enums/Placement.cs +++ b/src/BootstrapBlazor/Enums/Placement.cs @@ -8,140 +8,140 @@ namespace BootstrapBlazor.Components; /// -/// -/// +/// +/// /// public enum Placement { /// - /// - /// + /// + /// /// [Description("auto")] Auto, /// - /// - /// + /// + /// /// [Description("top")] Top, /// - /// - /// + /// + /// /// [Description("top-start")] TopStart, /// - /// - /// + /// + /// /// [Description("top-center")] TopCenter, /// - /// - /// + /// + /// /// [Description("top-end")] TopEnd, /// - /// - /// + /// + /// /// [Description("middle")] Middle, /// - /// - /// + /// + /// /// [Description("middle-start")] MiddleStart, /// - /// - /// + /// + /// /// [Description("middle-center")] MiddleCenter, /// - /// - /// + /// + /// /// [Description("middle-end")] MiddleEnd, /// - /// - /// + /// + /// /// [Description("bottom")] Bottom, /// - /// - /// + /// + /// /// [Description("bottom-start")] BottomStart, /// - /// - /// + /// + /// /// [Description("bottom-center")] BottomCenter, /// - /// - /// + /// + /// /// [Description("bottom-end")] BottomEnd, /// - /// - /// + /// + /// /// [Description("left")] Left, /// - /// - /// + /// + /// /// [Description("left-start")] LeftStart, /// - /// - /// + /// + /// /// [Description("left-end")] LeftEnd, /// - /// - /// + /// + /// /// [Description("right")] Right, /// - /// - /// + /// + /// /// [Description("right-start")] RightStart, /// - /// - /// + /// + /// /// [Description("right-end")] RightEnd, diff --git a/src/BootstrapBlazor/Enums/PopoverType.cs b/src/BootstrapBlazor/Enums/PopoverType.cs index 297f8cd069b..72aa0205535 100644 --- a/src/BootstrapBlazor/Enums/PopoverType.cs +++ b/src/BootstrapBlazor/Enums/PopoverType.cs @@ -6,20 +6,20 @@ namespace BootstrapBlazor.Components; /// -/// 弹出框类型枚举 -/// 弹出框typeenum +/// 弹出框类型枚举 +/// 弹出框typeenum /// public enum PopoverType { /// - /// 工具条 - /// 工具条 + /// 工具条 + /// 工具条 /// Tooltip, /// - /// 弹出层 - /// 弹出层 + /// 弹出层 + /// 弹出层 /// Popover } diff --git a/src/BootstrapBlazor/Enums/RecognizerStatus.cs b/src/BootstrapBlazor/Enums/RecognizerStatus.cs index 9b238021e66..5188c904d74 100644 --- a/src/BootstrapBlazor/Enums/RecognizerStatus.cs +++ b/src/BootstrapBlazor/Enums/RecognizerStatus.cs @@ -8,33 +8,33 @@ namespace BootstrapBlazor.Components; /// -/// 语音合成状态枚举 -/// 语音合成状态enum +/// 语音合成状态枚举 +/// 语音合成状态enum /// [JsonConverter(typeof(JsonStringEnumConverter))] public enum RecognizerStatus { /// - /// 正在识别 - /// 正在识别 + /// 正在识别 + /// 正在识别 /// Start, /// - /// 识别完毕 - /// 识别完毕 + /// 识别完毕 + /// 识别完毕 /// Finished, /// - /// 关闭 - /// 关闭 + /// 关闭 + /// 关闭 /// Close, /// - /// 出错 - /// 出错 + /// 出错 + /// 出错 /// Error } diff --git a/src/BootstrapBlazor/Enums/RowType.cs b/src/BootstrapBlazor/Enums/RowType.cs index fd99eca0336..6dcfe148b15 100644 --- a/src/BootstrapBlazor/Enums/RowType.cs +++ b/src/BootstrapBlazor/Enums/RowType.cs @@ -8,21 +8,21 @@ namespace BootstrapBlazor.Components; /// -/// 行内格式枚举 -/// 行内格式enum +/// 行内格式枚举 +/// 行内格式enum /// public enum RowType { /// - /// 默认格式 - /// Default is格式 + /// 默认格式 + /// Default is格式 /// [Description("row")] Normal, /// - /// 表单中使用 label 在左,控件不充满 - /// 表单中使用 label 在左,控件不充满 + /// 表单中使用 label 在左,控件不充满 + /// 表单中使用 label 在左,控件不充满 /// [Description("inline")] Inline diff --git a/src/BootstrapBlazor/Enums/ScrollMode.cs b/src/BootstrapBlazor/Enums/ScrollMode.cs index baf7f58fc00..e91a5ba55d2 100644 --- a/src/BootstrapBlazor/Enums/ScrollMode.cs +++ b/src/BootstrapBlazor/Enums/ScrollMode.cs @@ -6,20 +6,20 @@ namespace BootstrapBlazor.Components; /// -/// 数据滚动模式枚举类型 -/// data滚动模式enumtype +/// 数据滚动模式枚举类型 +/// data滚动模式enumtype /// public enum ScrollMode { /// - /// 未设置 - /// 未Sets + /// 未设置 + /// 未Sets /// None, /// - /// 虚拟滚动 - /// 虚拟滚动 + /// 虚拟滚动 + /// 虚拟滚动 /// Virtual } diff --git a/src/BootstrapBlazor/Enums/ScrollToViewAlign.cs b/src/BootstrapBlazor/Enums/ScrollToViewAlign.cs index 985024ea0a6..2549b79accb 100644 --- a/src/BootstrapBlazor/Enums/ScrollToViewAlign.cs +++ b/src/BootstrapBlazor/Enums/ScrollToViewAlign.cs @@ -8,35 +8,35 @@ namespace BootstrapBlazor.Components; /// -/// 垂直滚动对齐方式 -/// 垂直滚动对齐方式 +/// 垂直滚动对齐方式 +/// 垂直滚动对齐方式 /// public enum ScrollToViewAlign { /// - /// - /// + /// + /// /// [Description("start")] Start, /// - /// - /// + /// + /// /// [Description("center")] Center, /// - /// - /// + /// + /// /// [Description("end")] End, /// - /// - /// + /// + /// /// [Description("nearest")] Nearest diff --git a/src/BootstrapBlazor/Enums/SearchMode.cs b/src/BootstrapBlazor/Enums/SearchMode.cs index 0f8bb68dba1..bc5ed995cc3 100644 --- a/src/BootstrapBlazor/Enums/SearchMode.cs +++ b/src/BootstrapBlazor/Enums/SearchMode.cs @@ -6,20 +6,20 @@ namespace BootstrapBlazor.Components; /// -/// 搜索栏渲染模式 默认 Popup 弹窗形式 -/// 搜索栏渲染模式 Default is Popup 弹窗形式 +/// 搜索栏渲染模式 默认 Popup 弹窗形式 +/// 搜索栏渲染模式 Default is Popup 弹窗形式 /// public enum SearchMode { /// - /// 弹窗模式 - /// 弹窗模式 + /// 弹窗模式 + /// 弹窗模式 /// Popup, /// - /// Table 组件上方 - /// Table component上方 + /// Table 组件上方 + /// Table component上方 /// Top } diff --git a/src/BootstrapBlazor/Enums/Size.cs b/src/BootstrapBlazor/Enums/Size.cs index 705f2674464..40629c7ccee 100644 --- a/src/BootstrapBlazor/Enums/Size.cs +++ b/src/BootstrapBlazor/Enums/Size.cs @@ -8,55 +8,55 @@ namespace BootstrapBlazor.Components; /// -/// Size 枚举类型 -/// Size enumtype +/// Size 枚举类型 +/// Size enumtype /// public enum Size { /// - /// 无设置 - /// 无Sets + /// 无设置 + /// 无Sets /// None, /// - /// xs 超小设置小于 576px - /// xs 超小Sets小于 576px + /// xs 超小设置小于 576px + /// xs 超小Sets小于 576px /// [Description("xs")] ExtraSmall, /// - /// sm 小设置大于等于 576px - /// sm 小Sets大于等于 576px + /// sm 小设置大于等于 576px + /// sm 小Sets大于等于 576px /// [Description("sm")] Small, /// - /// md 中等设置大于等于 768px - /// md 中等Sets大于等于 768px + /// md 中等设置大于等于 768px + /// md 中等Sets大于等于 768px /// [Description("md")] Medium, /// - /// lg 大设置大于等于 992px - /// lg 大Sets大于等于 992px + /// lg 大设置大于等于 992px + /// lg 大Sets大于等于 992px /// [Description("lg")] Large, /// - /// xl 超大设置大于等于 1200px - /// xl 超大Sets大于等于 1200px + /// xl 超大设置大于等于 1200px + /// xl 超大Sets大于等于 1200px /// [Description("xl")] ExtraLarge, /// - /// xl 超大设置大于等于 1400px - /// xl 超大Sets大于等于 1400px + /// xl 超大设置大于等于 1400px + /// xl 超大Sets大于等于 1400px /// [Description("xxl")] ExtraExtraLarge diff --git a/src/BootstrapBlazor/Enums/SortOrder.cs b/src/BootstrapBlazor/Enums/SortOrder.cs index d9a002b2b72..2851099f6b6 100644 --- a/src/BootstrapBlazor/Enums/SortOrder.cs +++ b/src/BootstrapBlazor/Enums/SortOrder.cs @@ -6,24 +6,24 @@ namespace BootstrapBlazor.Components; /// -/// 排序顺序枚举类型 -/// 排序顺序enumtype +/// 排序顺序枚举类型 +/// 排序顺序enumtype /// public enum SortOrder { /// - /// 未设置 - /// 未Sets + /// 未设置 + /// 未Sets /// Unset, /// - /// 升序 0-9 A-Z - /// 升序 0-9 A-Z + /// 升序 0-9 A-Z + /// 升序 0-9 A-Z /// Asc, /// - /// 降序 9-0 Z-A - /// 降序 9-0 Z-A + /// 降序 9-0 Z-A + /// 降序 9-0 Z-A /// Desc, } diff --git a/src/BootstrapBlazor/Enums/SpinnerType.cs b/src/BootstrapBlazor/Enums/SpinnerType.cs index 8215ae0e8fc..39f5e3e6725 100644 --- a/src/BootstrapBlazor/Enums/SpinnerType.cs +++ b/src/BootstrapBlazor/Enums/SpinnerType.cs @@ -8,21 +8,21 @@ namespace BootstrapBlazor.Components; /// -/// -/// +/// +/// /// public enum SpinnerType { /// - /// - /// + /// + /// /// [Description("border")] Border, /// - /// - /// + /// + /// /// [Description("grow")] Grow, diff --git a/src/BootstrapBlazor/Enums/StackAlignItems .cs b/src/BootstrapBlazor/Enums/StackAlignItems .cs index 77be39661b6..6e83fe99252 100644 --- a/src/BootstrapBlazor/Enums/StackAlignItems .cs +++ b/src/BootstrapBlazor/Enums/StackAlignItems .cs @@ -8,42 +8,42 @@ namespace BootstrapBlazor.Components; /// -/// -/// +/// +/// /// public enum StackAlignItems { /// - /// - /// + /// + /// /// [Description("align-items-stretch")] Stretch, /// - /// - /// + /// + /// /// [Description("align-items-start")] Start, /// - /// - /// + /// + /// /// [Description("align-items-center")] Center, /// - /// - /// + /// + /// /// [Description("align-items-end")] End, /// - /// - /// + /// + /// /// [Description("align-items-baseline")] Baseline, diff --git a/src/BootstrapBlazor/Enums/StackJustify.cs b/src/BootstrapBlazor/Enums/StackJustify.cs index d63e1655ce4..4541f31514b 100644 --- a/src/BootstrapBlazor/Enums/StackJustify.cs +++ b/src/BootstrapBlazor/Enums/StackJustify.cs @@ -8,49 +8,49 @@ namespace BootstrapBlazor.Components; /// -/// -/// +/// +/// /// public enum StackJustifyContent { /// - /// - /// + /// + /// /// [Description("justify-content-start")] Start, /// - /// - /// + /// + /// /// [Description("justify-content-center")] Center, /// - /// - /// + /// + /// /// [Description("justify-content-end")] End, /// - /// - /// + /// + /// /// [Description("justify-content-between")] Between, /// - /// - /// + /// + /// /// [Description("justify-content-around")] Around, /// - /// - /// + /// + /// /// [Description("justify-content-evenly")] Evenly, diff --git a/src/BootstrapBlazor/Enums/StepStatus.cs b/src/BootstrapBlazor/Enums/StepStatus.cs index dce8011a4b2..7b9cf169f8f 100644 --- a/src/BootstrapBlazor/Enums/StepStatus.cs +++ b/src/BootstrapBlazor/Enums/StepStatus.cs @@ -8,42 +8,42 @@ namespace BootstrapBlazor.Components; /// -/// 步骤状态枚举 -/// 步骤状态enum +/// 步骤状态枚举 +/// 步骤状态enum /// public enum StepStatus { /// - /// 未开始 - /// 未开始 + /// 未开始 + /// 未开始 /// [Description("wait")] Wait, /// - /// 进行中 - /// 进行中 + /// 进行中 + /// 进行中 /// [Description("process")] Process, /// - /// - /// + /// + /// /// [Description("finish")] Finish, /// - /// 已完成 - /// 已完成 + /// 已完成 + /// 已完成 /// [Description("success")] Success, /// - /// - /// + /// + /// /// [Description("error")] Error, diff --git a/src/BootstrapBlazor/Enums/SwalCategory.cs b/src/BootstrapBlazor/Enums/SwalCategory.cs index 698b39ed6a8..cb0ecc67ee7 100644 --- a/src/BootstrapBlazor/Enums/SwalCategory.cs +++ b/src/BootstrapBlazor/Enums/SwalCategory.cs @@ -6,38 +6,38 @@ namespace BootstrapBlazor.Components; /// -/// SweetAlert 提示类型枚举 -/// SweetAlert 提示typeenum +/// SweetAlert 提示类型枚举 +/// SweetAlert 提示typeenum /// public enum SwalCategory { /// - /// 成功信息 - /// 成功信息 + /// 成功信息 + /// 成功信息 /// Success, /// - /// 错误信息 - /// 错误信息 + /// 错误信息 + /// 错误信息 /// Error, /// - /// 警告信息 - /// 警告信息 + /// 警告信息 + /// 警告信息 /// Warning, /// - /// 提示信息 - /// 提示信息 + /// 提示信息 + /// 提示信息 /// Information, /// - /// 疑问信息 - /// 疑问信息 + /// 疑问信息 + /// 疑问信息 /// Question } diff --git a/src/BootstrapBlazor/Enums/SynthesizerStatus.cs b/src/BootstrapBlazor/Enums/SynthesizerStatus.cs index 91face669fe..fcc83345dbf 100644 --- a/src/BootstrapBlazor/Enums/SynthesizerStatus.cs +++ b/src/BootstrapBlazor/Enums/SynthesizerStatus.cs @@ -8,33 +8,33 @@ namespace BootstrapBlazor.Components; /// -/// 语音合成状态枚举 -/// 语音合成状态enum +/// 语音合成状态枚举 +/// 语音合成状态enum /// [JsonConverter(typeof(JsonStringEnumConverter))] public enum SynthesizerStatus { /// - /// 正在合成 - /// 正在合成 + /// 正在合成 + /// 正在合成 /// Synthesizer, /// - /// 朗读完毕 - /// 朗读完毕 + /// 朗读完毕 + /// 朗读完毕 /// Finished, /// - /// 取消 - /// 取消 + /// 取消 + /// 取消 /// Cancel, /// - /// 出错 - /// 出错 + /// 出错 + /// 出错 /// Error } diff --git a/src/BootstrapBlazor/Enums/TabStyle.cs b/src/BootstrapBlazor/Enums/TabStyle.cs index 6795897cc91..17e6908a0bc 100644 --- a/src/BootstrapBlazor/Enums/TabStyle.cs +++ b/src/BootstrapBlazor/Enums/TabStyle.cs @@ -6,26 +6,26 @@ namespace BootstrapBlazor.Components; /// -/// Tab 样式 emnu -/// Tab style emnu +/// Tab 样式 emnu +/// Tab style emnu /// public enum TabStyle { /// - /// default 样式 - /// The default style + /// default 样式 + /// The default style /// Default, /// - /// Chrome 样式 - /// The Chrome style + /// Chrome 样式 + /// The Chrome style /// Chrome, /// - /// Capsule 样式 - /// The Capsule style + /// Capsule 样式 + /// The Capsule style /// Capsule } diff --git a/src/BootstrapBlazor/Enums/TableExportType.cs b/src/BootstrapBlazor/Enums/TableExportType.cs index 689e14e74bc..bc00a4050e3 100644 --- a/src/BootstrapBlazor/Enums/TableExportType.cs +++ b/src/BootstrapBlazor/Enums/TableExportType.cs @@ -6,29 +6,29 @@ namespace BootstrapBlazor.Components; /// -/// Table 组件导出类型枚举 -/// Table component导出typeenum +/// Table 组件导出类型枚举 +/// Table component导出typeenum /// public enum TableExportType { /// - /// 未知格式 - /// 未知格式 + /// 未知格式 + /// 未知格式 /// Unknown, /// - /// Excel 格式 - /// Excel 格式 + /// Excel 格式 + /// Excel 格式 /// Excel, /// - /// Csv 格式 - /// Csv 格式 + /// Csv 格式 + /// Csv 格式 /// Csv, /// - /// Pdf 格式 - /// Pdf 格式 + /// Pdf 格式 + /// Pdf 格式 /// Pdf } diff --git a/src/BootstrapBlazor/Enums/TableHeaderStyle.cs b/src/BootstrapBlazor/Enums/TableHeaderStyle.cs index 81f0b4cf910..f23d34aad3e 100644 --- a/src/BootstrapBlazor/Enums/TableHeaderStyle.cs +++ b/src/BootstrapBlazor/Enums/TableHeaderStyle.cs @@ -8,26 +8,26 @@ namespace BootstrapBlazor.Components; /// -/// 表格 thead 样式枚举 -/// 表格 thead styleenum +/// 表格 thead 样式枚举 +/// 表格 thead styleenum /// public enum TableHeaderStyle { /// - /// 未设置 - /// 未Sets + /// 未设置 + /// 未Sets /// None, /// - /// 浅色 - /// 浅色 + /// 浅色 + /// 浅色 /// [Description("table-light")] Light, /// - /// 深色 - /// 深色 + /// 深色 + /// 深色 /// [Description("table-dark")] Dark diff --git a/src/BootstrapBlazor/Enums/TableRenderModel.cs b/src/BootstrapBlazor/Enums/TableRenderModel.cs index 8e6e2720a5d..b11d703505a 100644 --- a/src/BootstrapBlazor/Enums/TableRenderModel.cs +++ b/src/BootstrapBlazor/Enums/TableRenderModel.cs @@ -8,28 +8,28 @@ namespace BootstrapBlazor.Components; /// -/// Table 视图枚举类型 -/// Table 视图enumtype +/// Table 视图枚举类型 +/// Table 视图enumtype /// public enum TableRenderMode { /// - /// 自动 - /// 自动 + /// 自动 + /// 自动 /// [Description("自动")] Auto, /// - /// Table 布局适用于大屏幕 - /// Table 布局适用于大屏幕 + /// Table 布局适用于大屏幕 + /// Table 布局适用于大屏幕 /// [Description("表格布局")] Table, /// - /// 卡片式布局适用于小屏幕 - /// 卡片式布局适用于小屏幕 + /// 卡片式布局适用于小屏幕 + /// 卡片式布局适用于小屏幕 /// [Description("卡片布局")] CardView diff --git a/src/BootstrapBlazor/Enums/TimePickerCellViewModel.cs b/src/BootstrapBlazor/Enums/TimePickerCellViewModel.cs index eedfae6e23e..21a79fae8d1 100644 --- a/src/BootstrapBlazor/Enums/TimePickerCellViewModel.cs +++ b/src/BootstrapBlazor/Enums/TimePickerCellViewModel.cs @@ -6,26 +6,26 @@ namespace BootstrapBlazor.Components; /// -/// 时间选择组件视图 -/// 时间选择component视图 +/// 时间选择组件视图 +/// 时间选择component视图 /// public enum TimePickerCellViewMode { /// - /// 小时 - /// 小时 + /// 小时 + /// 小时 /// Hour, /// - /// 分钟 - /// 分钟 + /// 分钟 + /// 分钟 /// Minute, /// - /// - /// + /// + /// /// Second, } diff --git a/src/BootstrapBlazor/Enums/ToastCategory.cs b/src/BootstrapBlazor/Enums/ToastCategory.cs index 7c755c63c9d..500c248f32f 100644 --- a/src/BootstrapBlazor/Enums/ToastCategory.cs +++ b/src/BootstrapBlazor/Enums/ToastCategory.cs @@ -8,35 +8,35 @@ namespace BootstrapBlazor.Components; /// -/// Toast 组件类型 -/// Toast componenttype +/// Toast 组件类型 +/// Toast componenttype /// public enum ToastCategory { /// - /// 成功信息 - /// 成功信息 + /// 成功信息 + /// 成功信息 /// [Description("success")] Success, /// - /// 提示信息 - /// 提示信息 + /// 提示信息 + /// 提示信息 /// [Description("info")] Information, /// - /// 错误信息 - /// 错误信息 + /// 错误信息 + /// 错误信息 /// [Description("danger")] Error, /// - /// 警告信息 - /// 警告信息 + /// 警告信息 + /// 警告信息 /// [Description("warning")] Warning diff --git a/src/BootstrapBlazor/Enums/TransitionType.cs b/src/BootstrapBlazor/Enums/TransitionType.cs index c7010f9cd48..53862a4449a 100644 --- a/src/BootstrapBlazor/Enums/TransitionType.cs +++ b/src/BootstrapBlazor/Enums/TransitionType.cs @@ -8,672 +8,672 @@ namespace BootstrapBlazor.Components; /// -/// TransitionType 枚举类型 -/// TransitionType enumtype +/// TransitionType 枚举类型 +/// TransitionType enumtype /// public enum TransitionType { /// - /// 淡入效果 - /// 淡入效果 + /// 淡入效果 + /// 淡入效果 /// [Description("animate__fadeIn")] FadeIn, /// - /// 淡出效果 - /// 淡出效果 + /// 淡出效果 + /// 淡出效果 /// [Description("animate__fadeOut")] FadeOut, /// - /// - /// + /// + /// /// [Description("animate__bounce")] Bounce, /// - /// - /// + /// + /// /// [Description("animate__flash")] Flash, /// - /// - /// + /// + /// /// [Description("animate__pulse")] Pulse, /// - /// - /// + /// + /// /// [Description("animate__rubberBand")] RubberBand, /// - /// - /// + /// + /// /// [Description("animate__shake")] Shake, /// - /// - /// + /// + /// /// [Description("animate__shakeX")] ShakeX, /// - /// - /// + /// + /// /// [Description("animate__shakeY")] ShakeY, /// - /// - /// + /// + /// /// [Description("animate__headShake")] HeadShake, /// - /// - /// + /// + /// /// [Description("animate__swing")] Swing, /// - /// - /// + /// + /// /// [Description("animate__tada")] Tada, /// - /// - /// + /// + /// /// [Description("animate__wobble")] Wobble, /// - /// - /// + /// + /// /// [Description("animate__jello")] Jello, /// - /// - /// + /// + /// /// [Description("animate__bounceIn")] BounceIn, /// - /// - /// + /// + /// /// [Description("animate__bounceInDown")] BounceInDown, /// - /// - /// + /// + /// /// [Description("animate__bounceInLeft")] BounceInLeft, /// - /// - /// + /// + /// /// [Description("animate__bounceInRight")] BounceInRight, /// - /// - /// + /// + /// /// [Description("animate__bounceInUp")] BounceInUp, /// - /// - /// + /// + /// /// [Description("animate__bounceOut")] BounceOut, /// - /// - /// + /// + /// /// [Description("animate__bounceOutDown")] BounceOutDown, /// - /// - /// + /// + /// /// [Description("animate__bounceOutLeft")] BounceOutLeft, /// - /// - /// + /// + /// /// [Description("animate__bounceOutRight")] BounceOutRight, /// - /// - /// + /// + /// /// [Description("animate__bounceOutUp")] BounceOutUp, /// - /// - /// + /// + /// /// [Description("animate__fadeInDown")] FadeInDown, /// - /// - /// + /// + /// /// [Description("animate__fadeInDownBig")] FadeInDownBig, /// - /// - /// + /// + /// /// [Description("animate__fadeInLeft")] FadeInLeft, /// - /// - /// + /// + /// /// [Description("animate__fadeInLeftBig")] FadeInLeftBig, /// - /// - /// + /// + /// /// [Description("animate__fadeInRight")] FadeInRight, /// - /// - /// + /// + /// /// [Description("animate__fadeInRightBig")] FadeInRightBig, /// - /// - /// + /// + /// /// [Description("animate__fadeInUp")] FadeInUp, /// - /// - /// + /// + /// /// [Description("animate__fadeInUpBig")] FadeInUpBig, /// - /// - /// + /// + /// /// [Description("animate__fadeOutDown")] FadeOutDown, /// - /// - /// + /// + /// /// [Description("animate__fadeOutDownBig")] FadeOutDownBig, /// - /// - /// + /// + /// /// [Description("animate__fadeOutLeft")] FadeOutLeft, /// - /// - /// + /// + /// /// [Description("animate__fadeOutLeftBig")] FadeOutLeftBig, /// - /// - /// + /// + /// /// [Description("animate__fadeOutRight")] FadeOutRight, /// - /// - /// + /// + /// /// [Description("animate__fadeOutRightBig")] FadeOutRightBig, /// - /// - /// + /// + /// /// [Description("animate__fadeOutUp")] FadeOutUp, /// - /// - /// + /// + /// /// [Description("animate__fadeOutUpBig")] FadeOutUpBig, /// - /// - /// + /// + /// /// [Description("animate__flipInX")] FlipInX, /// - /// - /// + /// + /// /// [Description("animate__flipInY")] FlipInY, /// - /// - /// + /// + /// /// [Description("animate__flipOutX")] FlipOutX, /// - /// - /// + /// + /// /// [Description("animate__flipOutY")] FlipOutY, /// - /// - /// + /// + /// /// [Description("animate__lightSpeedIn")] LightSpeedIn, /// - /// - /// + /// + /// /// [Description("animate__lightSpeedOut")] LightSpeedOut, /// - /// - /// + /// + /// /// [Description("animate__lightSpeedInRight")] LightSpeedInRight, /// - /// - /// + /// + /// /// [Description("animate__lightSpeedInLeft")] LightSpeedInLeft, /// - /// - /// + /// + /// /// [Description("animate__lightSpeedOutRight")] LightSpeedOutRight, /// - /// - /// + /// + /// /// [Description("animate__lightSpeedOutLeft")] LightSpeedOutLeft, /// - /// - /// + /// + /// /// [Description("animate__rotateIn")] RotateIn, /// - /// - /// + /// + /// /// [Description("animate__rotateInDownLeft")] RotateInDownLeft, /// - /// - /// + /// + /// /// [Description("animate__rotateInDownRight")] RotateInDownRight, /// - /// - /// + /// + /// /// [Description("animate__rotateInUpLeft")] RotateInUpLeft, /// - /// - /// + /// + /// /// [Description("animate__rotateInUpRight")] RotateInUpRight, /// - /// - /// + /// + /// /// [Description("animate__rotateOut")] RotateOut, /// - /// - /// + /// + /// /// [Description("animate__rotateOutDownLeft")] RotateOutDownLeft, /// - /// - /// + /// + /// /// [Description("animate__rotateOutDownRight")] RotateOutDownRight, /// - /// - /// + /// + /// /// [Description("animate__rotateOutUpLeft")] RotateOutUpLeft, /// - /// - /// + /// + /// /// [Description("animate__rotateOutUpRight")] RotateOutUpRight, /// - /// - /// + /// + /// /// [Description("animate__hinge")] Hinge, /// - /// - /// + /// + /// /// [Description("animate__jackInTheBox")] JackInTheBox, /// - /// - /// + /// + /// /// [Description("animate__rollIn")] RollIn, /// - /// - /// + /// + /// /// [Description("animate__rollOut")] RollOut, /// - /// - /// + /// + /// /// [Description("animate__zoomIn")] ZoomIn, /// - /// - /// + /// + /// /// [Description("animate__zoomInDown")] ZoomInDown, /// - /// - /// + /// + /// /// [Description("animate__zoomInLeft")] ZoomInLeft, /// - /// - /// + /// + /// /// [Description("animate__zoomInRight")] ZoomInRight, /// - /// - /// + /// + /// /// [Description("animate__zoomInUp")] ZoomInUp, /// - /// - /// + /// + /// /// [Description("animate__zoomOut")] ZoomOut, /// - /// - /// + /// + /// /// [Description("animate__zoomOutDown")] ZoomOutDown, /// - /// - /// + /// + /// /// [Description("animate__zoomOutLeft")] ZoomOutLeft, /// - /// - /// + /// + /// /// [Description("animate__zoomOutRight")] ZoomOutRight, /// - /// - /// + /// + /// /// [Description("animate__zoomOutUp")] ZoomOutUp, /// - /// - /// + /// + /// /// [Description("animate__slideInDown")] SlideInDown, /// - /// - /// + /// + /// /// [Description("animate__slideInLeft")] SlideInLeft, /// - /// - /// + /// + /// /// [Description("animate__slideInRight")] SlideInRight, /// - /// - /// + /// + /// /// [Description("animate__slideInUp")] SlideInUp, /// - /// - /// + /// + /// /// [Description("animate__slideOutDown")] SlideOutDown, /// - /// - /// + /// + /// /// [Description("animate__slideOutLeft")] SlideOutLeft, /// - /// - /// + /// + /// /// [Description("animate__slideOutRight")] SlideOutRight, /// - /// - /// + /// + /// /// [Description("animate__slideOutUp")] SlideOutUp, /// - /// - /// + /// + /// /// [Description("animate__heartBeat")] HeartBeat, /// - /// - /// + /// + /// /// [Description("animate__fadeInTopLeft")] FadeInTopLeft, /// - /// - /// + /// + /// /// [Description("animate__fadeInTopRight")] FadeInTopRight, /// - /// - /// + /// + /// /// [Description("animate__fadeInBottomLeft")] FadeInBottomLeft, /// - /// - /// + /// + /// /// [Description("animate__fadeInBottomRight")] FadeInBottomRight, /// - /// - /// + /// + /// /// [Description("animate__fadeOutTopLeft")] FadeOutTopLeft, /// - /// - /// + /// + /// /// [Description("animate__fadeOutTopRight")] FadeOutTopRight, /// - /// - /// + /// + /// /// [Description("animate__fadeOutBottomRight")] FadeOutBottomRight, /// - /// - /// + /// + /// /// [Description("animate__fadeOutBottomLeft")] FadeOutBottomLeft, /// - /// - /// + /// + /// /// [Description("animate__backOutDown")] BackOutDown, /// - /// - /// + /// + /// /// [Description("animate__backOutLeft")] BackOutLeft, /// - /// - /// + /// + /// /// [Description("animate__backOutRight")] BackOutRight, /// - /// - /// + /// + /// /// [Description("animate__backOutU")] BackOutUp diff --git a/src/BootstrapBlazor/Enums/UploadStyle.cs b/src/BootstrapBlazor/Enums/UploadStyle.cs index 8e4c15642c7..e46ce690704 100644 --- a/src/BootstrapBlazor/Enums/UploadStyle.cs +++ b/src/BootstrapBlazor/Enums/UploadStyle.cs @@ -6,32 +6,32 @@ namespace BootstrapBlazor.Components; /// -/// 上传组件模式枚举类型 -/// 上传component模式enumtype +/// 上传组件模式枚举类型 +/// 上传component模式enumtype /// public enum UploadStyle { /// - /// 正常模式 - /// 正常模式 + /// 正常模式 + /// 正常模式 /// Normal, /// - /// 点击上传 - /// 点击上传 + /// 点击上传 + /// 点击上传 /// ClickToUpload, /// - /// 上传头像模式 - /// 上传头像模式 + /// 上传头像模式 + /// 上传头像模式 /// Avatar, /// - /// 预览卡片模式 - /// 预览卡片模式 + /// 预览卡片模式 + /// 预览卡片模式 /// Card } diff --git a/src/BootstrapBlazor/Enums/WebClientDeviceType.cs b/src/BootstrapBlazor/Enums/WebClientDeviceType.cs index fa1a1367089..5d81092b398 100644 --- a/src/BootstrapBlazor/Enums/WebClientDeviceType.cs +++ b/src/BootstrapBlazor/Enums/WebClientDeviceType.cs @@ -6,26 +6,26 @@ namespace BootstrapBlazor.Components; /// -/// 客户端设备类型 -/// 客户端设备type +/// 客户端设备类型 +/// 客户端设备type /// public enum WebClientDeviceType { /// - /// - /// + /// + /// /// Desktop, /// - /// - /// + /// + /// /// Mobile, /// - /// - /// + /// + /// /// Tablet } diff --git a/src/BootstrapBlazor/Extensions/AssemblyExtensions.cs b/src/BootstrapBlazor/Extensions/AssemblyExtensions.cs index f4f6f012f00..166112b701a 100644 --- a/src/BootstrapBlazor/Extensions/AssemblyExtensions.cs +++ b/src/BootstrapBlazor/Extensions/AssemblyExtensions.cs @@ -14,6 +14,5 @@ static class AssemblyExtensions /// Get Unique Type Name /// /// - /// public static string GetUniqueName(this Assembly assembly) => CacheManager.GetUniqueName(assembly); } diff --git a/src/BootstrapBlazor/Extensions/BluetoothExtensions.cs b/src/BootstrapBlazor/Extensions/BluetoothExtensions.cs index f3f3a91c298..d3866b686a0 100644 --- a/src/BootstrapBlazor/Extensions/BluetoothExtensions.cs +++ b/src/BootstrapBlazor/Extensions/BluetoothExtensions.cs @@ -19,7 +19,6 @@ public static class BluetoothExtensions /// Get Bluetooth Service List /// /// - /// public static List GetServicesList(this IEnumerable services) => services.Select(i => { var v = i.ToString(); diff --git a/src/BootstrapBlazor/Extensions/BootstrapBlazorServiceCollectionExtensions.cs b/src/BootstrapBlazor/Extensions/BootstrapBlazorServiceCollectionExtensions.cs index 385e45da661..cb004e24553 100644 --- a/src/BootstrapBlazor/Extensions/BootstrapBlazorServiceCollectionExtensions.cs +++ b/src/BootstrapBlazor/Extensions/BootstrapBlazorServiceCollectionExtensions.cs @@ -22,7 +22,6 @@ public static class BootstrapBlazorServiceCollectionExtensions /// /// /// - /// public static IServiceCollection AddBootstrapBlazor(this IServiceCollection services, Action? configureOptions = null, Action? localizationConfigure = null) { services.AddMemoryCache(); @@ -140,7 +139,6 @@ public static IServiceCollection AddBootstrapBlazor(this IServiceCollection serv /// /// /// - /// private static IServiceCollection ConfigureBootstrapBlazorOption(this IServiceCollection services, Action? configureOptions = null) { services.AddOptionsMonitor(); @@ -181,7 +179,6 @@ void SetFallbackCulture() /// /// /// - /// [Obsolete("已弃用 请删除即可")] [ExcludeFromCodeCoverage] public static IServiceCollection ConfigureIPLocatorOption(this IServiceCollection services, Action? locatorAction = null) @@ -225,7 +222,6 @@ public static IServiceCollection AddOptionsMonitor(this IServiceCollec /// Add TabItem Bind Options Service /// /// - /// static IServiceCollection AddTabItemBindOptions(this IServiceCollection services) { services.AddOptionsMonitor(); @@ -238,7 +234,6 @@ static IServiceCollection AddTabItemBindOptions(this IServiceCollection services /// /// /// - /// public static IServiceCollection ConfigureTabItemMenuBindOptions(this IServiceCollection services, Action configureOptions) { services.Configure(configureOptions); @@ -250,7 +245,6 @@ public static IServiceCollection ConfigureTabItemMenuBindOptions(this IServiceCo /// Add Icon Theme Options Service /// /// - /// static IServiceCollection AddIconTheme(this IServiceCollection services) { services.TryAddSingleton(); @@ -264,7 +258,6 @@ static IServiceCollection AddIconTheme(this IServiceCollection services) /// /// /// - /// public static IServiceCollection ConfigureIconThemeOptions(this IServiceCollection services, Action? configureOptions = null) { if (configureOptions != null) diff --git a/src/BootstrapBlazor/Extensions/ConfigurationExtensions.cs b/src/BootstrapBlazor/Extensions/ConfigurationExtensions.cs index 59b47a1d9e5..5520083f015 100644 --- a/src/BootstrapBlazor/Extensions/ConfigurationExtensions.cs +++ b/src/BootstrapBlazor/Extensions/ConfigurationExtensions.cs @@ -113,7 +113,6 @@ public static string GetOS() /// /// /// - /// public static string? GetUserName(this IConfiguration config, string? defaultValue = null) { var userName = config.GetValue("USERNAME"); @@ -133,7 +132,6 @@ public static string GetOS() /// /// /// - /// public static string? GetEnvironmentName(this IConfiguration config, string? defaultValue = null) { return config.GetValue("ASPNETCORE_ENVIRONMENT") ?? defaultValue; @@ -145,7 +143,6 @@ public static string GetOS() /// /// /// - /// public static string? GetIISPath(this IConfiguration config, string? defaultValue = null) { return config.GetValue("ASPNETCORE_IIS_PHYSICAL_PATH") ?? defaultValue; @@ -157,7 +154,6 @@ public static string GetOS() /// /// /// - /// public static string? GetVisualStudioVersion(this IConfiguration config, string? defaultValue = null) { var edition = config.GetValue("VisualStudioEdition"); diff --git a/src/BootstrapBlazor/Extensions/ConsoleItemMessageExtensions.cs b/src/BootstrapBlazor/Extensions/ConsoleItemMessageExtensions.cs index 8b234adb92b..ae06804faa5 100644 --- a/src/BootstrapBlazor/Extensions/ConsoleItemMessageExtensions.cs +++ b/src/BootstrapBlazor/Extensions/ConsoleItemMessageExtensions.cs @@ -12,7 +12,6 @@ static class ConsoleMessageItemExtensions /// Render Message /// /// - /// public static RenderFragment RenderMessage(this ConsoleMessageItem item) => builder => { if (item.IsHtml) diff --git a/src/BootstrapBlazor/Extensions/DateTimeExtensions.cs b/src/BootstrapBlazor/Extensions/DateTimeExtensions.cs index 11de57d0aec..7e119bb5197 100644 --- a/src/BootstrapBlazor/Extensions/DateTimeExtensions.cs +++ b/src/BootstrapBlazor/Extensions/DateTimeExtensions.cs @@ -19,7 +19,6 @@ internal static class DateTimeExtensions /// /// /// - /// public static DateTime GetSafeMonthDateTime(this DateTime dt, int month) { var @base = dt; @@ -55,7 +54,6 @@ public static DateTime GetSafeMonthDateTime(this DateTime dt, int month) /// Get Lunar DateTime /// /// - /// public static (int Year, int Month, int Day) ToLunarDateTime(this DateTime dt) { var year = calendar.GetYear(dt); @@ -78,7 +76,6 @@ public static (int Year, int Month, int Day) ToLunarDateTime(this DateTime dt) /// /// /// - /// public static string ToLunarText(this DateTime dt, bool showSolarTerm = false, ICalendarFestivals? calendarFestivals = null) => calendarFestivals?.GetFestival(dt) ?? (showSolarTerm ? dt.GetSolarTermName() ?? dt.GetLunarMonthName() diff --git a/src/BootstrapBlazor/Extensions/DialogServiceExtensions.cs b/src/BootstrapBlazor/Extensions/DialogServiceExtensions.cs index 16cc62767e2..f5bbc6fc8de 100644 --- a/src/BootstrapBlazor/Extensions/DialogServiceExtensions.cs +++ b/src/BootstrapBlazor/Extensions/DialogServiceExtensions.cs @@ -93,7 +93,6 @@ public static async Task ShowEditDialog(this DialogService service, Edit /// DialogService 服务实例DialogService instance /// 对话框参数Dialog option /// 指定弹窗组件 默认为 null 使用 组件内置弹窗组件Specify the dialog component, default is null, use built-in dialog component - /// public static async Task ShowModal(this DialogService service, ResultDialogOption option, Dialog? dialog = null) where TDialog : IComponent, IResultDialog { @@ -191,7 +190,6 @@ public Task OnClose(DialogResult result) /// TComponent 组件所需参数TComponent parameters /// 实例配置回调方法 configuration callback /// - /// public static async Task ShowSaveDialog(this DialogService service, string title, Func>? saveCallback = null, Action>? parametersFactory = null, Action? configureOption = null, Dialog? dialog = null) where TComponent : ComponentBase { var option = new DialogOption() @@ -217,7 +215,6 @@ public static async Task ShowSaveDialog(this DialogService service, /// /// /// - /// public static async Task ShowCloseDialog(this DialogService service, string title, Action>? parametersFactory = null, Action? configureOption = null, Dialog? dialog = null) where TComponent : ComponentBase { var option = new DialogOption() @@ -241,7 +238,6 @@ public static async Task ShowCloseDialog(this DialogService service, /// TComponent 组件所需参数TComponent parameters /// 实例配置回调方法 configuration callback /// - /// public static async Task ShowValidateFormDialog(this DialogService service, string title, Func>? parametersFactory = null, Action? configureOption = null, Dialog? dialog = null) where TComponent : ComponentBase { var option = new DialogOption() @@ -262,7 +258,6 @@ public static async Task ShowValidateFormDialog(this DialogService s /// /// /// - /// public static async Task ShowErrorHandlerDialog(this DialogService service, RenderFragment fragment, Dialog? dialog = null) { var option = new DialogOption @@ -281,7 +276,6 @@ public static async Task ShowErrorHandlerDialog(this DialogService service, Rend /// /// /// - /// public static async Task ShowExceptionDialog(this DialogService service, Exception exception, Dialog? dialog = null) { RenderFragment fragment = builder => diff --git a/src/BootstrapBlazor/Extensions/DownloadServiceExtensions.cs b/src/BootstrapBlazor/Extensions/DownloadServiceExtensions.cs index 624f4becdd2..59f45798af3 100644 --- a/src/BootstrapBlazor/Extensions/DownloadServiceExtensions.cs +++ b/src/BootstrapBlazor/Extensions/DownloadServiceExtensions.cs @@ -20,7 +20,6 @@ public static class DownloadServiceExtensions /// /// 文件名File name /// 文件流File stream - /// public static Task DownloadFromStreamAsync(this DownloadService download, string downloadFileName, Stream stream) => download.DownloadFromStreamAsync(new DownloadOption() { FileName = downloadFileName, FileStream = stream }); /// @@ -30,7 +29,6 @@ public static class DownloadServiceExtensions /// /// 文件名File name /// Byte[] 数组Byte array - /// public static Task DownloadFromByteArrayAsync(this DownloadService download, string downloadFileName, byte[] data) => download.DownloadFromStreamAsync(new DownloadOption() { FileName = downloadFileName, FileStream = new MemoryStream(data) }); /// @@ -40,7 +38,6 @@ public static class DownloadServiceExtensions /// /// 文件名File name /// 文件夹路径Folder path - /// public static async Task DownloadFolderAsync(this DownloadService download, string downloadFileName, string folder) { if (!Directory.Exists(folder)) @@ -65,7 +62,6 @@ public static async Task DownloadFolderAsync(this DownloadService download, stri /// /// 文件名File name /// 文件地址File url - /// public static Task DownloadFromUrlAsync(this DownloadService download, string downloadFileName, string url) => download.DownloadFromUrlAsync(new DownloadOption() { FileName = downloadFileName, Url = url }); /// @@ -75,7 +71,6 @@ public static async Task DownloadFolderAsync(this DownloadService download, stri /// /// /// - /// public static async Task DownloadFromFileAsync(this DownloadService download, string fileName, string physicalFilePath) { if (File.Exists(physicalFilePath)) diff --git a/src/BootstrapBlazor/Extensions/DrawerOptionExtensions.cs b/src/BootstrapBlazor/Extensions/DrawerOptionExtensions.cs index 021738cf8dc..1a3b37e1702 100644 --- a/src/BootstrapBlazor/Extensions/DrawerOptionExtensions.cs +++ b/src/BootstrapBlazor/Extensions/DrawerOptionExtensions.cs @@ -16,6 +16,5 @@ public static class DrawerOptionExtensions /// Get component render fragment /// /// - /// public static RenderFragment? GetContent(this DrawerOption drawerOption) => drawerOption.ChildContent ?? drawerOption.Component?.Render(); } diff --git a/src/BootstrapBlazor/Extensions/EnumExtensions.cs b/src/BootstrapBlazor/Extensions/EnumExtensions.cs index edf0d336e17..a02c38db73c 100644 --- a/src/BootstrapBlazor/Extensions/EnumExtensions.cs +++ b/src/BootstrapBlazor/Extensions/EnumExtensions.cs @@ -19,7 +19,6 @@ public static class EnumExtensions /// Get DescriptionAttribute method /// /// - /// public static string ToDescriptionString(this TEnum val) where TEnum : Enum => typeof(TEnum).ToDescriptionString(val.ToString()); /// @@ -28,7 +27,6 @@ public static class EnumExtensions /// /// /// - /// public static string ToDescriptionString(this Type? type, string? fieldName) { var ret = string.Empty; @@ -47,7 +45,6 @@ public static string ToDescriptionString(this Type? type, string? fieldName) /// /// /// - /// public static string ToDisplayName(this TEnum @enum) where TEnum : Enum => Utility.GetDisplayName(@enum.ToString()); /// @@ -56,7 +53,6 @@ public static string ToDescriptionString(this Type? type, string? fieldName) /// /// /// - /// public static List ToSelectList(this Type type, SelectedItem? additionalItem = null) { var ret = new List(); @@ -79,7 +75,6 @@ public static List ToSelectList(this Type type, SelectedItem? addi /// /// /// - /// public static List> ToSelectList(this Type type, SelectedItem? additionalItem = null) { var ret = new List>(); @@ -106,7 +101,6 @@ public static List> ToSelectList(this Type type, Se /// Determine whether the type is an enumeration type /// /// - /// public static bool IsEnum(this Type? type) { var ret = false; @@ -123,7 +117,6 @@ public static bool IsEnum(this Type? type) /// Determine whether the type is a Flag enumeration type /// /// - /// public static bool IsFlagEnum(this Type? type) => type != null && IsEnum(type) && type.GetCustomAttribute() != null; /// @@ -132,7 +125,6 @@ public static bool IsEnum(this Type? type) /// /// /// - /// internal static object? ParseFlagEnum(this IEnumerable items, Type type) { TValue? v = default; diff --git a/src/BootstrapBlazor/Extensions/ExceptionExtensions.cs b/src/BootstrapBlazor/Extensions/ExceptionExtensions.cs index 50ec1f6b644..c9fc73afed2 100644 --- a/src/BootstrapBlazor/Extensions/ExceptionExtensions.cs +++ b/src/BootstrapBlazor/Extensions/ExceptionExtensions.cs @@ -20,7 +20,6 @@ public static class ExceptionExtensions /// /// /// - /// public static string Format(this Exception exception, NameValueCollection? collection = null) { var logger = new StringBuilder(); @@ -49,7 +48,6 @@ public static string Format(this Exception exception, NameValueCollection? colle /// /// /// - /// public static MarkupString FormatMarkupString(this Exception exception, NameValueCollection? collection = null) { var message = Format(exception, collection); diff --git a/src/BootstrapBlazor/Extensions/ExpandableNodeExtensions.cs b/src/BootstrapBlazor/Extensions/ExpandableNodeExtensions.cs index ed33acd7b0d..a6671a16ab8 100644 --- a/src/BootstrapBlazor/Extensions/ExpandableNodeExtensions.cs +++ b/src/BootstrapBlazor/Extensions/ExpandableNodeExtensions.cs @@ -17,7 +17,6 @@ public static class ExpandableNodeExtensions /// /// /// - /// public static List GetAllItems(this IEnumerable> items) => items.GetAllItems([]); /// @@ -27,7 +26,6 @@ public static class ExpandableNodeExtensions /// /// /// - /// private static List GetAllItems(this IEnumerable> items, List results) { foreach (var item in items) @@ -51,7 +49,6 @@ private static List GetAllItems(this IEnumerable获得 所有子项集合 /// Get all sub items collection /// - /// public static IEnumerable> GetAllSubItems(this IExpandableNode item) => item.Items.Concat(GetSubItems(item.Items)); private static IEnumerable> GetSubItems(IEnumerable> items) => items.SelectMany(i => i.Items.Any() ? i.Items.Concat(GetSubItems(i.Items)) : i.Items); @@ -62,7 +59,6 @@ private static List GetAllItems(this IEnumerable /// /// - /// public static IEnumerable> GetAllTreeSubItems(this IExpandableNode item) => item.GetAllSubItems().OfType>(); /// diff --git a/src/BootstrapBlazor/Extensions/FieldIdentifierExtensions.cs b/src/BootstrapBlazor/Extensions/FieldIdentifierExtensions.cs index 1f33914e5f7..cb49d66eb93 100644 --- a/src/BootstrapBlazor/Extensions/FieldIdentifierExtensions.cs +++ b/src/BootstrapBlazor/Extensions/FieldIdentifierExtensions.cs @@ -20,7 +20,6 @@ public static class FieldIdentifierExtensions /// 获取display名称方法 /// /// - /// public static string GetDisplayName(this FieldIdentifier fieldIdentifier) => Utility.GetDisplayName(fieldIdentifier.Model, fieldIdentifier.FieldName); /// @@ -28,7 +27,6 @@ public static class FieldIdentifierExtensions /// Get PlaceHolder method /// /// - /// public static string? GetPlaceHolder(this FieldIdentifier fieldIdentifier) => Utility.GetPlaceHolder(fieldIdentifier.Model, fieldIdentifier.FieldName); /// @@ -36,7 +34,6 @@ public static class FieldIdentifierExtensions /// 获取display名称方法 /// /// - /// public static RangeAttribute? GetRange(this FieldIdentifier fieldIdentifier) => Utility.GetRange(fieldIdentifier.Model, fieldIdentifier.FieldName); /// @@ -45,7 +42,6 @@ public static class FieldIdentifierExtensions /// /// /// - /// public static RequiredValidator? GetRequiredValidator(this FieldIdentifier fieldIdentifier, IStringLocalizerFactory localizerFactory) { RequiredValidator? validator = null; diff --git a/src/BootstrapBlazor/Extensions/FullScreenServiceExtensions.cs b/src/BootstrapBlazor/Extensions/FullScreenServiceExtensions.cs index 162ef9e7f6c..2a2ede2766e 100644 --- a/src/BootstrapBlazor/Extensions/FullScreenServiceExtensions.cs +++ b/src/BootstrapBlazor/Extensions/FullScreenServiceExtensions.cs @@ -17,7 +17,6 @@ public static class FullScreenServiceExtensions /// /// /// - /// public static Task ToggleByElement(this FullScreenService service, ElementReference element) => service.Toggle(new() { Element = element }); /// @@ -26,6 +25,5 @@ public static class FullScreenServiceExtensions /// /// /// - /// public static Task ToggleById(this FullScreenService service, string? id = null) => service.Toggle(new() { Id = id }); } diff --git a/src/BootstrapBlazor/Extensions/ICacheEntryExtensions.cs b/src/BootstrapBlazor/Extensions/ICacheEntryExtensions.cs index 9bb82436319..da506193a7f 100644 --- a/src/BootstrapBlazor/Extensions/ICacheEntryExtensions.cs +++ b/src/BootstrapBlazor/Extensions/ICacheEntryExtensions.cs @@ -20,7 +20,6 @@ public static class ICacheEntryExtensions /// /// /// - /// public static DateTime? GetLastAccessed(this ICacheEntry entry, bool force = false) { if (force) diff --git a/src/BootstrapBlazor/Extensions/IEditorItemExtensions.cs b/src/BootstrapBlazor/Extensions/IEditorItemExtensions.cs index 011d856d3ae..ef06174ad52 100644 --- a/src/BootstrapBlazor/Extensions/IEditorItemExtensions.cs +++ b/src/BootstrapBlazor/Extensions/IEditorItemExtensions.cs @@ -20,7 +20,6 @@ public static class IEditorItemExtensions /// /// /// - /// public static bool IsEditable(this IEditorItem item, ItemChangedType changedType, bool search = false) => search || !item.IsReadonly(changedType); private static bool IsReadonly(this IEditorItem item, ItemChangedType changedType) @@ -44,7 +43,6 @@ private static bool IsReadonly(this IEditorItem item, ItemChangedType changedTyp /// /// /// - /// public static bool IsVisible(this IEditorItem item, ItemChangedType changedType, bool search = false) => search || item.IsVisible(changedType); private static bool IsVisible(this IEditorItem item, ItemChangedType changedType) @@ -71,7 +69,6 @@ private static bool IsVisible(this IEditorItem item, ItemChangedType changedType /// /// /// - /// public static bool CanWrite(this IEditorItem item, Type modelType, ItemChangedType changedType, bool search = false) => item.CanWrite(modelType) && item.IsEditable(changedType, search); /// @@ -80,7 +77,6 @@ private static bool IsVisible(this IEditorItem item, ItemChangedType changedType /// /// /// - /// public static bool CanWrite(this IEditorItem item, Type modelType) { return modelType == typeof(DynamicObject) || modelType.IsSubclassOf(typeof(DynamicObject)) || ComplexCanWrite(); diff --git a/src/BootstrapBlazor/Extensions/IIconThemeExtensions.cs b/src/BootstrapBlazor/Extensions/IIconThemeExtensions.cs index c40e145f69d..2aec06ef9c3 100644 --- a/src/BootstrapBlazor/Extensions/IIconThemeExtensions.cs +++ b/src/BootstrapBlazor/Extensions/IIconThemeExtensions.cs @@ -18,7 +18,6 @@ public static class IIconThemeExtensions /// /// /// - /// public static string? GetIconByKey(this IIconTheme iconTheme, ComponentIcons key, string? defaultIcon = null) { string? icon = null; diff --git a/src/BootstrapBlazor/Extensions/ILooupExtensions.cs b/src/BootstrapBlazor/Extensions/ILooupExtensions.cs index c2566a942db..5044b298a77 100644 --- a/src/BootstrapBlazor/Extensions/ILooupExtensions.cs +++ b/src/BootstrapBlazor/Extensions/ILooupExtensions.cs @@ -16,7 +16,6 @@ public static class ILooupExtensions /// Determine whether the current instance is configured with Lookup data /// /// - /// public static bool IsLookup(this ILookup lookup) => lookup.Lookup != null || !string.IsNullOrEmpty(lookup.LookupServiceKey); /// @@ -25,7 +24,6 @@ public static class ILooupExtensions /// /// /// - /// public static ILookupService GetLookupService(this ILookup lookup, ILookupService service) => lookup.LookupService ?? service; /// @@ -36,7 +34,6 @@ public static class ILooupExtensions /// /// /// - /// public static async Task?> GetItemsAsync(this ILookup lookup, ILookupService service, string? key, object? data) => lookup.Lookup ?? await lookup.GetLookupService(service).GetItemsAsync(key, data); /// @@ -46,7 +43,6 @@ public static class ILooupExtensions /// /// /// - /// public static async Task?> GetItemsAsync(this ILookupService service, string? key, object? data) => string.IsNullOrEmpty(key) ? null : service.GetItemsByKey(key, data) ?? await service.GetItemsByKeyAsync(key, data); diff --git a/src/BootstrapBlazor/Extensions/IModelEqualityComparerExtensions.cs b/src/BootstrapBlazor/Extensions/IModelEqualityComparerExtensions.cs index ad96785dcd9..81e4d6b9a1c 100644 --- a/src/BootstrapBlazor/Extensions/IModelEqualityComparerExtensions.cs +++ b/src/BootstrapBlazor/Extensions/IModelEqualityComparerExtensions.cs @@ -19,7 +19,6 @@ public static class IModelEqualityComparerExtensions /// /// /// - /// public static bool Equals(this IModelEqualityComparer comparer, TItem? x, TItem? y) { bool ret; diff --git a/src/BootstrapBlazor/Extensions/IQueryableExtensions.cs b/src/BootstrapBlazor/Extensions/IQueryableExtensions.cs index c3680d0b571..f117297050c 100644 --- a/src/BootstrapBlazor/Extensions/IQueryableExtensions.cs +++ b/src/BootstrapBlazor/Extensions/IQueryableExtensions.cs @@ -21,7 +21,6 @@ public static class IQueryableExtensions /// 数据源Data source /// 过滤条件Filter condition /// 是否查询条件Whether to query condition - /// public static IQueryable Where(this IQueryable queryable, Expression> predicate, bool condition) => condition ? queryable.Where(predicate) : queryable; /// @@ -33,7 +32,6 @@ public static class IQueryableExtensions /// 排序名称Sort name /// 排序策略Sort order /// 是否排序Whether to sort - /// public static IQueryable Sort(this IQueryable queryable, string sortName, SortOrder sortOrder, bool condition) => condition ? queryable.Sort(sortName, sortOrder) : queryable; /// @@ -44,7 +42,6 @@ public static class IQueryableExtensions /// 数据源Data source /// Skip 数量Skip count /// Take 数量Take count - /// public static IQueryable Page(this IQueryable queryable, int skipCount, int maxResultCount) => queryable.Skip(skipCount).Take(maxResultCount); /// @@ -54,7 +51,6 @@ public static class IQueryableExtensions /// 泛型Generic type /// 数据源Data source /// 结果数量Total count - /// public static IQueryable Count(this IQueryable queryable, out int totalCount) { totalCount = queryable.Count(); diff --git a/src/BootstrapBlazor/Extensions/IStringLocalizerExtensions.cs b/src/BootstrapBlazor/Extensions/IStringLocalizerExtensions.cs index a931ddd423d..96a22fe5111 100644 --- a/src/BootstrapBlazor/Extensions/IStringLocalizerExtensions.cs +++ b/src/BootstrapBlazor/Extensions/IStringLocalizerExtensions.cs @@ -20,7 +20,6 @@ internal static class IStringLocalizerExtensions /// /// /// - /// public static bool TryGetLocalizerString(this IStringLocalizer localizer, string key, [MaybeNullWhen(false)] out string? text) { var ret = false; diff --git a/src/BootstrapBlazor/Extensions/ITableColumnExtensions.cs b/src/BootstrapBlazor/Extensions/ITableColumnExtensions.cs index ddc7c50c2be..4d25140b8a0 100644 --- a/src/BootstrapBlazor/Extensions/ITableColumnExtensions.cs +++ b/src/BootstrapBlazor/Extensions/ITableColumnExtensions.cs @@ -123,7 +123,6 @@ private static void CopyValue(this ITableColumn col, ITableColumn dest) /// /// /// - /// public static List ToSearches(this IEnumerable columns, string? searchText) { var searches = new List(); @@ -185,7 +184,6 @@ public static List ToSearches(this IEnumerable colu /// /// /// - /// public static RenderFragment RenderValue(this ITableColumn col, TItem item) => builder => { var val = col.GetItemValue(item); diff --git a/src/BootstrapBlazor/Extensions/JSModuleExtensions.cs b/src/BootstrapBlazor/Extensions/JSModuleExtensions.cs index 7c6121b4fd6..f377e23a062 100644 --- a/src/BootstrapBlazor/Extensions/JSModuleExtensions.cs +++ b/src/BootstrapBlazor/Extensions/JSModuleExtensions.cs @@ -175,7 +175,6 @@ public static string GetTypeModuleName(this Type type) /// /// An instance of /// The name of the theme - /// public static ValueTask SetThemeAsync(this JSModule module, string themeName) => module.InvokeVoidAsync("setTheme", themeName, true); /// @@ -183,7 +182,6 @@ public static string GetTypeModuleName(this Type type) /// Get the theme method /// /// An instance of - /// public static ValueTask GetThemeAsync(this JSModule module) => module.InvokeAsync("getTheme"); /// @@ -192,6 +190,5 @@ public static string GetTypeModuleName(this Type type) /// /// An instance of /// Whether it is memorial mode - /// public static ValueTask SetMemorialModeAsync(this JSModule module, bool isMemorial) => module.InvokeVoidAsync("setMemorialMode", isMemorial); } diff --git a/src/BootstrapBlazor/Extensions/LambdaExtensions.cs b/src/BootstrapBlazor/Extensions/LambdaExtensions.cs index 9d57e778e45..a09ccb81fa8 100644 --- a/src/BootstrapBlazor/Extensions/LambdaExtensions.cs +++ b/src/BootstrapBlazor/Extensions/LambdaExtensions.cs @@ -71,7 +71,6 @@ public static Expression> GetFilterLambda(this FilterKe /// /// /// - /// public static Func GetFilterFunc(this IEnumerable filters, FilterLogic logic = FilterLogic.And) => filters.GetFilterLambda(logic).Compile(); /// @@ -81,7 +80,6 @@ public static Expression> GetFilterLambda(this FilterKe /// /// /// - /// public static Expression> GetFilterLambda(this IEnumerable filters, FilterLogic logic = FilterLogic.And) => filters.Select(i => i.GetFilterConditions()).GetFilterLambda(logic); /// @@ -92,7 +90,6 @@ public static Expression> GetFilterLambda(this FilterKe /// /// /// 实例 instance - /// private static Expression> GetFilterLambda(this IEnumerable filters, FilterLogic logic, StringComparison? comparison = null) { var express = filters.Select(filter => filter.Filters.Count > 0 @@ -109,7 +106,6 @@ private static Expression> GetFilterLambda(this IEnumer /// /// /// - /// private static Expression> ExpressionAndLambda(this IEnumerable>> expressions, FilterLogic logic) { Expression>? ret = null; @@ -258,7 +254,6 @@ private static BinaryExpression ContainsWidthComparison(this Expression left, Ex /// Count method uses Lambda expression internally for universal adaptation, accepts IEnumerable and Array subclasses /// /// - /// public static int ElementCount(object? value) => CacheManager.ElementCount(value); /// @@ -266,7 +261,6 @@ private static BinaryExpression ContainsWidthComparison(this Expression left, Ex /// Count method uses Lambda expression internally for universal adaptation, accepts IEnumerable and Array subclasses /// /// - /// public static Expression> CountLambda(Type type) { Expression> invoker = _ => 0; @@ -292,7 +286,6 @@ public static Expression> CountLambda(Type type) /// Gets排序 Expression 表达式 /// /// - /// public static Expression, List, IEnumerable>> GetSortListLambda() { var parameter1 = Expression.Parameter(typeof(IEnumerable)); @@ -310,7 +303,6 @@ public static Expression, List, IEnumerable /// /// - /// public static IEnumerable Sort(this IEnumerable items, List sortList) { for (var index = 0; index < sortList.Count; index++) @@ -342,7 +334,6 @@ public static IEnumerable Sort(this IEnumerable items, List /// /// /// - /// public static IQueryable Sort(this IQueryable items, List sortList) { for (var index = 0; index < sortList.Count; index++) @@ -369,7 +360,6 @@ public static IQueryable Sort(this IQueryable items, ListGet sort Expression expression /// /// - /// public static Expression, string, SortOrder, IEnumerable>> GetSortLambda() { var parameter1 = Expression.Parameter(typeof(IEnumerable)); @@ -389,7 +379,6 @@ public static Expression, string, SortOrder, IEnumerable /// /// /// - /// public static IEnumerable Sort(this IEnumerable items, string sortName, SortOrder sortOrder) { return sortOrder == SortOrder.Unset ? items : EnumerableOrderBy(items, sortName, sortOrder); @@ -403,7 +392,6 @@ public static IEnumerable Sort(this IEnumerable items, stri /// /// /// - /// public static IQueryable Sort(this IQueryable items, string sortName, SortOrder sortOrder) { return sortOrder == SortOrder.Unset ? items : QueryableOrderBy(items, sortName, sortOrder); @@ -647,7 +635,6 @@ private static Expression> GetPropertyLambdaByName /// /// - /// public static Expression> GetPropertyValueLambda(TModel model, string propertyName) { if (model == null) @@ -724,7 +711,6 @@ private static ConditionalExpression BuildPropertyAccess(Expression instance, Ty /// /// /// - /// public static Expression> SetPropertyValueLambda(TModel model, string propertyName) { if (model == null) @@ -777,7 +763,6 @@ Expression> SetComplexPropertyExpression() /// /// /// - /// public static Expression> GetKeyValue(Type? customAttribute = null) { var type = typeof(TModel); diff --git a/src/BootstrapBlazor/Extensions/LocalizationOptionsExtensions.cs b/src/BootstrapBlazor/Extensions/LocalizationOptionsExtensions.cs index 76eff44ef1a..113ad54bba7 100644 --- a/src/BootstrapBlazor/Extensions/LocalizationOptionsExtensions.cs +++ b/src/BootstrapBlazor/Extensions/LocalizationOptionsExtensions.cs @@ -22,7 +22,6 @@ internal static class LocalizationOptionsExtensions /// /// /// - /// public static IEnumerable GetJsonStringFromAssembly(this JsonLocalizationOptions option, Assembly assembly, string cultureName) { // 创建配置 ConfigurationBuilder diff --git a/src/BootstrapBlazor/Extensions/MaskServiceExtensions.cs b/src/BootstrapBlazor/Extensions/MaskServiceExtensions.cs index 6185b158bf7..89ee4d8be0f 100644 --- a/src/BootstrapBlazor/Extensions/MaskServiceExtensions.cs +++ b/src/BootstrapBlazor/Extensions/MaskServiceExtensions.cs @@ -23,7 +23,6 @@ public static class MaskServiceExtensions /// /// /// - /// public static Task Show(this MaskService maskService, IDictionary? parameters = null, string? containerId = null, string? backgroundColor = null, float opacity = 0.5f, int zIndex = 1050, Mask? mask = null) where TComponent : ComponentBase => maskService.Show(new MaskOption() { BackgroundColor = backgroundColor, @@ -46,7 +45,6 @@ public static Task Show(this MaskService maskService, IDictionary /// /// - /// public static Task Show(this MaskService maskService, Type type, IDictionary? parameters = null, string? containerId = null, string? backgroundColor = null, float opacity = 0.5f, int zIndex = 1050, Mask? mask = null) => maskService.Show(new MaskOption() { BackgroundColor = backgroundColor, diff --git a/src/BootstrapBlazor/Extensions/MenuItemExtensions.cs b/src/BootstrapBlazor/Extensions/MenuItemExtensions.cs index 4489d7171fd..fadcf5aa31f 100644 --- a/src/BootstrapBlazor/Extensions/MenuItemExtensions.cs +++ b/src/BootstrapBlazor/Extensions/MenuItemExtensions.cs @@ -34,7 +34,6 @@ public static void CascadingSetActive(this MenuItem item, bool active = true) /// Get all items /// /// - /// public static IEnumerable? GetAllItems(this IEnumerable? source) => source == null ? null : GetAllSubItems(source).Union(source); /// @@ -42,6 +41,5 @@ public static void CascadingSetActive(this MenuItem item, bool active = true) /// Get all sub items /// /// - /// public static IEnumerable GetAllSubItems(this IEnumerable? source) => source?.SelectMany(i => i.Items.Any() ? i.Items.Concat(GetAllSubItems(i.Items)) : i.Items) ?? []; } diff --git a/src/BootstrapBlazor/Extensions/NavigationManagerExtensions.cs b/src/BootstrapBlazor/Extensions/NavigationManagerExtensions.cs index 39ef2d2749e..dced5a998aa 100644 --- a/src/BootstrapBlazor/Extensions/NavigationManagerExtensions.cs +++ b/src/BootstrapBlazor/Extensions/NavigationManagerExtensions.cs @@ -37,7 +37,6 @@ public static void NavigateTo(this NavigationManager navigation, IServiceProvide /// Get the relative path of the current Url, excluding QueryString and Fragment (Hash) /// /// - /// public static string ToBaseRelativePathWithoutQueryAndFragment(this NavigationManager navigationManager) { var url = navigationManager.ToBaseRelativePath(navigationManager.Uri); diff --git a/src/BootstrapBlazor/Extensions/ObjectExtensions.cs b/src/BootstrapBlazor/Extensions/ObjectExtensions.cs index ef7aabe617d..d2f0baa10e2 100644 --- a/src/BootstrapBlazor/Extensions/ObjectExtensions.cs +++ b/src/BootstrapBlazor/Extensions/ObjectExtensions.cs @@ -19,7 +19,6 @@ public static class ObjectExtensions /// Convert to string with unit [% px] => [% px] [int] => [int]px /// /// - /// public static string ConvertToPercentString(this string? val) { var ret = ""; @@ -50,7 +49,6 @@ public static string ConvertToPercentString(this string? val) /// Check if it is a Number data type /// /// - /// public static bool IsNumber(this Type t) { var targetType = Nullable.GetUnderlyingType(t) ?? t; @@ -63,7 +61,6 @@ public static bool IsNumber(this Type t) /// Check if it should be rendered as /// /// - /// public static bool IsNumberWithDotSeparator(this Type t) { var separator = CultureInfo.CurrentUICulture.NumberFormat.NumberDecimalSeparator; @@ -79,7 +76,6 @@ public static bool IsNumberWithDotSeparator(this Type t) /// Check if it is a Boolean data type /// /// - /// public static bool IsBoolean(this Type t) { var targetType = Nullable.GetUnderlyingType(t) ?? t; @@ -91,7 +87,6 @@ public static bool IsBoolean(this Type t) /// Check if it is a DateTime data type /// /// - /// public static bool IsDateTime(this Type t) { var targetType = Nullable.GetUnderlyingType(t) ?? t; @@ -104,7 +99,6 @@ public static bool IsDateTime(this Type t) /// Check if it is a TimeSpan data type /// /// - /// public static bool IsTimeSpan(this Type t) { var targetType = Nullable.GetUnderlyingType(t) ?? t; @@ -117,7 +111,6 @@ public static bool IsTimeSpan(this Type t) /// Get type description text by type /// /// - /// public static string GetTypeDesc(this Type t) { string? ret; @@ -145,7 +138,6 @@ public static string GetTypeDesc(this Type t) /// 字符串类型转换为其他数据类型 /// String type converted to other data types /// - /// public static bool TryConvertTo(this string? source, Type type, out object? val) { var ret = true; @@ -174,7 +166,6 @@ public static bool TryConvertTo(this string? source, Type type, out object? val) /// /// /// - /// public static bool TryConvertTo(this string? source, [MaybeNullWhen(false)] out TValue val) { var ret = false; @@ -217,7 +208,6 @@ public static bool TryConvertTo(this string? source, [MaybeNullWhen(fals /// Formats the file size into a string with appropriate units /// /// - /// public static string ToFileSizeString(this long fileSize) => fileSize switch { >= 1024 and < 1024 * 1024 => $"{Math.Round(fileSize / 1024D, 0, MidpointRounding.AwayFromZero)} KB", diff --git a/src/BootstrapBlazor/Extensions/PrintServiceExtensions.cs b/src/BootstrapBlazor/Extensions/PrintServiceExtensions.cs index 83c9be1868d..54f90e2c6b3 100644 --- a/src/BootstrapBlazor/Extensions/PrintServiceExtensions.cs +++ b/src/BootstrapBlazor/Extensions/PrintServiceExtensions.cs @@ -18,7 +18,6 @@ public static class PrintServiceExtensions /// /// /// - /// public static async Task PrintAsync(this PrintService service, Func> parametersFactory) where TComponent : ComponentBase { var option = new DialogOption(); diff --git a/src/BootstrapBlazor/Extensions/PropertyInfoExtensions.cs b/src/BootstrapBlazor/Extensions/PropertyInfoExtensions.cs index 65bbbcb2054..2d845c9f5fe 100644 --- a/src/BootstrapBlazor/Extensions/PropertyInfoExtensions.cs +++ b/src/BootstrapBlazor/Extensions/PropertyInfoExtensions.cs @@ -18,7 +18,6 @@ public static class PropertyInfoExtensions /// 判断propertywhether为静态property /// /// - /// public static bool IsStatic(this PropertyInfo p) { var mi = p.GetMethod ?? p.SetMethod; @@ -30,7 +29,6 @@ public static bool IsStatic(this PropertyInfo p) /// 判断propertywhether只读扩展方法 /// /// - /// public static bool IsCanWrite(this PropertyInfo p) => p.CanWrite && !p.IsInit(); /// @@ -38,7 +36,6 @@ public static bool IsStatic(this PropertyInfo p) /// 判断whether为 Init 扩展方法 /// /// - /// private static bool IsInit(this PropertyInfo p) { var isInit = false; diff --git a/src/BootstrapBlazor/Extensions/QueryPageOptionsExtensions.cs b/src/BootstrapBlazor/Extensions/QueryPageOptionsExtensions.cs index dbef9e6daa3..69810ec88f2 100644 --- a/src/BootstrapBlazor/Extensions/QueryPageOptionsExtensions.cs +++ b/src/BootstrapBlazor/Extensions/QueryPageOptionsExtensions.cs @@ -18,7 +18,6 @@ public static class QueryPageOptionsExtensions /// 将 QueryPageOptions 过滤条件转换为 /// /// - /// public static FilterKeyValueAction ToFilter(this QueryPageOptions option) { var filter = new FilterKeyValueAction(); @@ -60,7 +59,6 @@ public static FilterKeyValueAction ToFilter(this QueryPageOptions option) /// /// /// 实例,此方法不支持 EFCore Where 查询 instance,此method不支持 EFCore Where 查询 - /// public static Func ToFilterFunc(this QueryPageOptions option, StringComparison? comparison = null) => option.ToFilterLambda(comparison).Compile(); /// @@ -69,7 +67,6 @@ public static FilterKeyValueAction ToFilter(this QueryPageOptions option) /// /// /// 实例,此方法不支持 EFCore Where 查询 instance,此method不支持 EFCore Where 查询 - /// public static Expression> ToFilterLambda(this QueryPageOptions option, StringComparison? comparison = null) => option.ToFilter().GetFilterLambda(comparison); /// @@ -77,6 +74,5 @@ public static FilterKeyValueAction ToFilter(this QueryPageOptions option) /// whether包含过滤条件 /// /// - /// public static bool HasFilters(this FilterKeyValueAction filterKeyValueAction) => filterKeyValueAction.Filters.Count != 0; } diff --git a/src/BootstrapBlazor/Extensions/SwalExtensions.cs b/src/BootstrapBlazor/Extensions/SwalExtensions.cs index b016184d6d1..ffb4870a5a6 100644 --- a/src/BootstrapBlazor/Extensions/SwalExtensions.cs +++ b/src/BootstrapBlazor/Extensions/SwalExtensions.cs @@ -18,7 +18,6 @@ public static class SwalExtensions /// /// /// 指定弹窗组件 默认为 null 使用 组件内置弹窗组件指定弹窗component default is为 null 使用 component内置弹窗component - /// public static async Task ShowModal(this SwalService service, SwalOption option, SweetAlert? swal = null) { option.IsConfirm = true; @@ -31,7 +30,6 @@ public static async Task ShowModal(this SwalService service, SwalOption op /// 将配置信息转化为参数collection /// /// - /// public static IDictionary Parse(this SwalOption option) => new Dictionary() { [nameof(SweetAlertBody.Category)] = option.Category, diff --git a/src/BootstrapBlazor/Extensions/TableColumnFilterExtensions.cs b/src/BootstrapBlazor/Extensions/TableColumnFilterExtensions.cs index 9d4900478b2..f6733e3a3a3 100644 --- a/src/BootstrapBlazor/Extensions/TableColumnFilterExtensions.cs +++ b/src/BootstrapBlazor/Extensions/TableColumnFilterExtensions.cs @@ -16,7 +16,6 @@ public static class TableColumnFilterExtensions /// Whether has filter /// /// - /// public static bool HasFilter(this TableColumnFilter? filter) { if (filter == null) @@ -31,7 +30,6 @@ public static bool HasFilter(this TableColumnFilter? filter) /// Whether is header row /// /// - /// public static bool IsHeaderRow(this TableColumnFilter? filter) { if (filter == null) @@ -46,7 +44,6 @@ public static bool IsHeaderRow(this TableColumnFilter? filter) /// Gets the field key for the filter. /// /// - /// public static string GetFieldKey(this TableColumnFilter? filter) { if (filter == null) @@ -61,7 +58,6 @@ public static string GetFieldKey(this TableColumnFilter? filter) /// Gets the filter title. /// /// - /// public static string GetFilterTitle(this TableColumnFilter? filter) { if (filter == null) diff --git a/src/BootstrapBlazor/Extensions/TreeViewExtensions.cs b/src/BootstrapBlazor/Extensions/TreeViewExtensions.cs index 022381aa079..5c37795a1b0 100644 --- a/src/BootstrapBlazor/Extensions/TreeViewExtensions.cs +++ b/src/BootstrapBlazor/Extensions/TreeViewExtensions.cs @@ -36,7 +36,6 @@ public static class TreeViewExtensions /// /// /// - /// public static IEnumerable> GetAllItems(this IEnumerable> source) => GetAllSubItems(source).Union(source); /// @@ -45,7 +44,6 @@ public static class TreeViewExtensions /// /// /// - /// public static IEnumerable> GetAllSubItems(this IEnumerable> source) => source.SelectMany(i => i.Items.Count > 0 ? i.Items.Concat(GetAllSubItems(i.Items)) : i.Items); /// @@ -55,7 +53,6 @@ public static class TreeViewExtensions /// /// /// - /// public static List> ToFlat(this IEnumerable> source, TreeViewItem? parent = null) { var rows = new List>(); diff --git a/src/BootstrapBlazor/Extensions/TypeExtensions.cs b/src/BootstrapBlazor/Extensions/TypeExtensions.cs index c01b549ef1f..937bc9e3c2a 100644 --- a/src/BootstrapBlazor/Extensions/TypeExtensions.cs +++ b/src/BootstrapBlazor/Extensions/TypeExtensions.cs @@ -61,7 +61,6 @@ void EnsureNoAuthenticationSchemeSpecified() /// Gets唯一type名称方法 /// /// - /// public static string GetUniqueTypeName(this Type type) => type.IsCollectible ? $"{type.FullName}-{type.TypeHandle.Value}" : $"{type.FullName}"; @@ -72,7 +71,6 @@ public static string GetUniqueTypeName(this Type type) => type.IsCollectible /// 通过 typeName 参数安全获取 Type instance /// /// - /// public static Type? GetSafeType(string? typeName) { Type? type = null; diff --git a/src/BootstrapBlazor/Extensions/UploadFileExtensions.cs b/src/BootstrapBlazor/Extensions/UploadFileExtensions.cs index e1478daf0c4..b3ff1602bf3 100644 --- a/src/BootstrapBlazor/Extensions/UploadFileExtensions.cs +++ b/src/BootstrapBlazor/Extensions/UploadFileExtensions.cs @@ -62,7 +62,6 @@ public static async Task RequestBase64ImageFileAsync(this UploadFile upload, str /// /// /// - /// [ExcludeFromCodeCoverage] public static async Task SaveToFileAsync(this UploadFile upload, string fileName, long maxAllowedSize = 512000, int bufferSize = 64 * 1024, CancellationToken token = default) { @@ -139,7 +138,6 @@ public static async Task SaveToFileAsync(this UploadFile upload, string fi /// /// /// - /// [ExcludeFromCodeCoverage] public static async Task GetBytesAsync(this UploadFile upload, string format, int maxWidth, int maxHeight, long maxAllowedSize = 512000, CancellationToken token = default) { @@ -171,7 +169,6 @@ public static async Task SaveToFileAsync(this UploadFile upload, string fi /// /// /// - /// [ExcludeFromCodeCoverage] public static async Task GetBytesAsync(this UploadFile upload, long maxAllowedSize = 512000, CancellationToken token = default) { @@ -202,7 +199,6 @@ public static async Task SaveToFileAsync(this UploadFile upload, string fi /// /// /// - /// public static bool IsImage(this UploadFile item, List? allowExtensions = null, Func? callback = null) { bool ret; @@ -226,7 +222,6 @@ public static bool IsImage(this UploadFile item, List? allowExtensions = /// Check item whether is base64 format image extension method. /// /// - /// public static bool IsBase64Format(this UploadFile item) => !string.IsNullOrEmpty(item.PrevUrl) && item.PrevUrl.StartsWith("data:image/", StringComparison.OrdinalIgnoreCase); /// @@ -235,7 +230,6 @@ public static bool IsImage(this UploadFile item, List? allowExtensions = /// /// /// - /// public static bool IsAllowExtensions(this UploadFile item, List? allowExtensions = null) { var ret = false; diff --git a/src/BootstrapBlazor/Extensions/ValidateContextExtensions.cs b/src/BootstrapBlazor/Extensions/ValidateContextExtensions.cs index eb5074b12d1..03a49aacec3 100644 --- a/src/BootstrapBlazor/Extensions/ValidateContextExtensions.cs +++ b/src/BootstrapBlazor/Extensions/ValidateContextExtensions.cs @@ -39,7 +39,6 @@ public static class ValidationContextExtensions /// /// /// - /// public static ValidationResult GetValidationResult(this ValidationContext context, string? errorMessage) { var memberNames = string.IsNullOrEmpty(context.MemberName) ? null : new string[] { context.MemberName }; diff --git a/src/BootstrapBlazor/Localization/ILocalizationResolve.cs b/src/BootstrapBlazor/Localization/ILocalizationResolve.cs index 5f17206e91e..b2c2c2644bf 100644 --- a/src/BootstrapBlazor/Localization/ILocalizationResolve.cs +++ b/src/BootstrapBlazor/Localization/ILocalizationResolve.cs @@ -18,7 +18,6 @@ public interface ILocalizationResolve /// Get all culture info collection /// /// - /// IEnumerable GetAllStringsByCulture(bool includeParentCultures); /// @@ -27,6 +26,5 @@ public interface ILocalizationResolve /// /// /// 类型名称Type name - /// IEnumerable GetAllStringsByType(string typeName, bool includeParentCultures); } diff --git a/src/BootstrapBlazor/Localization/Json/JsonLocalizationServiceCollectionExtensions.cs b/src/BootstrapBlazor/Localization/Json/JsonLocalizationServiceCollectionExtensions.cs index e204f83f71d..281c317d171 100644 --- a/src/BootstrapBlazor/Localization/Json/JsonLocalizationServiceCollectionExtensions.cs +++ b/src/BootstrapBlazor/Localization/Json/JsonLocalizationServiceCollectionExtensions.cs @@ -25,7 +25,6 @@ internal static class JsonLocalizationServiceCollectionExtensions /// JsonLocalizationOptions 配置回调方法 /// JsonLocalizationOptions configuration callback method /// - /// public static IServiceCollection AddJsonLocalization(this IServiceCollection services, Action? localizationConfigure = null) { services.AddSingleton(); diff --git a/src/BootstrapBlazor/Localization/Json/JsonStringLocalizer.cs b/src/BootstrapBlazor/Localization/Json/JsonStringLocalizer.cs index f743c5cf415..fb7386858d7 100644 --- a/src/BootstrapBlazor/Localization/Json/JsonStringLocalizer.cs +++ b/src/BootstrapBlazor/Localization/Json/JsonStringLocalizer.cs @@ -34,7 +34,6 @@ internal class JsonStringLocalizer(Assembly assembly, string typeName, string ba /// Get multi-language value info index by specified key /// /// - /// public override LocalizedString this[string name] { get @@ -50,7 +49,6 @@ public override LocalizedString this[string name] /// /// /// - /// public override LocalizedString this[string name, params object[] arguments] { get @@ -188,7 +186,6 @@ private void HandleMissingResourceItem(string name) /// Get all resource info of current culture /// /// - /// public override IEnumerable GetAllStrings(bool includeParentCultures) { if (_allLocalizedStrings == null) diff --git a/src/BootstrapBlazor/Localization/Json/JsonStringLocalizerFactory.cs b/src/BootstrapBlazor/Localization/Json/JsonStringLocalizerFactory.cs index 5cd4057e6e7..bc9cf1600a7 100644 --- a/src/BootstrapBlazor/Localization/Json/JsonStringLocalizerFactory.cs +++ b/src/BootstrapBlazor/Localization/Json/JsonStringLocalizerFactory.cs @@ -68,7 +68,6 @@ public JsonStringLocalizerFactory( /// GetResourcePrefix method /// /// - /// protected override string GetResourcePrefix(TypeInfo typeInfo) { var typeName = typeInfo.FullName; @@ -93,7 +92,6 @@ protected override string GetResourcePrefix(TypeInfo typeInfo) /// /// /// - /// protected override string GetResourcePrefix(string baseResourceName, string baseNamespace) { // https://gitee.com/LongbowEnterprise/BootstrapBlazor/issues/I5SRA1 @@ -110,6 +108,5 @@ protected override string GetResourcePrefix(string baseResourceName, string base /// /// The assembly to create a forThe assembly to create a for /// The base name of the resource to search forThe base name of the resource to search for - /// protected override ResourceManagerStringLocalizer CreateResourceManagerStringLocalizer(Assembly assembly, string baseName) => new JsonStringLocalizer(assembly, _typeName!, baseName, _jsonLocalizationOptions, _loggerFactory.CreateLogger(), ResourceNamesCache, _localizationMissingItemHandler); } diff --git a/src/BootstrapBlazor/Localization/NullLocalizationResolve.cs b/src/BootstrapBlazor/Localization/NullLocalizationResolve.cs index dfb58b689c9..d6bf33f5fe4 100644 --- a/src/BootstrapBlazor/Localization/NullLocalizationResolve.cs +++ b/src/BootstrapBlazor/Localization/NullLocalizationResolve.cs @@ -14,7 +14,6 @@ internal class NullLocalizationResolve : ILocalizationResolve /// Get all culture info collection /// /// - /// public IEnumerable GetAllStringsByCulture(bool includeParentCultures) => []; /// @@ -23,6 +22,5 @@ internal class NullLocalizationResolve : ILocalizationResolve /// /// 类型名称Type name /// - /// public IEnumerable GetAllStringsByType(string typeName, bool includeParentCultures) => []; } diff --git a/src/BootstrapBlazor/Misc/ExpandableNodeCache.cs b/src/BootstrapBlazor/Misc/ExpandableNodeCache.cs index 4ddcc140e35..1f4d3d4dc9b 100644 --- a/src/BootstrapBlazor/Misc/ExpandableNodeCache.cs +++ b/src/BootstrapBlazor/Misc/ExpandableNodeCache.cs @@ -47,7 +47,6 @@ public ExpandableNodeCache(IModelEqualityComparer comparer) /// /// /// - /// /// public virtual async Task ToggleNodeAsync(TNode node, Func>>> callback) { @@ -86,7 +85,6 @@ public virtual async Task ToggleNodeAsync(TNode node, Func /// /// - /// public async Task CheckExpandAsync(TNode node, Func>>> callback) { if (node.IsExpand) diff --git a/src/BootstrapBlazor/Misc/IModelEqualityComparer.cs b/src/BootstrapBlazor/Misc/IModelEqualityComparer.cs index b5266544034..a9377e404cc 100644 --- a/src/BootstrapBlazor/Misc/IModelEqualityComparer.cs +++ b/src/BootstrapBlazor/Misc/IModelEqualityComparer.cs @@ -29,6 +29,5 @@ public interface IModelEqualityComparer /// /// /// - /// bool Equals(TItem? x, TItem? y); } diff --git a/src/BootstrapBlazor/Misc/ModelHashSetComparer.cs b/src/BootstrapBlazor/Misc/ModelHashSetComparer.cs index 8caa2141be3..75e299b9c49 100644 --- a/src/BootstrapBlazor/Misc/ModelHashSetComparer.cs +++ b/src/BootstrapBlazor/Misc/ModelHashSetComparer.cs @@ -18,7 +18,6 @@ public class ModelHashSetComparer(IModelEqualityComparer comparer) /// /// /// - /// public bool Equals(TItem? x, TItem? y) => comparer.Equals(x, y); /// @@ -26,7 +25,6 @@ public class ModelHashSetComparer(IModelEqualityComparer comparer) /// GetHashCode method /// /// - /// public int GetHashCode([DisallowNull] TItem obj) { var keyValue = Utility.GetKeyValue(obj, comparer.CustomKeyAttribute); diff --git a/src/BootstrapBlazor/Misc/TreeNodeCache.cs b/src/BootstrapBlazor/Misc/TreeNodeCache.cs index a5d1e7134b6..1db98db3362 100644 --- a/src/BootstrapBlazor/Misc/TreeNodeCache.cs +++ b/src/BootstrapBlazor/Misc/TreeNodeCache.cs @@ -48,7 +48,6 @@ public TreeNodeCache(IModelEqualityComparer comparer) : base(comparer) /// Toggle checked state method /// /// - /// public void ToggleCheck(TNode node) { if (node.CheckedState == CheckboxState.Checked) @@ -79,7 +78,6 @@ public void ToggleCheck(TNode node) /// Check whether current node is checked /// /// - /// private void IsChecked(TNode node) { var nodes = node.Items.OfType>().ToList(); @@ -161,7 +159,6 @@ private void ResetCheckNodes(List items) /// /// 数据集合Data collection /// 指定节点Specified node - /// public TNode? FindParentNode(List nodes, TNode node) { TNode? ret = default; diff --git a/src/BootstrapBlazor/Options/BootstrapBlazorOptions.cs b/src/BootstrapBlazor/Options/BootstrapBlazorOptions.cs index 4eb6df0c5fe..e96bea3b2bb 100644 --- a/src/BootstrapBlazor/Options/BootstrapBlazorOptions.cs +++ b/src/BootstrapBlazor/Options/BootstrapBlazorOptions.cs @@ -185,7 +185,6 @@ public class BootstrapBlazorOptions : IOptions /// 获得 the 集合 of supported languages /// Gets the collection of supported languages /// - /// public IList GetSupportedCultures() => SupportedCultures?.Select(name => new CultureInfo(name)).ToList() ?? [new("en"), new("zh")]; } diff --git a/src/BootstrapBlazor/Options/OtpOptions.cs b/src/BootstrapBlazor/Options/OtpOptions.cs index f6660c2f008..452c755808a 100644 --- a/src/BootstrapBlazor/Options/OtpOptions.cs +++ b/src/BootstrapBlazor/Options/OtpOptions.cs @@ -77,7 +77,6 @@ public abstract class TotpInstanceBase /// Get the remaining seconds until the next TOTP expiration for the given secret key and timestamp. /// /// - /// public abstract int GetRemainingSeconds(DateTime? timestamp = null); /// @@ -86,7 +85,6 @@ public abstract class TotpInstanceBase /// /// /// - /// public abstract bool Verify(string code, DateTime? timestamp = null); } @@ -102,7 +100,6 @@ public abstract class HotpInstanceBase /// /// /// - /// public abstract bool Verify(string code, long counter); } diff --git a/src/BootstrapBlazor/Options/StepSettings.cs b/src/BootstrapBlazor/Options/StepSettings.cs index 9c39fcb709f..6e1d079da6a 100644 --- a/src/BootstrapBlazor/Options/StepSettings.cs +++ b/src/BootstrapBlazor/Options/StepSettings.cs @@ -52,7 +52,6 @@ public class StepSettings /// Get step string /// /// - /// public string? GetStep(Type type) { string? ret = null; diff --git a/src/BootstrapBlazor/Options/TabItemMenuBindOptions.cs b/src/BootstrapBlazor/Options/TabItemMenuBindOptions.cs index 2ccde468b39..fc882b92170 100644 --- a/src/BootstrapBlazor/Options/TabItemMenuBindOptions.cs +++ b/src/BootstrapBlazor/Options/TabItemMenuBindOptions.cs @@ -6,14 +6,14 @@ namespace BootstrapBlazor.Components; /// -/// 标签与菜单捆绑配置项 -/// Tab and menu binding options +/// 标签与菜单捆绑配置项 +/// Tab and menu binding options /// public class TabItemBindOptions { /// - /// 获得/设置 集合 - /// Gets or sets collection + /// 获得/设置 集合 + /// Gets or sets collection /// public Dictionary Binders { get; set; } = []; } diff --git a/src/BootstrapBlazor/Options/TabItemTextOptions.cs b/src/BootstrapBlazor/Options/TabItemTextOptions.cs index b0ebafaa35f..d12352baec9 100644 --- a/src/BootstrapBlazor/Options/TabItemTextOptions.cs +++ b/src/BootstrapBlazor/Options/TabItemTextOptions.cs @@ -6,39 +6,39 @@ namespace BootstrapBlazor.Components; /// -/// 菜单与标签捆绑配置类 -/// Menu and tab binding configuration class +/// 菜单与标签捆绑配置类 +/// Menu and tab binding configuration class /// internal class TabItemTextOptions { /// - /// 获得/设置 Tab 标签文本 - /// Gets or sets Tab label text + /// 获得/设置 Tab 标签文本 + /// Gets or sets Tab label text /// public string? Text { get; set; } /// - /// 获得/设置 图标字符串 - /// Gets or sets icon string + /// 获得/设置 图标字符串 + /// Gets or sets icon string /// public string? Icon { get; set; } /// - /// 获得/设置 是否激活 默认为 true - /// Gets or sets whether active default true + /// 获得/设置 是否激活 默认为 true + /// Gets or sets whether active default true /// /// public bool IsActive { get; set; } = true; /// - /// 获得/设置 当前 TabItem 是否可关闭 默认为 true - /// Gets or sets whether current TabItem is closable default true + /// 获得/设置 当前 TabItem 是否可关闭 默认为 true + /// Gets or sets whether current TabItem is closable default true /// public bool Closable { get; set; } = true; /// - /// 重置方法 - /// Reset method + /// 重置方法 + /// Reset method /// public void Reset() { @@ -49,9 +49,8 @@ public void Reset() } /// - /// 是否可用方法 - /// Is valid method + /// 是否可用方法 + /// Is valid method /// - /// public bool Valid() => Text != null; } diff --git a/src/BootstrapBlazor/Options/TableExportOptions.cs b/src/BootstrapBlazor/Options/TableExportOptions.cs index 7f64cf98e83..43a54a6507d 100644 --- a/src/BootstrapBlazor/Options/TableExportOptions.cs +++ b/src/BootstrapBlazor/Options/TableExportOptions.cs @@ -8,52 +8,52 @@ namespace BootstrapBlazor.Components; /// -/// Configuration class for exporting tables to Excel -/// Configuration class for exporting tables to Excel +/// Configuration class for exporting tables to Excel +/// Configuration class for exporting tables to Excel /// public class TableExportOptions { /// - /// Gets or sets whether to use formatting. Default is true. If or is set, the formatted value will be used. - /// Gets or sets whether to use formatting. Default is true. If or is set, the formatted value will be used. + /// Gets or sets whether to use formatting. Default is true. If or is set, the formatted value will be used. + /// Gets or sets whether to use formatting. Default is true. If or is set, the formatted value will be used. /// /// Note: After formatting, the returned value is a string, which may change the original value type. public bool EnableFormat { get; set; } = true; /// - /// Gets or sets whether to use Lookup. Default is true. - /// Gets or sets whether to use Lookup. Default is true. + /// Gets or sets whether to use Lookup. Default is true. + /// Gets or sets whether to use Lookup. Default is true. /// public bool EnableLookup { get; set; } = true; /// - /// Gets or sets whether to merge array-type values. Default is true. - /// Gets or sets whether to merge array-type values. Default is true. + /// Gets or sets whether to merge array-type values. Default is true. + /// Gets or sets whether to merge array-type values. Default is true. /// public bool AutoMergeArray { get; set; } = true; /// - /// Gets or sets whether to use the tag for enum types. Default is true. - /// Gets or sets whether to use the tag for enum types. Default is true. + /// Gets or sets whether to use the tag for enum types. Default is true. + /// Gets or sets whether to use the tag for enum types. Default is true. /// public bool UseEnumDescription { get; set; } = true; /// - /// Gets or sets the delimiter used when merging array-type values. Default is a comma. - /// Gets or sets the delimiter used when merging array-type values. Default is a comma. + /// Gets or sets the delimiter used when merging array-type values. Default is a comma. + /// Gets or sets the delimiter used when merging array-type values. Default is a comma. /// /// Note: After formatting, the returned value is a string, which may change the original value type. public string ArrayDelimiter { get; set; } = ","; /// - /// Gets or sets whether to enable Excel auto-filtering. Default is true. - /// Gets or sets whether to enable Excel auto-filtering. Default is true. + /// Gets or sets whether to enable Excel auto-filtering. Default is true. + /// Gets or sets whether to enable Excel auto-filtering. Default is true. /// public bool EnableAutoFilter { get; set; } = true; /// - /// Gets or sets whether to enable Excel auto-width. Default is false. - /// Gets or sets whether to enable Excel auto-width. Default is false. + /// Gets or sets whether to enable Excel auto-width. Default is false. + /// Gets or sets whether to enable Excel auto-width. Default is false. /// public bool EnableAutoWidth { get; set; } } diff --git a/src/BootstrapBlazor/Options/TableSettings.cs b/src/BootstrapBlazor/Options/TableSettings.cs index a218d25d379..bfb0d9aab6a 100644 --- a/src/BootstrapBlazor/Options/TableSettings.cs +++ b/src/BootstrapBlazor/Options/TableSettings.cs @@ -6,56 +6,56 @@ namespace BootstrapBlazor.Components; /// -/// TableSettings 表格组件全局默认设置 -/// TableSettings component global default settings +/// TableSettings 表格组件全局默认设置 +/// TableSettings component global default settings /// public class TableSettings { /// - /// 获得/设置 复选框宽度 默认 36 - /// Gets or sets checkbox column width default 36 + /// 获得/设置 复选框宽度 默认 36 + /// Gets or sets checkbox column width default 36 /// public int CheckboxColumnWidth { get; set; } = 36; /// - /// 获得/设置 复选框宽度 默认 28 - /// Gets or sets checkbox column compact width default 28 + /// 获得/设置 复选框宽度 默认 28 + /// Gets or sets checkbox column compact width default 28 /// public int CheckboxColumnCompactWidth { get; set; } = 28; /// - /// 获得/设置 明细行 Row Header 宽度 默认 24 - /// Gets or sets detail row header width default 24 + /// 获得/设置 明细行 Row Header 宽度 默认 24 + /// Gets or sets detail row header width default 24 /// public int DetailColumnWidth { get; set; } = 24; /// - /// 获得/设置 显示文字的复选框列宽度 默认 80 - /// Gets or sets show checkbox text column width default 80 + /// 获得/设置 显示文字的复选框列宽度 默认 80 + /// Gets or sets show checkbox text column width default 80 /// public int ShowCheckboxTextColumnWidth { get; set; } = 80; /// - /// 获得/设置 行号列宽度 默认 60 - /// Gets or sets line no column width default 60 + /// 获得/设置 行号列宽度 默认 60 + /// Gets or sets line no column width default 60 /// public int LineNoColumnWidth { get; set; } = 60; /// - /// 获得/设置 列最小宽度 默认 64 - /// Gets or sets column min width default 64 + /// 获得/设置 列最小宽度 默认 64 + /// Gets or sets column min width default 64 /// public int ColumnMinWidth { get; set; } = 64; /// - /// 获得/设置 表格渲染模式 - /// Gets or sets table render mode + /// 获得/设置 表格渲染模式 + /// Gets or sets table render mode /// public TableRenderMode? TableRenderMode { get; set; } /// - /// 获得/设置 TableExportExcelOptions 配置 默认为不为空 - /// Gets or sets TableExportExcelOptions configuration default not null + /// 获得/设置 TableExportExcelOptions 配置 默认为不为空 + /// Gets or sets TableExportExcelOptions configuration default not null /// public TableExportOptions TableExportOptions { get; set; } = new(); } diff --git a/src/BootstrapBlazor/Options/ThrottleOptions.cs b/src/BootstrapBlazor/Options/ThrottleOptions.cs index faf35a86d2f..03c1e047be7 100644 --- a/src/BootstrapBlazor/Options/ThrottleOptions.cs +++ b/src/BootstrapBlazor/Options/ThrottleOptions.cs @@ -6,26 +6,26 @@ namespace BootstrapBlazor.Components; /// -/// 限流配置类 -/// Throttle configuration class +/// 限流配置类 +/// Throttle configuration class /// public class ThrottleOptions { /// - /// 获得/设置 限流时长 默认 500 单位毫秒 - /// Gets or sets throttle interval default 500 ms + /// 获得/设置 限流时长 默认 500 单位毫秒 + /// Gets or sets throttle interval default 500 ms /// public TimeSpan Interval { get; set; } = TimeSpan.FromMilliseconds(500); /// - /// 获得/设置 是否执行结束后开始延时 默认 false - /// Gets or sets whether to delay after execution default false + /// 获得/设置 是否执行结束后开始延时 默认 false + /// Gets or sets whether to delay after execution default false /// public bool DelayAfterExecution { get; set; } /// - /// 获得/设置 发生错误时是否重置时长 默认 false - /// Gets or sets whether to reset interval on exception default false + /// 获得/设置 发生错误时是否重置时长 默认 false + /// Gets or sets whether to reset interval on exception default false /// public bool ResetIntervalOnException { get; set; } } diff --git a/src/BootstrapBlazor/Options/WebClientOptions.cs b/src/BootstrapBlazor/Options/WebClientOptions.cs index 40045c20053..2ce44955b3e 100644 --- a/src/BootstrapBlazor/Options/WebClientOptions.cs +++ b/src/BootstrapBlazor/Options/WebClientOptions.cs @@ -6,14 +6,14 @@ namespace BootstrapBlazor.Components; /// -/// WebClient -/// WebClient +/// WebClient +/// WebClient /// public class WebClientOptions { /// - /// 获得/设置 是否开启 IP 定位功能 默认 false 未开启 - /// Gets or sets whether to enable IP locator feature default false + /// 获得/设置 是否开启 IP 定位功能 默认 false 未开启 + /// Gets or sets whether to enable IP locator feature default false /// public bool EnableIpLocator { get; set; } } diff --git a/src/BootstrapBlazor/Router/RouteTableFactory.cs b/src/BootstrapBlazor/Router/RouteTableFactory.cs index 332916d574b..7f2f811a63b 100644 --- a/src/BootstrapBlazor/Router/RouteTableFactory.cs +++ b/src/BootstrapBlazor/Router/RouteTableFactory.cs @@ -20,7 +20,6 @@ internal static class RouteTableFactory /// /// /// - /// public static RouteContext Create(IEnumerable assemblies, string url) { RefreshRouteTable(assemblies); diff --git a/src/BootstrapBlazor/Services/ArchiveEntry.cs b/src/BootstrapBlazor/Services/ArchiveEntry.cs index caf5597cfd7..e16d0e9b7d7 100644 --- a/src/BootstrapBlazor/Services/ArchiveEntry.cs +++ b/src/BootstrapBlazor/Services/ArchiveEntry.cs @@ -6,26 +6,26 @@ using System.IO.Compression; /// -/// 归档项实体类 -/// Archive Entry Entity Class +/// 归档项实体类 +/// Archive Entry Entity Class /// public readonly record struct ArchiveEntry { /// - /// 获得 物理文件 - /// Get Physical File + /// 获得 物理文件 + /// Get Physical File /// public string SourceFileName { get; init; } /// - /// 获得 归档项 - /// Get Archive Entry + /// 获得 归档项 + /// Get Archive Entry /// public string EntryName { get; init; } /// - /// 获得 压缩配置 - /// Get Compression Configuration + /// 获得 压缩配置 + /// Get Compression Configuration /// public CompressionLevel? CompressionLevel { get; init; } } diff --git a/src/BootstrapBlazor/Services/Bluetooth/BluetoothDeviceInfo.cs b/src/BootstrapBlazor/Services/Bluetooth/BluetoothDeviceInfo.cs index d63a78def61..8b30cbb0469 100644 --- a/src/BootstrapBlazor/Services/Bluetooth/BluetoothDeviceInfo.cs +++ b/src/BootstrapBlazor/Services/Bluetooth/BluetoothDeviceInfo.cs @@ -6,100 +6,100 @@ namespace BootstrapBlazor.Components; /// -/// 蓝牙设备信息 -/// Bluetooth Device Info +/// 蓝牙设备信息 +/// Bluetooth Device Info /// public class BluetoothDeviceInfo { /// - /// 获得/设置 ManufacturerName - /// Gets or sets ManufacturerName + /// 获得/设置 ManufacturerName + /// Gets or sets ManufacturerName /// public string? ManufacturerName { get; set; } /// - /// 获得/设置 ModelNumber - /// Gets or sets ModelNumber + /// 获得/设置 ModelNumber + /// Gets or sets ModelNumber /// public string? ModelNumber { get; set; } /// - /// 获得/设置 HardwareRevision - /// Gets or sets HardwareRevision + /// 获得/设置 HardwareRevision + /// Gets or sets HardwareRevision /// public string? HardwareRevision { get; set; } /// - /// 获得/设置 FirmwareRevision - /// Gets or sets FirmwareRevision + /// 获得/设置 FirmwareRevision + /// Gets or sets FirmwareRevision /// public string? FirmwareRevision { get; set; } /// - /// 获得/设置 SoftwareRevision - /// Gets or sets SoftwareRevision + /// 获得/设置 SoftwareRevision + /// Gets or sets SoftwareRevision /// public string? SoftwareRevision { get; set; } /// - /// 获得/设置 SystemId - /// Gets or sets SystemId + /// 获得/设置 SystemId + /// Gets or sets SystemId /// public SystemId? SystemId { get; set; } /// - /// 获得/设置 IEEERegulatoryCertificationDataList - /// Gets or sets IEEERegulatoryCertificationDataList + /// 获得/设置 IEEERegulatoryCertificationDataList + /// Gets or sets IEEERegulatoryCertificationDataList /// public string? IEEERegulatoryCertificationDataList { get; set; } /// - /// 获得/设置 PnPID - /// Gets or sets PnPID + /// 获得/设置 PnPID + /// Gets or sets PnPID /// public PnPID? PnPID { get; set; } } /// -/// SystemId 类 -/// SystemId Class +/// SystemId 类 +/// SystemId Class /// public class SystemId { /// - /// 获得/设置 ManufacturerIdentifier - /// Gets or sets ManufacturerIdentifier + /// 获得/设置 ManufacturerIdentifier + /// Gets or sets ManufacturerIdentifier /// public string? ManufacturerIdentifier { get; set; } /// - /// 获得/设置 OrganizationallyUniqueIdentifier - /// Gets or sets OrganizationallyUniqueIdentifier + /// 获得/设置 OrganizationallyUniqueIdentifier + /// Gets or sets OrganizationallyUniqueIdentifier /// public string? OrganizationallyUniqueIdentifier { get; set; } } /// -/// PnPID 类 -/// PnPID Class +/// PnPID 类 +/// PnPID Class /// public class PnPID { /// - /// 获得/设置 VendorIdSource - /// Gets or sets VendorIdSource + /// 获得/设置 VendorIdSource + /// Gets or sets VendorIdSource /// public string? VendorIdSource { get; set; } /// - /// 获得/设置 ProductId - /// Gets or sets ProductId + /// 获得/设置 ProductId + /// Gets or sets ProductId /// public string? ProductId { get; set; } /// - /// 获得/设置 ProductVersion - /// Gets or sets ProductVersion + /// 获得/设置 ProductVersion + /// Gets or sets ProductVersion /// public string? ProductVersion { get; set; } } diff --git a/src/BootstrapBlazor/Services/Bluetooth/BluetoothFilter.cs b/src/BootstrapBlazor/Services/Bluetooth/BluetoothFilter.cs index ceaef614ec0..29b87df5333 100644 --- a/src/BootstrapBlazor/Services/Bluetooth/BluetoothFilter.cs +++ b/src/BootstrapBlazor/Services/Bluetooth/BluetoothFilter.cs @@ -8,42 +8,42 @@ namespace BootstrapBlazor.Components; /// -/// BluetoothFilter 类 -/// BluetoothFilter Class +/// BluetoothFilter 类 +/// BluetoothFilter Class /// public class BluetoothFilter { /// - /// An array of values indicating the Bluetooth GATT (Generic Attribute Profile) services that a Bluetooth device must support. Each value can be a valid name from the GATT assigned services list, such as 'battery_service' or 'blood_pressure'. You can also pass a full service UUID such as '0000180F-0000-1000-8000-00805f9b34fb' or the short 16-bit (0x180F) or 32-bit alias. Note that these are the same values that can be passed to BluetoothUUID.getService(). - /// An array of values indicating the Bluetooth GATT (Generic Attribute Profile) services that a Bluetooth device must support. Each value can be a valid name from the GATT assigned services list, such as 'battery_service' or 'blood_pressure'. You can also pass a full service UUID such as '0000180F-0000-1000-8000-00805f9b34fb' or the short 16-bit (0x180F) or 32-bit alias. Note that these are the same values that can be passed to BluetoothUUID.getService(). + /// An array of values indicating the Bluetooth GATT (Generic Attribute Profile) services that a Bluetooth device must support. Each value can be a valid name from the GATT assigned services list, such as 'battery_service' or 'blood_pressure'. You can also pass a full service UUID such as '0000180F-0000-1000-8000-00805f9b34fb' or the short 16-bit (0x180F) or 32-bit alias. Note that these are the same values that can be passed to BluetoothUUID.getService(). + /// An array of values indicating the Bluetooth GATT (Generic Attribute Profile) services that a Bluetooth device must support. Each value can be a valid name from the GATT assigned services list, such as 'battery_service' or 'blood_pressure'. You can also pass a full service UUID such as '0000180F-0000-1000-8000-00805f9b34fb' or the short 16-bit (0x180F) or 32-bit alias. Note that these are the same values that can be passed to BluetoothUUID.getService(). /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public List? Services { get; set; } /// - /// A string containing the precise name of the device to match against. - /// A string containing the precise name of the device to match against. + /// A string containing the precise name of the device to match against. + /// A string containing the precise name of the device to match against. /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? Name { get; set; } /// - /// A string containing the name prefix to match against. All devices that have a name starting with this string will be matched. - /// A string containing the name prefix to match against. All devices that have a name starting with this string will be matched. + /// A string containing the name prefix to match against. All devices that have a name starting with this string will be matched. + /// A string containing the name prefix to match against. All devices that have a name starting with this string will be matched. /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? NamePrefix { get; set; } /// - /// An array of objects matching against manufacturer 数据 in the Bluetooth Low Energy (BLE) advertising packets. - /// An array of objects matching against manufacturer data in the Bluetooth Low Energy (BLE) advertising packets. + /// An array of objects matching against manufacturer 数据 in the Bluetooth Low Energy (BLE) advertising packets. + /// An array of objects matching against manufacturer data in the Bluetooth Low Energy (BLE) advertising packets. /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public List? ManufacturerData { get; set; } /// - /// An array of objects matching against service 数据 in the Bluetooth Low Energy (BLE) advertising packets. - /// An array of objects matching against service data in the Bluetooth Low Energy (BLE) advertising packets. + /// An array of objects matching against service 数据 in the Bluetooth Low Energy (BLE) advertising packets. + /// An array of objects matching against service data in the Bluetooth Low Energy (BLE) advertising packets. /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public List? ServiceData { get; set; } diff --git a/src/BootstrapBlazor/Services/Bluetooth/BluetoothManufacturerDataFilter.cs b/src/BootstrapBlazor/Services/Bluetooth/BluetoothManufacturerDataFilter.cs index 091ad9ebf99..99cf0d91a03 100644 --- a/src/BootstrapBlazor/Services/Bluetooth/BluetoothManufacturerDataFilter.cs +++ b/src/BootstrapBlazor/Services/Bluetooth/BluetoothManufacturerDataFilter.cs @@ -8,28 +8,28 @@ namespace BootstrapBlazor.Components; /// -/// BluetoothManufacturerDataFilter 配置类 -/// BluetoothManufacturerDataFilter Configuration Class +/// BluetoothManufacturerDataFilter 配置类 +/// BluetoothManufacturerDataFilter Configuration Class /// public class BluetoothManufacturerDataFilter { /// - /// A mandatory number identifying the manufacturer of the device. Company identifiers are listed in the Bluetooth specification Assigned numbers, Section 7. For example, to match against devices manufactured by "Digianswer A/S", with assigned hex number 0x000C, you would specify 12. - /// A mandatory number identifying the manufacturer of the device. Company identifiers are listed in the Bluetooth specification Assigned numbers, Section 7. For example, to match against devices manufactured by "Digianswer A/S", with assigned hex number 0x000C, you would specify 12. + /// A mandatory number identifying the manufacturer of the device. Company identifiers are listed in the Bluetooth specification Assigned numbers, Section 7. For example, to match against devices manufactured by "Digianswer A/S", with assigned hex number 0x000C, you would specify 12. + /// A mandatory number identifying the manufacturer of the device. Company identifiers are listed in the Bluetooth specification Assigned numbers, Section 7. For example, to match against devices manufactured by "Digianswer A/S", with assigned hex number 0x000C, you would specify 12. /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public int? CompanyIdentifier { get; set; } /// - /// 数据 prefix. A buffer containing values to match against the values at the start of the advertising manufacturer 数据. - /// The data prefix. A buffer containing values to match against the values at the start of the advertising manufacturer data. + /// 数据 prefix. A buffer containing values to match against the values at the start of the advertising manufacturer 数据. + /// The data prefix. A buffer containing values to match against the values at the start of the advertising manufacturer data. /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? DataPrefix { get; set; } /// - /// This allows you to match against bytes within the manufacturer 数据, by masking some bytes of the service 数据 数据Prefix. - /// This allows you to match against bytes within the manufacturer data, by masking some bytes of the service data dataPrefix. + /// This allows you to match against bytes within the manufacturer 数据, by masking some bytes of the service 数据 数据Prefix. + /// This allows you to match against bytes within the manufacturer data, by masking some bytes of the service data dataPrefix. /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? Mask { get; set; } diff --git a/src/BootstrapBlazor/Services/Bluetooth/BluetoothRequestOptions.cs b/src/BootstrapBlazor/Services/Bluetooth/BluetoothRequestOptions.cs index 1ebaad94178..90fc813beb2 100644 --- a/src/BootstrapBlazor/Services/Bluetooth/BluetoothRequestOptions.cs +++ b/src/BootstrapBlazor/Services/Bluetooth/BluetoothRequestOptions.cs @@ -9,52 +9,51 @@ namespace BootstrapBlazor.Components; /// -/// BluetoothRequestOptions 参数类 -/// BluetoothRequestOptions Parameter Class +/// BluetoothRequestOptions 参数类 +/// BluetoothRequestOptions Parameter Class /// public class BluetoothRequestOptions { /// - /// An array of filter objects indicating the properties of devices that will be matched. To match a filter object, a device must match all the values of the filter: all its specified services, name, namePrefix, and so on - /// An array of filter objects indicating the properties of devices that will be matched. To match a filter object, a device must match all the values of the filter: all its specified services, name, namePrefix, and so on + /// An array of filter objects indicating the properties of devices that will be matched. To match a filter object, a device must match all the values of the filter: all its specified services, name, namePrefix, and so on + /// An array of filter objects indicating the properties of devices that will be matched. To match a filter object, a device must match all the values of the filter: all its specified services, name, namePrefix, and so on /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public List? Filters { get; set; } /// - /// An array of filter objects indicating the characteristics of devices that will be excluded from matching. properties of the array elements are the same as for . - /// An array of filter objects indicating the characteristics of devices that will be excluded from matching. The properties of the array elements are the same as for . + /// An array of filter objects indicating the characteristics of devices that will be excluded from matching. properties of the array elements are the same as for . + /// An array of filter objects indicating the characteristics of devices that will be excluded from matching. The properties of the array elements are the same as for . /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public List? ExclusionFilters { get; set; } /// - /// An array of optional service identifiers. - /// An array of optional service identifiers. + /// An array of optional service identifiers. + /// An array of optional service identifiers. /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public List? OptionalServices { get; set; } /// - /// An optional array of integer manufacturer codes. This takes the same values as companyIdentifier. - /// An optional array of integer manufacturer codes. This takes the same values as companyIdentifier. + /// An optional array of integer manufacturer codes. This takes the same values as companyIdentifier. + /// An optional array of integer manufacturer codes. This takes the same values as companyIdentifier. /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public List? OptionalManufacturerData { get; set; } /// - /// A boolean value indicating that the requesting script can accept all Bluetooth devices. default is false. - /// A boolean value indicating that the requesting script can accept all Bluetooth devices. The default is false. + /// A boolean value indicating that the requesting script can accept all Bluetooth devices. default is false. + /// A boolean value indicating that the requesting script can accept all Bluetooth devices. The default is false. /// /// This option is appropriate when devices have not advertised enough information for filtering to be useful. When acceptAllDevices is set to true you should omit all filters and exclusionFilters, and you must set optionalServices to be able to use the returned device. [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)] public bool AcceptAllDevices { get; set; } /// - /// 获得所有蓝牙服务 - /// Get All Bluetooth Services + /// 获得所有蓝牙服务 + /// Get All Bluetooth Services /// - /// public static List GetAllServices() => typeof(BluetoothServicesEnum).GetEnumNames().Select(i => { var v = i.ToString(); diff --git a/src/BootstrapBlazor/Services/Bluetooth/BluetoothServiceDataFilter.cs b/src/BootstrapBlazor/Services/Bluetooth/BluetoothServiceDataFilter.cs index 4e8cd48f3fd..9b447b627af 100644 --- a/src/BootstrapBlazor/Services/Bluetooth/BluetoothServiceDataFilter.cs +++ b/src/BootstrapBlazor/Services/Bluetooth/BluetoothServiceDataFilter.cs @@ -8,28 +8,28 @@ namespace BootstrapBlazor.Components; /// -/// BluetoothServiceDataFilter 配置类 -/// BluetoothServiceDataFilter Configuration Class +/// BluetoothServiceDataFilter 配置类 +/// BluetoothServiceDataFilter Configuration Class /// public class BluetoothServiceDataFilter { /// - /// GATT service name, the service UUID, or the UUID 16-bit or 32-bit form. This takes the same values as the elements of the services array. - /// The GATT service name, the service UUID, or the UUID 16-bit or 32-bit form. This takes the same values as the elements of the services array. + /// GATT service name, the service UUID, or the UUID 16-bit or 32-bit form. This takes the same values as the elements of the services array. + /// The GATT service name, the service UUID, or the UUID 16-bit or 32-bit form. This takes the same values as the elements of the services array. /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? Service { get; set; } /// - /// 数据 prefix. A buffer containing values to match against the values at the start of the advertising service 数据. - /// The data prefix. A buffer containing values to match against the values at the start of the advertising service data. + /// 数据 prefix. A buffer containing values to match against the values at the start of the advertising service 数据. + /// The data prefix. A buffer containing values to match against the values at the start of the advertising service data. /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? DataPrefix { get; set; } /// - /// This allows you to match against bytes within the manufacturer 数据, by masking some bytes of the service 数据 数据Prefix. - /// This allows you to match against bytes within the manufacturer data, by masking some bytes of the service data dataPrefix. + /// This allows you to match against bytes within the manufacturer 数据, by masking some bytes of the service 数据 数据Prefix. + /// This allows you to match against bytes within the manufacturer data, by masking some bytes of the service data dataPrefix. /// [JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] public string? Mask { get; set; } diff --git a/src/BootstrapBlazor/Services/Bluetooth/BluetoothServices.cs b/src/BootstrapBlazor/Services/Bluetooth/BluetoothServices.cs index b4c15160dbb..cb2548d57e0 100644 --- a/src/BootstrapBlazor/Services/Bluetooth/BluetoothServices.cs +++ b/src/BootstrapBlazor/Services/Bluetooth/BluetoothServices.cs @@ -8,318 +8,318 @@ namespace BootstrapBlazor.Components; /// -/// Bluetooth 设备服务枚举 -/// Bluetooth Device Service Enum +/// Bluetooth 设备服务枚举 +/// Bluetooth Device Service Enum /// public enum BluetoothServicesEnum { /// - /// 通用访问 - /// Generic Access + /// 通用访问 + /// Generic Access /// [JsonPropertyName("generic_access")] [BluetoothUUID("00001800-0000-1000-8000-00805f9b34fb")] GenericAccess, /// - /// 通用属性 - /// Generic Attribute + /// 通用属性 + /// Generic Attribute /// [JsonPropertyName("generic_attribute")] [BluetoothUUID("00001801-0000-1000-8000-00805f9b34fb")] GenericAttribute, /// - /// 即时闹钟 - /// Immediate Alert + /// 即时闹钟 + /// Immediate Alert /// [JsonPropertyName("immediate_alert")] [BluetoothUUID("00001802-0000-1000-8000-00805f9b34fb")] ImmediateAlert, /// - /// 连接丢失 - /// Link Loss + /// 连接丢失 + /// Link Loss /// [JsonPropertyName("link_loss")] [BluetoothUUID("00001803-0000-1000-8000-00805f9b34fb")] LinkLoss, /// - /// 发送功率 - /// Tx Power + /// 发送功率 + /// Tx Power /// [JsonPropertyName("tx_power")] [BluetoothUUID("00001804-0000-1000-8000-00805f9b34fb")] TxPower, /// - /// 当前时间 - /// Current Time + /// 当前时间 + /// Current Time /// [JsonPropertyName("current_time")] [BluetoothUUID("00001805-0000-1000-8000-00805f9b34fb")] CurrentTime, /// - /// 参照时间更新 - /// Reference Time Update + /// 参照时间更新 + /// Reference Time Update /// [JsonPropertyName("reference_time_update")] [BluetoothUUID("00001806-0000-1000-8000-00805f9b34fb")] ReferenceTimeUpdate, /// - /// 下个日光节约时间(夏令时)更改 - /// Next DST Change + /// 下个日光节约时间(夏令时)更改 + /// Next DST Change /// [JsonPropertyName("next_dst_change")] [BluetoothUUID("00001807-0000-1000-8000-00805f9b34fb")] NextDstChange, /// - /// 葡萄糖 - /// Glucose + /// 葡萄糖 + /// Glucose /// [JsonPropertyName("glucose")] [BluetoothUUID("00001808-0000-1000-8000-00805f9b34fb")] Glucose, /// - /// 温度计 - /// Health Thermometer + /// 温度计 + /// Health Thermometer /// [JsonPropertyName("health_thermometer")] [BluetoothUUID("00001809-0000-1000-8000-00805f9b34fb")] HealthThermometer, /// - /// 设备信息 - /// Device Information + /// 设备信息 + /// Device Information /// [JsonPropertyName("device_information")] [BluetoothUUID("0000180A-0000-1000-8000-00805f9b34fb")] DeviceInformation, /// - /// 心率 - /// Heart Rate + /// 心率 + /// Heart Rate /// [JsonPropertyName("heart_rate")] [BluetoothUUID("0000180D-0000-1000-8000-00805f9b34fb")] HeartRate, /// - /// 手机报警状态 - /// Phone Alert Status + /// 手机报警状态 + /// Phone Alert Status /// [JsonPropertyName("phone_alert_status")] [BluetoothUUID("0000180E-0000-1000-8000-00805f9b34fb")] PhoneAlertStatus, /// - /// 电池数据 - /// Battery Service + /// 电池数据 + /// Battery Service /// [JsonPropertyName("battery_service")] [BluetoothUUID("0000180F-0000-1000-8000-00805f9b34fb")] BatteryService, /// - /// 血压 - /// Blood Pressure + /// 血压 + /// Blood Pressure /// [JsonPropertyName("blood_pressure")] [BluetoothUUID("00001810-0000-1000-8000-00805f9b34fb")] BloodPressure, /// - /// 闹钟通知 - /// Alert Notification + /// 闹钟通知 + /// Alert Notification /// [JsonPropertyName("alert_notification")] [BluetoothUUID("00001811-0000-1000-8000-00805f9b34fb")] AlertNotification, /// - /// HID设备 - /// Human Interface Device + /// HID设备 + /// Human Interface Device /// [JsonPropertyName("human_interface_device")] [BluetoothUUID("00001812-0000-1000-8000-00805f9b34fb")] HumanInterfaceDevice, /// - /// 扫描参数 - /// Scan Parameters + /// 扫描参数 + /// Scan Parameters /// [JsonPropertyName("scan_parameters")] [BluetoothUUID("00001813-0000-1000-8000-00805f9b34fb")] ScanParameters, /// - /// 跑步速度、节奏 - /// Running Speed and Cadence + /// 跑步速度、节奏 + /// Running Speed and Cadence /// [JsonPropertyName("running_speed_and_cadence")] [BluetoothUUID("00001814-0000-1000-8000-00805f9b34fb")] RunningSpeedAndCadence, /// - /// 自动化输入输出 - /// Automation IO + /// 自动化输入输出 + /// Automation IO /// [JsonPropertyName("automation_io")] [BluetoothUUID("00001815-0000-1000-8000-00805f9b34fb")] AutomationIo, /// - /// 循环速度、节奏 - /// Cycling Speed and Cadence + /// 循环速度、节奏 + /// Cycling Speed and Cadence /// [JsonPropertyName("cycling_speed_and_cadence")] [BluetoothUUID("00001816-0000-1000-8000-00805f9b34fb")] CyclingSpeedAndCadence, /// - /// 骑行能量 - /// Cycling Power + /// 骑行能量 + /// Cycling Power /// [JsonPropertyName("cycling_power")] [BluetoothUUID("00001818-0000-1000-8000-00805f9b34fb")] CyclingPower, /// - /// 定位及导航 - /// Location and Navigation + /// 定位及导航 + /// Location and Navigation /// [JsonPropertyName("location_and_navigation")] [BluetoothUUID("00001819-0000-1000-8000-00805f9b34fb")] LocationAndNavigation, /// - /// 环境传感 - /// Environmental Sensing + /// 环境传感 + /// Environmental Sensing /// [JsonPropertyName("environmental_sensing")] [BluetoothUUID("0000181A-0000-1000-8000-00805f9b34fb")] EnvironmentalSensing, /// - /// 身体组成 - /// Body Composition + /// 身体组成 + /// Body Composition /// [JsonPropertyName("body_composition")] [BluetoothUUID("0000181B-0000-1000-8000-00805f9b34fb")] BodyComposition, /// - /// 用户数据 - /// User Data + /// 用户数据 + /// User Data /// [JsonPropertyName("user_data")] [BluetoothUUID("0000181C-0000-1000-8000-00805f9b34fb")] UserData, /// - /// 体重秤 - /// Weight Scale + /// 体重秤 + /// Weight Scale /// [JsonPropertyName("weight_scale")] [BluetoothUUID("0000181D-0000-1000-8000-00805f9b34fb")] WeightScale, /// - /// 设备绑定管理 - /// Bond Management + /// 设备绑定管理 + /// Bond Management /// [JsonPropertyName("bond_management")] [BluetoothUUID("0000181E-0000-1000-8000-00805f9b34fb")] BondManagement, /// - /// 动态血糖检测 - /// Continuous Glucose Monitoring + /// 动态血糖检测 + /// Continuous Glucose Monitoring /// [JsonPropertyName("continuous_glucose_monitoring")] [BluetoothUUID("0000181F-0000-1000-8000-00805f9b34fb")] ContinuousGlucoseMonitoring, /// - /// 互联网协议支持 - /// Internet Protocol Support + /// 互联网协议支持 + /// Internet Protocol Support /// [JsonPropertyName("internet_protocol_support")] [BluetoothUUID("00001820-0000-1000-8000-00805f9b34fb")] InternetProtocolSupport, /// - /// 室内定位 - /// Indoor Positioning + /// 室内定位 + /// Indoor Positioning /// [JsonPropertyName("indoor_positioning")] [BluetoothUUID("00001821-0000-1000-8000-00805f9b34fb")] IndoorPositioning, /// - /// 脉搏血氧计 - /// Pulse Oximeter + /// 脉搏血氧计 + /// Pulse Oximeter /// [JsonPropertyName("pulse_oximeter")] [BluetoothUUID("00001822-0000-1000-8000-00805f9b34fb")] PulseOximeter, /// - /// HTTP代理 - /// HTTP Proxy + /// HTTP代理 + /// HTTP Proxy /// [JsonPropertyName("http_proxy")] [BluetoothUUID("00001823-0000-1000-8000-00805f9b34fb")] HttpProxy, /// - /// 传输发现 - /// Transport Discovery + /// 传输发现 + /// Transport Discovery /// [JsonPropertyName("transport_discovery")] [BluetoothUUID("00001824-0000-1000-8000-00805f9b34fb")] TransportDiscovery, /// - /// 对象传输 - /// Object Transfer + /// 对象传输 + /// Object Transfer /// [JsonPropertyName("object_transfer")] [BluetoothUUID("00001825-0000-1000-8000-00805f9b34fb")] ObjectTransfer, /// - /// 健康设备 - /// Fitness Machine + /// 健康设备 + /// Fitness Machine /// [JsonPropertyName("fitness_machine")] [BluetoothUUID("00001826-0000-1000-8000-00805f9b34fb")] FitnessMachine, /// - /// 节点配置 - /// Mesh Provisioning + /// 节点配置 + /// Mesh Provisioning /// [JsonPropertyName("mesh_provisioning")] [BluetoothUUID("00001827-0000-1000-8000-00805f9b34fb")] MeshProvisioning, /// - /// 节点代理 - /// Mesh Proxy + /// 节点代理 + /// Mesh Proxy /// [JsonPropertyName("mesh_proxy")] [BluetoothUUID("00001828-0000-1000-8000-00805f9b34fb")] MeshProxy, /// - /// 重连配置 - /// Reconnection Configuration + /// 重连配置 + /// Reconnection Configuration /// [JsonPropertyName("reconnection_configuration")] [BluetoothUUID("00001829-0000-1000-8000-00805f9b34fb")] diff --git a/src/BootstrapBlazor/Services/Bluetooth/BluetoothUUIDAttribute.cs b/src/BootstrapBlazor/Services/Bluetooth/BluetoothUUIDAttribute.cs index 4246e1c02b0..28128d7d8be 100644 --- a/src/BootstrapBlazor/Services/Bluetooth/BluetoothUUIDAttribute.cs +++ b/src/BootstrapBlazor/Services/Bluetooth/BluetoothUUIDAttribute.cs @@ -6,15 +6,15 @@ namespace BootstrapBlazor.Components; /// -/// UUID 标签 -/// UUID Attribute +/// UUID 标签 +/// UUID Attribute /// [AttributeUsage(AttributeTargets.All)] public class BluetoothUUIDAttribute(string name) : Attribute { /// - /// 获得 UUID 值 - /// Get UUID Value + /// 获得 UUID 值 + /// Get UUID Value /// public string Name => name; } diff --git a/src/BootstrapBlazor/Services/Bluetooth/DefaultBluetooth.cs b/src/BootstrapBlazor/Services/Bluetooth/DefaultBluetooth.cs index b6297ad1ad6..a14b465ab3c 100644 --- a/src/BootstrapBlazor/Services/Bluetooth/DefaultBluetooth.cs +++ b/src/BootstrapBlazor/Services/Bluetooth/DefaultBluetooth.cs @@ -59,7 +59,6 @@ private async Task LoadModule() /// /// /// - /// public async Task GetAvailability(CancellationToken token = default) { _module ??= await LoadModule(); @@ -100,7 +99,6 @@ public async Task GetAvailability(CancellationToken token = default) /// /// /// - /// public Task RequestDevice(List optionalServices, CancellationToken token = default) { var options = new BluetoothRequestOptions() { AcceptAllDevices = true, OptionalServices = optionalServices }; diff --git a/src/BootstrapBlazor/Services/Bluetooth/DefaultBluetoothCharacteristic.cs b/src/BootstrapBlazor/Services/Bluetooth/DefaultBluetoothCharacteristic.cs index 675090576b1..c0ff4156ce1 100644 --- a/src/BootstrapBlazor/Services/Bluetooth/DefaultBluetoothCharacteristic.cs +++ b/src/BootstrapBlazor/Services/Bluetooth/DefaultBluetoothCharacteristic.cs @@ -63,7 +63,6 @@ public DefaultBluetoothCharacteristic(JSModule module, string clientId, string s /// /// /// - /// public async Task ReadValue(CancellationToken token = default) { byte[]? ret = null; @@ -77,7 +76,6 @@ public DefaultBluetoothCharacteristic(JSModule module, string clientId, string s /// /// /// - /// public async Task StartNotifications(Func notificationCallback, CancellationToken token = default) { if (IsNotify) @@ -96,7 +94,6 @@ public async Task StartNotifications(Func notificationCallba /// /// /// - /// public async Task StopNotifications(CancellationToken token = default) { ErrorMessage = null; diff --git a/src/BootstrapBlazor/Services/Bluetooth/DefaultBluetoothDevice.cs b/src/BootstrapBlazor/Services/Bluetooth/DefaultBluetoothDevice.cs index bb60ee80480..55c12d199ff 100644 --- a/src/BootstrapBlazor/Services/Bluetooth/DefaultBluetoothDevice.cs +++ b/src/BootstrapBlazor/Services/Bluetooth/DefaultBluetoothDevice.cs @@ -55,7 +55,6 @@ public DefaultBluetoothDevice(JSModule module, string clientId, string[] args) /// /// /// - /// public async Task Connect(CancellationToken token = default) { if (Connected == false) @@ -69,7 +68,6 @@ public async Task Connect(CancellationToken token = default) /// /// /// - /// public async Task Disconnect(CancellationToken token = default) { var ret = false; @@ -90,7 +88,6 @@ public async Task Disconnect(CancellationToken token = default) /// /// /// - /// public async Task> GetPrimaryServices(CancellationToken token = default) { var ret = new List(); @@ -111,7 +108,6 @@ public async Task> GetPrimaryServices(CancellationToken /// /// /// - /// public async Task GetPrimaryService(string serviceUUID, CancellationToken token = default) { IBluetoothService? ret = null; @@ -131,7 +127,6 @@ public async Task> GetPrimaryServices(CancellationToken /// /// /// - /// public async Task GetDeviceInfo(CancellationToken token = default) { BluetoothDeviceInfo? ret = null; @@ -148,7 +143,6 @@ public async Task> GetPrimaryServices(CancellationToken /// /// /// - /// public async Task GetCurrentTime(CancellationToken token = default) { DateTimeOffset? ret = null; @@ -169,7 +163,6 @@ public async Task> GetPrimaryServices(CancellationToken /// /// /// - /// public async Task GetBatteryValue(CancellationToken token = default) { byte? ret = null; @@ -189,7 +182,6 @@ public async Task> GetPrimaryServices(CancellationToken /// /// /// - /// public async Task ReadValue(string serviceUUID, string characteristicUUID, CancellationToken token = default) { byte[]? ret = null; @@ -223,7 +215,6 @@ private async ValueTask DisposeAsync(bool disposing) /// /// /// - /// public async ValueTask DisposeAsync() { await DisposeAsync(true); diff --git a/src/BootstrapBlazor/Services/Bluetooth/DefaultBluetoothService.cs b/src/BootstrapBlazor/Services/Bluetooth/DefaultBluetoothService.cs index 79c66158031..4676aec6a26 100644 --- a/src/BootstrapBlazor/Services/Bluetooth/DefaultBluetoothService.cs +++ b/src/BootstrapBlazor/Services/Bluetooth/DefaultBluetoothService.cs @@ -57,7 +57,6 @@ public DefaultBluetoothService(JSModule module, string clientId, string serviceN /// /// /// - /// public async Task> GetCharacteristics(CancellationToken token = default) { var ret = new List(); @@ -75,7 +74,6 @@ public async Task> GetCharacteristics(Cancellatio /// /// /// - /// public async Task GetCharacteristic(string characteristicUUID, CancellationToken token = default) { IBluetoothCharacteristic? characteristic = null; diff --git a/src/BootstrapBlazor/Services/Bluetooth/IBluetooth.cs b/src/BootstrapBlazor/Services/Bluetooth/IBluetooth.cs index 3be56f44ee4..457bcc9c60a 100644 --- a/src/BootstrapBlazor/Services/Bluetooth/IBluetooth.cs +++ b/src/BootstrapBlazor/Services/Bluetooth/IBluetooth.cs @@ -33,7 +33,6 @@ public interface IBluetooth /// 获得所有可用串口 /// Get all available serial ports /// - /// Task GetAvailability(CancellationToken token = default); /// @@ -42,7 +41,6 @@ public interface IBluetooth /// /// 实例 instance /// - /// Task RequestDevice(BluetoothRequestOptions? options = null, CancellationToken token = default); /// @@ -51,6 +49,5 @@ public interface IBluetooth /// /// /// - /// Task RequestDevice(List optionalServices, CancellationToken token = default); } diff --git a/src/BootstrapBlazor/Services/Bluetooth/IBluetoothCharacterics.cs b/src/BootstrapBlazor/Services/Bluetooth/IBluetoothCharacterics.cs index 0e45ca7e68e..f7a6db0143d 100644 --- a/src/BootstrapBlazor/Services/Bluetooth/IBluetoothCharacterics.cs +++ b/src/BootstrapBlazor/Services/Bluetooth/IBluetoothCharacterics.cs @@ -41,7 +41,6 @@ public interface IBluetoothCharacteristic /// /// /// - /// Task StartNotifications(Func notificationCallback, CancellationToken token = default); /// @@ -49,7 +48,6 @@ public interface IBluetoothCharacteristic /// Stop Notifications Method /// /// - /// Task StopNotifications(CancellationToken token = default); /// @@ -57,6 +55,5 @@ public interface IBluetoothCharacteristic /// Read Value Method /// /// 比如获得电量方法为 ReadValue("battery_service", "battery_level")For example, get battery level method is ReadValue("battery_service", "battery_level") - /// Task ReadValue(CancellationToken token = default); } diff --git a/src/BootstrapBlazor/Services/Bluetooth/IBluetoothDevice.cs b/src/BootstrapBlazor/Services/Bluetooth/IBluetoothDevice.cs index 072430db009..9eca83ba345 100644 --- a/src/BootstrapBlazor/Services/Bluetooth/IBluetoothDevice.cs +++ b/src/BootstrapBlazor/Services/Bluetooth/IBluetoothDevice.cs @@ -39,14 +39,12 @@ public interface IBluetoothDevice : IAsyncDisposable /// 连接方法 /// Connect Method /// - /// Task Connect(CancellationToken token = default); /// /// 断开连接方法 /// Disconnect Method /// - /// Task Disconnect(CancellationToken token = default); /// @@ -54,7 +52,6 @@ public interface IBluetoothDevice : IAsyncDisposable /// Get All Supported Services of Device /// /// - /// Task> GetPrimaryServices(CancellationToken token = default); /// @@ -63,7 +60,6 @@ public interface IBluetoothDevice : IAsyncDisposable /// /// /// - /// Task GetPrimaryService(string serviceUUID, CancellationToken token = default); /// @@ -71,7 +67,6 @@ public interface IBluetoothDevice : IAsyncDisposable /// Read Value Method /// /// 比如获得电量方法为 ReadValue("battery_service", "battery_level")For example, get battery level method is ReadValue("battery_service", "battery_level") - /// Task ReadValue(string serviceUUID, string characteristicUUID, CancellationToken token = default); /// @@ -79,7 +74,6 @@ public interface IBluetoothDevice : IAsyncDisposable /// Get Device Info Method /// /// - /// Task GetDeviceInfo(CancellationToken token = default); /// @@ -87,7 +81,6 @@ public interface IBluetoothDevice : IAsyncDisposable /// Get Device Current Time Method /// /// - /// Task GetCurrentTime(CancellationToken token = default); /// @@ -95,6 +88,5 @@ public interface IBluetoothDevice : IAsyncDisposable /// Get Device Battery Level Method /// /// - /// Task GetBatteryValue(CancellationToken token = default); } diff --git a/src/BootstrapBlazor/Services/Bluetooth/IBluetoothService.cs b/src/BootstrapBlazor/Services/Bluetooth/IBluetoothService.cs index 1054e6fa7a6..1c177708d2a 100644 --- a/src/BootstrapBlazor/Services/Bluetooth/IBluetoothService.cs +++ b/src/BootstrapBlazor/Services/Bluetooth/IBluetoothService.cs @@ -34,7 +34,6 @@ public interface IBluetoothService /// Get All Supported Characteristics /// /// - /// Task> GetCharacteristics(CancellationToken token = default); /// @@ -43,6 +42,5 @@ public interface IBluetoothService /// /// /// - /// Task GetCharacteristic(string characteristicUUID, CancellationToken token = default); } diff --git a/src/BootstrapBlazor/Services/BootstrapBlazorRootRegisterService.cs b/src/BootstrapBlazor/Services/BootstrapBlazorRootRegisterService.cs index 3ca25956aad..bc93b78fac2 100644 --- a/src/BootstrapBlazor/Services/BootstrapBlazorRootRegisterService.cs +++ b/src/BootstrapBlazor/Services/BootstrapBlazorRootRegisterService.cs @@ -65,7 +65,6 @@ public void RemoveProvider(object identifier, BootstrapBlazorRootContent provide /// Get all providers by identifier /// /// - /// public List GetProviders(object identifier) { _providersByIdentifier.TryGetValue(identifier, out var providers); diff --git a/src/BootstrapBlazor/Services/BootstrapServiceBase.cs b/src/BootstrapBlazor/Services/BootstrapServiceBase.cs index b25b5fe137f..170b99efb9b 100644 --- a/src/BootstrapBlazor/Services/BootstrapServiceBase.cs +++ b/src/BootstrapBlazor/Services/BootstrapServiceBase.cs @@ -23,7 +23,6 @@ public abstract class BootstrapServiceBase /// /// /// - /// protected async Task Invoke(TOption option, ComponentBase? component = null) { var (_, callback) = component != null diff --git a/src/BootstrapBlazor/Services/CacheManager.cs b/src/BootstrapBlazor/Services/CacheManager.cs index c1d429f1d53..0d459357f23 100644 --- a/src/BootstrapBlazor/Services/CacheManager.cs +++ b/src/BootstrapBlazor/Services/CacheManager.cs @@ -80,7 +80,6 @@ public Task GetOrCreateAsync(object key, Func /// /// - /// public bool TryGetValue(object key, [NotNullWhen(true)] out TItem? value) { var ret = Cache.TryGetValue(key, out var v); @@ -136,7 +135,6 @@ private void SetStartTime(DateTimeOffset startDateTimeOffset) /// 获取 App 开始时间 /// Get App Start Time /// - /// public DateTimeOffset GetStartTime() { var ret = DateTimeOffset.MinValue; @@ -195,7 +193,6 @@ public IEnumerable Keys /// /// /// - /// public bool TryGetCacheEntry(object? key, [NotNullWhen(true)] out ICacheEntry? entry) { entry = null; @@ -232,7 +229,6 @@ private List GetAllValues(MemoryCache cache) /// Get Unique Type Name Method /// /// - /// public static string GetUniqueName(Assembly assembly) { //key不拼接,作为当前静态实例唯一标识,因为GetUniqueName方法会被频繁调用 @@ -270,7 +266,6 @@ public static int ElementCount(object? value) /// Get instance by Type /// /// - /// public static IStringLocalizer? CreateLocalizerByType(Type resourceSource) => resourceSource.Assembly.IsDynamic ? null : Instance.Provider.GetRequiredService().Create(resourceSource); @@ -279,7 +274,6 @@ public static int ElementCount(object? value) /// 获得 /// Get Value /// - /// private static JsonLocalizationOptions GetJsonLocalizationOption() { var localizationOptions = Instance.Provider.GetRequiredService>(); @@ -292,7 +286,6 @@ private static JsonLocalizationOptions GetJsonLocalizationOption() /// /// Assembly 程序集实例Assembly 程序集instance /// 类型名称typename - /// public static IStringLocalizer? GetStringLocalizerFromService(Assembly assembly, string typeName) { if (assembly.IsDynamic) @@ -331,7 +324,6 @@ private static JsonLocalizationOptions GetJsonLocalizationOption() /// 类型名称typename /// cultureName 未空时使用 CultureInfo.CurrentUICulture.NamecultureName 未空时使用 CultureInfo.CurrentUICulture.Name /// 默认 false 使用缓存值 设置 true 时内部强制重新加载default is false 使用缓存value Sets true 时内部强制重新加载 - /// public static IEnumerable? GetJsonStringByTypeName(JsonLocalizationOptions option, Assembly assembly, string typeName, string? cultureName = null, bool forceLoad = false) { if (assembly.IsDynamic) @@ -378,7 +370,6 @@ private static JsonLocalizationOptions GetJsonLocalizationOption() /// /// /// - /// public static IEnumerable GetTypeStringsFromResolve(string typeName, bool includeParentCultures = true) => Instance.Provider.GetRequiredService().GetAllStringsByType(typeName, includeParentCultures); #endregion @@ -389,7 +380,6 @@ private static JsonLocalizationOptions GetJsonLocalizationOption() /// /// /// - /// public static string GetDisplayName(Type modelType, string fieldName) { string? dn = null; @@ -487,7 +477,6 @@ string FindDisplayTextByItemName(string itemName) /// Get value from resource file by key /// /// - /// private static string? GetLocalizerValueFromResourceManager(string key) { string? dn = null; @@ -628,7 +617,6 @@ private static Action GetSetPropertyValueInvoker /// /// /// - /// public static TValue? GetKeyValue(TModel model, Type? customAttribute = null) { var ret = default(TValue); @@ -686,7 +674,6 @@ public static Func, List, IEnumerable> GetSortListFunc /// /// /// - /// public static Func, object> GetOnValueChangedInvoke(Type fieldType) { var cacheKey = $"{CacheKeyPrefix}-Lambda-{nameof(GetOnValueChangedInvoke)}-{typeof(TModel).GetUniqueTypeName()}-{fieldType.GetUniqueTypeName()}"; diff --git a/src/BootstrapBlazor/Services/ClipboardService.cs b/src/BootstrapBlazor/Services/ClipboardService.cs index b924606f15e..b3cc3d4f082 100644 --- a/src/BootstrapBlazor/Services/ClipboardService.cs +++ b/src/BootstrapBlazor/Services/ClipboardService.cs @@ -30,7 +30,6 @@ public async Task> Get(CancellationToken token = default) /// 获得剪切板拷贝文字方法 /// Get Clipboard Text Method /// - /// public async Task GetText(CancellationToken token = default) { _module ??= await LoadModule(); @@ -44,7 +43,6 @@ public async Task> Get(CancellationToken token = default) /// 要拷贝的文字要拷贝的文字 /// 拷贝后回调方法拷贝后callback method /// - /// public async Task Copy(string? text, Func? callback = null, CancellationToken token = default) { _module ??= await LoadModule(); diff --git a/src/BootstrapBlazor/Services/ComponentHtmlRenderer.cs b/src/BootstrapBlazor/Services/ComponentHtmlRenderer.cs index f899498ecc3..d14ef621031 100644 --- a/src/BootstrapBlazor/Services/ComponentHtmlRenderer.cs +++ b/src/BootstrapBlazor/Services/ComponentHtmlRenderer.cs @@ -19,7 +19,6 @@ class ComponentHtmlRenderer(IServiceProvider serviceProvider, ILoggerFactory log /// /// /// - /// public async Task RenderAsync(IDictionary? parameters = null) where TComponent : IComponent { using var htmlRenderer = new HtmlRenderer(_serviceProvider, _loggerFactory); @@ -38,7 +37,6 @@ public async Task RenderAsync(IDictionary? /// /// /// - /// public async Task RenderAsync(Type componentType, IDictionary? parameters = null) { using var htmlRenderer = new HtmlRenderer(_serviceProvider, _loggerFactory); diff --git a/src/BootstrapBlazor/Services/DataServiceBase.cs b/src/BootstrapBlazor/Services/DataServiceBase.cs index 335814b76b1..b88e5c099d9 100644 --- a/src/BootstrapBlazor/Services/DataServiceBase.cs +++ b/src/BootstrapBlazor/Services/DataServiceBase.cs @@ -16,7 +16,6 @@ public abstract class DataServiceBase : IDataService where TMode /// Add Data Method /// /// - /// public virtual Task AddAsync(TModel model) => Task.FromResult(true); /// @@ -24,7 +23,6 @@ public abstract class DataServiceBase : IDataService where TMode /// Delete Data Method /// /// - /// public virtual Task DeleteAsync(IEnumerable models) => Task.FromResult(true); /// @@ -33,7 +31,6 @@ public abstract class DataServiceBase : IDataService where TMode /// /// /// - /// public virtual Task SaveAsync(TModel model, ItemChangedType changedType) => Task.FromResult(true); /// @@ -41,6 +38,5 @@ public abstract class DataServiceBase : IDataService where TMode /// Query Data Method /// /// - /// public abstract Task> QueryAsync(QueryPageOptions option); } diff --git a/src/BootstrapBlazor/Services/DefaultCalendarFestivals.cs b/src/BootstrapBlazor/Services/DefaultCalendarFestivals.cs index ce767853424..d16cc3c469a 100644 --- a/src/BootstrapBlazor/Services/DefaultCalendarFestivals.cs +++ b/src/BootstrapBlazor/Services/DefaultCalendarFestivals.cs @@ -35,7 +35,6 @@ class DefaultCalendarFestivals : ICalendarFestivals /// /// /// - /// public string? GetFestival(DateTime dt) { string? ret = null; diff --git a/src/BootstrapBlazor/Services/DefaultCalendarHolidayss.cs b/src/BootstrapBlazor/Services/DefaultCalendarHolidayss.cs index 89ba044d06d..1796ad483d9 100644 --- a/src/BootstrapBlazor/Services/DefaultCalendarHolidayss.cs +++ b/src/BootstrapBlazor/Services/DefaultCalendarHolidayss.cs @@ -10,13 +10,11 @@ class DefaultCalendarHolidays : ICalendarHolidays /// /// /// - /// public bool IsHoliday(DateTime dt) => false; /// /// /// /// - /// public bool IsWorkday(DateTime dt) => false; } diff --git a/src/BootstrapBlazor/Services/DefaultConnectionService.cs b/src/BootstrapBlazor/Services/DefaultConnectionService.cs index 55cc34ff142..be5898e8050 100644 --- a/src/BootstrapBlazor/Services/DefaultConnectionService.cs +++ b/src/BootstrapBlazor/Services/DefaultConnectionService.cs @@ -79,7 +79,6 @@ private static ConnectionItem UpdateItem(ConnectionItem item, ClientInfo val) /// /// /// - /// public bool TryGetValue(string key, [MaybeNullWhen(false)] out ConnectionItem? value) => _connectionCache.TryGetValue(key, out value); /// diff --git a/src/BootstrapBlazor/Services/DefaultGeoLocationService.cs b/src/BootstrapBlazor/Services/DefaultGeoLocationService.cs index 1352024a8f7..a9611cb0490 100644 --- a/src/BootstrapBlazor/Services/DefaultGeoLocationService.cs +++ b/src/BootstrapBlazor/Services/DefaultGeoLocationService.cs @@ -35,7 +35,6 @@ public DefaultGeoLocationService(IJSRuntime jsRuntime) /// get the current position of the device /// get the current position of the device /// - /// public async Task GetPositionAsync() { Module ??= await LoadModule(); @@ -48,7 +47,6 @@ public DefaultGeoLocationService(IJSRuntime jsRuntime) /// register a handler function that will be called automatically each time the position of the device changes /// register a handler function that will be called automatically each time the position of the device changes /// - /// public async ValueTask WatchPositionAsync(Func callback) { Module ??= await LoadModule(); @@ -65,7 +63,6 @@ public async ValueTask WatchPositionAsync(Func /// unregister location/error monitoring handlers previously installed using /// unregister location/error monitoring handlers previously installed using /// - /// public async ValueTask ClearWatchPositionAsync(long id) { Module ??= await LoadModule(); @@ -77,7 +74,6 @@ public async ValueTask ClearWatchPositionAsync(long id) /// Get current device location (invoked by JS) /// /// - /// [JSInvokable] public async Task WatchCallback(GeolocationPosition position) { diff --git a/src/BootstrapBlazor/Services/DefaultIconTheme.cs b/src/BootstrapBlazor/Services/DefaultIconTheme.cs index bc7ed9dd6e7..765b6584967 100644 --- a/src/BootstrapBlazor/Services/DefaultIconTheme.cs +++ b/src/BootstrapBlazor/Services/DefaultIconTheme.cs @@ -16,7 +16,6 @@ class DefaultIconTheme(IOptions options) : IIconTheme /// /// /// - /// #if NET8_0_OR_GREATER public FrozenDictionary GetIcons() { diff --git a/src/BootstrapBlazor/Services/DefaultIdGenerator.cs b/src/BootstrapBlazor/Services/DefaultIdGenerator.cs index 87bb1ca4300..8d810114273 100644 --- a/src/BootstrapBlazor/Services/DefaultIdGenerator.cs +++ b/src/BootstrapBlazor/Services/DefaultIdGenerator.cs @@ -16,6 +16,5 @@ internal class DefaultIdGenerator : IComponentIdGenerator /// Generate Component ID String /// /// - /// public string Generate(object component) => $"bb_{component.GetHashCode()}"; } diff --git a/src/BootstrapBlazor/Services/DefaultJSVersionService.cs b/src/BootstrapBlazor/Services/DefaultJSVersionService.cs index b26bdb57362..def92366f9b 100644 --- a/src/BootstrapBlazor/Services/DefaultJSVersionService.cs +++ b/src/BootstrapBlazor/Services/DefaultJSVersionService.cs @@ -16,7 +16,6 @@ class DefaultJSVersionService(IOptions options) : IVersi /// /// /// - /// public string GetVersion() { Version ??= ConfigVersion ?? GetVersionFromAssembly(); diff --git a/src/BootstrapBlazor/Services/DefaultNetworkMonitorService.cs b/src/BootstrapBlazor/Services/DefaultNetworkMonitorService.cs index f241f126465..1430e4387df 100644 --- a/src/BootstrapBlazor/Services/DefaultNetworkMonitorService.cs +++ b/src/BootstrapBlazor/Services/DefaultNetworkMonitorService.cs @@ -91,7 +91,6 @@ public void UnregisterStateChangedCallback(IComponent component) /// JSInvoke 回调方法 /// JSInvoke Callback Method /// - /// [JSInvokable] public async Task TriggerNetworkStateChanged(NetworkMonitorState state) { @@ -108,7 +107,6 @@ public async Task TriggerNetworkStateChanged(NetworkMonitorState state) /// /// /// - /// public async ValueTask DisposeAsync() { if (_module != null) diff --git a/src/BootstrapBlazor/Services/DefaultTableExport.cs b/src/BootstrapBlazor/Services/DefaultTableExport.cs index 92cc0888dd5..56ade734803 100644 --- a/src/BootstrapBlazor/Services/DefaultTableExport.cs +++ b/src/BootstrapBlazor/Services/DefaultTableExport.cs @@ -10,24 +10,20 @@ class DefaultTableExport : ITableExport /// /// /// - /// public Task ExportAsync(IEnumerable items, IEnumerable? cols = null, string? fileName = null) => Task.FromResult(false); /// /// /// - /// public Task ExportExcelAsync(IEnumerable items, IEnumerable? cols = null, string? fileName = null) => Task.FromResult(false); /// /// /// - /// public Task ExportCsvAsync(IEnumerable items, IEnumerable? cols, string? fileName = null) => Task.FromResult(false); /// /// /// - /// public Task ExportPdfAsync(IEnumerable items, IEnumerable? cols, string? fileName = null) => Task.FromResult(false); } diff --git a/src/BootstrapBlazor/Services/EyeDropperService.cs b/src/BootstrapBlazor/Services/EyeDropperService.cs index 1d6c03c2559..a16b66310b6 100644 --- a/src/BootstrapBlazor/Services/EyeDropperService.cs +++ b/src/BootstrapBlazor/Services/EyeDropperService.cs @@ -18,7 +18,6 @@ public class EyeDropperService(IJSRuntime jSRuntime) /// 全屏方法,已经全屏时再次调用后退出全屏 /// Fullscreen method, exit fullscreen if called again when already in fullscreen /// - /// public async Task PickAsync(CancellationToken token = default) { _module ??= await jSRuntime.LoadModuleByName("eye-dropper"); diff --git a/src/BootstrapBlazor/Services/FullScreenService.cs b/src/BootstrapBlazor/Services/FullScreenService.cs index 22517c4cb39..04938b47640 100644 --- a/src/BootstrapBlazor/Services/FullScreenService.cs +++ b/src/BootstrapBlazor/Services/FullScreenService.cs @@ -20,7 +20,6 @@ public class FullScreenService(IJSRuntime jSRuntime) /// /// /// - /// public async Task Toggle(FullScreenOption? option = null, CancellationToken token = default) { _module ??= await jSRuntime.LoadModuleByName("fullscreen"); diff --git a/src/BootstrapBlazor/Services/IBrowserFingerService.cs b/src/BootstrapBlazor/Services/IBrowserFingerService.cs index 0da95f607ef..919fe8589eb 100644 --- a/src/BootstrapBlazor/Services/IBrowserFingerService.cs +++ b/src/BootstrapBlazor/Services/IBrowserFingerService.cs @@ -15,7 +15,6 @@ public interface IBrowserFingerService /// 获得当前浏览器指纹方法 /// Get current browser fingerprint method /// - /// Task GetFingerCodeAsync(CancellationToken token = default); /// @@ -23,6 +22,5 @@ public interface IBrowserFingerService /// Get current connected client ID provided by BootstrapBlazor component framework /// /// - /// Task GetClientHubIdAsync(CancellationToken token = default); } diff --git a/src/BootstrapBlazor/Services/ICacheManager.cs b/src/BootstrapBlazor/Services/ICacheManager.cs index 2171de62a5d..9339db05dd6 100644 --- a/src/BootstrapBlazor/Services/ICacheManager.cs +++ b/src/BootstrapBlazor/Services/ICacheManager.cs @@ -20,7 +20,6 @@ public interface ICacheManager /// /// /// - /// TItem GetOrCreate(object key, Func factory); /// @@ -30,7 +29,6 @@ public interface ICacheManager /// /// /// - /// Task GetOrCreateAsync(object key, Func> factory); /// @@ -40,7 +38,6 @@ public interface ICacheManager /// /// /// - /// bool TryGetValue(object key, [NotNullWhen(true)] out TItem? value); /// @@ -53,7 +50,6 @@ public interface ICacheManager /// 获取 App 开始时间 /// Get App Start Time /// - /// DateTimeOffset GetStartTime(); /// @@ -82,7 +78,6 @@ public interface ICacheManager /// /// /// - /// bool TryGetCacheEntry(object? key, [NotNullWhen(true)] out ICacheEntry? entry); #endif } diff --git a/src/BootstrapBlazor/Services/ICalendarFestivals.cs b/src/BootstrapBlazor/Services/ICalendarFestivals.cs index 4b80c5744a5..79e027faadd 100644 --- a/src/BootstrapBlazor/Services/ICalendarFestivals.cs +++ b/src/BootstrapBlazor/Services/ICalendarFestivals.cs @@ -15,6 +15,5 @@ public interface ICalendarFestivals /// 获得 节日键值对 /// Get Festival Key-Value Pair /// - /// string? GetFestival(DateTime dt); } diff --git a/src/BootstrapBlazor/Services/ICalendarHolidays.cs b/src/BootstrapBlazor/Services/ICalendarHolidays.cs index b6f2f8496d2..b1539c6b23f 100644 --- a/src/BootstrapBlazor/Services/ICalendarHolidays.cs +++ b/src/BootstrapBlazor/Services/ICalendarHolidays.cs @@ -15,13 +15,11 @@ public interface ICalendarHolidays /// 是否为假日 /// Is Holiday /// - /// bool IsHoliday(DateTime dt); /// /// 是否为工作日 /// Is Workday /// - /// bool IsWorkday(DateTime dt); } diff --git a/src/BootstrapBlazor/Services/IComponentHtmlRenderer.cs b/src/BootstrapBlazor/Services/IComponentHtmlRenderer.cs index 3fa87ab2675..6b84f3a0cd7 100644 --- a/src/BootstrapBlazor/Services/IComponentHtmlRenderer.cs +++ b/src/BootstrapBlazor/Services/IComponentHtmlRenderer.cs @@ -17,7 +17,6 @@ public interface IComponentHtmlRenderer /// /// /// - /// Task RenderAsync(IDictionary? parameters = null) where TComponent : IComponent; /// @@ -26,6 +25,5 @@ public interface IComponentHtmlRenderer /// /// Blazor 组件类型Blazor componenttype /// - /// Task RenderAsync(Type type, IDictionary? parameters = null); } diff --git a/src/BootstrapBlazor/Services/IComponentIdGenerator.cs b/src/BootstrapBlazor/Services/IComponentIdGenerator.cs index ffddf47230f..90a2e11d8e5 100644 --- a/src/BootstrapBlazor/Services/IComponentIdGenerator.cs +++ b/src/BootstrapBlazor/Services/IComponentIdGenerator.cs @@ -16,6 +16,5 @@ public interface IComponentIdGenerator /// Generate Component ID Method /// /// - /// string Generate(object component); } diff --git a/src/BootstrapBlazor/Services/IConnectionService.cs b/src/BootstrapBlazor/Services/IConnectionService.cs index 34f91c37b53..c038fc80fe3 100644 --- a/src/BootstrapBlazor/Services/IConnectionService.cs +++ b/src/BootstrapBlazor/Services/IConnectionService.cs @@ -24,7 +24,6 @@ public interface IConnectionService /// /// 键值键value /// 连接信息连接info - /// bool TryGetValue(string key, out ConnectionItem? value); /// diff --git a/src/BootstrapBlazor/Services/IDataService.cs b/src/BootstrapBlazor/Services/IDataService.cs index 7d99469fbe6..62a7d57c4e3 100644 --- a/src/BootstrapBlazor/Services/IDataService.cs +++ b/src/BootstrapBlazor/Services/IDataService.cs @@ -16,7 +16,6 @@ public interface IDataService where TModel : class /// Add Data Method /// /// - /// Task AddAsync(TModel model); /// @@ -25,7 +24,6 @@ public interface IDataService where TModel : class /// /// 保存实体类实例保存实体类instance /// - /// Task SaveAsync(TModel model, ItemChangedType changedType); /// @@ -41,7 +39,6 @@ public interface IDataService where TModel : class /// Query Data Method /// /// 查询条件参数集合查询条件参数collection - /// Task> QueryAsync(QueryPageOptions option); } @@ -56,7 +53,6 @@ internal class NullDataService : DataServiceBase where TModel : /// Query Method /// /// - /// public override Task> QueryAsync(QueryPageOptions options) => Task.FromResult(new QueryData() { Items = new List(), @@ -69,7 +65,6 @@ public override Task> QueryAsync(QueryPageOptions options) => /// /// /// - /// public override Task SaveAsync(TModel model, ItemChangedType changedType) => Task.FromResult(false); /// @@ -77,6 +72,5 @@ public override Task> QueryAsync(QueryPageOptions options) => /// /// /// - /// public override Task DeleteAsync(IEnumerable models) => Task.FromResult(false); } diff --git a/src/BootstrapBlazor/Services/IEntityFrameworkCoreDataService.cs b/src/BootstrapBlazor/Services/IEntityFrameworkCoreDataService.cs index ee1f01f9e2b..0c094fb9d14 100644 --- a/src/BootstrapBlazor/Services/IEntityFrameworkCoreDataService.cs +++ b/src/BootstrapBlazor/Services/IEntityFrameworkCoreDataService.cs @@ -15,7 +15,6 @@ public interface IEntityFrameworkCoreDataService /// 取消方法,由于编辑时使用的是克隆数据,常见取消用法不需要写任何代码,可用于保存数据下次编辑时恢复 /// Cancel method. Since cloned data is used during editing, no code is required for common cancellation usage. It can be used to restore data for the next edit save. /// - /// Task CancelAsync(); /// @@ -23,6 +22,5 @@ public interface IEntityFrameworkCoreDataService /// Edit method, can fill data not provided by the edit UI /// /// - /// Task EditAsync(object model); } diff --git a/src/BootstrapBlazor/Services/IExportPdf.cs b/src/BootstrapBlazor/Services/IExportPdf.cs index 1b89583faf2..ce1debdc0a6 100644 --- a/src/BootstrapBlazor/Services/IExportPdf.cs +++ b/src/BootstrapBlazor/Services/IExportPdf.cs @@ -16,13 +16,11 @@ public interface IExportPdf /// 导出 Pdf 数据 /// Export Pdf Data /// - /// Task PdfDataAsync(string content); /// /// 导出 Pdf 流 /// Export Pdf Stream /// - /// Task PdfStreamAsync(string content); } diff --git a/src/BootstrapBlazor/Services/IGeoLocationService.cs b/src/BootstrapBlazor/Services/IGeoLocationService.cs index 35789057cb2..3d9f5e794bb 100644 --- a/src/BootstrapBlazor/Services/IGeoLocationService.cs +++ b/src/BootstrapBlazor/Services/IGeoLocationService.cs @@ -15,7 +15,6 @@ public interface IGeoLocationService : IAsyncDisposable /// 获得设备地理位置方法 /// Get Device Geo-Location Method /// - /// Task GetPositionAsync(); /// @@ -23,7 +22,6 @@ public interface IGeoLocationService : IAsyncDisposable /// Register WatchPositionAsync to monitor location changes /// /// - /// ValueTask WatchPositionAsync(Func callback); /// @@ -31,6 +29,5 @@ public interface IGeoLocationService : IAsyncDisposable /// Clear WatchPositionAsync Method /// /// 方法返回值 method返回value - /// ValueTask ClearWatchPositionAsync(long id); } diff --git a/src/BootstrapBlazor/Services/IIconTheme.cs b/src/BootstrapBlazor/Services/IIconTheme.cs index 9932a06121e..4d80f7d9e2c 100644 --- a/src/BootstrapBlazor/Services/IIconTheme.cs +++ b/src/BootstrapBlazor/Services/IIconTheme.cs @@ -19,7 +19,6 @@ public interface IIconTheme /// 获得所有图标 /// Get All Icons /// - /// #if NET8_0_OR_GREATER FrozenDictionary GetIcons(); #else diff --git a/src/BootstrapBlazor/Services/IPLocator/BaiduIpLocatorProvider.cs b/src/BootstrapBlazor/Services/IPLocator/BaiduIpLocatorProvider.cs index ec5be9dfad7..a42c5db5080 100644 --- a/src/BootstrapBlazor/Services/IPLocator/BaiduIpLocatorProvider.cs +++ b/src/BootstrapBlazor/Services/IPLocator/BaiduIpLocatorProvider.cs @@ -42,7 +42,6 @@ public class BaiduIpLocatorProvider(IHttpClientFactory httpClientFactory, IOptio /// 获得 HttpClient 实例方法 /// Get HttpClient Instance Method /// - /// protected virtual HttpClient GetHttpClient() => httpClientFactory.CreateClient(); /// @@ -50,7 +49,6 @@ public class BaiduIpLocatorProvider(IHttpClientFactory httpClientFactory, IOptio /// Get URL Address /// /// - /// protected virtual string GetUrl(string ip) => $"https://sp0.baidu.com/8aQDcjqpAAV3otqbppnN2DJv/api.php?resource_id=6006&query={ip}"; /// @@ -60,7 +58,6 @@ public class BaiduIpLocatorProvider(IHttpClientFactory httpClientFactory, IOptio /// /// /// - /// protected virtual async Task Fetch(string url, HttpClient client, CancellationToken token) { var result = await client.GetFromJsonAsync(url, token); diff --git a/src/BootstrapBlazor/Services/IPLocator/BaiduIpLocatorProviderV2.cs b/src/BootstrapBlazor/Services/IPLocator/BaiduIpLocatorProviderV2.cs index b88da5bf946..8e5f2734964 100644 --- a/src/BootstrapBlazor/Services/IPLocator/BaiduIpLocatorProviderV2.cs +++ b/src/BootstrapBlazor/Services/IPLocator/BaiduIpLocatorProviderV2.cs @@ -18,7 +18,6 @@ public class BaiduIpLocatorProviderV2(IHttpClientFactory httpClientFactory, IOpt /// /// /// - /// protected override string GetUrl(string ip) => $"https://qifu-api.baidubce.com/ip/geo/v1/district?ip={ip}"; /// @@ -27,7 +26,6 @@ public class BaiduIpLocatorProviderV2(IHttpClientFactory httpClientFactory, IOpt /// /// /// - /// protected override async Task Fetch(string url, HttpClient client, CancellationToken token) { var result = await client.GetFromJsonAsync(url, token); diff --git a/src/BootstrapBlazor/Services/IPLocator/DefaultIPLocatorProvider.cs b/src/BootstrapBlazor/Services/IPLocator/DefaultIPLocatorProvider.cs index 4a3746f12e7..af678cee8c5 100644 --- a/src/BootstrapBlazor/Services/IPLocator/DefaultIPLocatorProvider.cs +++ b/src/BootstrapBlazor/Services/IPLocator/DefaultIPLocatorProvider.cs @@ -50,7 +50,6 @@ protected DefaultIpLocatorProvider(IOptions options) /// /// /// - /// public async Task Locate(string? ip) { string? ret = null; @@ -89,6 +88,5 @@ protected DefaultIpLocatorProvider(IOptions options) /// Internal Locate Method /// /// - /// protected abstract Task LocateByIp(string ip); } diff --git a/src/BootstrapBlazor/Services/IPLocator/IIpLocatorFactory.cs b/src/BootstrapBlazor/Services/IPLocator/IIpLocatorFactory.cs index ff76cdee570..5c367fb9032 100644 --- a/src/BootstrapBlazor/Services/IPLocator/IIpLocatorFactory.cs +++ b/src/BootstrapBlazor/Services/IPLocator/IIpLocatorFactory.cs @@ -16,6 +16,5 @@ public interface IIpLocatorFactory /// Create IIPLocator Instance Method /// /// 注入时使用的 key 值Key used when injecting - /// IIpLocatorProvider Create(string? key = null); } diff --git a/src/BootstrapBlazor/Services/IRootComponentGenerator.cs b/src/BootstrapBlazor/Services/IRootComponentGenerator.cs index ff2699ea458..282906e2807 100644 --- a/src/BootstrapBlazor/Services/IRootComponentGenerator.cs +++ b/src/BootstrapBlazor/Services/IRootComponentGenerator.cs @@ -15,6 +15,5 @@ public interface IRootComponentGenerator /// 生成组件方法 /// Generate Component Method /// - /// RenderFragment Generator(); } diff --git a/src/BootstrapBlazor/Services/IThrottleDispatcherFactory.cs b/src/BootstrapBlazor/Services/IThrottleDispatcherFactory.cs index 6b01d67a9bd..222733394c2 100644 --- a/src/BootstrapBlazor/Services/IThrottleDispatcherFactory.cs +++ b/src/BootstrapBlazor/Services/IThrottleDispatcherFactory.cs @@ -15,14 +15,12 @@ public interface IThrottleDispatcherFactory /// 获得或创建限流器 /// Gets或创建限流器 /// - /// ThrottleDispatcher GetOrCreate(string key, ThrottleOptions? options = null); /// /// 获得或创建限流器 /// Get or Create Throttle Dispatcher /// - /// ThrottleDispatcher GetOrCreate(string key, int interval) => GetOrCreate(key, new ThrottleOptions() { Interval = TimeSpan.FromMilliseconds(interval) }); /// diff --git a/src/BootstrapBlazor/Services/ITotpService.cs b/src/BootstrapBlazor/Services/ITotpService.cs index d6b10d74d06..c04a4e0c54b 100644 --- a/src/BootstrapBlazor/Services/ITotpService.cs +++ b/src/BootstrapBlazor/Services/ITotpService.cs @@ -16,7 +16,6 @@ public interface ITotpService /// Generates a one-time password (OTP) URI for the specified parameters. /// /// the instance of - /// string GenerateOtpUri(OtpOptions? options = null); /// @@ -28,7 +27,6 @@ public interface ITotpService /// /// /// - /// string Compute(string secretKey, int period = 30, OtpHashMode mode = OtpHashMode.Sha1, int digits = 6, DateTime? timestamp = null); /// @@ -36,21 +34,18 @@ public interface ITotpService /// Computes the remaining seconds until the next TOTP expiration for the given secret key and timestamp. /// /// - /// int GetRemainingSeconds(DateTime? timestamp = null); /// /// Generates a random secret key for OTP authentication. /// Generates a random secret key for OTP authentication. /// - /// string GenerateSecretKey(int length = 20); /// /// 获得 the secret key bytes from the given input string. /// Gets the secret key bytes from the given input string. /// - /// byte[] GetSecretKeyBytes(string input); /// @@ -59,7 +54,6 @@ public interface ITotpService /// /// /// - /// bool Verify(string code, DateTime? timestamp = null); /// diff --git a/src/BootstrapBlazor/Services/IVersionService.cs b/src/BootstrapBlazor/Services/IVersionService.cs index 5de789b06a7..208d980b1d0 100644 --- a/src/BootstrapBlazor/Services/IVersionService.cs +++ b/src/BootstrapBlazor/Services/IVersionService.cs @@ -15,7 +15,6 @@ public interface IVersionService /// 获得 版本号 /// Get Version /// - /// string GetVersion(); /// @@ -23,6 +22,5 @@ public interface IVersionService /// Get Version /// /// 当前资源 相对路径 如 ./css/site.cssCurrent resource relative path, e.g. ./css/site.css - /// string GetVersion(string? url) => GetVersion(); } diff --git a/src/BootstrapBlazor/Services/MediaDevices/DefaultAudioDevice.cs b/src/BootstrapBlazor/Services/MediaDevices/DefaultAudioDevice.cs index 8567c67eacc..c660423f8c1 100644 --- a/src/BootstrapBlazor/Services/MediaDevices/DefaultAudioDevice.cs +++ b/src/BootstrapBlazor/Services/MediaDevices/DefaultAudioDevice.cs @@ -10,7 +10,6 @@ class DefaultAudioDevice(IMediaDevices deviceService) : IAudioDevice /// /// /// - /// public async Task?> GetDevices() { var ret = new List(); diff --git a/src/BootstrapBlazor/Services/MediaDevices/DefaultVideoDevice.cs b/src/BootstrapBlazor/Services/MediaDevices/DefaultVideoDevice.cs index ec80fa6c505..128dfb299b2 100644 --- a/src/BootstrapBlazor/Services/MediaDevices/DefaultVideoDevice.cs +++ b/src/BootstrapBlazor/Services/MediaDevices/DefaultVideoDevice.cs @@ -10,7 +10,6 @@ class DefaultVideoDevice(IMediaDevices deviceService) : IVideoDevice /// /// /// - /// public async Task?> GetDevices() { var ret = new List(); diff --git a/src/BootstrapBlazor/Services/MediaDevices/IAudioDevice.cs b/src/BootstrapBlazor/Services/MediaDevices/IAudioDevice.cs index a11d66c187d..72957479e87 100644 --- a/src/BootstrapBlazor/Services/MediaDevices/IAudioDevice.cs +++ b/src/BootstrapBlazor/Services/MediaDevices/IAudioDevice.cs @@ -15,7 +15,6 @@ public interface IAudioDevice /// 获得 the list of audio devices. /// Gets the list of audio devices. /// - /// Task?> GetDevices(); /// @@ -23,7 +22,6 @@ public interface IAudioDevice /// Opens the audio device with the specified constraints. /// /// - /// Task Open(MediaTrackConstraints constraints); /// @@ -31,13 +29,11 @@ public interface IAudioDevice /// Close the audio device with the specified selector. /// /// - /// Task Close(string? selector); /// /// 获得 the stream of the audio. /// Gets the stream of the audio. /// - /// Task GetData(); } diff --git a/src/BootstrapBlazor/Services/MediaDevices/IMediaDevices.cs b/src/BootstrapBlazor/Services/MediaDevices/IMediaDevices.cs index 7acf1592432..3dd2094dceb 100644 --- a/src/BootstrapBlazor/Services/MediaDevices/IMediaDevices.cs +++ b/src/BootstrapBlazor/Services/MediaDevices/IMediaDevices.cs @@ -15,7 +15,6 @@ public interface IMediaDevices /// An array of MediaDeviceInfo objects. Each object in the array describes one of the available media input and output devices. /// An array of MediaDeviceInfo objects. Each object in the array describes one of the available media input and output devices. /// - /// Task?> EnumerateDevices(); /// @@ -24,7 +23,6 @@ public interface IMediaDevices /// /// video or audio /// - /// Task Open(string type, MediaTrackConstraints constraints); /// @@ -32,28 +30,24 @@ public interface IMediaDevices /// The close() method of the MediaDevices interface stops capturing media from the specified device and closes the MediaStream object. /// /// - /// Task Close(string? selector); /// /// capture() method of the MediaDevices interface captures a still image from the specified video stream and saves it to the specified location. /// The capture() method of the MediaDevices interface captures a still image from the specified video stream and saves it to the specified location. /// - /// Task Capture(); /// /// 获得 the preview URL of the captured image. /// Gets the preview URL of the captured image. /// - /// Task GetPreviewUrl(); /// /// 获得 the stream of the captured image. /// Gets the stream of the captured image. /// - /// Task GetPreviewData(); /// @@ -61,13 +55,11 @@ public interface IMediaDevices /// Apply the media track constraints. /// /// - /// Task Apply(MediaTrackConstraints constraints); /// /// 获得 the stream of the audio. /// Gets the stream of the audio. /// - /// Task GetAudioData(); } diff --git a/src/BootstrapBlazor/Services/MediaDevices/IVideoDevice.cs b/src/BootstrapBlazor/Services/MediaDevices/IVideoDevice.cs index a744890b478..4de1e83ca99 100644 --- a/src/BootstrapBlazor/Services/MediaDevices/IVideoDevice.cs +++ b/src/BootstrapBlazor/Services/MediaDevices/IVideoDevice.cs @@ -15,7 +15,6 @@ public interface IVideoDevice /// 获得 the list of video devices. /// Gets the list of video devices. /// - /// Task?> GetDevices(); /// @@ -23,7 +22,6 @@ public interface IVideoDevice /// Opens the video device with the specified constraints. /// /// - /// Task Open(MediaTrackConstraints constraints); /// @@ -31,28 +29,24 @@ public interface IVideoDevice /// Close the video device with the specified selector. /// /// - /// Task Close(string? selector); /// /// Capture a still image from the video stream. /// Capture a still image from the video stream. /// - /// Task Capture(); /// /// 获得 the preview URL of the captured image. /// Gets the preview URL of the captured image. /// - /// Task GetPreviewUrl(); /// /// 获得 the stream of the captured image. /// Gets the stream of the captured image. /// - /// Task GetPreviewData(); /// @@ -60,6 +54,5 @@ public interface IVideoDevice /// Apply the media track constraints. /// /// - /// Task Apply(MediaTrackConstraints constraints); } diff --git a/src/BootstrapBlazor/Services/NotificationService.cs b/src/BootstrapBlazor/Services/NotificationService.cs index 810aef715be..de1868c6771 100644 --- a/src/BootstrapBlazor/Services/NotificationService.cs +++ b/src/BootstrapBlazor/Services/NotificationService.cs @@ -41,7 +41,6 @@ public NotificationService(IJSRuntime runtime, ICacheManager cache) /// Check Browser Notification Permission Status /// /// 是否请求权限 默认 trueRequest permission, default true - /// public async ValueTask CheckPermission(bool requestPermission = true) { Module ??= await LoadModule(); @@ -53,7 +52,6 @@ public async ValueTask CheckPermission(bool requestPermission = true) /// Dispatch Browser Notification /// /// NotificationItem 实例NotificationItem Instance - /// public async Task Dispatch(NotificationItem item) { Module ??= await LoadModule(); @@ -70,7 +68,6 @@ public async Task Dispatch(NotificationItem item) /// 消息通知回调方法由 JS 点击触发 /// Notification callback method triggered by JS click /// - /// [JSInvokable] public async Task DispatchCallback(string id) { @@ -90,7 +87,6 @@ public async Task DispatchCallback(string id) /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously. /// /// - /// protected virtual async ValueTask DisposeAsync(bool disposing) { if (disposing) @@ -112,7 +108,6 @@ protected virtual async ValueTask DisposeAsync(bool disposing) /// /// /// - /// public async ValueTask DisposeAsync() { await DisposeAsync(true); diff --git a/src/BootstrapBlazor/Services/Pinyin/IPinyinService.cs b/src/BootstrapBlazor/Services/Pinyin/IPinyinService.cs index 7bc47272a89..5698b40b42f 100644 --- a/src/BootstrapBlazor/Services/Pinyin/IPinyinService.cs +++ b/src/BootstrapBlazor/Services/Pinyin/IPinyinService.cs @@ -17,7 +17,6 @@ public interface IPinyinService /// /// /// - /// HashSet GetFirstLetters(string text, PinyinLetterCaseCategory caseCategory = PinyinLetterCaseCategory.UppercaseLetter); /// @@ -26,7 +25,6 @@ public interface IPinyinService /// /// /// - /// HashSet GetPinyin(string text, PinyinLetterCaseCategory caseCategory = PinyinLetterCaseCategory.UppercaseLetter); /// @@ -34,7 +32,6 @@ public interface IPinyinService /// 判断whether为中文字符 /// /// - /// bool IsChinese(char c); /// @@ -42,6 +39,5 @@ public interface IPinyinService /// 判断字符串whether包含中文字符 /// /// - /// bool ContainsChinese(string text); } diff --git a/src/BootstrapBlazor/Services/PrintService.cs b/src/BootstrapBlazor/Services/PrintService.cs index b7935ff64ff..13373e43fff 100644 --- a/src/BootstrapBlazor/Services/PrintService.cs +++ b/src/BootstrapBlazor/Services/PrintService.cs @@ -16,6 +16,5 @@ public class PrintService(DialogService dialogService) /// Print Method /// /// - /// public Task PrintAsync(DialogOption option) => dialogService.Show(option); } diff --git a/src/BootstrapBlazor/Services/Serial/DefaultSerialService.cs b/src/BootstrapBlazor/Services/Serial/DefaultSerialService.cs index 5a2d2f32944..d92fa5923b3 100644 --- a/src/BootstrapBlazor/Services/Serial/DefaultSerialService.cs +++ b/src/BootstrapBlazor/Services/Serial/DefaultSerialService.cs @@ -38,7 +38,6 @@ private async Task LoadModule() /// get the current position of the device /// get the current position of the device /// - /// public async Task GetPort(CancellationToken token = default) { _module ??= await LoadModule(); diff --git a/src/BootstrapBlazor/Services/Serial/ISerialPort.cs b/src/BootstrapBlazor/Services/Serial/ISerialPort.cs index c4c262cbf63..39faf659d5a 100644 --- a/src/BootstrapBlazor/Services/Serial/ISerialPort.cs +++ b/src/BootstrapBlazor/Services/Serial/ISerialPort.cs @@ -21,28 +21,24 @@ public interface ISerialPort : IAsyncDisposable /// 关闭端口方法 /// 关闭端口方法 /// - /// Task Close(CancellationToken token = default); /// /// 打开端口方法 /// 打开端口方法 /// - /// Task Open(SerialPortOptions options, CancellationToken token = default); /// /// 接收数据回调方法 /// 接收datacallback method /// - /// Func? DataReceive { get; set; } /// /// 写入数据方法 /// 写入data方法 /// - /// Task Write(byte[] data, CancellationToken token = default); /// @@ -50,7 +46,6 @@ public interface ISerialPort : IAsyncDisposable /// Gets Usb 设备信息 /// /// - /// Task GetUsbInfo(CancellationToken token = default); /// @@ -58,7 +53,6 @@ public interface ISerialPort : IAsyncDisposable /// Gets设备参数 /// /// - /// Task GetSignals(CancellationToken token = default); /// @@ -67,6 +61,5 @@ public interface ISerialPort : IAsyncDisposable /// /// /// - /// Task SetSignals(SerialPortSignalsOptions options, CancellationToken token = default); } diff --git a/src/BootstrapBlazor/Services/Serial/ISerialService.cs b/src/BootstrapBlazor/Services/Serial/ISerialService.cs index 8d02c5ad1fc..9672b9eaa56 100644 --- a/src/BootstrapBlazor/Services/Serial/ISerialService.cs +++ b/src/BootstrapBlazor/Services/Serial/ISerialService.cs @@ -21,6 +21,5 @@ public interface ISerialService /// 获得所有可用串口 /// Gets所有可用串口 /// - /// Task GetPort(CancellationToken token = default); } diff --git a/src/BootstrapBlazor/Services/Serial/SerialPort.cs b/src/BootstrapBlazor/Services/Serial/SerialPort.cs index 051c934e5d2..86e95d2f82c 100644 --- a/src/BootstrapBlazor/Services/Serial/SerialPort.cs +++ b/src/BootstrapBlazor/Services/Serial/SerialPort.cs @@ -24,7 +24,6 @@ class SerialPort(JSModule jsModule, string serialPortId) : ISerialPort /// /// /// - /// public async Task Write(byte[] data, CancellationToken token = default) { var ret = false; @@ -38,7 +37,6 @@ public async Task Write(byte[] data, CancellationToken token = default) /// /// /// - /// public async Task Open(SerialPortOptions options, CancellationToken token = default) { DotNetObjectReference? interop = null; @@ -53,7 +51,6 @@ public async Task Open(SerialPortOptions options, CancellationToken token /// /// /// - /// public async Task Close(CancellationToken token = default) { var ret = await jsModule.InvokeAsync("close", token, serialPortId); @@ -69,7 +66,6 @@ public async Task Close(CancellationToken token = default) /// 接收datacallback method 由 Javascript 调用 /// /// - /// [JSInvokable] public async Task DataReceiveCallback(byte[] data) { @@ -83,14 +79,12 @@ public async Task DataReceiveCallback(byte[] data) /// /// /// - /// public async Task GetUsbInfo(CancellationToken token = default) => await jsModule.InvokeAsync("getInfo", token, serialPortId); /// /// /// /// - /// public async Task GetSignals(CancellationToken token = default) => await jsModule.InvokeAsync("getSignals", token, serialPortId); /// @@ -98,7 +92,6 @@ public async Task DataReceiveCallback(byte[] data) /// /// /// - /// public async Task SetSignals(SerialPortSignalsOptions options, CancellationToken token = default) => await jsModule.InvokeAsync("setSignals", token, serialPortId, options); private async ValueTask DisposeAsync(bool disposing) @@ -112,7 +105,6 @@ private async ValueTask DisposeAsync(bool disposing) /// /// /// - /// public async ValueTask DisposeAsync() { await DisposeAsync(true); diff --git a/src/BootstrapBlazor/Services/ThrottleDispatcher.cs b/src/BootstrapBlazor/Services/ThrottleDispatcher.cs index 7fad3d49b78..884fb25c80e 100644 --- a/src/BootstrapBlazor/Services/ThrottleDispatcher.cs +++ b/src/BootstrapBlazor/Services/ThrottleDispatcher.cs @@ -17,7 +17,6 @@ public class ThrottleDispatcher(ThrottleOptions options) /// 判断是否等待方法 /// Check if Should Wait Method /// - /// protected virtual bool ShouldWait() => _invokeTime.HasValue && (DateTime.UtcNow - _invokeTime.Value) < options.Interval; /// diff --git a/src/BootstrapBlazor/Services/TitleService.cs b/src/BootstrapBlazor/Services/TitleService.cs index 77525508a37..449f488380a 100644 --- a/src/BootstrapBlazor/Services/TitleService.cs +++ b/src/BootstrapBlazor/Services/TitleService.cs @@ -18,7 +18,6 @@ public class TitleService(IJSRuntime jSRuntime) /// 设置当前网页 Title 方法 /// Set Current Page Title Method /// - /// public async Task SetTitle(string title, CancellationToken token = default) { _module ??= await jSRuntime.LoadUtility(); diff --git a/src/BootstrapBlazor/Services/WebClientService.cs b/src/BootstrapBlazor/Services/WebClientService.cs index 74126e51023..7b41fd1d394 100644 --- a/src/BootstrapBlazor/Services/WebClientService.cs +++ b/src/BootstrapBlazor/Services/WebClientService.cs @@ -33,7 +33,6 @@ public class WebClientService(IIpLocatorFactory ipLocatorFactory, /// 获得 ClientInfo 实例方法 /// Get ClientInfo Instance Method /// - /// public async Task GetClientInfo() { _taskCompletionSource = new TaskCompletionSource(); @@ -87,7 +86,6 @@ public void SetData(ClientInfo client) /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources asynchronously. /// /// - /// protected virtual async ValueTask DisposeAsync(bool disposing) { if (disposing) @@ -109,7 +107,6 @@ protected virtual async ValueTask DisposeAsync(bool disposing) /// /// /// - /// public async ValueTask DisposeAsync() { await DisposeAsync(true); diff --git a/src/BootstrapBlazor/Utils/BootstrapDynamicComponent.cs b/src/BootstrapBlazor/Utils/BootstrapDynamicComponent.cs index 30660b93521..4cc875ac8e1 100644 --- a/src/BootstrapBlazor/Utils/BootstrapDynamicComponent.cs +++ b/src/BootstrapBlazor/Utils/BootstrapDynamicComponent.cs @@ -19,7 +19,6 @@ public class BootstrapDynamicComponent(Type componentType, IDictionary /// /// TCom 组件所需要的参数集合TCom component所需要的参数collection - /// public static BootstrapDynamicComponent CreateComponent(IDictionary? parameters = null) where TCom : IComponent => CreateComponent(typeof(TCom), parameters); /// @@ -27,7 +26,6 @@ public class BootstrapDynamicComponent(Type componentType, IDictionaryCreate custom component method /// /// - /// public static BootstrapDynamicComponent CreateComponent() where TCom : IComponent => CreateComponent(new Dictionary()); /// @@ -36,14 +34,12 @@ public class BootstrapDynamicComponent(Type componentType, IDictionary /// /// - /// public static BootstrapDynamicComponent CreateComponent(Type type, IDictionary? parameters = null) => new(type, parameters); /// /// 创建组件实例并渲染 /// Create component instance and render /// - /// public RenderFragment Render() => builder => { var index = 0; diff --git a/src/BootstrapBlazor/Utils/EmitHelper.cs b/src/BootstrapBlazor/Utils/EmitHelper.cs index af18580b545..39437e110f6 100644 --- a/src/BootstrapBlazor/Utils/EmitHelper.cs +++ b/src/BootstrapBlazor/Utils/EmitHelper.cs @@ -22,7 +22,6 @@ public static class EmitHelper /// ITableColumn 集合ITableColumn collection /// 父类类型父类type /// 回调委托回调delegate - /// public static Type? CreateTypeByName(string typeName, IEnumerable cols, Type? parent = null, Func>? creatingCallback = null) { var typeBuilder = CreateTypeBuilderByName(typeName, parent); diff --git a/src/BootstrapBlazor/Utils/JSModule.cs b/src/BootstrapBlazor/Utils/JSModule.cs index c337c041c6b..887a4b11638 100644 --- a/src/BootstrapBlazor/Utils/JSModule.cs +++ b/src/BootstrapBlazor/Utils/JSModule.cs @@ -18,7 +18,6 @@ public class JSModule(IJSObjectReference? jSObjectReference) : IAsyncDisposable /// /// /// - /// public virtual ValueTask InvokeVoidAsync(string identifier, params object?[]? args) => InvokeVoidAsync(identifier, CancellationToken.None, args); /// @@ -28,7 +27,6 @@ public class JSModule(IJSObjectReference? jSObjectReference) : IAsyncDisposable /// /// /// - /// public virtual ValueTask InvokeVoidAsync(string identifier, TimeSpan timeout, params object?[]? args) { using CancellationTokenSource? cancellationTokenSource = ((timeout == Timeout.InfiniteTimeSpan) ? null : new CancellationTokenSource(timeout)); @@ -43,7 +41,6 @@ public virtual ValueTask InvokeVoidAsync(string identifier, TimeSpan timeout, pa /// /// /// - /// public virtual async ValueTask InvokeVoidAsync(string identifier, CancellationToken cancellationToken = default, params object?[]? args) { var paras = new List(); @@ -76,7 +73,6 @@ public virtual async ValueTask InvokeVoidAsync(string identifier, CancellationTo /// /// /// - /// public virtual ValueTask InvokeAsync(string identifier, params object?[]? args) => InvokeAsync(identifier, CancellationToken.None, args); /// @@ -86,7 +82,6 @@ public virtual async ValueTask InvokeVoidAsync(string identifier, CancellationTo /// /// /// - /// public virtual ValueTask InvokeAsync(string identifier, TimeSpan timeout, params object?[]? args) { using CancellationTokenSource? cancellationTokenSource = ((timeout == Timeout.InfiniteTimeSpan) ? null : new CancellationTokenSource(timeout)); @@ -101,7 +96,6 @@ public virtual async ValueTask InvokeVoidAsync(string identifier, CancellationTo /// /// /// - /// public virtual async ValueTask InvokeAsync(string identifier, CancellationToken cancellationToken = default, params object?[]? args) { var paras = new List(); diff --git a/src/BootstrapBlazor/Utils/Utility.cs b/src/BootstrapBlazor/Utils/Utility.cs index ea532f2ea5e..600aba9c8e3 100644 --- a/src/BootstrapBlazor/Utils/Utility.cs +++ b/src/BootstrapBlazor/Utils/Utility.cs @@ -24,7 +24,6 @@ public static class Utility /// /// 模型实例Model instance /// 字段名称Field name - /// public static string GetDisplayName(object model, string fieldName) => GetDisplayName(model.GetType(), fieldName); /// @@ -33,7 +32,6 @@ public static class Utility /// /// 模型类型Model type /// 字段名称Field name - /// public static string GetDisplayName(Type modelType, string fieldName) => CacheManager.GetDisplayName(Nullable.GetUnderlyingType(modelType) ?? modelType, fieldName); /// @@ -42,7 +40,6 @@ public static class Utility /// /// 模型Model /// 字段名称Field name - /// public static string GetDisplayName(string fieldName) => GetDisplayName(typeof(TModel), fieldName); /// @@ -51,7 +48,6 @@ public static class Utility /// /// 模型实例Model instance /// 字段名称Field name - /// public static RangeAttribute? GetRange(object model, string fieldName) => GetRange(model.GetType(), fieldName); /// @@ -60,7 +56,6 @@ public static class Utility /// /// 模型Model /// 字段名称Field name - /// public static RangeAttribute? GetRange(string fieldName) => GetRange(typeof(TModel), fieldName); /// @@ -69,7 +64,6 @@ public static class Utility /// /// 模型类型Model type /// 字段名称Field name - /// public static RangeAttribute? GetRange(Type modelType, string fieldName) { var type = Nullable.GetUnderlyingType(modelType) ?? modelType; @@ -88,7 +82,6 @@ public static class Utility /// /// 模型实例Model instance /// 字段名称Field name - /// public static List GetNullableBoolItems(object model, string fieldName) => GetNullableBoolItems(model.GetType(), fieldName); /// @@ -97,7 +90,6 @@ public static class Utility /// /// 模型实例Model instance /// 字段名称Field name - /// public static List GetNullableBoolItems(Type modelType, string fieldName) => CacheManager.GetNullableBoolItems(modelType, fieldName); /// @@ -108,7 +100,6 @@ public static class Utility /// /// /// - /// public static TValue? GetKeyValue(TModel model, Type? customAttribute = null) => CacheManager.GetKeyValue(model, customAttribute); /// @@ -119,7 +110,6 @@ public static class Utility /// /// /// - /// public static TResult GetPropertyValue(TModel model, string fieldName) => CacheManager.GetPropertyValue(model, fieldName); /// @@ -128,7 +118,6 @@ public static class Utility /// /// /// - /// public static object? GetPropertyValue(object model, string fieldName) { return model.GetType().Assembly.IsDynamic @@ -156,21 +145,18 @@ public static class Utility /// /// /// - /// public static void SetPropertyValue(TModel model, string fieldName, TValue value) => CacheManager.SetPropertyValue(model, fieldName, value); /// /// 获得 排序方法 /// Get sort method /// - /// public static Func, string, SortOrder, IEnumerable> GetSortFunc() => CacheManager.GetSortFunc(); /// /// 获得 通过排序集合进行排序 Func 方法 /// Get sort Func method by sort collection /// - /// public static Func, List, IEnumerable> GetSortListFunc() => CacheManager.GetSortListFunc(); /// @@ -198,7 +184,6 @@ public static class Utility /// /// 模型类型Model type /// 字段名称Field name - /// public static string? GetPlaceHolder(string fieldName) => GetPlaceHolder(typeof(TModel), fieldName); /// @@ -207,7 +192,6 @@ public static class Utility /// /// 模型实例Model instance /// 字段名称Field name - /// public static string? GetPlaceHolder(object model, string fieldName) => GetPlaceHolder(model.GetType(), fieldName); /// @@ -216,7 +200,6 @@ public static class Utility /// /// 模型类型Model type /// 字段名称Field name - /// public static string? GetPlaceHolder(Type modelType, string fieldName) => modelType.Assembly.IsDynamic ? null : CacheManager.GetPlaceholder(modelType, fieldName); @@ -228,7 +211,6 @@ public static class Utility /// /// /// - /// public static bool TryGetProperty(Type modelType, string fieldName, [NotNullWhen(true)] out PropertyInfo? propertyInfo) => CacheManager.TryGetProperty(modelType, fieldName, out propertyInfo); /// @@ -265,7 +247,6 @@ public static void Reset(TModel source, TModel model) where TModel : cla /// /// 克隆对象Clone object /// 简单的深克隆方法,内部未使用序列化技术Simple deep clone method, internal not use serialization - /// public static TModel Clone(TModel item) { var ret = item; @@ -296,7 +277,6 @@ public static TModel Clone(TModel item) /// /// /// - /// public static void Copy(TModel source, TModel destination) where TModel : class { var type = source.GetType(); @@ -327,7 +307,6 @@ public static void Copy(TModel source, TModel destination) where TModel /// /// /// 默认排序回调方法Default order callback - /// public static IEnumerable GetTableColumns(IEnumerable? source = null, Func, IEnumerable>? defaultOrderCallback = null) => GetTableColumns(typeof(TModel), source, defaultOrderCallback); /// @@ -337,7 +316,6 @@ public static void Copy(TModel source, TModel destination) where TModel /// 绑定模型类型Model type /// Razor 文件中列集合Column collection in Razor file /// 默认排序回调方法Default order callback - /// public static IEnumerable GetTableColumns(Type type, IEnumerable? source = null, Func, IEnumerable>? defaultOrderCallback = null) { var columns = new List(); @@ -414,7 +392,6 @@ internal static IEnumerable OrderFunc(this List cols /// Get IEditorItem collection by specified Model /// /// - /// public static IEnumerable GenerateColumns(Func predicate) => GetTableColumns().Where(predicate); /// @@ -648,7 +625,6 @@ public static void CreateComponentByFieldType(this RenderTreeBuilder builder, Co /// /// /// - /// public static object GenerateValueExpression(object model, string fieldName, Type fieldType) { var type = model.GetType(); @@ -731,7 +707,6 @@ private static Type GenerateComponentType(IEditorItem item) /// /// /// 组件类型Component type - /// public static bool IsCheckboxList(Type fieldType, Type? componentType = null) { var ret = false; @@ -757,7 +732,6 @@ public static bool IsCheckboxList(Type fieldType, Type? componentType = null) /// 上下文模型Context model /// 字段名称Field name /// IEditorItem 实例IEditorItem instance - /// private static Dictionary CreateMultipleAttributes(Type fieldType, object model, string fieldName, IEditorItem item) { var ret = new Dictionary(); @@ -794,7 +768,6 @@ private static Dictionary CreateMultipleAttributes(Type fieldTyp /// /// /// - /// public static Func CreateOnValueChangedCallback(TModel model, ITableColumn col, Func callback) => v => callback(model, col, v); /// @@ -803,7 +776,6 @@ private static Dictionary CreateMultipleAttributes(Type fieldTyp /// /// /// - /// public static Expression, object>> CreateOnValueChanged(Type fieldType) { var method = typeof(Utility).GetMethod(nameof(CreateOnValueChangedCallback), BindingFlags.Static | BindingFlags.Public)!.MakeGenericMethod(typeof(TModel), fieldType); @@ -821,7 +793,6 @@ private static Dictionary CreateMultipleAttributes(Type fieldTyp /// /// /// - /// public static Func, object> GetOnValueChangedInvoke(Type fieldType) => CacheManager.GetOnValueChangedInvoke(fieldType); #endregion @@ -833,7 +804,6 @@ private static Dictionary CreateMultipleAttributes(Type fieldTyp /// /// /// - /// public static string Format(object? source, string format, IFormatProvider? provider = null) { var ret = string.Empty; @@ -851,7 +821,6 @@ public static string Format(object? source, string format, IFormatProvider? prov /// /// /// - /// public static string Format(object? source, IFormatProvider provider) { var ret = string.Empty; @@ -870,7 +839,6 @@ public static string Format(object? source, IFormatProvider provider) /// /// /// - /// public static string? ConvertValueToString(TValue value) { var ret = ""; @@ -913,7 +881,6 @@ public static string Format(object? source, IFormatProvider provider) /// /// /// - /// public static object GenerateValueChanged(ComponentBase component, object model, string fieldName, Type fieldType) { var valueChangedInvoker = CreateLambda(fieldType).Compile(); @@ -939,7 +906,6 @@ static Expression> CreateLambda(Type /// /// /// - /// public static EventCallback CreateCallback(ComponentBase component, object model, string fieldName) => EventCallback.Factory.Create(component, t => CacheManager.SetPropertyValue(model, fieldName, t)); /// @@ -947,7 +913,6 @@ static Expression> CreateLambda(Type /// Get IEditorItem collection of specified generic type /// /// - /// public static IEnumerable GenerateEditorItems(IEnumerable? source = null) => GetTableColumns(source); /// @@ -955,7 +920,6 @@ static Expression> CreateLambda(Type /// Create IStringLocalizer instance by specified type /// /// - /// public static IStringLocalizer? CreateLocalizer() => CreateLocalizer(typeof(TType)); /// @@ -963,6 +927,5 @@ static Expression> CreateLambda(Type /// Create IStringLocalizer instance by specified type /// /// - /// public static IStringLocalizer? CreateLocalizer(Type type) => CacheManager.CreateLocalizerByType(type); } diff --git a/src/BootstrapBlazor/Validators/MinValidator.cs b/src/BootstrapBlazor/Validators/MinValidator.cs index 6be12195bb8..4a8f1ed7264 100644 --- a/src/BootstrapBlazor/Validators/MinValidator.cs +++ b/src/BootstrapBlazor/Validators/MinValidator.cs @@ -21,6 +21,5 @@ public class MinValidator : MaxValidator /// 获得 ErrorMessage 方法 /// Get ErrorMessage method /// - /// protected override string GetErrorMessage() => ErrorMessage ?? "Select at least {0} items"; } diff --git a/src/BootstrapBlazor/Validators/RequiredValidator.cs b/src/BootstrapBlazor/Validators/RequiredValidator.cs index a1a736a9020..39a7c01db4c 100644 --- a/src/BootstrapBlazor/Validators/RequiredValidator.cs +++ b/src/BootstrapBlazor/Validators/RequiredValidator.cs @@ -95,7 +95,6 @@ private ValidationResult GetValidationResult(ValidationContext context) /// 获得当前验证规则资源文件中 Key 格式 /// Get Key format in current validation rule resource file /// - /// protected virtual string GetRuleKey() => GetType().Name.Split(".").Last().Replace("Validator", ""); /// @@ -105,7 +104,6 @@ private ValidationResult GetValidationResult(ValidationContext context) /// /// /// - /// protected virtual string? GetLocalizerErrorMessage(ValidationContext context, IStringLocalizerFactory? localizerFactory = null, JsonLocalizationOptions? options = null) { var errorMessage = ErrorMessage; From 47702f3c1e6f32f82fb9d4e577c34b919575a4db Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Wed, 21 Jan 2026 10:27:11 +0800 Subject: [PATCH 3/3] =?UTF-8?q?doc:=20=E6=9B=B4=E6=96=B0=E6=B3=A8=E9=87=8A?= =?UTF-8?q?=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/Badge/ShieldBadge.razor.cs | 34 +++---- .../Components/Button/Button.razor.cs | 12 +-- .../Components/Checkbox/Checkbox.razor.cs | 28 ++---- .../Components/Dialog/Dialog.razor.cs | 2 +- .../Components/Filters/FilterBase.cs | 8 +- .../Components/Input/BootstrapInput.razor.cs | 32 +++---- .../Components/RibbonTab/RibbonTab.razor.cs | 2 - .../Components/Search/Search.razor.cs | 92 +++++++++---------- .../Components/Segmented/Segmented.razor.cs | 2 - .../Components/Segmented/SegmentedItem.cs | 4 +- .../Components/Segmented/SegmentedOption.cs | 4 +- .../Components/Select/MultiSelect.razor.cs | 23 +---- .../Components/Select/Select.razor.cs | 90 +++++++----------- .../Components/Select/SelectBase.cs | 60 ++++++------ .../Components/Select/SelectObject.razor.cs | 26 +----- .../Components/Select/SelectOption.cs | 23 +++-- .../Components/Select/SelectTable.razor.cs | 34 ++----- .../Components/Select/SelectTree.razor.cs | 44 ++------- .../Components/Select/SimpleSelectBase.cs | 33 +++---- .../SelectGeneric/MultiSelectGeneric.razor.cs | 66 ++++--------- .../SelectGeneric/SelectGeneric.razor.cs | 68 ++------------ .../SelectGeneric/SelectOptionGeneric.cs | 4 - .../Skeleton/SkeletonAvatar.razor.cs | 2 +- .../Components/Skeleton/SkeletonBase.cs | 2 +- .../Components/Slider/Slider.razor.cs | 6 +- .../Components/Speech/IRecognizerProvider.cs | 4 +- .../Components/Speech/RecognizerOption.cs | 10 +- .../Components/Speech/SpeechWave.razor.cs | 7 +- .../Extensions/JSModuleExtensions.cs | 44 ++++----- test/UnitTest/Components/RecognizerTest.cs | 4 +- 30 files changed, 266 insertions(+), 504 deletions(-) diff --git a/src/BootstrapBlazor/Components/Badge/ShieldBadge.razor.cs b/src/BootstrapBlazor/Components/Badge/ShieldBadge.razor.cs index ea6c5b1b0c9..373999465a5 100644 --- a/src/BootstrapBlazor/Components/Badge/ShieldBadge.razor.cs +++ b/src/BootstrapBlazor/Components/Badge/ShieldBadge.razor.cs @@ -12,64 +12,64 @@ namespace BootstrapBlazor.Components; public partial class ShieldBadge { /// - /// 获得/设置 图标 默认为 null - /// Gets or sets the icon. Default is null. + /// 获得/设置 图标,默认为 null + /// Gets or sets the icon. Default is null /// [Parameter] public string? Icon { get; set; } /// - /// 获得/设置 图标颜色 默认为 null - /// Gets or sets the icon color. Default is null. + /// 获得/设置 图标颜色,默认为 null + /// Gets or sets the icon color. Default is null /// [Parameter] public string? IconColor { get; set; } /// - /// 获得/设置 徽章文本 默认为 null - /// Gets or sets the text of badge. Default is null. + /// 获得/设置 徽章文本,默认为 null + /// Gets or sets the badge text. Default is null /// [Parameter] public string? Text { get; set; } /// - /// 获得/设置 文本颜色 默认为 null - /// Gets or sets the text color. Default is null. + /// 获得/设置 文本颜色,默认为 null + /// Gets or sets the text color. Default is null /// [Parameter] public string? TextColor { get; set; } /// - /// 获得/设置 文本背景颜色 默认为 null - /// Gets or sets the text background color. Default is null. + /// 获得/设置 文本背景颜色,默认为 null + /// Gets or sets the text background color. Default is null /// [Parameter] public string? TextBackgroundColor { get; set; } /// - /// 获得/设置 徽章标签 默认为 null - /// Gets or sets the label of badge. Default is null. + /// 获得/设置 徽章标签,默认为 null + /// Gets or sets the label of badge. Default is null /// [Parameter] public string? Label { get; set; } /// - /// 获得/设置 标签颜色 默认为 null - /// Gets or sets the label color of badge. Default is null. + /// 获得/设置 标签颜色,默认为 null + /// Gets or sets the label color of badge. Default is null /// [Parameter] public string? LabelColor { get; set; } /// - /// 获得/设置 标签背景颜色 默认为 null - /// Gets or sets the label background color. Default is null. + /// 获得/设置 标签背景颜色,默认为 null + /// Gets or sets the label background color. Default is null /// [Parameter] public string? LabelBackgroundColor { get; set; } /// /// 获得/设置 徽章圆角半径 默认为 3 - /// Gets or sets the badge radius. Default is 3. + /// Gets or sets the badge radius. Default is 3 /// [Parameter] public int Radius { get; set; } = 3; diff --git a/src/BootstrapBlazor/Components/Button/Button.razor.cs b/src/BootstrapBlazor/Components/Button/Button.razor.cs index 2d725c9b866..cca178d0e78 100644 --- a/src/BootstrapBlazor/Components/Button/Button.razor.cs +++ b/src/BootstrapBlazor/Components/Button/Button.razor.cs @@ -12,15 +12,15 @@ namespace BootstrapBlazor.Components; public partial class Button : ButtonBase { /// - /// 获得/设置 是否自动获取焦点 默认 false 不自动获取焦点 + /// 获得/设置 是否自动获取焦点,默认为 false /// Gets or sets whether to auto focus. Default is false /// [Parameter] public bool IsAutoFocus { get; set; } /// - /// 获得/设置 html button 实例 - /// Gets or sets the html button instance + /// 获得/设置 HTML button 元素实例 + /// Gets or sets the HTML button element reference /// protected ElementReference ButtonElement { get; set; } @@ -41,8 +41,8 @@ protected override async Task OnAfterRenderAsync(bool firstRender) } /// - /// OnClickButton 方法 - /// OnClickButton method + /// 点击按钮事件处理方法 + /// Button click event handler method /// protected virtual async Task OnClickButton() { @@ -64,7 +64,7 @@ protected virtual async Task OnClickButton() } /// - /// 自动获得焦点方法 + /// 自动获得焦点的方法 /// Auto focus method /// public ValueTask FocusAsync() => ButtonElement.FocusAsync(); diff --git a/src/BootstrapBlazor/Components/Checkbox/Checkbox.razor.cs b/src/BootstrapBlazor/Components/Checkbox/Checkbox.razor.cs index fb0dd27759f..f0df7a27259 100644 --- a/src/BootstrapBlazor/Components/Checkbox/Checkbox.razor.cs +++ b/src/BootstrapBlazor/Components/Checkbox/Checkbox.razor.cs @@ -14,10 +14,6 @@ namespace BootstrapBlazor.Components; [BootstrapModuleAutoLoader(JSObjectReference = true)] public partial class Checkbox : ValidateBase { - /// - /// 获得 class 样式集合 - /// Get the class style collection - /// private string? ClassString => CssBuilder.Default("form-check") .AddClass("is-label", IsShowAfterLabel) .AddClass($"form-check-{Color.ToDescriptionString()}", Color != Color.None) @@ -31,7 +27,7 @@ public partial class Checkbox : ValidateBase /// /// Input 元素样式 - /// Input element style + /// Input element CSS class /// protected string? InputClassString => CssBuilder.Default("form-check-input") .AddClass($"border-{Color.ToDescriptionString()}", Color != Color.None) @@ -48,29 +44,25 @@ public partial class Checkbox : ValidateBase _ => null }; - /// - /// 判断双向绑定类型是否为 boolean 类型 - /// Determine whether the two-way binding type is boolean - /// private bool IsBoolean { get; set; } /// - /// 获得/设置 按钮颜色 默认为 None 未设置 - /// Gets or sets the button color. Default is None (not set) + /// 获得/设置 按钮颜色,默认为 + /// Gets or sets the button color. Default is /// [Parameter] public Color Color { get; set; } /// - /// 获得/设置 Size 大小 默认为 None - /// Gets or sets the Size. Default is None + /// 获得/设置 Size 大小,默认为 + /// Gets or sets the size. Default is /// [Parameter] public Size Size { get; set; } /// - /// 获得/设置 是否显示 Checkbox 后置 label 文字 默认为 false - /// Gets or sets whether to show the Checkbox post label text. Default is false + /// 获得/设置 是否显示 Checkbox 后置 label 文字,默认为 false + /// Gets or sets whether to show the checkbox post label text. Default is false /// [Parameter] public bool ShowAfterLabel { get; set; } @@ -83,15 +75,15 @@ public partial class Checkbox : ValidateBase public CheckboxState State { get; set; } /// - /// 获得/设置 State 状态改变回调方法 - /// Gets or sets the State change callback method + /// 获得/设置 State 状态改变的回调方法 + /// Gets or sets the state change callback method /// /// [Parameter] public EventCallback StateChanged { get; set; } /// - /// 获得/设置 选中状态改变前回调此方法 返回 false 可以阻止状态改变 + /// 获得/设置 选中状态改变前的回调方法。返回 false 可以阻止状态改变 /// Gets or sets the callback method before the selected state changes. Returning false can prevent the state change /// [Parameter] diff --git a/src/BootstrapBlazor/Components/Dialog/Dialog.razor.cs b/src/BootstrapBlazor/Components/Dialog/Dialog.razor.cs index 81a3b6de3c0..0f42f073f57 100644 --- a/src/BootstrapBlazor/Components/Dialog/Dialog.razor.cs +++ b/src/BootstrapBlazor/Components/Dialog/Dialog.razor.cs @@ -6,7 +6,7 @@ namespace BootstrapBlazor.Components; /// -/// Dialog component +/// Dialog 组件 /// Dialog component /// public partial class Dialog : IDisposable diff --git a/src/BootstrapBlazor/Components/Filters/FilterBase.cs b/src/BootstrapBlazor/Components/Filters/FilterBase.cs index 483946edb84..d5c73631db1 100644 --- a/src/BootstrapBlazor/Components/Filters/FilterBase.cs +++ b/src/BootstrapBlazor/Components/Filters/FilterBase.cs @@ -126,14 +126,14 @@ protected virtual async Task OnFilterAsync() public abstract void Reset(); /// - /// 获得过滤窗口的所有条件方法 - /// Get All Conditions Method + /// 获得过滤窗口的所有条件的方法 + /// Gets all filter conditions /// public abstract FilterKeyValueAction GetFilterConditions(); /// - /// 设置过滤集合方法 - /// Set Filter Collection Method + /// 设置过滤集合的方法 + /// Sets the filter collection /// /// public virtual Task SetFilterConditionsAsync(FilterKeyValueAction filter) => OnFilterAsync(); diff --git a/src/BootstrapBlazor/Components/Input/BootstrapInput.razor.cs b/src/BootstrapBlazor/Components/Input/BootstrapInput.razor.cs index 6b4f082dbcc..554965bab2a 100644 --- a/src/BootstrapBlazor/Components/Input/BootstrapInput.razor.cs +++ b/src/BootstrapBlazor/Components/Input/BootstrapInput.razor.cs @@ -12,22 +12,22 @@ namespace BootstrapBlazor.Components; public partial class BootstrapInput { /// - /// 获得/设置 是否为只读 默认 false - /// Gets or sets Readonly. Default false + /// 获得/设置 是否为只读,默认为 false + /// Gets or sets whether readonly. Default is false /// [Parameter] public bool Readonly { get; set; } /// - /// 获得/设置 用户删除后是否自动更改为默认值 0 默认 false - /// Gets or sets Whether to automatically set default value when user deletes. Default false + /// 获得/设置 用户删除后是否自动更改为默认值 0,默认为 false + /// Gets or sets whether to automatically set default value when user deletes. Default is false /// [Parameter] public bool AutoSetDefaultWhenNull { get; set; } /// - /// 获得/设置 是否显示清空小按钮 默认 false - /// Gets or sets Whether to show clear button. Default false + /// 获得/设置 是否显示清空小按钮,默认为 false + /// Gets or sets whether to show clear button. Default is false /// [Parameter] [Obsolete("已弃用,请使用 IsClearable 参数;Deprecated use the IsClearable parameter")] @@ -35,22 +35,22 @@ public partial class BootstrapInput public bool Clearable { get => IsClearable; set => IsClearable = value; } /// - /// 获得/设置 是否显示清空小按钮 默认 false - /// Gets or sets Whether to show clear button. Default false + /// 获得/设置 是否显示清空小按钮,默认为 false + /// Gets or sets whether to show clear button. Default is false /// [Parameter] public bool IsClearable { get; set; } /// - /// 获得/设置 清空文本框时回调方法 默认 null - /// Gets or sets Callback when clearing text box. Default null + /// 获得/设置 清空文本框时的回调方法,默认为 null + /// Gets or sets the callback method when clearing text box. Default is null /// [Parameter] public Func? OnClear { get; set; } /// - /// 获得/设置 清空小按钮图标 默认 null - /// Gets or sets Clear button icon. Default null + /// 获得/设置 清空小按钮图标,默认为 null + /// Gets or sets the clear button icon. Default is null /// [Parameter] [Obsolete("已弃用,请使用 ClearIcon 参数;Deprecated use the ClearIcon parameter")] @@ -58,16 +58,12 @@ public partial class BootstrapInput public string? ClearableIcon { get => ClearIcon; set => ClearIcon = value; } /// - /// 获得/设置 清空小按钮图标 默认 null - /// Gets or sets Clear button icon. Default null + /// 获得/设置 清空小按钮图标,默认为 null + /// Gets or sets the clear button icon. Default is null /// [Parameter] public string? ClearIcon { get; set; } - /// - /// 图标主题服务 - /// Icon Theme Service - /// [Inject] [NotNull] private IIconTheme? IconTheme { get; set; } diff --git a/src/BootstrapBlazor/Components/RibbonTab/RibbonTab.razor.cs b/src/BootstrapBlazor/Components/RibbonTab/RibbonTab.razor.cs index 78e83c9870c..c693d4d83a5 100644 --- a/src/BootstrapBlazor/Components/RibbonTab/RibbonTab.razor.cs +++ b/src/BootstrapBlazor/Components/RibbonTab/RibbonTab.razor.cs @@ -73,9 +73,7 @@ public partial class RibbonTab /// [Parameter] [NotNull] -#if NET6_0_OR_GREATER [EditorRequired] -#endif public IEnumerable? Items { get; set; } /// diff --git a/src/BootstrapBlazor/Components/Search/Search.razor.cs b/src/BootstrapBlazor/Components/Search/Search.razor.cs index a5d5fa7ef2a..ad71093732f 100644 --- a/src/BootstrapBlazor/Components/Search/Search.razor.cs +++ b/src/BootstrapBlazor/Components/Search/Search.razor.cs @@ -8,120 +8,120 @@ namespace BootstrapBlazor.Components; /// -/// Search component +/// 搜索组件 /// Search component /// public partial class Search { /// - /// 获得/设置 the 图标 模板. 默认为 null if not set. - /// Gets or sets the icon template. Default is null if not set. + /// 获得/设置 图标模板,默认为 null + /// Gets or sets the icon template. Default is null if not set /// [Parameter] public RenderFragment>? IconTemplate { get; set; } /// - /// 获得/设置 是否 to show the clear 按钮. 默认为 false. - /// Gets or sets whether to show the clear button. Default is false. + /// 获得/设置 是否显示清空按钮,默认为 false + /// Gets or sets whether to show the clear button. Default is false /// [Parameter] public bool ShowClearButton { get; set; } /// - /// 获得/设置 the 图标 of clear 按钮. 默认为 null. - /// Gets or sets the icon of clear button. Default is null. + /// 获得/设置 清空按钮的图标,默认为 null + /// Gets or sets the icon of clear button. Default is null /// [Parameter] public string? ClearButtonIcon { get; set; } /// - /// 获得/设置 the text of clear 按钮. 默认为 null. - /// Gets or sets the text of clear button. Default is null. + /// 获得/设置 清空按钮的文本,默认为 null + /// Gets or sets the text of clear button. Default is null /// [Parameter] public string? ClearButtonText { get; set; } /// - /// 获得/设置 the 颜色 of clear 按钮. 默认为 . - /// Gets or sets the color of clear button. Default is . + /// 获得/设置 清空按钮的颜色,默认为 + /// Gets or sets the color of clear button. Default is /// [Parameter] public Color ClearButtonColor { get; set; } = Color.Primary; /// - /// 获得/设置 是否 to show the search 按钮. 默认为 true. - /// Gets or sets whether to show the search button. Default is true. + /// 获得/设置 是否显示搜索按钮,默认为 true + /// Gets or sets whether to show the search button. Default is true /// [Parameter] public bool ShowSearchButton { get; set; } = true; /// - /// 获得/设置 the search 按钮 颜色. 默认为 . - /// Gets or sets the search button color. Default is . + /// 获得/设置 搜索按钮的颜色,默认为 + /// Gets or sets the search button color. Default is /// [Parameter] public Color SearchButtonColor { get; set; } = Color.Primary; /// - /// 获得/设置 the search 按钮 图标. 默认为 null. - /// Gets or sets the search button icon. Default is null. + /// 获得/设置 搜索按钮的图标,默认为 null + /// Gets or sets the search button icon. Default is null /// [Parameter] public string? SearchButtonIcon { get; set; } /// - /// 获得/设置 the loading 图标 for the search 按钮. 默认为 null. - /// Gets or sets the loading icon for the search button. Default is null. + /// 获得/设置 搜索按钮的加载图标,默认为 null + /// Gets or sets the loading icon for the search button. Default is null /// [Parameter] public string? SearchButtonLoadingIcon { get; set; } /// - /// 获得/设置 the search 按钮 text. 默认为 null. - /// Gets or sets the search button text. Default is null. + /// 获得/设置 搜索按钮的文本,默认为 null + /// Gets or sets the search button text. Default is null /// [Parameter] [NotNull] public string? SearchButtonText { get; set; } /// - /// 获得/设置 the 按钮 模板. 默认为 null. - /// Gets or sets the button template. Default is null. + /// 获得/设置 按钮模板,默认为 null + /// Gets or sets the button template. Default is null /// [Parameter] public RenderFragment>? ButtonTemplate { get; set; } /// - /// 获得/设置 the prefix 按钮 模板. 默认为 null. - /// Gets or sets the prefix button template. Default is null. + /// 获得/设置 前缀按钮模板,默认为 null + /// Gets or sets the prefix button template. Default is null /// [Parameter] public RenderFragment>? PrefixButtonTemplate { get; set; } /// - /// 获得/设置 是否 to show the prefix 图标. 默认为 false. - /// Gets or sets whether to show the prefix icon. Default is false. + /// 获得/设置 是否显示前缀图标,默认为 false + /// Gets or sets whether to show the prefix icon. Default is false /// [Parameter] public bool ShowPrefixIcon { get; set; } /// - /// 获得/设置 the prefix 图标. 默认为 null. - /// Gets or sets the prefix icon. Default is null. + /// 获得/设置 前缀图标,默认为 null + /// Gets or sets the prefix icon. Default is null /// [Parameter] public string? PrefixIcon { get; set; } /// - /// 获得/设置 the prefix 图标 模板. 默认为 null. - /// Gets or sets the prefix icon template. Default is null. + /// 获得/设置 前缀图标模板,默认为 null + /// Gets or sets the prefix icon template. Default is null /// [Parameter] public RenderFragment>? PrefixIconTemplate { get; set; } /// - /// 获得/设置 是否 to automatically clear the search box after searching. Deprecated. - /// Gets or sets whether to automatically clear the search box after searching. Deprecated. + /// 获得/设置 搜索后是否自动清空搜索框(已弃用) + /// Gets or sets whether to automatically clear the search box after searching. Deprecated /// [Parameter] [Obsolete("Deprecated. Just delete it.")] @@ -129,30 +129,30 @@ public partial class Search public bool IsAutoClearAfterSearch { get; set; } /// - /// 获得/设置 是否 the search is triggered by input. 默认为 true. If false, the search 按钮 must be clicked to trigger. - /// Gets or sets whether the search is triggered by input. Default is true. If false, the search button must be clicked to trigger. + /// 获得/设置 搜索是否由输入触发,默认为 true。如果为 false,必须点击搜索按钮来触发 + /// Gets or sets whether the search is triggered by input. Default is true. If false, the search button must be clicked to trigger /// [Parameter] public bool IsTriggerSearchByInput { get; set; } = true; /// - /// 获得/设置 the 回调 委托 when the search 按钮 is clicked. - /// Gets or sets the callback delegate when the search button is clicked. + /// 获得/设置 点击搜索按钮时的回调委托 + /// Gets or sets the callback delegate when the search button is clicked /// [Parameter] public Func>>? OnSearch { get; set; } /// - /// 获得/设置 the 回调方法 to get 显示 text. 默认为 null, using ToString() method. - /// Gets or sets the callback method to get display text. Default is null, using ToString() method. + /// 获得/设置 获取显示文本的回调方法,默认为 null,使用 ToString() 方法 + /// Gets or sets the callback method to get display text. Default is null, using ToString() method /// [Parameter] [NotNull] public Func? OnGetDisplayText { get; set; } /// - /// 获得/设置 the event 回调 when the clear 按钮 is clicked. 默认为 null. - /// Gets or sets the event callback when the clear button is clicked. Default is null. + /// 获得/设置 点击清空按钮时的事件回调,默认为 null(已弃用,已并入 OnSearch 方法中) + /// Gets or sets the event callback when the clear button is clicked. Default is null /// [Parameter] [Obsolete("已取消 合并到 OnSearch 方法中; Deprecated. Merged into the OnSearch method")] @@ -212,8 +212,6 @@ protected override void OnParametersSet() NoDataTip ??= Localizer[nameof(NoDataTip)]; _filterItems ??= []; - // 这里应该获得初始值 - // Should get initial value here _displayText = GetDisplayText(Value); if (Debounce == 0) @@ -247,8 +245,6 @@ private async Task OnSearchClick() private async Task OnClearClick() { - // 使用脚本更新 input 值 - // Update input value using script await InvokeVoidAsync("setValue", Id, ""); _displayText = null; @@ -270,8 +266,6 @@ private async Task OnClickItem(TValue val) CurrentValue = val; _displayText = GetDisplayText(val); - // 使用脚本更新 input 值 - // Update input value using script await InvokeVoidAsync("setValue", Id, _displayText); if (OnSelectedItemChanged != null) @@ -286,8 +280,8 @@ private async Task OnClickItem(TValue val) } /// - /// TriggerFilter method called by Javascript. - /// TriggerFilter method called by Javascript. + /// 触发 TriggerFilter 方法由 Javascript 调用 + /// TriggerFilter method called by Javascript /// /// [JSInvokable] diff --git a/src/BootstrapBlazor/Components/Segmented/Segmented.razor.cs b/src/BootstrapBlazor/Components/Segmented/Segmented.razor.cs index 8877ce390bf..5a4e73d2460 100644 --- a/src/BootstrapBlazor/Components/Segmented/Segmented.razor.cs +++ b/src/BootstrapBlazor/Components/Segmented/Segmented.razor.cs @@ -9,9 +9,7 @@ namespace BootstrapBlazor.Components; /// Segmented 组件 /// Segmented Component /// -#if NET6_0_OR_GREATER [CascadingTypeParameter(nameof(TValue))] -#endif public partial class Segmented { private string? ClassString => CssBuilder.Default("segmented") diff --git a/src/BootstrapBlazor/Components/Segmented/SegmentedItem.cs b/src/BootstrapBlazor/Components/Segmented/SegmentedItem.cs index 8b23370410a..44a73e0f0ce 100644 --- a/src/BootstrapBlazor/Components/Segmented/SegmentedItem.cs +++ b/src/BootstrapBlazor/Components/Segmented/SegmentedItem.cs @@ -91,10 +91,8 @@ protected virtual void Dispose(bool disposing) } /// - /// 资源销毁方法 - /// Dispose Method + /// /// - /// public void Dispose() { Dispose(true); diff --git a/src/BootstrapBlazor/Components/Segmented/SegmentedOption.cs b/src/BootstrapBlazor/Components/Segmented/SegmentedOption.cs index e7e101ab471..57bd2a8ccf7 100644 --- a/src/BootstrapBlazor/Components/Segmented/SegmentedOption.cs +++ b/src/BootstrapBlazor/Components/Segmented/SegmentedOption.cs @@ -42,8 +42,8 @@ public class SegmentedOption public string? Icon { get; set; } /// - /// 组件内容 - /// Child Content + /// 获得/设置 组件内容 + /// Gets or sets Child Content /// public RenderFragment? ChildContent { get; set; } } diff --git a/src/BootstrapBlazor/Components/Select/MultiSelect.razor.cs b/src/BootstrapBlazor/Components/Select/MultiSelect.razor.cs index c58129af15e..663ecc0c3fb 100644 --- a/src/BootstrapBlazor/Components/Select/MultiSelect.razor.cs +++ b/src/BootstrapBlazor/Components/Select/MultiSelect.razor.cs @@ -10,7 +10,7 @@ namespace BootstrapBlazor.Components; /// -/// MultiSelect component +/// 多选组件 /// MultiSelect component /// public partial class MultiSelect @@ -95,12 +95,9 @@ public partial class MultiSelect public bool IsSingleLine { get; set; } /// - /// 获得/设置 编辑模式下输入选项更新后回调方法 默认 null - /// Gets or sets Callback method after input option updated in edit mode. Default null - /// 返回 实例时输入选项生效,返回 null 时选项不生效进行舍弃操作,建议在回调方法中自行提示 - /// Return instance to take effect, return null to discard, recommend prompt in callback method + /// 获得/设置 编辑模式下输入选项更新后回调方法 默认 null 返回 实例时输入选项生效,返回 null 时选项不生效进行舍弃操作,建议在回调方法中自行提示 + /// Gets or sets Callback method after input option updated in edit mode. Default null. Return instance to take effect, return null to discard, recommend prompt in callback method /// - /// Effective when is set. [Parameter] public Func>? OnEditCallback { get; set; } @@ -218,8 +215,6 @@ protected override void OnParametersSet() _itemsCache = null; - // 通过 Value 对集合进行赋值 - // Assign collection by Value var _currentValue = CurrentValueAsString; if (_lastSelectedValueString != _currentValue) { @@ -289,10 +284,6 @@ private List GetItemsByVirtualize() private async ValueTask> LoadItems(ItemsProviderRequest request) { - // 有搜索条件时使用原生请求数量 - // Use original request count when there is search condition - // 有总数时请求剩余数量 - // Request remaining count when there is total count var count = !string.IsNullOrEmpty(SearchText) ? request.Count : GetCountByTotal(); var data = await OnQueryAsync(new() { StartIndex = request.StartIndex, Count = count, SearchText = SearchText }); @@ -383,8 +374,6 @@ public async Task ToggleRow(string val) } _isToggle = true; - // 更新选中值 - // Update selected value await SetValue(); } } @@ -413,8 +402,6 @@ public async Task TriggerEditTag(string val) { SelectedItems.Add(ret); } - // 更新选中值 - // Update selected value _isToggle = true; await SetValue(); } @@ -586,10 +573,6 @@ private void ResetItems() { if (Items == null) { - // 判断 IEnumerable<T> 泛型 T 是否为 Enum - // Determine if generic T of IEnumerable<T> is Enum - // 特别注意 string 是 IEnumerable 的实例 - // Note that string is an instance of IEnumerable var type = typeof(TValue); Type? innerType; if (type.IsGenericType && type.IsAssignableTo(typeof(IEnumerable))) diff --git a/src/BootstrapBlazor/Components/Select/Select.razor.cs b/src/BootstrapBlazor/Components/Select/Select.razor.cs index 212d58a8b1a..c5f2697756d 100644 --- a/src/BootstrapBlazor/Components/Select/Select.razor.cs +++ b/src/BootstrapBlazor/Components/Select/Select.razor.cs @@ -9,7 +9,7 @@ namespace BootstrapBlazor.Components; /// -/// Select component +/// Select 组件 /// Select component /// /// @@ -29,7 +29,7 @@ public partial class Select : ISelect, ILookup /// /// 获得/设置 值为 null 时是否使用第一个选项或者标记为 active 的候选项作为默认值 - /// Gets or sets a value indicating Whether to use the first option or the candidate marked as active as the default value when the value is null + /// Gets or sets whether to use the first option or the candidate marked as active as the default value when the value is null /// [Parameter] [Obsolete("已弃用,请使用 IsUseDefaultItemWhenValueIsNull 参数代替;Deprecated, use the IsUseDefaultItemWhenValueIsNull parameter instead")] @@ -42,124 +42,124 @@ public bool IsUseActiveWhenValueIsNull /// /// 获得/设置 值为 null 时是否使用第一个选项或者标记为 active 的候选项作为默认值 - /// Gets or sets a value indicating Whether to use the first option or the candidate marked as active as the default value when the value is null + /// Gets or sets whether to use the first option or the candidate marked as active as the default value when the value is null /// [Parameter] public bool IsUseDefaultItemWhenValueIsNull { get; set; } /// - /// 获得/设置 the 显示 模板. 默认为 null. - /// Gets or sets the display template. Default is null. + /// 获得/设置 显示模板,默认为 null + /// Gets or sets the display template. Default is null /// [Parameter] public RenderFragment? DisplayTemplate { get; set; } /// - /// 获得/设置 the 回调方法 when the input value changes. 默认为 null. - /// Gets or sets the callback method when the input value changes. Default is null. + /// 获得/设置 输入值改变时的回调方法,默认为 null + /// Gets or sets the callback method when the input value changes. Default is null /// /// Effective when is set. [Parameter] public Func? OnInputChangedCallback { get; set; } /// - /// 获得/设置 the options 模板 for static 数据. - /// Gets or sets the options template for static data. + /// 获得/设置 静态数据的选项模板 + /// Gets or sets the options template for static data /// [Parameter] public RenderFragment? Options { get; set; } /// - /// 获得/设置 是否 to disable the OnSelectedItemChanged 回调方法 on first render. 默认为 false. - /// Gets or sets whether to disable the OnSelectedItemChanged callback method on first render. Default is false. + /// 获得/设置 是否在首次渲染时禁用 OnSelectedItemChanged 回调方法,默认为 false + /// Gets or sets whether to disable the OnSelectedItemChanged callback method on first render. Default is false /// [Parameter] public bool DisableItemChangedWhenFirstRender { get; set; } /// - /// 获取/设置 选中项改变前的回调方法。返回 true 则改变选中项的值;否则选中项的值不变。 - /// Gets or sets the callback method before the selected item changes. Returns true to change the selected item value; otherwise, the selected item value does not change. + /// 获得/设置 选中项改变前的回调方法。返回 true 则改变选中项的值;否则选中项的值不变 + /// Gets or sets the callback method before the selected item changes. Returns true to change the selected item value; otherwise, the selected item value does not change /// [Parameter] public Func>? OnBeforeSelectedItemChange { get; set; } /// - /// 获得/设置 是否显示 Swal 确认弹窗 默认值 为 false - /// Gets or sets whether to show the Swal confirmation popup. Default is false. + /// 获得/设置 是否显示 Swal 确认弹窗,默认为 false + /// Gets or sets whether to show the Swal confirmation popup. Default is false /// [Parameter] public bool ShowSwal { get; set; } /// - /// 获得/设置 the 回调方法 when the selected item changes. - /// Gets or sets the callback method when the selected item changes. + /// 获得/设置 选中项改变时的回调方法 + /// Gets or sets the callback method when the selected item changes /// [Parameter] public Func? OnSelectedItemChanged { get; set; } /// - /// 获得/设置 the Swal category. 默认为 Question. - /// Gets or sets the Swal category. Default is Question. + /// 获得/设置 Swal 类别,默认为 Question + /// Gets or sets the Swal category. Default is Question /// [Parameter] public SwalCategory SwalCategory { get; set; } = SwalCategory.Question; /// - /// 获得/设置 the Swal title. 默认为 null. - /// Gets or sets the Swal title. Default is null. + /// 获得/设置 Swal 标题,默认为 null + /// Gets or sets the Swal title. Default is null /// [Parameter] public string? SwalTitle { get; set; } /// - /// 获得/设置 the Swal 内容. 默认为 null. - /// Gets or sets the Swal content. Default is null. + /// 获得/设置 Swal 内容,默认为 null + /// Gets or sets the Swal content. Default is null /// [Parameter] public string? SwalContent { get; set; } /// - /// 获得/设置 the Swal footer. 默认为 null. - /// Gets or sets the Swal footer. Default is null. + /// 获得/设置 Swal 底部内容,默认为 null + /// Gets or sets the Swal footer. Default is null /// [Parameter] public string? SwalFooter { get; set; } /// - /// + /// /// [Parameter] public ILookupService? LookupService { get; set; } /// - /// + /// /// [Parameter] public string? LookupServiceKey { get; set; } /// - /// + /// /// [Parameter] public object? LookupServiceData { get; set; } /// - /// 获得/设置 the default text for virtualized items. 默认为 null. - /// Gets or sets the default text for virtualized items. Default is null. + /// 获得/设置 虚拟化项目的默认文本,默认为 null + /// Gets or sets the default text for virtualized items. Default is null /// [Parameter] public string? DefaultVirtualizeItemText { get; set; } /// - /// 获得/设置 是否 auto clear the search text when dropdown closed. - /// Gets or sets whether auto clear the search text when dropdown closed. + /// 获得/设置 下拉框关闭时是否自动清空搜索文本 + /// Gets or sets whether auto clear the search text when dropdown closed /// [Parameter] public bool IsAutoClearSearchTextWhenCollapsed { get; set; } /// - /// 获得/设置 the dropdown collapsed 回调方法. - /// Gets or sets the dropdown collapsed callback method. + /// 获得/设置 下拉框关闭时的回调方法 + /// Gets or sets the dropdown collapsed callback method /// [Parameter] public Func? OnCollapsed { get; set; } @@ -245,8 +245,6 @@ protected override async Task OnParametersSetAsync() Items ??= await this.GetItemsAsync(InjectLookupService, LookupServiceKey, LookupServiceData) ?? []; - // 内置对枚举类型的支持 - // Built-in support for enum types if (!Items.Any() && ValueType.IsEnum()) { var item = NullableUnderlyingType == null ? "" : PlaceHolder; @@ -263,10 +261,6 @@ protected override async Task OnParametersSetAsync() private async ValueTask> LoadItems(ItemsProviderRequest request) { - // 有搜索条件时使用原生请求数量 - // Use original request count when there is search condition - // 有总数时请求剩余数量 - // Request remaining count when there is total count var count = !string.IsNullOrEmpty(SearchText) ? request.Count : GetCountByTotal(); var data = await OnQueryAsync(new() { StartIndex = request.StartIndex, Count = count, SearchText = SearchText }); @@ -359,7 +353,6 @@ protected override List GetRowsByItems() /// Confirms the selected item. /// /// The index of the selected item. - /// A task that represents the asynchronous operation. [JSInvokable] public async Task ConfirmSelectedItem(int index) { @@ -370,25 +363,14 @@ public async Task ConfirmSelectedItem(int index) } } - /// - /// Handles the click event for a dropdown item. - /// Handles the click event for a dropdown item. - /// - /// The selected item. - /// A task that represents the asynchronous operation. private async Task OnClickItem(SelectedItem item) { var ret = true; - - // 自定义回调方法 OnBeforeSelectedItemChange 返回 false 时不修改选中项 - // Do not modify the selected item when the custom callback method OnBeforeSelectedItemChange returns false if (OnBeforeSelectedItemChange != null) { ret = await OnBeforeSelectedItemChange(item); } - // 如果 ShowSwal 为 true 且 则显示 Swal 确认弹窗,通过确认弹窗返回值决定是否修改选中项 - // If ShowSwal is true, show the Swal confirmation popup and decide whether to modify the selected item based on the confirmation popup return value if (ret && ShowSwal) { var option = new SwalOption() @@ -405,8 +387,6 @@ private async Task OnClickItem(SelectedItem item) ret = await SwalService.ShowModal(option); } - // 如果 ret 为 true 则修改选中项 - // If ret is true, modify the selected item if (ret) { _defaultVirtualizedItemText = item.Text; @@ -456,8 +436,6 @@ private async Task OnChange(ChangeEventArgs args) { if (args.Value is string v) { - // Items 中没有时插入一个 SelectedItem - // Insert a SelectedItem when it is not in Items var item = Items.FirstOrDefault(i => i.Text == v); if (item == null) diff --git a/src/BootstrapBlazor/Components/Select/SelectBase.cs b/src/BootstrapBlazor/Components/Select/SelectBase.cs index 69e7713fbc4..145d031d9cd 100644 --- a/src/BootstrapBlazor/Components/Select/SelectBase.cs +++ b/src/BootstrapBlazor/Components/Select/SelectBase.cs @@ -6,56 +6,56 @@ namespace BootstrapBlazor.Components; /// -/// SelectBase component base class +/// SelectBase 组件基类 /// SelectBase component base class /// /// The type of the value. public abstract class SelectBase : PopoverSelectBase { /// - /// 获得/设置 the 颜色. default is (no 颜色). + /// 获得/设置 颜色,默认值为 (无颜色) /// Gets or sets the color. The default is (no color). /// [Parameter] public Color Color { get; set; } /// - /// 获得/设置 a value indicating 是否 to show the search box. default is false. + /// 获得/设置 是否显示搜索框,默认值为 false /// Gets or sets a value indicating whether to show the search box. The default is false. /// [Parameter] public bool ShowSearch { get; set; } /// - /// 获得/设置 the search 图标. + /// 获得/设置 搜索图标 /// Gets or sets the search icon. /// [Parameter] public string? SearchIcon { get; set; } /// - /// 获得/设置 the search loading 图标. + /// 获得/设置 搜索加载图标 /// Gets or sets the search loading icon. /// [Parameter] public string? SearchLoadingIcon { get; set; } /// - /// 获得/设置 the search text. + /// 获得/设置 搜索文本 /// Gets or sets the search text. /// [NotNull] protected string? SearchText { get; set; } /// - /// 获得/设置 the text to 显示 when no search results are found. + /// 获得/设置 未找到搜索结果时显示的文本 /// Gets or sets the text to display when no search results are found. /// [Parameter] public string? NoSearchDataText { get; set; } /// - /// 获得/设置 the dropdown 图标. default is "fa-solid fa-angle-up". + /// 获得/设置 下拉图标,默认值为 "fa-solid fa-angle-up" /// Gets or sets the dropdown icon. The default is "fa-solid fa-angle-up". /// [Parameter] @@ -63,35 +63,35 @@ public abstract class SelectBase : PopoverSelectBase public string? DropdownIcon { get; set; } /// - /// 获得/设置 a value indicating 是否 the 内容 is a . default is false. + /// 获得/设置 内容是否为 ,默认值为 false /// Gets or sets a value indicating whether the content is a . The default is false. /// [Parameter] public bool IsMarkupString { get; set; } /// - /// 获得/设置 the string comparison rule. default is . + /// 获得/设置 字符串比较规则,默认值为 /// Gets or sets the string comparison rule. The default is . /// [Parameter] public StringComparison StringComparison { get; set; } = StringComparison.OrdinalIgnoreCase; /// - /// 获得/设置 the group item 模板. + /// 获得/设置 分组项模板 /// Gets or sets the group item template. /// [Parameter] public RenderFragment? GroupItemTemplate { get; set; } /// - /// 获得/设置 the scroll behavior. default is . + /// 获得/设置 滚动行为,默认值为 /// Gets or sets the scroll behavior. The default is . /// [Parameter] public ScrollIntoViewBehavior ScrollIntoViewBehavior { get; set; } = ScrollIntoViewBehavior.Smooth; /// - /// 获得/设置 the service 实例. + /// 获得/设置 服务实例 /// Gets or sets the service instance. /// [Inject] @@ -99,21 +99,21 @@ public abstract class SelectBase : PopoverSelectBase protected IIconTheme? IconTheme { get; set; } /// - /// 获得/设置 the placeholder text. + /// 获得/设置 placeholder 文本 /// Gets or sets the placeholder text. /// [Parameter] public string? PlaceHolder { get; set; } /// - /// 获得/设置 是否 virtual scrolling is enabled. 默认为 false. + /// 获得/设置 是否启用虚拟滚动,默认值为 false /// Gets or sets whether virtual scrolling is enabled. Default is false. /// [Parameter] public bool IsVirtualize { get; set; } /// - /// 获得/设置 the row 高度 for virtual scrolling. 默认为 33. + /// 获得/设置 虚拟滚动的行高度,默认值为 33 /// Gets or sets the row height for virtual scrolling. Default is 33. /// /// Effective when is set to true. @@ -121,7 +121,7 @@ public abstract class SelectBase : PopoverSelectBase public float RowHeight { get; set; } = 33f; /// - /// 获得/设置 the overscan count for virtual scrolling. 默认为 4. + /// 获得/设置 虚拟滚动的超量显示数量,默认值为 4 /// Gets or sets the overscan count for virtual scrolling. Default is 4. /// /// Effective when is set to true. @@ -129,14 +129,14 @@ public abstract class SelectBase : PopoverSelectBase public int OverscanCount { get; set; } = 4; /// - /// 获得/设置 the 回调方法 when the clear 按钮 is clicked. 默认为 null. + /// 获得/设置 当清除按钮被点击时的回调方法,默认值为 null /// Gets or sets the callback method when the clear button is clicked. Default is null. /// [Parameter] public Func? OnClearAsync { get; set; } /// - /// 获得/设置 the right-side clear 图标. 默认为 fa-solid fa-angle-up. + /// 获得/设置 右侧清除图标,默认值为 fa-solid fa-angle-up /// Gets or sets the right-side clear icon. Default is fa-solid fa-angle-up. /// [Parameter] @@ -144,14 +144,14 @@ public abstract class SelectBase : PopoverSelectBase public string? ClearIcon { get; set; } /// - /// 获得/设置 是否 the select component is clearable. 默认为 false. + /// 获得/设置 选择组件是否可以清除,默认值为 false /// Gets or sets whether the select component is clearable. Default is false. /// [Parameter] public bool IsClearable { get; set; } /// - /// 获得 the search 图标 string with default "图标 search-图标" class. + /// 获得 搜索图标的字符串,默认值为 "图标 search-图标" 类 /// Gets the search icon string with default "icon search-icon" class. /// protected string? SearchIconString => CssBuilder.Default("icon search-icon") @@ -159,7 +159,7 @@ public abstract class SelectBase : PopoverSelectBase .Build(); /// - /// 获得 the custom class string. + /// 获得 自定义类的字符串 /// Gets the custom class string. /// protected override string? CustomClassString => CssBuilder.Default() @@ -168,7 +168,7 @@ public abstract class SelectBase : PopoverSelectBase .Build(); /// - /// 获得 the append class string. + /// 获得 附加类的字符串 /// Gets the append class string. /// protected string? AppendClassString => CssBuilder.Default("form-select-append") @@ -178,7 +178,7 @@ public abstract class SelectBase : PopoverSelectBase .Build(); /// - /// 获得 the clear 图标 class string. + /// 获得 清除图标的类的字符串 /// Gets the clear icon class string. /// protected string? ClearClassString => CssBuilder.Default("clear-icon") @@ -188,7 +188,7 @@ public abstract class SelectBase : PopoverSelectBase .Build(); /// - /// 获得 the SearchLoadingIcon 图标 class string. + /// 获得 搜索加载图标的类的字符串 /// Gets the SearchLoadingIcon icon class string. /// protected string? SearchLoadingIconString => CssBuilder.Default("icon searching-icon") @@ -207,14 +207,14 @@ protected override void OnParametersSet() } /// - /// Shows the dropdown. + /// 显示下拉菜单 /// Shows the dropdown. /// /// A representing the asynchronous operation. public Task Show() => InvokeVoidAsync("show", Id); /// - /// Hides the dropdown. + /// 隐藏下拉菜单 /// Hides the dropdown. /// /// A representing the asynchronous operation. @@ -223,19 +223,19 @@ protected override void OnParametersSet() private bool IsNullable() => !ValueType.IsValueType || NullableUnderlyingType != null; /// - /// 获得 是否 show the clear 按钮. + /// 获得 是否显示清除按钮 /// Gets whether show the clear button. /// protected bool GetClearable() => IsClearable && !IsDisabled && IsNullable(); /// - /// Clears the search text. + /// 清除搜索文本 /// Clears the search text. /// public void ClearSearchText() => SearchText = null; /// - /// Clears the selected value. + /// 清除选中的值 /// Clears the selected value. /// protected virtual async Task OnClearValue() diff --git a/src/BootstrapBlazor/Components/Select/SelectObject.razor.cs b/src/BootstrapBlazor/Components/Select/SelectObject.razor.cs index 71112ad3351..3c8176d87b7 100644 --- a/src/BootstrapBlazor/Components/Select/SelectObject.razor.cs +++ b/src/BootstrapBlazor/Components/Select/SelectObject.razor.cs @@ -84,20 +84,12 @@ public partial class SelectObject [NotNull] protected IIconTheme? IconTheme { get; set; } - /// - /// 获得 样式集合 - /// Get Class Name - /// private string? ClassName => CssBuilder.Default("select select-object dropdown") .AddClass("disabled", IsDisabled) .AddClass("is-clearable", IsClearable) .AddClassFromAttributes(AdditionalAttributes) .Build(); - /// - /// 获得 样式集合 - /// Get Input Class Name - /// private string? InputClassName => CssBuilder.Default("form-select form-control") .AddClass($"border-{Color.ToDescriptionString()}", Color != Color.None && !IsDisabled && !IsValid.HasValue) .AddClass($"border-success", IsValid.HasValue && IsValid.Value) @@ -106,10 +98,6 @@ public partial class SelectObject .AddClass(ValidCss) .Build(); - /// - /// 获得 样式集合 - /// Get Append Class Name - /// private string? AppendClassString => CssBuilder.Default("form-select-append") .AddClass($"text-{Color.ToDescriptionString()}", Color != Color.None && !IsDisabled && !IsValid.HasValue) .AddClass($"text-success", IsValid.HasValue && IsValid.Value) @@ -155,15 +143,10 @@ public partial class SelectObject private IStringLocalizer>? Localizer { get; set; } /// - /// 获得 input 组件 Id 方法 - /// Get input Component Id Method + /// /// protected override string? RetrieveId() => InputId; - /// - /// 获得/设置 内部 Input 组件 Id - /// Gets or sets Internal Input Component Id - /// private string InputId => $"{Id}_input"; private string GetStyleString => $"height: {Height}px;"; @@ -182,8 +165,7 @@ protected override void OnInitialized() } /// - /// OnParametersSet 方法 - /// OnParametersSet Method + /// /// protected override void OnParametersSet() { @@ -201,10 +183,6 @@ protected override void OnParametersSet() private bool GetClearable() => IsClearable && !IsDisabled; - /// - /// 获得 Text 显示文字 - /// Get Display Text - /// private string? GetText() => GetTextCallback(Value); /// diff --git a/src/BootstrapBlazor/Components/Select/SelectOption.cs b/src/BootstrapBlazor/Components/Select/SelectOption.cs index 95efb4805da..06704fbe933 100644 --- a/src/BootstrapBlazor/Components/Select/SelectOption.cs +++ b/src/BootstrapBlazor/Components/Select/SelectOption.cs @@ -6,42 +6,42 @@ namespace BootstrapBlazor.Components; /// -/// SelectOption component +/// SelectOption 组件 /// SelectOption component /// public class SelectOption : ComponentBase { /// - /// 获得/设置 the 显示 name. - /// Gets or sets the display name. + /// 获得/设置 显示名称 + /// Gets or sets the display name /// [Parameter] public string? Text { get; set; } /// - /// 获得/设置 the option value. - /// Gets or sets the option value. + /// 获得/设置 选项值 + /// Gets or sets the option value /// [Parameter] public string? Value { get; set; } /// - /// 获得/设置 a value indicating 是否 the option is selected. 默认为 false. - /// Gets or sets a value indicating whether the option is selected. Default is false. + /// 获得/设置 选项是否被选中,默认值为 false + /// Gets or sets a value indicating whether the option is selected. Default is false /// [Parameter] public bool Active { get; set; } /// - /// 获得/设置 a value indicating 是否 the option is disabled. 默认为 false. - /// Gets or sets a value indicating whether the option is disabled. Default is false. + /// 获得/设置 选项是否被禁用,默认值为 false + /// Gets or sets a value indicating whether the option is disabled. Default is false /// [Parameter] public bool IsDisabled { get; set; } /// - /// 获得/设置 the group name. - /// Gets or sets the group name. + /// 获得/设置 分组名称 + /// Gets or sets the group name /// [Parameter] public string? GroupName { get; set; } @@ -63,7 +63,6 @@ protected override void OnInitialized() /// Converts the current 实例 to a . /// Converts the current instance to a . /// - /// A instance. private SelectedItem ToSelectedItem() => new() { Active = Active, diff --git a/src/BootstrapBlazor/Components/Select/SelectTable.razor.cs b/src/BootstrapBlazor/Components/Select/SelectTable.razor.cs index 3680eed0988..60c8f4d5115 100644 --- a/src/BootstrapBlazor/Components/Select/SelectTable.razor.cs +++ b/src/BootstrapBlazor/Components/Select/SelectTable.razor.cs @@ -32,8 +32,8 @@ namespace BootstrapBlazor.Components; public Func>>? OnQueryAsync { get; set; } /// - /// 获得/设置 颜色 默认 Color.None 无设置 - /// Gets or sets Color. Default Color.None + /// 获得/设置 颜色 默认 无设置 + /// Gets or sets Color. Default /// [Parameter] public Color Color { get; set; } @@ -104,20 +104,12 @@ namespace BootstrapBlazor.Components; /// public List Columns { get; } = []; - /// - /// 获得 样式集合 - /// Get Class Name - /// private string? ClassName => CssBuilder.Default("select select-table dropdown") .AddClass("disabled", IsDisabled) .AddClass("is-clearable", IsClearable) .AddClassFromAttributes(AdditionalAttributes) .Build(); - /// - /// 获得 样式集合 - /// Get Input Class Name - /// private string? InputClassName => CssBuilder.Default("form-select form-control") .AddClass($"border-{Color.ToDescriptionString()}", Color != Color.None && !IsDisabled && !IsValid.HasValue) .AddClass($"border-success", IsValid.HasValue && IsValid.Value) @@ -126,10 +118,6 @@ namespace BootstrapBlazor.Components; .AddClass(ValidCss) .Build(); - /// - /// 获得 样式集合 - /// Get Append Class Name - /// private string? AppendClassString => CssBuilder.Default("form-select-append") .AddClass($"text-{Color.ToDescriptionString()}", Color != Color.None && !IsDisabled && !IsValid.HasValue) .AddClass($"text-success", IsValid.HasValue && IsValid.Value) @@ -139,8 +127,8 @@ namespace BootstrapBlazor.Components; private bool GetClearable() => IsClearable && !IsDisabled; /// - /// 获得/设置 右侧清除图标 默认 fa-solid fa-angle-up - /// Gets or sets Clear Icon. Default fa-solid fa-angle-up + /// 获得/设置 右侧清除图标 默认 null + /// Gets or sets Clear Icon. Default null /// [Parameter] [NotNull] @@ -243,15 +231,10 @@ namespace BootstrapBlazor.Components; private IStringLocalizer>? Localizer { get; set; } /// - /// 获得 input 组件 Id 方法 - /// Get input Component Id Method + /// /// protected override string? RetrieveId() => InputId; - /// - /// 获得/设置 内部 Input 组件 Id - /// Gets or sets Internal Input Component Id - /// private string InputId => $"{Id}_input"; private string GetStyleString => $"height: {Height}px;"; @@ -275,8 +258,7 @@ protected override void OnInitialized() } /// - /// OnParametersSet 方法 - /// OnParametersSet Method + /// /// protected override void OnParametersSet() { @@ -297,10 +279,6 @@ protected override void OnParametersSet() ClearIcon ??= IconTheme.GetIconByKey(ComponentIcons.SelectClearIcon); } - /// - /// 获得 Text 显示文字 - /// Get Display Text - /// private string? GetText() => Value == default ? null : GetTextCallback(Value); private async Task OnClickRowCallback(TItem item) diff --git a/src/BootstrapBlazor/Components/Select/SelectTree.razor.cs b/src/BootstrapBlazor/Components/Select/SelectTree.razor.cs index 7925246f8d3..0c3d317485d 100644 --- a/src/BootstrapBlazor/Components/Select/SelectTree.razor.cs +++ b/src/BootstrapBlazor/Components/Select/SelectTree.razor.cs @@ -14,18 +14,10 @@ namespace BootstrapBlazor.Components; /// public partial class SelectTree : IModelEqualityComparer { - /// - /// 获得 样式集合 - /// Get Class Name - /// private string? ClassName => CssBuilder.Default("select dropdown select-tree") .AddClassFromAttributes(AdditionalAttributes) .Build(); - /// - /// 获得 样式集合 - /// Get Input Class Name - /// private string? InputClassName => CssBuilder.Default("form-select form-control") .AddClass($"border-{Color.ToDescriptionString()}", Color != Color.None && !IsDisabled && !IsValid.HasValue) .AddClass($"border-success", IsValid.HasValue && IsValid.Value) @@ -33,10 +25,6 @@ public partial class SelectTree : IModelEqualityComparer .AddClass(CssClass).AddClass(ValidCss) .Build(); - /// - /// 获得 样式集合 - /// Get Append Class Name - /// private string? AppendClassName => CssBuilder.Default("form-select-append") .AddClass($"text-{Color.ToDescriptionString()}", Color != Color.None && !IsDisabled && !IsValid.HasValue) .AddClass($"text-success", IsValid.HasValue && IsValid.Value) @@ -58,21 +46,21 @@ public partial class SelectTree : IModelEqualityComparer public string? PlaceHolder { get; set; } /// - /// 获得/设置 是否 nodes can be expanded or collapsed when the component is disabled. 默认为 false. + /// 获得/设置 禁用时是否可以展开或折叠节点,默认为 false /// Gets or sets whether nodes can be expanded or collapsed when the component is disabled. Default is false. /// [Parameter] public bool CanExpandWhenDisabled { get; set; } = false; /// - /// 获得/设置 字符串比较规则 默认 StringComparison.OrdinalIgnoreCase 大小写不敏感 - /// Gets or sets String Comparison. Default StringComparison.OrdinalIgnoreCase + /// 获得/设置 字符串比较规则,默认 (不区分大小写) + /// Gets or sets String Comparison. Default /// [Parameter] public StringComparison StringComparison { get; set; } = StringComparison.OrdinalIgnoreCase; /// - /// 获得/设置 带层次数据集合 + /// 获得/设置 分层数据集合 /// Gets or sets Hierarchical Data Collection /// [Parameter] @@ -102,10 +90,8 @@ public partial class SelectTree : IModelEqualityComparer public Type CustomKeyAttribute { get; set; } = typeof(KeyAttribute); /// - /// 获得/设置 比较数据是否相同回调方法 默认为 null - /// Gets or sets Model Equality Comparer. Default null - /// 提供此回调方法时忽略 属性 - /// Ignore when providing this callback + /// 获得/设置 比较数据是否相同回调方法 默认为 null 提供此回调方法时忽略 属性 + /// Gets or sets Model Equality Comparer. Default null. Ignore when providing this callback /// [Parameter] [NotNull] @@ -200,8 +186,6 @@ protected override void OnInitialized() { base.OnInitialized(); - // 处理 Required 标签 - // Process Required Tag AddRequiredValidator(); } @@ -227,14 +211,10 @@ protected override async Task OnParametersSetAsync() if (Value == null) { - // 组件未赋值 Value 通过 IsActive 设置默认值 - // Value is not set, set default value by IsActive await TriggerItemChanged(s => s.IsActive); } else { - // 组件已赋值 Value 通过 Value 设置默认值 - // Value is set, set default value by Value await TriggerItemChanged(s => Equals(s.Value, Value)); } } @@ -258,8 +238,6 @@ private void OnChange(ChangeEventArgs args) { CurrentValueAsString = v; - // 选中节点更改为当前值 - // Selected node changed to current value _tv.SetActiveItem(Value); } } @@ -288,10 +266,6 @@ private List> GetExpandedItems() return _expandedItemsCache!; } - /// - /// 下拉框选项点击时调用此方法 - /// Called when dropdown option is clicked - /// private async Task OnItemClick(TreeViewItem item) { if (!Equals(item.Value, CurrentValue)) @@ -301,17 +275,11 @@ private async Task OnItemClick(TreeViewItem item) } } - /// - /// 选中项更改处理方法 - /// Selected Item Changed Method - /// private async Task ItemChanged(TreeViewItem item) { _selectedItem = item; CurrentValue = item.Value; - // 触发 SelectedItemChanged 事件 - // Trigger SelectedItemChanged Event if (OnSelectedItemChanged != null) { await OnSelectedItemChanged.Invoke(CurrentValue); diff --git a/src/BootstrapBlazor/Components/Select/SimpleSelectBase.cs b/src/BootstrapBlazor/Components/Select/SimpleSelectBase.cs index 69ccf8bc4f0..e07f2a9bd99 100644 --- a/src/BootstrapBlazor/Components/Select/SimpleSelectBase.cs +++ b/src/BootstrapBlazor/Components/Select/SimpleSelectBase.cs @@ -8,27 +8,27 @@ namespace BootstrapBlazor.Components; /// -/// SimpleSelectBase component base class +/// SimpleSelectBase 组件基类 /// SimpleSelectBase component base class /// /// public abstract class SimpleSelectBase : SelectBase { /// - /// 获得 virtualize component 实例 + /// 获得 虚拟化组件实例 /// Gets virtualize component instance /// [NotNull] protected Virtualize? _virtualizeElement = default; /// - /// 获得/设置 the last selected value string. + /// 获得/设置 最后选中的值字符串 /// Gets or sets the last selected value string. /// protected string _lastSelectedValueString = string.Empty; /// - /// 获得/设置 the items. + /// 获得/设置 项目集合 /// Gets or sets the items. /// [Parameter] @@ -36,7 +36,7 @@ public abstract class SimpleSelectBase : SelectBase public IEnumerable? Items { get; set; } /// - /// 获得/设置 the 回调方法 for loading virtualized items. + /// 获得/设置 加载虚拟化项目的回调方法 /// Gets or sets the callback method for loading virtualized items. /// [Parameter] @@ -44,34 +44,34 @@ public abstract class SimpleSelectBase : SelectBase public Func>>? OnQueryAsync { get; set; } /// - /// 获得/设置 the 回调方法 when the search text changes. + /// 获得/设置 搜索文本改变时的回调方法 /// Gets or sets the callback method when the search text changes. /// [Parameter] public Func>? OnSearchTextChanged { get; set; } /// - /// 获得/设置 是否 the select component is editable. 默认为 false. + /// 获得/设置 选择组件是否可编辑,默认为 false /// Gets or sets whether the select component is editable. Default is false. /// [Parameter] public bool IsEditable { get; set; } /// - /// 获得/设置 the item 模板. + /// 获得/设置 项目模板 /// Gets or sets the item template. /// [Parameter] public RenderFragment? ItemTemplate { get; set; } /// - /// 获得/设置 the selected items cache. + /// 获得/设置 选中项目缓存 /// Gets or sets the selected items cache. /// protected List? _itemsCache; /// - /// 获得 the dropdown menu rows. + /// 获得 下拉菜单行数据 /// Gets the dropdown menu rows. /// protected List Rows @@ -84,7 +84,7 @@ protected List Rows } /// - /// 获得 the rows by Items. + /// 获得 按项目筛选的行数据 /// Gets the rows by Items. /// protected abstract List GetRowsByItems(); @@ -96,7 +96,7 @@ private List GetRowsBySearch() } /// - /// Filter the items by search text. + /// 按搜索文本筛选项目 /// Filter the items by search text. /// /// @@ -105,11 +105,10 @@ protected IEnumerable FilterBySearchText(IEnumerable : source.Where(i => i.Text.Contains(SearchText, StringComparison)); /// - /// Triggers the search 回调方法. + /// 触发搜索回调方法 /// Triggers the search callback method. /// /// The search text. - /// A task that represents the asynchronous operation. [JSInvokable] public async Task TriggerOnSearch(string searchText) { @@ -120,21 +119,19 @@ public async Task TriggerOnSearch(string searchText) } /// - /// Refreshes the virtualize component. + /// 刷新虚拟化组件 /// Refreshes the virtualize component. /// protected async Task RefreshVirtualizeElement() { if (IsVirtualize && OnQueryAsync != null) { - // 通过 ItemProvider 提供数据 - // Data provided by ItemProvider await _virtualizeElement.RefreshDataAsync(); } } /// - /// Clears the selected value. + /// 清除选中值 /// Clears the selected value. /// protected override async Task OnClearValue() diff --git a/src/BootstrapBlazor/Components/SelectGeneric/MultiSelectGeneric.razor.cs b/src/BootstrapBlazor/Components/SelectGeneric/MultiSelectGeneric.razor.cs index fa4865f273b..3de3aba0418 100644 --- a/src/BootstrapBlazor/Components/SelectGeneric/MultiSelectGeneric.razor.cs +++ b/src/BootstrapBlazor/Components/SelectGeneric/MultiSelectGeneric.razor.cs @@ -9,7 +9,7 @@ namespace BootstrapBlazor.Components; /// -/// MultiSelectGeneric component +/// 多选泛型组件 /// MultiSelectGeneric component /// [ExcludeFromCodeCoverage] @@ -93,12 +93,9 @@ public partial class MultiSelectGeneric : IModelEqualityComparer public bool IsSingleLine { get; set; } /// - /// 获得/设置 编辑模式下输入选项更新后回调方法 默认 null - /// Gets or sets Callback method when input option is updated in edit mode. Default null - /// 返回 实例时输入选项生效,返回 null 时选项不生效进行舍弃操作,建议在回调方法中自行提示 - /// Return instance to take effect, return null to discard, it is recommended to prompt in the callback method + /// 获得/设置 编辑模式下输入选项更新后回调方法 默认 null 返回 实例时输入选项生效,返回 null 时选项不生效进行舍弃操作,建议在回调方法中自行提示 + /// Gets or sets Callback method when input option is updated in edit mode. Default null. Return instance to take effect, return null to discard, it is recommended to prompt in the callback method /// - /// Effective when is set. [Parameter] public Func>? OnEditCallback { get; set; } @@ -118,14 +115,14 @@ public partial class MultiSelectGeneric : IModelEqualityComparer /// /// 获得/设置 选中项集合发生改变时回调委托方法 - /// Callback method when selected items collection changes + /// Gets or sets Callback method when selected items collection changes /// [Parameter] public Func>, Task>? OnSelectedItemsChanged { get; set; } /// - /// 获得/设置 the default virtualize items text. - /// Gets or sets the default virtualize items text. + /// 获得/设置 默认虚拟化项文本 + /// Gets or sets the default virtualize items text /// [Parameter] public string? DefaultVirtualizeItemText { get; set; } @@ -139,7 +136,7 @@ public partial class MultiSelectGeneric : IModelEqualityComparer public string? SelectAllText { get; set; } /// - /// 获得/设置 全选按钮显示文本 + /// 获得/设置 反选按钮显示文本 /// Gets or sets Reverse Select Text /// [Parameter] @@ -147,7 +144,7 @@ public partial class MultiSelectGeneric : IModelEqualityComparer public string? ReverseSelectText { get; set; } /// - /// 获得/设置 全选按钮显示文本 + /// 获得/设置 清空按钮显示文本 /// Gets or sets Clear Text /// [Parameter] @@ -185,31 +182,31 @@ public partial class MultiSelectGeneric : IModelEqualityComparer public string? MinErrorMessage { get; set; } /// - /// 获得/设置 the items. - /// Gets or sets the items. + /// 获得/设置 选项集合 + /// Gets or sets the items /// [Parameter] [NotNull] public IEnumerable>? Items { get; set; } /// - /// 获得/设置 the 回调方法 for loading virtualized items. - /// Gets or sets the callback method for loading virtualized items. + /// 获得/设置 加载虚拟化项的回调方法 + /// Gets or sets the callback method for loading virtualized items /// [Parameter] [NotNull] public Func>>>? OnQueryAsync { get; set; } /// - /// 获得/设置 the 回调方法 when the search text changes. - /// Gets or sets the callback method when the search text changes. + /// 获得/设置 搜索文本改变时的回调方法 + /// Gets or sets the callback method when the search text changes /// [Parameter] public Func>>? OnSearchTextChanged { get; set; } /// - /// 获得/设置 the item 模板. - /// Gets or sets the item template. + /// 获得/设置 选项模板 + /// Gets or sets the item template /// [Parameter] public RenderFragment>? ItemTemplate { get; set; } @@ -299,11 +296,10 @@ protected override void OnAfterRender(bool firstRender) }); /// - /// Triggers the search 回调方法. - /// Triggers the search callback method. + /// 触发搜索回调方法 + /// Triggers the search callback method /// - /// The search text. - /// A task that represents the asynchronous operation. + /// [JSInvokable] public async Task TriggerOnSearch(string searchText) { @@ -313,27 +309,16 @@ public async Task TriggerOnSearch(string searchText) StateHasChanged(); } - /// - /// Refreshes the virtualize component. - /// Refreshes the virtualize component. - /// private async Task RefreshVirtualizeElement() { if (IsVirtualize && OnQueryAsync != null) { - // 通过 ItemProvider 提供数据 - // Data provided by ItemProvider await _virtualizeElement.RefreshDataAsync(); } } private List>? _itemsCache; - /// - /// 获得 the dropdown menu rows. - /// - /// Gets the dropdown menu rows. - /// - /// + private List> Rows { get @@ -360,10 +345,6 @@ private IEnumerable> FilterBySearchText(IEnumerable>> LoadItems(ItemsProviderRequest request) { - // 有搜索条件时使用原生请求数量 - // Use original request count when there is search condition - // 有总数时请求剩余数量 - // Request remaining count when there is total count var count = !string.IsNullOrEmpty(SearchText) ? request.Count : GetCountByTotal(); var data = await OnQueryAsync(new() { StartIndex = request.StartIndex, Count = count, SearchText = SearchText }); @@ -389,9 +370,6 @@ protected override async Task OnClearValue() private bool _isToggle; - /// - /// - /// private List> GetRowsByItems() { var items = new List>(); @@ -441,8 +419,6 @@ private async Task ToggleRow(SelectedItem item) SelectedItems.Remove(item); _isToggle = true; - // 更新选中值 - // Update selected value await SetValue(); } @@ -465,8 +441,6 @@ private async Task ToggleItem(SelectedItem val) } _isToggle = true; - // 更新选中值 - // Update selected value await SetValue(); } diff --git a/src/BootstrapBlazor/Components/SelectGeneric/SelectGeneric.razor.cs b/src/BootstrapBlazor/Components/SelectGeneric/SelectGeneric.razor.cs index 159dd6d63d9..9fbd06e166e 100644 --- a/src/BootstrapBlazor/Components/SelectGeneric/SelectGeneric.razor.cs +++ b/src/BootstrapBlazor/Components/SelectGeneric/SelectGeneric.razor.cs @@ -20,19 +20,11 @@ public partial class SelectGeneric : ISelectGeneric, IModelEqual [NotNull] private SwalService? SwalService { get; set; } - /// - /// 获得 样式集合 - /// Get Class Name - /// private string? ClassString => CssBuilder.Default("select dropdown") .AddClass("is-clearable", IsClearable) .AddClassFromAttributes(AdditionalAttributes) .Build(); - /// - /// 获得 样式集合 - /// Get Input Class Name - /// private string? InputClassString => CssBuilder.Default("form-select form-control") .AddClass($"border-{Color.ToDescriptionString()}", Color != Color.None && !IsDisabled && !IsValid.HasValue) .AddClass($"border-success", IsValid.HasValue && IsValid.Value) @@ -40,11 +32,6 @@ public partial class SelectGeneric : ISelectGeneric, IModelEqual .AddClass(CssClass).AddClass(ValidCss) .Build(); - /// - /// 设置当前项是否 Active 方法 - /// Set Current Item Active Method - /// - /// private string? ActiveItem(SelectedItem item) => CssBuilder.Default("dropdown-item") .AddClass("active", Equals(item.Value, Value)) .AddClass("disabled", item.IsDisabled) @@ -54,7 +41,7 @@ public partial class SelectGeneric : ISelectGeneric, IModelEqual /// /// 获得/设置 搜索文本发生变化时回调此方法 - /// Callback method when search text changes + /// Gets or sets Callback method when search text changes /// [Parameter] public Func>>? OnSearchTextChanged { get; set; } @@ -67,20 +54,16 @@ public partial class SelectGeneric : ISelectGeneric, IModelEqual public bool IsEditable { get; set; } /// - /// 获得/设置 选项输入更新后回调方法 默认 null - /// Callback method after option input update. Default null + /// 获得/设置 选项输入更新后回调方法 默认 null 设置 后生效 + /// Gets or sets Callback method after option input update. Default null. Effective when is set /// - /// 设置 后生效 [Parameter] public Func? OnInputChangedCallback { get; set; } /// - /// 获得/设置 选项输入更新后转换为 Value 回调方法 默认 null - /// Callback method to convert option input update to Value. Default null - /// 返回值为 null 时放弃操作 - /// Discard operation when return value is null + /// 获得/设置 选项输入更新后转换为 Value 回调方法 默认 null 返回值为 null 时放弃操作 设置 后生效 + /// Gets or sets Callback method to convert option input update to Value. Default null. Discard operation when return value is null. Effective when is set /// - /// 设置 后生效 [Parameter] public Func>? TextConvertToValueCallback { get; set; } @@ -198,10 +181,6 @@ public partial class SelectGeneric : ISelectGeneric, IModelEqual /// protected override string? RetrieveId() => InputId; - /// - /// 获得/设置 Select 内部 Input 组件 Id - /// Gets or sets Select Internal Input Component Id - /// private string? InputId => $"{Id}_input"; private TValue? _lastSelectedValue; @@ -214,10 +193,6 @@ public partial class SelectGeneric : ISelectGeneric, IModelEqual private string? ScrollIntoViewBehaviorString => ScrollIntoViewBehavior == ScrollIntoViewBehavior.Smooth ? null : ScrollIntoViewBehavior.ToDescriptionString(); - /// - /// 当前选择项实例 - /// Current Selected Item Instance - /// private SelectedItem? SelectedItem { get; set; } private List> Rows @@ -302,8 +277,6 @@ protected override void OnParametersSet() DropdownIcon ??= IconTheme.GetIconByKey(ComponentIcons.SelectDropdownIcon); ClearIcon ??= IconTheme.GetIconByKey(ComponentIcons.SelectClearIcon); - // 内置对枚举类型的支持 - // Built-in support for enum types if (!Items.Any() && ValueType.IsEnum()) { var item = NullableUnderlyingType == null ? "" : PlaceHolder; @@ -328,10 +301,6 @@ protected override async Task OnAfterRenderAsync(bool firstRender) } } - /// - /// 获得/设置 数据总条目 - /// Gets or sets Total Count - /// private int TotalCount { get; set; } private List> GetVirtualItems() => [.. FilterBySearchText(GetRowsByItems())]; @@ -346,10 +315,6 @@ protected override async Task OnAfterRenderAsync(bool firstRender) private async ValueTask>> LoadItems(ItemsProviderRequest request) { - // 有搜索条件时使用原生请求数量 - // Use original request count when there is search condition - // 有总数时请求剩余数量 - // Request remaining count when there is total count var count = !string.IsNullOrEmpty(SearchText) ? request.Count : GetCountByTotal(); var data = await OnQueryAsync(new() { StartIndex = request.StartIndex, Count = count, SearchText = SearchText }); @@ -365,8 +330,6 @@ private async Task RefreshVirtualizeElement() { if (IsVirtualize && OnQueryAsync != null) { - // 通过 ItemProvider 提供数据 - // Data provided by ItemProvider await VirtualizeElement.RefreshDataAsync(); } } @@ -405,10 +368,6 @@ public async Task TriggerOnSearch(string searchText) StateHasChanged(); } - /// - /// 下拉框选项点击时调用此方法 - /// Called when dropdown option is clicked - /// private async Task OnClickItem(SelectedItem item) { var ret = true; @@ -417,8 +376,6 @@ private async Task OnClickItem(SelectedItem item) ret = await OnBeforeSelectedItemChange(item); if (ret) { - // 返回 True 弹窗提示 - // Return True to show popup var option = new SwalOption() { Category = SwalCategory, @@ -434,8 +391,6 @@ private async Task OnClickItem(SelectedItem item) } else { - // 返回 False 直接运行 - // Return False to run directly ret = true; } } @@ -454,8 +409,6 @@ private async Task SelectedItemChanged(SelectedItem item) CurrentValue = item.Value; - // 触发 SelectedItemChanged 事件 - // Trigger SelectedItemChanged Event if (OnSelectedItemChanged != null) { await OnSelectedItemChanged(SelectedItem); @@ -476,11 +429,8 @@ private async Task ValueTypeChanged(SelectedItem item) item.Active = true; SelectedItem = item; - // 触发 StateHasChanged - // Trigger StateHasChanged CurrentValue = item.Value; - // 触发 SelectedItemChanged 事件 - // Trigger SelectedItemChanged Event + if (OnSelectedItemChanged != null) { await OnSelectedItemChanged(SelectedItem); @@ -519,8 +469,6 @@ private async Task OnChange(ChangeEventArgs args) { if (args.Value is string v) { - // Items 中没有时插入一个 SelectedItem - // Insert a SelectedItem when it is not in Items var item = Items.FirstOrDefault(i => i.Text == v); if (item == null) @@ -533,14 +481,10 @@ private async Task OnChange(ChangeEventArgs args) if (val is not null) { - // 返回值时,由外部更新 Items 参数 - // Return value, update Items parameter externally CurrentValue = val; } else { - // 返回空值时恢复上次选中值 - // Return empty value, restore last selected value await InvokeVoidAsync("resetValue", InputId, SelectedRow?.Text); } } diff --git a/src/BootstrapBlazor/Components/SelectGeneric/SelectOptionGeneric.cs b/src/BootstrapBlazor/Components/SelectGeneric/SelectOptionGeneric.cs index c309c338724..a71607c4b43 100644 --- a/src/BootstrapBlazor/Components/SelectGeneric/SelectOptionGeneric.cs +++ b/src/BootstrapBlazor/Components/SelectGeneric/SelectOptionGeneric.cs @@ -46,10 +46,6 @@ public class SelectOptionGeneric : ComponentBase [Parameter] public string? GroupName { get; set; } - /// - /// 父组件通过级联参数获得 - /// Parent component obtained through cascading parameter - /// [CascadingParameter] private ISelectGeneric? Container { get; set; } diff --git a/src/BootstrapBlazor/Components/Skeleton/SkeletonAvatar.razor.cs b/src/BootstrapBlazor/Components/Skeleton/SkeletonAvatar.razor.cs index 463a2bdbb99..c5940aef7d8 100644 --- a/src/BootstrapBlazor/Components/Skeleton/SkeletonAvatar.razor.cs +++ b/src/BootstrapBlazor/Components/Skeleton/SkeletonAvatar.razor.cs @@ -6,7 +6,7 @@ namespace BootstrapBlazor.Components; /// -/// SkeletonAvatar 组件 +/// 骨架屏头像组件 /// SkeletonAvatar Component /// public sealed partial class SkeletonAvatar diff --git a/src/BootstrapBlazor/Components/Skeleton/SkeletonBase.cs b/src/BootstrapBlazor/Components/Skeleton/SkeletonBase.cs index 2f47a328b5c..f30328b8229 100644 --- a/src/BootstrapBlazor/Components/Skeleton/SkeletonBase.cs +++ b/src/BootstrapBlazor/Components/Skeleton/SkeletonBase.cs @@ -27,7 +27,7 @@ public abstract class SkeletonBase : BootstrapComponentBase /// /// 获得 样式 - /// Get Class Name + /// Gets Class Name /// protected string? ClassString => CssBuilder.Default("skeleton-content") .AddClass("active", Active) diff --git a/src/BootstrapBlazor/Components/Slider/Slider.razor.cs b/src/BootstrapBlazor/Components/Slider/Slider.razor.cs index 6713fdbe8cc..32797cfa722 100644 --- a/src/BootstrapBlazor/Components/Slider/Slider.razor.cs +++ b/src/BootstrapBlazor/Components/Slider/Slider.razor.cs @@ -6,15 +6,11 @@ namespace BootstrapBlazor.Components; /// -/// Range 组件 +/// 滑块组件 /// Slider Component /// public partial class Slider { - /// - /// 获得 样式集合 - /// Get Class Name - /// private string? ClassString => CssBuilder.Default("form-range") .AddClassFromAttributes(AdditionalAttributes) .Build(); diff --git a/src/BootstrapBlazor/Components/Speech/IRecognizerProvider.cs b/src/BootstrapBlazor/Components/Speech/IRecognizerProvider.cs index 6393aff6f9b..a142d9e4077 100644 --- a/src/BootstrapBlazor/Components/Speech/IRecognizerProvider.cs +++ b/src/BootstrapBlazor/Components/Speech/IRecognizerProvider.cs @@ -6,8 +6,8 @@ namespace BootstrapBlazor.Components; /// -/// ISpeechService 服务接口定义 -/// ISpeechService Interface Definition +/// IRecognizerProvider 服务接口定义 +/// IRecognizerProvider Interface Definition /// public interface IRecognizerProvider { diff --git a/src/BootstrapBlazor/Components/Speech/RecognizerOption.cs b/src/BootstrapBlazor/Components/Speech/RecognizerOption.cs index ec458e411d0..600862d3351 100644 --- a/src/BootstrapBlazor/Components/Speech/RecognizerOption.cs +++ b/src/BootstrapBlazor/Components/Speech/RecognizerOption.cs @@ -39,5 +39,13 @@ public class RecognizerOption /// 获得/设置 自动识别时间 默认 5000 设置 0 时禁用需要手动关闭 /// Gets or sets Auto Recognition Time. Default 5000. Set 0 to disable and need to close manually /// - public int AutoRecoginzerElapsedMilliseconds { get; set; } = 5000; + [Obsolete("已弃用,请使用 AutoRecognizerElapsedMilliseconds 属性单词拼写错误。 Deprecated. Please use the AutoRecognizerElapsedMilliseconds method. (The word is misspelled.)")] + [ExcludeFromCodeCoverage] + public int AutoRecoginzerElapsedMilliseconds { get => AutoRecognizerElapsedMilliseconds; set => AutoRecognizerElapsedMilliseconds = value; } + + /// + /// 获得/设置 自动识别时间 默认 5000 设置 0 时禁用需要手动关闭 + /// Gets or sets Auto Recognition Time. Default 5000. Set 0 to disable and need to close manually + /// + public int AutoRecognizerElapsedMilliseconds { get; set; } = 5000; } diff --git a/src/BootstrapBlazor/Components/Speech/SpeechWave.razor.cs b/src/BootstrapBlazor/Components/Speech/SpeechWave.razor.cs index f48f5edd88e..08d53fa9878 100644 --- a/src/BootstrapBlazor/Components/Speech/SpeechWave.razor.cs +++ b/src/BootstrapBlazor/Components/Speech/SpeechWave.razor.cs @@ -123,8 +123,8 @@ private void Stop() } /// - /// Dispose 方法 - /// Dispose 方法 + /// 释放方法 + /// Dispose Method /// /// protected virtual void Dispose(bool disposing) @@ -136,8 +136,7 @@ protected virtual void Dispose(bool disposing) } /// - /// Dispose 方法 - /// Dispose 方法 + /// /// public void Dispose() { diff --git a/src/BootstrapBlazor/Extensions/JSModuleExtensions.cs b/src/BootstrapBlazor/Extensions/JSModuleExtensions.cs index f377e23a062..fc216116f29 100644 --- a/src/BootstrapBlazor/Extensions/JSModuleExtensions.cs +++ b/src/BootstrapBlazor/Extensions/JSModuleExtensions.cs @@ -6,28 +6,26 @@ namespace BootstrapBlazor.Components; /// -/// JSModule extensions class +/// JSModule 扩展类 /// JSModule extensions class /// public static class JSModuleExtensions { /// - /// Load utility js module + /// 加载 utility js 模块 /// Load utility js module /// /// The instance /// The version of the module - /// A ]]> module loader public static Task LoadUtility(this IJSRuntime jsRuntime, string? version = null) => LoadModuleByName(jsRuntime, "utility", version); /// - /// Load built-in script module by name + /// 按名称加载内置脚本模块 /// Load built-in script module by name /// /// The instance /// The name of the module /// The version of the module - /// A ]]> module loader public static Task LoadModuleByName(this IJSRuntime jsRuntime, string moduleName, string? version = null) { var fileName = $"./_content/BootstrapBlazor/modules/{moduleName}.js"; @@ -35,13 +33,12 @@ public static Task LoadModuleByName(this IJSRuntime jsRuntime, string } /// - /// IJSRuntime extension method to dynamically load scripts + /// IJSRuntime 扩展方法,用于动态加载脚本 /// IJSRuntime extension method to dynamically load scripts /// /// The instance /// The file name of the script /// The version of the script - /// A ]]> module loader public static async Task LoadModule(this IJSRuntime jsRuntime, string fileName, string? version = null) { if (!string.IsNullOrEmpty(version)) @@ -68,11 +65,10 @@ public static async Task LoadModule(this IJSRuntime jsRuntime, string } /// - /// Get the module name of the specified 类型 + /// 获取指定类型的模块名称 /// Get the module name of the specified type /// /// The type - /// The module name public static string GetTypeModuleName(this Type type) { var name = type.Name; @@ -85,53 +81,48 @@ public static string GetTypeModuleName(this Type type) } /// - /// Open the specified URL in a new tab + /// 在新标签页中打开指定的 URL /// Open the specified URL in a new tab /// /// instance /// The URL to open /// The target window, default is _blank /// The features of the new window, default is null - /// A that represents the asynchronous invocation operation. public static ValueTask OpenUrl(this JSModule module, string url, string? target = "_blank", string? features = null) => module.InvokeVoidAsync("openUrl", url, target, features); /// - /// Dynamically run js code + /// 动态运行 JavaScript 代码 /// Dynamically run js code /// /// instance /// The script to run - /// A that represents the asynchronous invocation operation. public static async ValueTask Eval(this JSModule module, string script) => await module.InvokeVoidAsync("runEval", script); /// - /// Dynamically run JavaScript code via Eval + /// 通过 Eval 动态运行 JavaScript 代码 /// Dynamically run JavaScript code via Eval /// /// instance /// The script to run - /// A that represents the asynchronous invocation operation. public static ValueTask Eval(this JSModule module, string script) => module.InvokeAsync("runEval", script); /// - /// Dynamically run JavaScript code via Function + /// 通过 Function 动态运行 JavaScript 代码 /// Dynamically run JavaScript code via Function /// /// instance /// The script to run /// The arguments to pass to the script - /// A that represents the asynchronous invocation operation. public static ValueTask Function(this JSModule module, string script, params object?[]? args) => module.InvokeVoidAsync("runFunction", script, args); /// - /// Dynamically run js code + /// 动态运行 js 代码 /// Dynamically run js code /// /// The return type /// instance /// The script to run /// The arguments to pass to the script - /// A that represents the asynchronous invocation operation. public static async ValueTask Function(this JSModule module, string script, params object?[]? args) { TValue? ret = default; @@ -143,34 +134,31 @@ public static string GetTypeModuleName(this Type type) } /// - /// Check if the current terminal is a mobile device + /// 检查当前终端是否为移动设备 /// Check if the current terminal is a mobile device /// /// instance - /// A that represents the asynchronous invocation operation. public static ValueTask IsMobile(this JSModule module) => module.InvokeAsync("isMobile"); /// - /// Get a unique element ID on a page + /// 获取页面上唯一的元素 ID /// Get a unique element ID on a page /// /// An instance of /// A prefix of type - /// Returns a formatted element ID public static ValueTask GenerateId(this JSModule module, string? prefix = null) => module.InvokeAsync("getUID", prefix); /// - /// Get the HTML string of a specified element on a page + /// 获取页面上指定元素的 HTML 字符串 /// Get the HTML string of a specified element on a page /// /// An instance of /// The ID of the element /// The selector of the element - /// Returns a formatted element ID public static ValueTask GetHtml(this JSModule module, string? id = null, string? selector = null) => module.InvokeAsync("getHtml", new { id, selector }); /// - /// Set the theme method + /// 设置主题的方法 /// Set the theme method /// /// An instance of @@ -178,14 +166,14 @@ public static string GetTypeModuleName(this Type type) public static ValueTask SetThemeAsync(this JSModule module, string themeName) => module.InvokeVoidAsync("setTheme", themeName, true); /// - /// Get the theme method + /// 获取主题的方法 /// Get the theme method /// /// An instance of public static ValueTask GetThemeAsync(this JSModule module) => module.InvokeAsync("getTheme"); /// - /// Set memorial mode + /// 设置纪念日模式 /// Set memorial mode /// /// An instance of diff --git a/test/UnitTest/Components/RecognizerTest.cs b/test/UnitTest/Components/RecognizerTest.cs index 219707b7eb1..dc7849d49f1 100644 --- a/test/UnitTest/Components/RecognizerTest.cs +++ b/test/UnitTest/Components/RecognizerTest.cs @@ -19,7 +19,7 @@ public async Task Recognizer_Ok() MethodName = "Test", TargetLanguage = "zh-CN", SpeechRecognitionLanguage = "zh-CN", - AutoRecoginzerElapsedMilliseconds = 5000, + AutoRecognizerElapsedMilliseconds = 5000, Callback = new Func((status, v) => { result = v; @@ -29,7 +29,7 @@ public async Task Recognizer_Ok() await recognizerService.InvokeAsync(option); Assert.Equal("MockSpeechProvider", result); - Assert.Equal(5000, option.AutoRecoginzerElapsedMilliseconds); + Assert.Equal(5000, option.AutoRecognizerElapsedMilliseconds); } [Fact]